]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
Add flags parameter to wx.Process.Kill and wx.Kill
[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
f78cc896
RD
2697static PyObject *_wrap_Brush_IsHatch(PyObject *, PyObject *args, PyObject *kwargs) {
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_IsHatch",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)((wxBrush const *)arg1)->IsHatch();
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_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2726 PyObject *resultobj;
2727 wxBrush *arg1 = (wxBrush *) 0 ;
2728 bool result;
2729 PyObject * obj0 = 0 ;
2730 char *kwnames[] = {
2731 (char *) "self", NULL
2732 };
2733
2734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",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 = (bool)(arg1)->Ok();
2740
2741 wxPyEndAllowThreads(__tstate);
2742 if (PyErr_Occurred()) SWIG_fail;
2743 }
2744 {
2745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2746 }
2747 return resultobj;
2748 fail:
2749 return NULL;
2750}
2751
2752
c370783e 2753static PyObject *_wrap_Brush_MacGetTheme(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2754 PyObject *resultobj;
2755 wxBrush *arg1 = (wxBrush *) 0 ;
2756 short result;
2757 PyObject * obj0 = 0 ;
2758 char *kwnames[] = {
2759 (char *) "self", NULL
2760 };
2761
2762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
2763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2765 {
2766 PyThreadState* __tstate = wxPyBeginAllowThreads();
2767 result = (short)(arg1)->MacGetTheme();
2768
2769 wxPyEndAllowThreads(__tstate);
2770 if (PyErr_Occurred()) SWIG_fail;
2771 }
c370783e 2772 resultobj = SWIG_From_short((short)result);
d55e5bfc
RD
2773 return resultobj;
2774 fail:
2775 return NULL;
2776}
2777
2778
c370783e 2779static PyObject *_wrap_Brush_MacSetTheme(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2780 PyObject *resultobj;
2781 wxBrush *arg1 = (wxBrush *) 0 ;
2782 short arg2 ;
2783 PyObject * obj0 = 0 ;
2784 PyObject * obj1 = 0 ;
2785 char *kwnames[] = {
2786 (char *) "self",(char *) "macThemeBrush", NULL
2787 };
2788
2789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
2790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 2792 arg2 = (short)SWIG_As_short(obj1);
d55e5bfc
RD
2793 if (PyErr_Occurred()) SWIG_fail;
2794 {
2795 PyThreadState* __tstate = wxPyBeginAllowThreads();
2796 (arg1)->MacSetTheme(arg2);
2797
2798 wxPyEndAllowThreads(__tstate);
2799 if (PyErr_Occurred()) SWIG_fail;
2800 }
2801 Py_INCREF(Py_None); resultobj = Py_None;
2802 return resultobj;
2803 fail:
2804 return NULL;
2805}
2806
2807
c370783e 2808static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
2809 PyObject *obj;
2810 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2811 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2812 Py_INCREF(obj);
2813 return Py_BuildValue((char *)"");
2814}
c370783e 2815static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2816 PyObject *resultobj;
2817 wxString *arg1 = 0 ;
2818 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2819 wxBitmap *result;
b411df4a 2820 bool temp1 = false ;
d55e5bfc
RD
2821 PyObject * obj0 = 0 ;
2822 PyObject * obj1 = 0 ;
2823 char *kwnames[] = {
2824 (char *) "name",(char *) "type", NULL
2825 };
2826
2827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2828 {
2829 arg1 = wxString_in_helper(obj0);
2830 if (arg1 == NULL) SWIG_fail;
b411df4a 2831 temp1 = true;
d55e5bfc
RD
2832 }
2833 if (obj1) {
c370783e 2834 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2835 if (PyErr_Occurred()) SWIG_fail;
2836 }
2837 {
0439c23b 2838 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2839 PyThreadState* __tstate = wxPyBeginAllowThreads();
2840 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2841
2842 wxPyEndAllowThreads(__tstate);
110da5b0 2843 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2844 }
2845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2846 {
2847 if (temp1)
2848 delete arg1;
2849 }
2850 return resultobj;
2851 fail:
2852 {
2853 if (temp1)
2854 delete arg1;
2855 }
2856 return NULL;
2857}
2858
2859
c370783e 2860static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2861 PyObject *resultobj;
2862 wxBitmap *arg1 = (wxBitmap *) 0 ;
2863 PyObject * obj0 = 0 ;
2864 char *kwnames[] = {
2865 (char *) "self", NULL
2866 };
2867
2868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2871 {
2872 PyThreadState* __tstate = wxPyBeginAllowThreads();
2873 delete arg1;
2874
2875 wxPyEndAllowThreads(__tstate);
2876 if (PyErr_Occurred()) SWIG_fail;
2877 }
2878 Py_INCREF(Py_None); resultobj = Py_None;
2879 return resultobj;
2880 fail:
2881 return NULL;
2882}
2883
2884
c370783e 2885static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
2886 PyObject *resultobj;
2887 int arg1 ;
2888 int arg2 ;
2889 int arg3 = (int) -1 ;
2890 wxBitmap *result;
2891 PyObject * obj0 = 0 ;
2892 PyObject * obj1 = 0 ;
2893 PyObject * obj2 = 0 ;
2894 char *kwnames[] = {
2895 (char *) "width",(char *) "height",(char *) "depth", NULL
2896 };
2897
2898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
c370783e 2899 arg1 = (int)SWIG_As_int(obj0);
d6c14a4c 2900 if (PyErr_Occurred()) SWIG_fail;
c370783e 2901 arg2 = (int)SWIG_As_int(obj1);
d6c14a4c
RD
2902 if (PyErr_Occurred()) SWIG_fail;
2903 if (obj2) {
c370783e 2904 arg3 = (int)SWIG_As_int(obj2);
d6c14a4c
RD
2905 if (PyErr_Occurred()) SWIG_fail;
2906 }
2907 {
0439c23b 2908 if (!wxPyCheckForApp()) SWIG_fail;
d6c14a4c
RD
2909 PyThreadState* __tstate = wxPyBeginAllowThreads();
2910 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2911
2912 wxPyEndAllowThreads(__tstate);
110da5b0 2913 if (PyErr_Occurred()) SWIG_fail;
d6c14a4c
RD
2914 }
2915 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2916 return resultobj;
2917 fail:
2918 return NULL;
2919}
2920
2921
c370783e 2922static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2923 PyObject *resultobj;
2924 wxIcon *arg1 = 0 ;
2925 wxBitmap *result;
2926 PyObject * obj0 = 0 ;
2927 char *kwnames[] = {
2928 (char *) "icon", NULL
2929 };
2930
2931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2933 SWIG_POINTER_EXCEPTION | 0)) == -1)
2934 SWIG_fail;
2935 if (arg1 == NULL) {
2936 PyErr_SetString(PyExc_TypeError,"null reference");
2937 SWIG_fail;
2938 }
2939 {
0439c23b 2940 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2941 PyThreadState* __tstate = wxPyBeginAllowThreads();
2942 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2943
2944 wxPyEndAllowThreads(__tstate);
110da5b0 2945 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2946 }
2947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2948 return resultobj;
2949 fail:
2950 return NULL;
2951}
2952
2953
c370783e 2954static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2955 PyObject *resultobj;
2956 wxImage *arg1 = 0 ;
2957 int arg2 = (int) -1 ;
2958 wxBitmap *result;
2959 PyObject * obj0 = 0 ;
2960 PyObject * obj1 = 0 ;
2961 char *kwnames[] = {
2962 (char *) "image",(char *) "depth", NULL
2963 };
2964
2965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2967 SWIG_POINTER_EXCEPTION | 0)) == -1)
2968 SWIG_fail;
2969 if (arg1 == NULL) {
2970 PyErr_SetString(PyExc_TypeError,"null reference");
2971 SWIG_fail;
2972 }
2973 if (obj1) {
c370783e 2974 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2975 if (PyErr_Occurred()) SWIG_fail;
2976 }
2977 {
0439c23b 2978 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2979 PyThreadState* __tstate = wxPyBeginAllowThreads();
2980 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2981
2982 wxPyEndAllowThreads(__tstate);
110da5b0 2983 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2984 }
2985 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2986 return resultobj;
2987 fail:
2988 return NULL;
2989}
2990
2991
c370783e 2992static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2993 PyObject *resultobj;
2994 PyObject *arg1 = (PyObject *) 0 ;
2995 wxBitmap *result;
2996 PyObject * obj0 = 0 ;
2997 char *kwnames[] = {
2998 (char *) "listOfStrings", NULL
2999 };
3000
3001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
3002 arg1 = obj0;
3003 {
0439c23b 3004 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3005 PyThreadState* __tstate = wxPyBeginAllowThreads();
3006 result = (wxBitmap *)new_wxBitmap(arg1);
3007
3008 wxPyEndAllowThreads(__tstate);
110da5b0 3009 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3010 }
3011 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
3012 return resultobj;
3013 fail:
3014 return NULL;
3015}
3016
3017
c370783e 3018static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3019 PyObject *resultobj;
3020 PyObject *arg1 = (PyObject *) 0 ;
3021 int arg2 ;
3022 int arg3 ;
3023 int arg4 = (int) 1 ;
3024 wxBitmap *result;
3025 PyObject * obj0 = 0 ;
3026 PyObject * obj1 = 0 ;
3027 PyObject * obj2 = 0 ;
3028 PyObject * obj3 = 0 ;
3029 char *kwnames[] = {
3030 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
3031 };
3032
3033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3034 arg1 = obj0;
c370783e 3035 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 3036 if (PyErr_Occurred()) SWIG_fail;
c370783e 3037 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3038 if (PyErr_Occurred()) SWIG_fail;
3039 if (obj3) {
c370783e 3040 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
3041 if (PyErr_Occurred()) SWIG_fail;
3042 }
3043 {
0439c23b 3044 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3045 PyThreadState* __tstate = wxPyBeginAllowThreads();
3046 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
3047
3048 wxPyEndAllowThreads(__tstate);
110da5b0 3049 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3050 }
3051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
3052 return resultobj;
3053 fail:
3054 return NULL;
3055}
3056
3057
c370783e 3058static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3059 PyObject *resultobj;
3060 wxBitmap *arg1 = (wxBitmap *) 0 ;
3061 bool result;
3062 PyObject * obj0 = 0 ;
3063 char *kwnames[] = {
3064 (char *) "self", NULL
3065 };
3066
3067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",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 = (bool)(arg1)->Ok();
3073
3074 wxPyEndAllowThreads(__tstate);
3075 if (PyErr_Occurred()) SWIG_fail;
3076 }
3077 {
3078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3079 }
3080 return resultobj;
3081 fail:
3082 return NULL;
3083}
3084
3085
c370783e 3086static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3087 PyObject *resultobj;
3088 wxBitmap *arg1 = (wxBitmap *) 0 ;
3089 int result;
3090 PyObject * obj0 = 0 ;
3091 char *kwnames[] = {
3092 (char *) "self", NULL
3093 };
3094
3095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3098 {
3099 PyThreadState* __tstate = wxPyBeginAllowThreads();
3100 result = (int)(arg1)->GetWidth();
3101
3102 wxPyEndAllowThreads(__tstate);
3103 if (PyErr_Occurred()) SWIG_fail;
3104 }
c370783e 3105 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3106 return resultobj;
3107 fail:
3108 return NULL;
3109}
3110
3111
c370783e 3112static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3113 PyObject *resultobj;
3114 wxBitmap *arg1 = (wxBitmap *) 0 ;
3115 int result;
3116 PyObject * obj0 = 0 ;
3117 char *kwnames[] = {
3118 (char *) "self", NULL
3119 };
3120
3121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3124 {
3125 PyThreadState* __tstate = wxPyBeginAllowThreads();
3126 result = (int)(arg1)->GetHeight();
3127
3128 wxPyEndAllowThreads(__tstate);
3129 if (PyErr_Occurred()) SWIG_fail;
3130 }
c370783e 3131 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3132 return resultobj;
3133 fail:
3134 return NULL;
3135}
3136
3137
c370783e 3138static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3139 PyObject *resultobj;
3140 wxBitmap *arg1 = (wxBitmap *) 0 ;
3141 int result;
3142 PyObject * obj0 = 0 ;
3143 char *kwnames[] = {
3144 (char *) "self", NULL
3145 };
3146
3147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3150 {
3151 PyThreadState* __tstate = wxPyBeginAllowThreads();
3152 result = (int)(arg1)->GetDepth();
3153
3154 wxPyEndAllowThreads(__tstate);
3155 if (PyErr_Occurred()) SWIG_fail;
3156 }
c370783e 3157 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3158 return resultobj;
3159 fail:
3160 return NULL;
3161}
3162
3163
c370783e 3164static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3165 PyObject *resultobj;
3166 wxBitmap *arg1 = (wxBitmap *) 0 ;
3167 wxSize result;
3168 PyObject * obj0 = 0 ;
3169 char *kwnames[] = {
3170 (char *) "self", NULL
3171 };
3172
3173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3176 {
3177 PyThreadState* __tstate = wxPyBeginAllowThreads();
3178 result = wxBitmap_GetSize(arg1);
3179
3180 wxPyEndAllowThreads(__tstate);
3181 if (PyErr_Occurred()) SWIG_fail;
3182 }
3183 {
3184 wxSize * resultptr;
3185 resultptr = new wxSize((wxSize &) result);
3186 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3187 }
3188 return resultobj;
3189 fail:
3190 return NULL;
3191}
3192
3193
c370783e 3194static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3195 PyObject *resultobj;
3196 wxBitmap *arg1 = (wxBitmap *) 0 ;
3197 SwigValueWrapper< wxImage > result;
3198 PyObject * obj0 = 0 ;
3199 char *kwnames[] = {
3200 (char *) "self", NULL
3201 };
3202
3203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3206 {
3207 PyThreadState* __tstate = wxPyBeginAllowThreads();
3208 result = ((wxBitmap const *)arg1)->ConvertToImage();
3209
3210 wxPyEndAllowThreads(__tstate);
3211 if (PyErr_Occurred()) SWIG_fail;
3212 }
3213 {
3214 wxImage * resultptr;
3215 resultptr = new wxImage((wxImage &) result);
3216 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3217 }
3218 return resultobj;
3219 fail:
3220 return NULL;
3221}
3222
3223
c370783e 3224static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3225 PyObject *resultobj;
3226 wxBitmap *arg1 = (wxBitmap *) 0 ;
3227 wxMask *result;
3228 PyObject * obj0 = 0 ;
3229 char *kwnames[] = {
3230 (char *) "self", NULL
3231 };
3232
3233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3236 {
3237 PyThreadState* __tstate = wxPyBeginAllowThreads();
3238 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3239
3240 wxPyEndAllowThreads(__tstate);
3241 if (PyErr_Occurred()) SWIG_fail;
3242 }
3243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3244 return resultobj;
3245 fail:
3246 return NULL;
3247}
3248
3249
c370783e 3250static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3251 PyObject *resultobj;
3252 wxBitmap *arg1 = (wxBitmap *) 0 ;
3253 wxMask *arg2 = (wxMask *) 0 ;
3254 PyObject * obj0 = 0 ;
3255 PyObject * obj1 = 0 ;
3256 char *kwnames[] = {
3257 (char *) "self",(char *) "mask", NULL
3258 };
3259
3260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3263 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3265 {
3266 PyThreadState* __tstate = wxPyBeginAllowThreads();
3267 (arg1)->SetMask(arg2);
3268
3269 wxPyEndAllowThreads(__tstate);
3270 if (PyErr_Occurred()) SWIG_fail;
3271 }
3272 Py_INCREF(Py_None); resultobj = Py_None;
3273 return resultobj;
3274 fail:
3275 return NULL;
3276}
3277
3278
c370783e 3279static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3280 PyObject *resultobj;
3281 wxBitmap *arg1 = (wxBitmap *) 0 ;
3282 wxColour *arg2 = 0 ;
3283 wxColour temp2 ;
3284 PyObject * obj0 = 0 ;
3285 PyObject * obj1 = 0 ;
3286 char *kwnames[] = {
3287 (char *) "self",(char *) "colour", NULL
3288 };
3289
3290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3293 {
3294 arg2 = &temp2;
3295 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3296 }
3297 {
3298 PyThreadState* __tstate = wxPyBeginAllowThreads();
3299 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3300
3301 wxPyEndAllowThreads(__tstate);
3302 if (PyErr_Occurred()) SWIG_fail;
3303 }
3304 Py_INCREF(Py_None); resultobj = Py_None;
3305 return resultobj;
3306 fail:
3307 return NULL;
3308}
3309
3310
c370783e 3311static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3312 PyObject *resultobj;
3313 wxBitmap *arg1 = (wxBitmap *) 0 ;
3314 wxRect *arg2 = 0 ;
3315 SwigValueWrapper< wxBitmap > result;
3316 wxRect temp2 ;
3317 PyObject * obj0 = 0 ;
3318 PyObject * obj1 = 0 ;
3319 char *kwnames[] = {
3320 (char *) "self",(char *) "rect", NULL
3321 };
3322
3323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3326 {
3327 arg2 = &temp2;
3328 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3329 }
3330 {
3331 PyThreadState* __tstate = wxPyBeginAllowThreads();
3332 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3333
3334 wxPyEndAllowThreads(__tstate);
3335 if (PyErr_Occurred()) SWIG_fail;
3336 }
3337 {
3338 wxBitmap * resultptr;
3339 resultptr = new wxBitmap((wxBitmap &) result);
3340 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3341 }
3342 return resultobj;
3343 fail:
3344 return NULL;
3345}
3346
3347
c370783e 3348static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3349 PyObject *resultobj;
3350 wxBitmap *arg1 = (wxBitmap *) 0 ;
3351 wxString *arg2 = 0 ;
3352 int arg3 ;
d6c14a4c 3353 wxPalette *arg4 = (wxPalette *) NULL ;
d55e5bfc 3354 bool result;
b411df4a 3355 bool temp2 = false ;
d55e5bfc
RD
3356 PyObject * obj0 = 0 ;
3357 PyObject * obj1 = 0 ;
3358 PyObject * obj2 = 0 ;
3359 PyObject * obj3 = 0 ;
3360 char *kwnames[] = {
3361 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3362 };
3363
3364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3367 {
3368 arg2 = wxString_in_helper(obj1);
3369 if (arg2 == NULL) SWIG_fail;
b411df4a 3370 temp2 = true;
d55e5bfc 3371 }
c370783e 3372 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3373 if (PyErr_Occurred()) SWIG_fail;
3374 if (obj3) {
3375 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3377 }
3378 {
3379 PyThreadState* __tstate = wxPyBeginAllowThreads();
3380 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3381
3382 wxPyEndAllowThreads(__tstate);
3383 if (PyErr_Occurred()) SWIG_fail;
3384 }
3385 {
3386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3387 }
3388 {
3389 if (temp2)
3390 delete arg2;
3391 }
3392 return resultobj;
3393 fail:
3394 {
3395 if (temp2)
3396 delete arg2;
3397 }
3398 return NULL;
3399}
3400
3401
c370783e 3402static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3403 PyObject *resultobj;
3404 wxBitmap *arg1 = (wxBitmap *) 0 ;
3405 wxString *arg2 = 0 ;
3406 int arg3 ;
3407 bool result;
b411df4a 3408 bool temp2 = false ;
d55e5bfc
RD
3409 PyObject * obj0 = 0 ;
3410 PyObject * obj1 = 0 ;
3411 PyObject * obj2 = 0 ;
3412 char *kwnames[] = {
3413 (char *) "self",(char *) "name",(char *) "type", NULL
3414 };
3415
3416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3419 {
3420 arg2 = wxString_in_helper(obj1);
3421 if (arg2 == NULL) SWIG_fail;
b411df4a 3422 temp2 = true;
d55e5bfc 3423 }
c370783e 3424 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3425 if (PyErr_Occurred()) SWIG_fail;
3426 {
3427 PyThreadState* __tstate = wxPyBeginAllowThreads();
3428 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3429
3430 wxPyEndAllowThreads(__tstate);
3431 if (PyErr_Occurred()) SWIG_fail;
3432 }
3433 {
3434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3435 }
3436 {
3437 if (temp2)
3438 delete arg2;
3439 }
3440 return resultobj;
3441 fail:
3442 {
3443 if (temp2)
3444 delete arg2;
3445 }
3446 return NULL;
3447}
3448
3449
070c48b4
RD
3450static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
3451 PyObject *resultobj;
3452 wxBitmap *arg1 = (wxBitmap *) 0 ;
3453 wxPalette *result;
3454 PyObject * obj0 = 0 ;
3455 char *kwnames[] = {
3456 (char *) "self", NULL
3457 };
3458
3459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail;
3460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3462 {
3463 PyThreadState* __tstate = wxPyBeginAllowThreads();
3464 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
3465
3466 wxPyEndAllowThreads(__tstate);
3467 if (PyErr_Occurred()) SWIG_fail;
3468 }
3469 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0);
3470 return resultobj;
3471 fail:
3472 return NULL;
3473}
3474
3475
c370783e 3476static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3477 PyObject *resultobj;
3478 wxBitmap *arg1 = (wxBitmap *) 0 ;
3479 wxIcon *arg2 = 0 ;
3480 bool result;
3481 PyObject * obj0 = 0 ;
3482 PyObject * obj1 = 0 ;
3483 char *kwnames[] = {
3484 (char *) "self",(char *) "icon", NULL
3485 };
3486
3487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3490 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3491 SWIG_POINTER_EXCEPTION | 0)) == -1)
3492 SWIG_fail;
3493 if (arg2 == NULL) {
3494 PyErr_SetString(PyExc_TypeError,"null reference");
3495 SWIG_fail;
3496 }
3497 {
3498 PyThreadState* __tstate = wxPyBeginAllowThreads();
3499 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3500
3501 wxPyEndAllowThreads(__tstate);
3502 if (PyErr_Occurred()) SWIG_fail;
3503 }
3504 {
3505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3506 }
3507 return resultobj;
3508 fail:
3509 return NULL;
3510}
3511
3512
c370783e 3513static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3514 PyObject *resultobj;
3515 wxBitmap *arg1 = (wxBitmap *) 0 ;
3516 int arg2 ;
3517 PyObject * obj0 = 0 ;
3518 PyObject * obj1 = 0 ;
3519 char *kwnames[] = {
3520 (char *) "self",(char *) "height", NULL
3521 };
3522
3523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 3526 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3527 if (PyErr_Occurred()) SWIG_fail;
3528 {
3529 PyThreadState* __tstate = wxPyBeginAllowThreads();
3530 (arg1)->SetHeight(arg2);
3531
3532 wxPyEndAllowThreads(__tstate);
3533 if (PyErr_Occurred()) SWIG_fail;
3534 }
3535 Py_INCREF(Py_None); resultobj = Py_None;
3536 return resultobj;
3537 fail:
3538 return NULL;
3539}
3540
3541
c370783e 3542static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3543 PyObject *resultobj;
3544 wxBitmap *arg1 = (wxBitmap *) 0 ;
3545 int arg2 ;
3546 PyObject * obj0 = 0 ;
3547 PyObject * obj1 = 0 ;
3548 char *kwnames[] = {
3549 (char *) "self",(char *) "width", NULL
3550 };
3551
3552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 3555 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3556 if (PyErr_Occurred()) SWIG_fail;
3557 {
3558 PyThreadState* __tstate = wxPyBeginAllowThreads();
3559 (arg1)->SetWidth(arg2);
3560
3561 wxPyEndAllowThreads(__tstate);
3562 if (PyErr_Occurred()) SWIG_fail;
3563 }
3564 Py_INCREF(Py_None); resultobj = Py_None;
3565 return resultobj;
3566 fail:
3567 return NULL;
3568}
3569
3570
c370783e 3571static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3572 PyObject *resultobj;
3573 wxBitmap *arg1 = (wxBitmap *) 0 ;
3574 int arg2 ;
3575 PyObject * obj0 = 0 ;
3576 PyObject * obj1 = 0 ;
3577 char *kwnames[] = {
3578 (char *) "self",(char *) "depth", NULL
3579 };
3580
3581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 3584 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3585 if (PyErr_Occurred()) SWIG_fail;
3586 {
3587 PyThreadState* __tstate = wxPyBeginAllowThreads();
3588 (arg1)->SetDepth(arg2);
3589
3590 wxPyEndAllowThreads(__tstate);
3591 if (PyErr_Occurred()) SWIG_fail;
3592 }
3593 Py_INCREF(Py_None); resultobj = Py_None;
3594 return resultobj;
3595 fail:
3596 return NULL;
3597}
3598
3599
c370783e 3600static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3601 PyObject *resultobj;
3602 wxBitmap *arg1 = (wxBitmap *) 0 ;
3603 wxSize *arg2 = 0 ;
3604 wxSize temp2 ;
3605 PyObject * obj0 = 0 ;
3606 PyObject * obj1 = 0 ;
3607 char *kwnames[] = {
3608 (char *) "self",(char *) "size", NULL
3609 };
3610
3611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3614 {
3615 arg2 = &temp2;
3616 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3617 }
3618 {
3619 PyThreadState* __tstate = wxPyBeginAllowThreads();
3620 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3621
3622 wxPyEndAllowThreads(__tstate);
3623 if (PyErr_Occurred()) SWIG_fail;
3624 }
3625 Py_INCREF(Py_None); resultobj = Py_None;
3626 return resultobj;
3627 fail:
3628 return NULL;
3629}
3630
3631
c370783e 3632static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3633 PyObject *resultobj;
3634 wxBitmap *arg1 = (wxBitmap *) 0 ;
3635 wxBitmap *arg2 = (wxBitmap *) 0 ;
3636 bool result;
3637 PyObject * obj0 = 0 ;
3638 PyObject * obj1 = 0 ;
3639 char *kwnames[] = {
3640 (char *) "self",(char *) "other", NULL
3641 };
3642
3643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3646 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3651
3652 wxPyEndAllowThreads(__tstate);
3653 if (PyErr_Occurred()) SWIG_fail;
3654 }
3655 {
3656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3657 }
3658 return resultobj;
3659 fail:
3660 return NULL;
3661}
3662
3663
c370783e 3664static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3665 PyObject *resultobj;
3666 wxBitmap *arg1 = (wxBitmap *) 0 ;
3667 wxBitmap *arg2 = (wxBitmap *) 0 ;
3668 bool result;
3669 PyObject * obj0 = 0 ;
3670 PyObject * obj1 = 0 ;
3671 char *kwnames[] = {
3672 (char *) "self",(char *) "other", NULL
3673 };
3674
3675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3678 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3680 {
3681 PyThreadState* __tstate = wxPyBeginAllowThreads();
3682 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3683
3684 wxPyEndAllowThreads(__tstate);
3685 if (PyErr_Occurred()) SWIG_fail;
3686 }
3687 {
3688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3689 }
3690 return resultobj;
3691 fail:
3692 return NULL;
3693}
3694
3695
c370783e 3696static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
3697 PyObject *obj;
3698 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3699 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3700 Py_INCREF(obj);
3701 return Py_BuildValue((char *)"");
3702}
c370783e 3703static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3704 PyObject *resultobj;
3705 wxBitmap *arg1 = 0 ;
3706 wxColour const &arg2_defvalue = wxNullColour ;
3707 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3708 wxMask *result;
3709 wxColour temp2 ;
3710 PyObject * obj0 = 0 ;
3711 PyObject * obj1 = 0 ;
3712 char *kwnames[] = {
3713 (char *) "bitmap",(char *) "colour", NULL
3714 };
3715
3716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3718 SWIG_POINTER_EXCEPTION | 0)) == -1)
3719 SWIG_fail;
3720 if (arg1 == NULL) {
3721 PyErr_SetString(PyExc_TypeError,"null reference");
3722 SWIG_fail;
3723 }
3724 if (obj1) {
3725 {
3726 arg2 = &temp2;
3727 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3728 }
3729 }
3730 {
0439c23b 3731 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3732 PyThreadState* __tstate = wxPyBeginAllowThreads();
3733 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3734
3735 wxPyEndAllowThreads(__tstate);
110da5b0 3736 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3737 }
3738 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3739 return resultobj;
3740 fail:
3741 return NULL;
3742}
3743
3744
c370783e 3745static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
3746 PyObject *obj;
3747 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3748 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3749 Py_INCREF(obj);
3750 return Py_BuildValue((char *)"");
3751}
c370783e 3752static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3753 PyObject *resultobj;
3754 wxString *arg1 = 0 ;
3755 int arg2 ;
3756 int arg3 = (int) -1 ;
3757 int arg4 = (int) -1 ;
3758 wxIcon *result;
b411df4a 3759 bool temp1 = false ;
d55e5bfc
RD
3760 PyObject * obj0 = 0 ;
3761 PyObject * obj1 = 0 ;
3762 PyObject * obj2 = 0 ;
3763 PyObject * obj3 = 0 ;
3764 char *kwnames[] = {
3765 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3766 };
3767
3768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3769 {
3770 arg1 = wxString_in_helper(obj0);
3771 if (arg1 == NULL) SWIG_fail;
b411df4a 3772 temp1 = true;
d55e5bfc 3773 }
c370783e 3774 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3775 if (PyErr_Occurred()) SWIG_fail;
3776 if (obj2) {
c370783e 3777 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3778 if (PyErr_Occurred()) SWIG_fail;
3779 }
3780 if (obj3) {
c370783e 3781 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
3782 if (PyErr_Occurred()) SWIG_fail;
3783 }
3784 {
0439c23b 3785 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3786 PyThreadState* __tstate = wxPyBeginAllowThreads();
3787 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3788
3789 wxPyEndAllowThreads(__tstate);
110da5b0 3790 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3791 }
3792 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3793 {
3794 if (temp1)
3795 delete arg1;
3796 }
3797 return resultobj;
3798 fail:
3799 {
3800 if (temp1)
3801 delete arg1;
3802 }
3803 return NULL;
3804}
3805
3806
c370783e 3807static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3808 PyObject *resultobj;
3809 wxIcon *arg1 = (wxIcon *) 0 ;
3810 PyObject * obj0 = 0 ;
3811 char *kwnames[] = {
3812 (char *) "self", NULL
3813 };
3814
3815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3818 {
3819 PyThreadState* __tstate = wxPyBeginAllowThreads();
3820 delete arg1;
3821
3822 wxPyEndAllowThreads(__tstate);
3823 if (PyErr_Occurred()) SWIG_fail;
3824 }
3825 Py_INCREF(Py_None); resultobj = Py_None;
3826 return resultobj;
3827 fail:
3828 return NULL;
3829}
3830
3831
c370783e 3832static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3833 PyObject *resultobj;
3834 wxIcon *result;
3835 char *kwnames[] = {
3836 NULL
3837 };
3838
3839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3840 {
0439c23b 3841 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3842 PyThreadState* __tstate = wxPyBeginAllowThreads();
3843 result = (wxIcon *)new wxIcon();
3844
3845 wxPyEndAllowThreads(__tstate);
110da5b0 3846 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3847 }
3848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3849 return resultobj;
3850 fail:
3851 return NULL;
3852}
3853
3854
c370783e 3855static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3856 PyObject *resultobj;
3857 wxIconLocation *arg1 = 0 ;
3858 wxIcon *result;
3859 PyObject * obj0 = 0 ;
3860 char *kwnames[] = {
3861 (char *) "loc", NULL
3862 };
3863
3864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3866 SWIG_POINTER_EXCEPTION | 0)) == -1)
3867 SWIG_fail;
3868 if (arg1 == NULL) {
3869 PyErr_SetString(PyExc_TypeError,"null reference");
3870 SWIG_fail;
3871 }
3872 {
0439c23b 3873 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3874 PyThreadState* __tstate = wxPyBeginAllowThreads();
3875 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3876
3877 wxPyEndAllowThreads(__tstate);
110da5b0 3878 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3879 }
3880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3881 return resultobj;
3882 fail:
3883 return NULL;
3884}
3885
3886
c370783e 3887static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3888 PyObject *resultobj;
3889 wxBitmap *arg1 = 0 ;
3890 wxIcon *result;
3891 PyObject * obj0 = 0 ;
3892 char *kwnames[] = {
3893 (char *) "bmp", NULL
3894 };
3895
3896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3898 SWIG_POINTER_EXCEPTION | 0)) == -1)
3899 SWIG_fail;
3900 if (arg1 == NULL) {
3901 PyErr_SetString(PyExc_TypeError,"null reference");
3902 SWIG_fail;
3903 }
3904 {
0439c23b 3905 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3906 PyThreadState* __tstate = wxPyBeginAllowThreads();
3907 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3908
3909 wxPyEndAllowThreads(__tstate);
110da5b0 3910 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3911 }
3912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3913 return resultobj;
3914 fail:
3915 return NULL;
3916}
3917
3918
c370783e 3919static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3920 PyObject *resultobj;
3921 PyObject *arg1 = (PyObject *) 0 ;
3922 wxIcon *result;
3923 PyObject * obj0 = 0 ;
3924 char *kwnames[] = {
3925 (char *) "listOfStrings", NULL
3926 };
3927
3928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3929 arg1 = obj0;
3930 {
0439c23b 3931 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3932 PyThreadState* __tstate = wxPyBeginAllowThreads();
3933 result = (wxIcon *)new_wxIcon(arg1);
3934
3935 wxPyEndAllowThreads(__tstate);
110da5b0 3936 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3937 }
3938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3939 return resultobj;
3940 fail:
3941 return NULL;
3942}
3943
3944
c370783e 3945static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3946 PyObject *resultobj;
3947 wxIcon *arg1 = (wxIcon *) 0 ;
3948 bool result;
3949 PyObject * obj0 = 0 ;
3950 char *kwnames[] = {
3951 (char *) "self", NULL
3952 };
3953
3954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",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 = (bool)(arg1)->Ok();
3960
3961 wxPyEndAllowThreads(__tstate);
3962 if (PyErr_Occurred()) SWIG_fail;
3963 }
3964 {
3965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3966 }
3967 return resultobj;
3968 fail:
3969 return NULL;
3970}
3971
3972
c370783e 3973static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3974 PyObject *resultobj;
3975 wxIcon *arg1 = (wxIcon *) 0 ;
3976 int result;
3977 PyObject * obj0 = 0 ;
3978 char *kwnames[] = {
3979 (char *) "self", NULL
3980 };
3981
3982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3985 {
3986 PyThreadState* __tstate = wxPyBeginAllowThreads();
3987 result = (int)(arg1)->GetWidth();
3988
3989 wxPyEndAllowThreads(__tstate);
3990 if (PyErr_Occurred()) SWIG_fail;
3991 }
c370783e 3992 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3993 return resultobj;
3994 fail:
3995 return NULL;
3996}
3997
3998
c370783e 3999static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4000 PyObject *resultobj;
4001 wxIcon *arg1 = (wxIcon *) 0 ;
4002 int result;
4003 PyObject * obj0 = 0 ;
4004 char *kwnames[] = {
4005 (char *) "self", NULL
4006 };
4007
4008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
4009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4011 {
4012 PyThreadState* __tstate = wxPyBeginAllowThreads();
4013 result = (int)(arg1)->GetHeight();
4014
4015 wxPyEndAllowThreads(__tstate);
4016 if (PyErr_Occurred()) SWIG_fail;
4017 }
c370783e 4018 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4019 return resultobj;
4020 fail:
4021 return NULL;
4022}
4023
4024
c370783e 4025static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4026 PyObject *resultobj;
4027 wxIcon *arg1 = (wxIcon *) 0 ;
4028 int result;
4029 PyObject * obj0 = 0 ;
4030 char *kwnames[] = {
4031 (char *) "self", NULL
4032 };
4033
4034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4037 {
4038 PyThreadState* __tstate = wxPyBeginAllowThreads();
4039 result = (int)(arg1)->GetDepth();
4040
4041 wxPyEndAllowThreads(__tstate);
4042 if (PyErr_Occurred()) SWIG_fail;
4043 }
c370783e 4044 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4045 return resultobj;
4046 fail:
4047 return NULL;
4048}
4049
4050
c370783e 4051static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4052 PyObject *resultobj;
4053 wxIcon *arg1 = (wxIcon *) 0 ;
4054 int arg2 ;
4055 PyObject * obj0 = 0 ;
4056 PyObject * obj1 = 0 ;
4057 char *kwnames[] = {
4058 (char *) "self",(char *) "w", NULL
4059 };
4060
4061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 4064 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4065 if (PyErr_Occurred()) SWIG_fail;
4066 {
4067 PyThreadState* __tstate = wxPyBeginAllowThreads();
4068 (arg1)->SetWidth(arg2);
4069
4070 wxPyEndAllowThreads(__tstate);
4071 if (PyErr_Occurred()) SWIG_fail;
4072 }
4073 Py_INCREF(Py_None); resultobj = Py_None;
4074 return resultobj;
4075 fail:
4076 return NULL;
4077}
4078
4079
c370783e 4080static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4081 PyObject *resultobj;
4082 wxIcon *arg1 = (wxIcon *) 0 ;
4083 int arg2 ;
4084 PyObject * obj0 = 0 ;
4085 PyObject * obj1 = 0 ;
4086 char *kwnames[] = {
4087 (char *) "self",(char *) "h", NULL
4088 };
4089
4090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 4093 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4094 if (PyErr_Occurred()) SWIG_fail;
4095 {
4096 PyThreadState* __tstate = wxPyBeginAllowThreads();
4097 (arg1)->SetHeight(arg2);
4098
4099 wxPyEndAllowThreads(__tstate);
4100 if (PyErr_Occurred()) SWIG_fail;
4101 }
4102 Py_INCREF(Py_None); resultobj = Py_None;
4103 return resultobj;
4104 fail:
4105 return NULL;
4106}
4107
4108
c370783e 4109static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4110 PyObject *resultobj;
4111 wxIcon *arg1 = (wxIcon *) 0 ;
4112 int arg2 ;
4113 PyObject * obj0 = 0 ;
4114 PyObject * obj1 = 0 ;
4115 char *kwnames[] = {
4116 (char *) "self",(char *) "d", NULL
4117 };
4118
4119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 4122 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4123 if (PyErr_Occurred()) SWIG_fail;
4124 {
4125 PyThreadState* __tstate = wxPyBeginAllowThreads();
4126 (arg1)->SetDepth(arg2);
4127
4128 wxPyEndAllowThreads(__tstate);
4129 if (PyErr_Occurred()) SWIG_fail;
4130 }
4131 Py_INCREF(Py_None); resultobj = Py_None;
4132 return resultobj;
4133 fail:
4134 return NULL;
4135}
4136
4137
c370783e 4138static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4139 PyObject *resultobj;
4140 wxIcon *arg1 = (wxIcon *) 0 ;
4141 wxBitmap *arg2 = 0 ;
4142 PyObject * obj0 = 0 ;
4143 PyObject * obj1 = 0 ;
4144 char *kwnames[] = {
4145 (char *) "self",(char *) "bmp", NULL
4146 };
4147
4148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4151 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4152 SWIG_POINTER_EXCEPTION | 0)) == -1)
4153 SWIG_fail;
4154 if (arg2 == NULL) {
4155 PyErr_SetString(PyExc_TypeError,"null reference");
4156 SWIG_fail;
4157 }
4158 {
4159 PyThreadState* __tstate = wxPyBeginAllowThreads();
4160 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4161
4162 wxPyEndAllowThreads(__tstate);
4163 if (PyErr_Occurred()) SWIG_fail;
4164 }
4165 Py_INCREF(Py_None); resultobj = Py_None;
4166 return resultobj;
4167 fail:
4168 return NULL;
4169}
4170
4171
c370783e 4172static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4173 PyObject *obj;
4174 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4175 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4176 Py_INCREF(obj);
4177 return Py_BuildValue((char *)"");
4178}
c370783e 4179static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4180 PyObject *resultobj;
4181 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4182 int arg2 = (int) 0 ;
4183 wxIconLocation *result;
b411df4a 4184 bool temp1 = false ;
d55e5bfc
RD
4185 PyObject * obj0 = 0 ;
4186 PyObject * obj1 = 0 ;
4187 char *kwnames[] = {
4188 (char *) "filename",(char *) "num", NULL
4189 };
4190
4191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4192 if (obj0) {
4193 {
4194 arg1 = wxString_in_helper(obj0);
4195 if (arg1 == NULL) SWIG_fail;
b411df4a 4196 temp1 = true;
d55e5bfc
RD
4197 }
4198 }
4199 if (obj1) {
c370783e 4200 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4201 if (PyErr_Occurred()) SWIG_fail;
4202 }
4203 {
4204 PyThreadState* __tstate = wxPyBeginAllowThreads();
4205 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4206
4207 wxPyEndAllowThreads(__tstate);
4208 if (PyErr_Occurred()) SWIG_fail;
4209 }
4210 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4211 {
4212 if (temp1)
4213 delete arg1;
4214 }
4215 return resultobj;
4216 fail:
4217 {
4218 if (temp1)
4219 delete arg1;
4220 }
4221 return NULL;
4222}
4223
4224
c370783e 4225static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4226 PyObject *resultobj;
4227 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4228 PyObject * obj0 = 0 ;
4229 char *kwnames[] = {
4230 (char *) "self", NULL
4231 };
4232
4233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4236 {
4237 PyThreadState* __tstate = wxPyBeginAllowThreads();
4238 delete arg1;
4239
4240 wxPyEndAllowThreads(__tstate);
4241 if (PyErr_Occurred()) SWIG_fail;
4242 }
4243 Py_INCREF(Py_None); resultobj = Py_None;
4244 return resultobj;
4245 fail:
4246 return NULL;
4247}
4248
4249
c370783e 4250static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4251 PyObject *resultobj;
4252 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4253 bool result;
4254 PyObject * obj0 = 0 ;
4255 char *kwnames[] = {
4256 (char *) "self", NULL
4257 };
4258
4259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4262 {
4263 PyThreadState* __tstate = wxPyBeginAllowThreads();
4264 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4265
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 {
4270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4271 }
4272 return resultobj;
4273 fail:
4274 return NULL;
4275}
4276
4277
c370783e 4278static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4279 PyObject *resultobj;
4280 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4281 wxString *arg2 = 0 ;
b411df4a 4282 bool temp2 = false ;
d55e5bfc
RD
4283 PyObject * obj0 = 0 ;
4284 PyObject * obj1 = 0 ;
4285 char *kwnames[] = {
4286 (char *) "self",(char *) "filename", NULL
4287 };
4288
4289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4292 {
4293 arg2 = wxString_in_helper(obj1);
4294 if (arg2 == NULL) SWIG_fail;
b411df4a 4295 temp2 = true;
d55e5bfc
RD
4296 }
4297 {
4298 PyThreadState* __tstate = wxPyBeginAllowThreads();
4299 (arg1)->SetFileName((wxString const &)*arg2);
4300
4301 wxPyEndAllowThreads(__tstate);
4302 if (PyErr_Occurred()) SWIG_fail;
4303 }
4304 Py_INCREF(Py_None); resultobj = Py_None;
4305 {
4306 if (temp2)
4307 delete arg2;
4308 }
4309 return resultobj;
4310 fail:
4311 {
4312 if (temp2)
4313 delete arg2;
4314 }
4315 return NULL;
4316}
4317
4318
c370783e 4319static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4320 PyObject *resultobj;
4321 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4322 wxString *result;
4323 PyObject * obj0 = 0 ;
4324 char *kwnames[] = {
4325 (char *) "self", NULL
4326 };
4327
4328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4331 {
4332 PyThreadState* __tstate = wxPyBeginAllowThreads();
4333 {
4334 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4335 result = (wxString *) &_result_ref;
4336 }
4337
4338 wxPyEndAllowThreads(__tstate);
4339 if (PyErr_Occurred()) SWIG_fail;
4340 }
4341 {
4342#if wxUSE_UNICODE
4343 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4344#else
4345 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4346#endif
4347 }
4348 return resultobj;
4349 fail:
4350 return NULL;
4351}
4352
4353
c370783e 4354static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4355 PyObject *resultobj;
4356 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4357 int arg2 ;
4358 PyObject * obj0 = 0 ;
4359 PyObject * obj1 = 0 ;
4360 char *kwnames[] = {
4361 (char *) "self",(char *) "num", NULL
4362 };
4363
4364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 4367 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4368 if (PyErr_Occurred()) SWIG_fail;
4369 {
4370 PyThreadState* __tstate = wxPyBeginAllowThreads();
4371 wxIconLocation_SetIndex(arg1,arg2);
4372
4373 wxPyEndAllowThreads(__tstate);
4374 if (PyErr_Occurred()) SWIG_fail;
4375 }
4376 Py_INCREF(Py_None); resultobj = Py_None;
4377 return resultobj;
4378 fail:
4379 return NULL;
4380}
4381
4382
c370783e 4383static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4384 PyObject *resultobj;
4385 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4386 int result;
4387 PyObject * obj0 = 0 ;
4388 char *kwnames[] = {
4389 (char *) "self", NULL
4390 };
4391
4392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4395 {
4396 PyThreadState* __tstate = wxPyBeginAllowThreads();
4397 result = (int)wxIconLocation_GetIndex(arg1);
4398
4399 wxPyEndAllowThreads(__tstate);
4400 if (PyErr_Occurred()) SWIG_fail;
4401 }
c370783e 4402 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4403 return resultobj;
4404 fail:
4405 return NULL;
4406}
4407
4408
c370783e 4409static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4410 PyObject *obj;
4411 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4412 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4413 Py_INCREF(obj);
4414 return Py_BuildValue((char *)"");
4415}
c370783e 4416static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4417 PyObject *resultobj;
4418 wxIconBundle *result;
4419 char *kwnames[] = {
4420 NULL
4421 };
4422
4423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4424 {
4425 PyThreadState* __tstate = wxPyBeginAllowThreads();
4426 result = (wxIconBundle *)new wxIconBundle();
4427
4428 wxPyEndAllowThreads(__tstate);
4429 if (PyErr_Occurred()) SWIG_fail;
4430 }
4431 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4432 return resultobj;
4433 fail:
4434 return NULL;
4435}
4436
4437
c370783e 4438static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4439 PyObject *resultobj;
4440 wxString *arg1 = 0 ;
4441 long arg2 ;
4442 wxIconBundle *result;
b411df4a 4443 bool temp1 = false ;
d55e5bfc
RD
4444 PyObject * obj0 = 0 ;
4445 PyObject * obj1 = 0 ;
4446 char *kwnames[] = {
4447 (char *) "file",(char *) "type", NULL
4448 };
4449
4450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4451 {
4452 arg1 = wxString_in_helper(obj0);
4453 if (arg1 == NULL) SWIG_fail;
b411df4a 4454 temp1 = true;
d55e5bfc 4455 }
c370783e 4456 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
4457 if (PyErr_Occurred()) SWIG_fail;
4458 {
4459 PyThreadState* __tstate = wxPyBeginAllowThreads();
4460 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4461
4462 wxPyEndAllowThreads(__tstate);
4463 if (PyErr_Occurred()) SWIG_fail;
4464 }
4465 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4466 {
4467 if (temp1)
4468 delete arg1;
4469 }
4470 return resultobj;
4471 fail:
4472 {
4473 if (temp1)
4474 delete arg1;
4475 }
4476 return NULL;
4477}
4478
4479
c370783e 4480static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4481 PyObject *resultobj;
4482 wxIcon *arg1 = 0 ;
4483 wxIconBundle *result;
4484 PyObject * obj0 = 0 ;
4485 char *kwnames[] = {
4486 (char *) "icon", NULL
4487 };
4488
4489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4491 SWIG_POINTER_EXCEPTION | 0)) == -1)
4492 SWIG_fail;
4493 if (arg1 == NULL) {
4494 PyErr_SetString(PyExc_TypeError,"null reference");
4495 SWIG_fail;
4496 }
4497 {
4498 PyThreadState* __tstate = wxPyBeginAllowThreads();
4499 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4500
4501 wxPyEndAllowThreads(__tstate);
4502 if (PyErr_Occurred()) SWIG_fail;
4503 }
4504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4505 return resultobj;
4506 fail:
4507 return NULL;
4508}
4509
4510
c370783e 4511static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4512 PyObject *resultobj;
4513 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4514 PyObject * obj0 = 0 ;
4515 char *kwnames[] = {
4516 (char *) "self", NULL
4517 };
4518
4519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4522 {
4523 PyThreadState* __tstate = wxPyBeginAllowThreads();
4524 delete arg1;
4525
4526 wxPyEndAllowThreads(__tstate);
4527 if (PyErr_Occurred()) SWIG_fail;
4528 }
4529 Py_INCREF(Py_None); resultobj = Py_None;
4530 return resultobj;
4531 fail:
4532 return NULL;
4533}
4534
4535
c370783e 4536static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4537 PyObject *resultobj;
4538 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4539 wxIcon *arg2 = 0 ;
4540 PyObject * obj0 = 0 ;
4541 PyObject * obj1 = 0 ;
4542 char *kwnames[] = {
4543 (char *) "self",(char *) "icon", NULL
4544 };
4545
4546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4549 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4550 SWIG_POINTER_EXCEPTION | 0)) == -1)
4551 SWIG_fail;
4552 if (arg2 == NULL) {
4553 PyErr_SetString(PyExc_TypeError,"null reference");
4554 SWIG_fail;
4555 }
4556 {
4557 PyThreadState* __tstate = wxPyBeginAllowThreads();
4558 (arg1)->AddIcon((wxIcon const &)*arg2);
4559
4560 wxPyEndAllowThreads(__tstate);
4561 if (PyErr_Occurred()) SWIG_fail;
4562 }
4563 Py_INCREF(Py_None); resultobj = Py_None;
4564 return resultobj;
4565 fail:
4566 return NULL;
4567}
4568
4569
c370783e 4570static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4571 PyObject *resultobj;
4572 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4573 wxString *arg2 = 0 ;
4574 long arg3 ;
b411df4a 4575 bool temp2 = false ;
d55e5bfc
RD
4576 PyObject * obj0 = 0 ;
4577 PyObject * obj1 = 0 ;
4578 PyObject * obj2 = 0 ;
4579 char *kwnames[] = {
4580 (char *) "self",(char *) "file",(char *) "type", NULL
4581 };
4582
4583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4586 {
4587 arg2 = wxString_in_helper(obj1);
4588 if (arg2 == NULL) SWIG_fail;
b411df4a 4589 temp2 = true;
d55e5bfc 4590 }
c370783e 4591 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
4592 if (PyErr_Occurred()) SWIG_fail;
4593 {
4594 PyThreadState* __tstate = wxPyBeginAllowThreads();
4595 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4596
4597 wxPyEndAllowThreads(__tstate);
4598 if (PyErr_Occurred()) SWIG_fail;
4599 }
4600 Py_INCREF(Py_None); resultobj = Py_None;
4601 {
4602 if (temp2)
4603 delete arg2;
4604 }
4605 return resultobj;
4606 fail:
4607 {
4608 if (temp2)
4609 delete arg2;
4610 }
4611 return NULL;
4612}
4613
4614
c370783e 4615static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4616 PyObject *resultobj;
4617 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4618 wxSize *arg2 = 0 ;
4619 wxIcon *result;
4620 wxSize temp2 ;
4621 PyObject * obj0 = 0 ;
4622 PyObject * obj1 = 0 ;
4623 char *kwnames[] = {
4624 (char *) "self",(char *) "size", NULL
4625 };
4626
4627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4630 {
4631 arg2 = &temp2;
4632 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4633 }
4634 {
4635 PyThreadState* __tstate = wxPyBeginAllowThreads();
4636 {
4637 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4638 result = (wxIcon *) &_result_ref;
4639 }
4640
4641 wxPyEndAllowThreads(__tstate);
4642 if (PyErr_Occurred()) SWIG_fail;
4643 }
4644 {
4645 wxIcon* resultptr = new wxIcon(*result);
4646 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4647 }
4648 return resultobj;
4649 fail:
4650 return NULL;
4651}
4652
4653
c370783e 4654static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4655 PyObject *obj;
4656 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4657 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4658 Py_INCREF(obj);
4659 return Py_BuildValue((char *)"");
4660}
c370783e 4661static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4662 PyObject *resultobj;
4663 wxString *arg1 = (wxString *) 0 ;
4664 long arg2 ;
4665 int arg3 = (int) 0 ;
4666 int arg4 = (int) 0 ;
4667 wxCursor *result;
b411df4a 4668 bool temp1 = false ;
d55e5bfc
RD
4669 PyObject * obj0 = 0 ;
4670 PyObject * obj1 = 0 ;
4671 PyObject * obj2 = 0 ;
4672 PyObject * obj3 = 0 ;
4673 char *kwnames[] = {
4674 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4675 };
4676
4677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4678 {
4679 arg1 = wxString_in_helper(obj0);
4680 if (arg1 == NULL) SWIG_fail;
b411df4a 4681 temp1 = true;
d55e5bfc 4682 }
c370783e 4683 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
4684 if (PyErr_Occurred()) SWIG_fail;
4685 if (obj2) {
c370783e 4686 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4687 if (PyErr_Occurred()) SWIG_fail;
4688 }
4689 if (obj3) {
c370783e 4690 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
4691 if (PyErr_Occurred()) SWIG_fail;
4692 }
4693 {
0439c23b 4694 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4695 PyThreadState* __tstate = wxPyBeginAllowThreads();
4696 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4697
4698 wxPyEndAllowThreads(__tstate);
110da5b0 4699 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4700 }
4701 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4702 {
4703 if (temp1)
4704 delete arg1;
4705 }
4706 return resultobj;
4707 fail:
4708 {
4709 if (temp1)
4710 delete arg1;
4711 }
4712 return NULL;
4713}
4714
4715
c370783e 4716static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4717 PyObject *resultobj;
4718 wxCursor *arg1 = (wxCursor *) 0 ;
4719 PyObject * obj0 = 0 ;
4720 char *kwnames[] = {
4721 (char *) "self", NULL
4722 };
4723
4724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4727 {
4728 PyThreadState* __tstate = wxPyBeginAllowThreads();
4729 delete arg1;
4730
4731 wxPyEndAllowThreads(__tstate);
4732 if (PyErr_Occurred()) SWIG_fail;
4733 }
4734 Py_INCREF(Py_None); resultobj = Py_None;
4735 return resultobj;
4736 fail:
4737 return NULL;
4738}
4739
4740
c370783e 4741static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4742 PyObject *resultobj;
4743 int arg1 ;
4744 wxCursor *result;
4745 PyObject * obj0 = 0 ;
4746 char *kwnames[] = {
4747 (char *) "id", NULL
4748 };
4749
4750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
c370783e 4751 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
4752 if (PyErr_Occurred()) SWIG_fail;
4753 {
0439c23b 4754 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4755 PyThreadState* __tstate = wxPyBeginAllowThreads();
4756 result = (wxCursor *)new wxCursor(arg1);
4757
4758 wxPyEndAllowThreads(__tstate);
110da5b0 4759 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4760 }
4761 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4762 return resultobj;
4763 fail:
4764 return NULL;
4765}
4766
4767
c370783e 4768static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4769 PyObject *resultobj;
4770 wxImage *arg1 = 0 ;
4771 wxCursor *result;
4772 PyObject * obj0 = 0 ;
4773 char *kwnames[] = {
4774 (char *) "image", NULL
4775 };
4776
4777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4779 SWIG_POINTER_EXCEPTION | 0)) == -1)
4780 SWIG_fail;
4781 if (arg1 == NULL) {
4782 PyErr_SetString(PyExc_TypeError,"null reference");
4783 SWIG_fail;
4784 }
4785 {
0439c23b 4786 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4787 PyThreadState* __tstate = wxPyBeginAllowThreads();
4788 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4789
4790 wxPyEndAllowThreads(__tstate);
110da5b0 4791 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4792 }
4793 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4794 return resultobj;
4795 fail:
4796 return NULL;
4797}
4798
4799
c370783e 4800static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4801 PyObject *resultobj;
4802 wxCursor *arg1 = (wxCursor *) 0 ;
4803 bool result;
4804 PyObject * obj0 = 0 ;
4805 char *kwnames[] = {
4806 (char *) "self", NULL
4807 };
4808
4809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 result = (bool)(arg1)->Ok();
4815
4816 wxPyEndAllowThreads(__tstate);
4817 if (PyErr_Occurred()) SWIG_fail;
4818 }
4819 {
4820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4821 }
4822 return resultobj;
4823 fail:
4824 return NULL;
4825}
4826
4827
c370783e 4828static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4829 PyObject *obj;
4830 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4831 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4832 Py_INCREF(obj);
4833 return Py_BuildValue((char *)"");
4834}
c370783e 4835static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4836 PyObject *resultobj;
4837 int arg1 = (int) 0 ;
4838 int arg2 = (int) 0 ;
4839 int arg3 = (int) 0 ;
4840 int arg4 = (int) 0 ;
4841 wxRegion *result;
4842 PyObject * obj0 = 0 ;
4843 PyObject * obj1 = 0 ;
4844 PyObject * obj2 = 0 ;
4845 PyObject * obj3 = 0 ;
4846 char *kwnames[] = {
4847 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4848 };
4849
4850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4851 if (obj0) {
c370783e 4852 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
4853 if (PyErr_Occurred()) SWIG_fail;
4854 }
4855 if (obj1) {
c370783e 4856 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4857 if (PyErr_Occurred()) SWIG_fail;
4858 }
4859 if (obj2) {
c370783e 4860 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4861 if (PyErr_Occurred()) SWIG_fail;
4862 }
4863 if (obj3) {
c370783e 4864 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
4865 if (PyErr_Occurred()) SWIG_fail;
4866 }
4867 {
0439c23b 4868 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4869 PyThreadState* __tstate = wxPyBeginAllowThreads();
4870 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4871
4872 wxPyEndAllowThreads(__tstate);
110da5b0 4873 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4874 }
4875 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4876 return resultobj;
4877 fail:
4878 return NULL;
4879}
4880
4881
c370783e 4882static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4883 PyObject *resultobj;
4884 wxBitmap *arg1 = 0 ;
d07096ad
RD
4885 wxRegion *result;
4886 PyObject * obj0 = 0 ;
4887 char *kwnames[] = {
4888 (char *) "bmp", NULL
4889 };
4890
4891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
4892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4893 SWIG_POINTER_EXCEPTION | 0)) == -1)
4894 SWIG_fail;
4895 if (arg1 == NULL) {
4896 PyErr_SetString(PyExc_TypeError,"null reference");
4897 SWIG_fail;
4898 }
4899 {
4900 if (!wxPyCheckForApp()) SWIG_fail;
4901 PyThreadState* __tstate = wxPyBeginAllowThreads();
4902 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
4903
4904 wxPyEndAllowThreads(__tstate);
110da5b0 4905 if (PyErr_Occurred()) SWIG_fail;
d07096ad
RD
4906 }
4907 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4908 return resultobj;
4909 fail:
4910 return NULL;
4911}
4912
4913
c370783e 4914static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
d07096ad
RD
4915 PyObject *resultobj;
4916 wxBitmap *arg1 = 0 ;
4917 wxColour *arg2 = 0 ;
d55e5bfc
RD
4918 int arg3 = (int) 0 ;
4919 wxRegion *result;
4920 wxColour temp2 ;
4921 PyObject * obj0 = 0 ;
4922 PyObject * obj1 = 0 ;
4923 PyObject * obj2 = 0 ;
4924 char *kwnames[] = {
4925 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4926 };
4927
d07096ad 4928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
4929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4930 SWIG_POINTER_EXCEPTION | 0)) == -1)
4931 SWIG_fail;
4932 if (arg1 == NULL) {
4933 PyErr_SetString(PyExc_TypeError,"null reference");
4934 SWIG_fail;
4935 }
d07096ad
RD
4936 {
4937 arg2 = &temp2;
4938 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
4939 }
4940 if (obj2) {
c370783e 4941 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4942 if (PyErr_Occurred()) SWIG_fail;
4943 }
4944 {
0439c23b 4945 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4946 PyThreadState* __tstate = wxPyBeginAllowThreads();
4947 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4948
4949 wxPyEndAllowThreads(__tstate);
110da5b0 4950 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4951 }
4952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4953 return resultobj;
4954 fail:
4955 return NULL;
4956}
4957
4958
c370783e 4959static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4960 PyObject *resultobj;
4961 int arg1 ;
4962 wxPoint *arg2 = (wxPoint *) 0 ;
4963 int arg3 = (int) wxWINDING_RULE ;
4964 wxRegion *result;
4965 PyObject * obj0 = 0 ;
4966 PyObject * obj1 = 0 ;
4967 char *kwnames[] = {
4968 (char *) "points",(char *) "fillStyle", NULL
4969 };
4970
4971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4972 {
4973 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4974 if (arg2 == NULL) SWIG_fail;
4975 }
4976 if (obj1) {
c370783e 4977 arg3 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4978 if (PyErr_Occurred()) SWIG_fail;
4979 }
4980 {
0439c23b 4981 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 4982 PyThreadState* __tstate = wxPyBeginAllowThreads();
03837c5c 4983 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
d55e5bfc
RD
4984
4985 wxPyEndAllowThreads(__tstate);
110da5b0 4986 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4987 }
4988 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4989 {
4990 if (arg2) delete [] arg2;
4991 }
4992 return resultobj;
4993 fail:
4994 {
4995 if (arg2) delete [] arg2;
4996 }
4997 return NULL;
4998}
4999
5000
c370783e 5001static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5002 PyObject *resultobj;
5003 wxRegion *arg1 = (wxRegion *) 0 ;
5004 PyObject * obj0 = 0 ;
5005 char *kwnames[] = {
5006 (char *) "self", NULL
5007 };
5008
5009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5012 {
5013 PyThreadState* __tstate = wxPyBeginAllowThreads();
5014 delete arg1;
5015
5016 wxPyEndAllowThreads(__tstate);
5017 if (PyErr_Occurred()) SWIG_fail;
5018 }
5019 Py_INCREF(Py_None); resultobj = Py_None;
5020 return resultobj;
5021 fail:
5022 return NULL;
5023}
5024
5025
c370783e 5026static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5027 PyObject *resultobj;
5028 wxRegion *arg1 = (wxRegion *) 0 ;
5029 PyObject * obj0 = 0 ;
5030 char *kwnames[] = {
5031 (char *) "self", NULL
5032 };
5033
5034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5037 {
5038 PyThreadState* __tstate = wxPyBeginAllowThreads();
5039 (arg1)->Clear();
5040
5041 wxPyEndAllowThreads(__tstate);
5042 if (PyErr_Occurred()) SWIG_fail;
5043 }
5044 Py_INCREF(Py_None); resultobj = Py_None;
5045 return resultobj;
5046 fail:
5047 return NULL;
5048}
5049
5050
070c48b4
RD
5051static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
5052 PyObject *resultobj;
5053 wxRegion *arg1 = (wxRegion *) 0 ;
5054 int arg2 ;
5055 int arg3 ;
5056 bool result;
5057 PyObject * obj0 = 0 ;
5058 PyObject * obj1 = 0 ;
5059 PyObject * obj2 = 0 ;
5060 char *kwnames[] = {
5061 (char *) "self",(char *) "x",(char *) "y", NULL
5062 };
5063
5064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5067 arg2 = (int)SWIG_As_int(obj1);
5068 if (PyErr_Occurred()) SWIG_fail;
5069 arg3 = (int)SWIG_As_int(obj2);
5070 if (PyErr_Occurred()) SWIG_fail;
5071 {
5072 PyThreadState* __tstate = wxPyBeginAllowThreads();
5073 result = (bool)(arg1)->Offset(arg2,arg3);
5074
5075 wxPyEndAllowThreads(__tstate);
5076 if (PyErr_Occurred()) SWIG_fail;
5077 }
5078 {
5079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5080 }
5081 return resultobj;
5082 fail:
5083 return NULL;
5084}
5085
5086
c370783e 5087static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5088 PyObject *resultobj;
5089 wxRegion *arg1 = (wxRegion *) 0 ;
5090 int arg2 ;
5091 int arg3 ;
5092 int result;
5093 PyObject * obj0 = 0 ;
5094 PyObject * obj1 = 0 ;
5095 PyObject * obj2 = 0 ;
5096 char *kwnames[] = {
5097 (char *) "self",(char *) "x",(char *) "y", NULL
5098 };
5099
5100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 5103 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5104 if (PyErr_Occurred()) SWIG_fail;
c370783e 5105 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
5106 if (PyErr_Occurred()) SWIG_fail;
5107 {
5108 PyThreadState* __tstate = wxPyBeginAllowThreads();
5109 result = (int)(arg1)->Contains(arg2,arg3);
5110
5111 wxPyEndAllowThreads(__tstate);
5112 if (PyErr_Occurred()) SWIG_fail;
5113 }
c370783e 5114 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5115 return resultobj;
5116 fail:
5117 return NULL;
5118}
5119
5120
c370783e 5121static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5122 PyObject *resultobj;
5123 wxRegion *arg1 = (wxRegion *) 0 ;
5124 wxPoint *arg2 = 0 ;
5125 int result;
5126 wxPoint temp2 ;
5127 PyObject * obj0 = 0 ;
5128 PyObject * obj1 = 0 ;
5129 char *kwnames[] = {
5130 (char *) "self",(char *) "pt", NULL
5131 };
5132
5133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5136 {
5137 arg2 = &temp2;
5138 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5139 }
5140 {
5141 PyThreadState* __tstate = wxPyBeginAllowThreads();
5142 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5143
5144 wxPyEndAllowThreads(__tstate);
5145 if (PyErr_Occurred()) SWIG_fail;
5146 }
c370783e 5147 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5148 return resultobj;
5149 fail:
5150 return NULL;
5151}
5152
5153
c370783e 5154static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5155 PyObject *resultobj;
5156 wxRegion *arg1 = (wxRegion *) 0 ;
5157 wxRect *arg2 = 0 ;
5158 int result;
5159 wxRect temp2 ;
5160 PyObject * obj0 = 0 ;
5161 PyObject * obj1 = 0 ;
5162 char *kwnames[] = {
5163 (char *) "self",(char *) "rect", NULL
5164 };
5165
5166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5169 {
5170 arg2 = &temp2;
5171 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5172 }
5173 {
5174 PyThreadState* __tstate = wxPyBeginAllowThreads();
5175 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5176
5177 wxPyEndAllowThreads(__tstate);
5178 if (PyErr_Occurred()) SWIG_fail;
5179 }
c370783e 5180 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5181 return resultobj;
5182 fail:
5183 return NULL;
5184}
5185
5186
c370783e 5187static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5188 PyObject *resultobj;
5189 wxRegion *arg1 = (wxRegion *) 0 ;
5190 int arg2 ;
5191 int arg3 ;
5192 int arg4 ;
5193 int arg5 ;
5194 int result;
5195 PyObject * obj0 = 0 ;
5196 PyObject * obj1 = 0 ;
5197 PyObject * obj2 = 0 ;
5198 PyObject * obj3 = 0 ;
5199 PyObject * obj4 = 0 ;
5200 char *kwnames[] = {
5201 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5202 };
5203
5204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 5207 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5208 if (PyErr_Occurred()) SWIG_fail;
c370783e 5209 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5210 if (PyErr_Occurred()) SWIG_fail;
c370783e 5211 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5212 if (PyErr_Occurred()) SWIG_fail;
c370783e 5213 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5214 if (PyErr_Occurred()) SWIG_fail;
5215 {
5216 PyThreadState* __tstate = wxPyBeginAllowThreads();
5217 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5218
5219 wxPyEndAllowThreads(__tstate);
5220 if (PyErr_Occurred()) SWIG_fail;
5221 }
c370783e 5222 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5223 return resultobj;
5224 fail:
5225 return NULL;
5226}
5227
5228
c370783e 5229static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5230 PyObject *resultobj;
5231 wxRegion *arg1 = (wxRegion *) 0 ;
5232 wxRect result;
5233 PyObject * obj0 = 0 ;
5234 char *kwnames[] = {
5235 (char *) "self", NULL
5236 };
5237
5238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5241 {
5242 PyThreadState* __tstate = wxPyBeginAllowThreads();
5243 result = (arg1)->GetBox();
5244
5245 wxPyEndAllowThreads(__tstate);
5246 if (PyErr_Occurred()) SWIG_fail;
5247 }
5248 {
5249 wxRect * resultptr;
5250 resultptr = new wxRect((wxRect &) result);
5251 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5252 }
5253 return resultobj;
5254 fail:
5255 return NULL;
5256}
5257
5258
c370783e 5259static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5260 PyObject *resultobj;
5261 wxRegion *arg1 = (wxRegion *) 0 ;
5262 int arg2 ;
5263 int arg3 ;
5264 int arg4 ;
5265 int arg5 ;
5266 bool result;
5267 PyObject * obj0 = 0 ;
5268 PyObject * obj1 = 0 ;
5269 PyObject * obj2 = 0 ;
5270 PyObject * obj3 = 0 ;
5271 PyObject * obj4 = 0 ;
5272 char *kwnames[] = {
5273 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5274 };
5275
5276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 5279 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5280 if (PyErr_Occurred()) SWIG_fail;
c370783e 5281 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5282 if (PyErr_Occurred()) SWIG_fail;
c370783e 5283 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5284 if (PyErr_Occurred()) SWIG_fail;
c370783e 5285 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5286 if (PyErr_Occurred()) SWIG_fail;
5287 {
5288 PyThreadState* __tstate = wxPyBeginAllowThreads();
5289 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5290
5291 wxPyEndAllowThreads(__tstate);
5292 if (PyErr_Occurred()) SWIG_fail;
5293 }
5294 {
5295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5296 }
5297 return resultobj;
5298 fail:
5299 return NULL;
5300}
5301
5302
c370783e 5303static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5304 PyObject *resultobj;
5305 wxRegion *arg1 = (wxRegion *) 0 ;
5306 wxRect *arg2 = 0 ;
5307 bool result;
5308 wxRect temp2 ;
5309 PyObject * obj0 = 0 ;
5310 PyObject * obj1 = 0 ;
5311 char *kwnames[] = {
5312 (char *) "self",(char *) "rect", NULL
5313 };
5314
5315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5318 {
5319 arg2 = &temp2;
5320 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5321 }
5322 {
5323 PyThreadState* __tstate = wxPyBeginAllowThreads();
5324 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5325
5326 wxPyEndAllowThreads(__tstate);
5327 if (PyErr_Occurred()) SWIG_fail;
5328 }
5329 {
5330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5331 }
5332 return resultobj;
5333 fail:
5334 return NULL;
5335}
5336
5337
c370783e 5338static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5339 PyObject *resultobj;
5340 wxRegion *arg1 = (wxRegion *) 0 ;
5341 wxRegion *arg2 = 0 ;
5342 bool result;
5343 PyObject * obj0 = 0 ;
5344 PyObject * obj1 = 0 ;
5345 char *kwnames[] = {
5346 (char *) "self",(char *) "region", NULL
5347 };
5348
5349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5352 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5353 SWIG_POINTER_EXCEPTION | 0)) == -1)
5354 SWIG_fail;
5355 if (arg2 == NULL) {
5356 PyErr_SetString(PyExc_TypeError,"null reference");
5357 SWIG_fail;
5358 }
5359 {
5360 PyThreadState* __tstate = wxPyBeginAllowThreads();
5361 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
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_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5376 PyObject *resultobj;
5377 wxRegion *arg1 = (wxRegion *) 0 ;
5378 bool result;
5379 PyObject * obj0 = 0 ;
5380 char *kwnames[] = {
5381 (char *) "self", NULL
5382 };
5383
5384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5387 {
5388 PyThreadState* __tstate = wxPyBeginAllowThreads();
5389 result = (bool)(arg1)->IsEmpty();
5390
5391 wxPyEndAllowThreads(__tstate);
5392 if (PyErr_Occurred()) SWIG_fail;
5393 }
5394 {
5395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5396 }
5397 return resultobj;
5398 fail:
5399 return NULL;
5400}
5401
5402
c370783e 5403static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5404 PyObject *resultobj;
5405 wxRegion *arg1 = (wxRegion *) 0 ;
5406 int arg2 ;
5407 int arg3 ;
5408 int arg4 ;
5409 int arg5 ;
5410 bool result;
5411 PyObject * obj0 = 0 ;
5412 PyObject * obj1 = 0 ;
5413 PyObject * obj2 = 0 ;
5414 PyObject * obj3 = 0 ;
5415 PyObject * obj4 = 0 ;
5416 char *kwnames[] = {
5417 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5418 };
5419
5420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 5423 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5424 if (PyErr_Occurred()) SWIG_fail;
c370783e 5425 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5426 if (PyErr_Occurred()) SWIG_fail;
c370783e 5427 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5428 if (PyErr_Occurred()) SWIG_fail;
c370783e 5429 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5430 if (PyErr_Occurred()) SWIG_fail;
5431 {
5432 PyThreadState* __tstate = wxPyBeginAllowThreads();
5433 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5434
5435 wxPyEndAllowThreads(__tstate);
5436 if (PyErr_Occurred()) SWIG_fail;
5437 }
5438 {
5439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5440 }
5441 return resultobj;
5442 fail:
5443 return NULL;
5444}
5445
5446
c370783e 5447static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5448 PyObject *resultobj;
5449 wxRegion *arg1 = (wxRegion *) 0 ;
5450 wxRect *arg2 = 0 ;
5451 bool result;
5452 wxRect temp2 ;
5453 PyObject * obj0 = 0 ;
5454 PyObject * obj1 = 0 ;
5455 char *kwnames[] = {
5456 (char *) "self",(char *) "rect", NULL
5457 };
5458
5459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5462 {
5463 arg2 = &temp2;
5464 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5465 }
5466 {
5467 PyThreadState* __tstate = wxPyBeginAllowThreads();
5468 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5469
5470 wxPyEndAllowThreads(__tstate);
5471 if (PyErr_Occurred()) SWIG_fail;
5472 }
5473 {
5474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5475 }
5476 return resultobj;
5477 fail:
5478 return NULL;
5479}
5480
5481
c370783e 5482static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5483 PyObject *resultobj;
5484 wxRegion *arg1 = (wxRegion *) 0 ;
5485 wxRegion *arg2 = 0 ;
5486 bool result;
5487 PyObject * obj0 = 0 ;
5488 PyObject * obj1 = 0 ;
5489 char *kwnames[] = {
5490 (char *) "self",(char *) "region", NULL
5491 };
5492
5493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5496 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5497 SWIG_POINTER_EXCEPTION | 0)) == -1)
5498 SWIG_fail;
5499 if (arg2 == NULL) {
5500 PyErr_SetString(PyExc_TypeError,"null reference");
5501 SWIG_fail;
5502 }
5503 {
5504 PyThreadState* __tstate = wxPyBeginAllowThreads();
5505 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5506
5507 wxPyEndAllowThreads(__tstate);
5508 if (PyErr_Occurred()) SWIG_fail;
5509 }
5510 {
5511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5512 }
5513 return resultobj;
5514 fail:
5515 return NULL;
5516}
5517
5518
c370783e 5519static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5520 PyObject *resultobj;
5521 wxRegion *arg1 = (wxRegion *) 0 ;
5522 int arg2 ;
5523 int arg3 ;
5524 int arg4 ;
5525 int arg5 ;
5526 bool result;
5527 PyObject * obj0 = 0 ;
5528 PyObject * obj1 = 0 ;
5529 PyObject * obj2 = 0 ;
5530 PyObject * obj3 = 0 ;
5531 PyObject * obj4 = 0 ;
5532 char *kwnames[] = {
5533 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5534 };
5535
5536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 5539 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5540 if (PyErr_Occurred()) SWIG_fail;
c370783e 5541 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5542 if (PyErr_Occurred()) SWIG_fail;
c370783e 5543 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5544 if (PyErr_Occurred()) SWIG_fail;
c370783e 5545 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5546 if (PyErr_Occurred()) SWIG_fail;
5547 {
5548 PyThreadState* __tstate = wxPyBeginAllowThreads();
5549 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5550
5551 wxPyEndAllowThreads(__tstate);
5552 if (PyErr_Occurred()) SWIG_fail;
5553 }
5554 {
5555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5556 }
5557 return resultobj;
5558 fail:
5559 return NULL;
5560}
5561
5562
c370783e 5563static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5564 PyObject *resultobj;
5565 wxRegion *arg1 = (wxRegion *) 0 ;
5566 wxRect *arg2 = 0 ;
5567 bool result;
5568 wxRect temp2 ;
5569 PyObject * obj0 = 0 ;
5570 PyObject * obj1 = 0 ;
5571 char *kwnames[] = {
5572 (char *) "self",(char *) "rect", NULL
5573 };
5574
5575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5578 {
5579 arg2 = &temp2;
5580 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5581 }
5582 {
5583 PyThreadState* __tstate = wxPyBeginAllowThreads();
5584 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5585
5586 wxPyEndAllowThreads(__tstate);
5587 if (PyErr_Occurred()) SWIG_fail;
5588 }
5589 {
5590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5591 }
5592 return resultobj;
5593 fail:
5594 return NULL;
5595}
5596
5597
c370783e 5598static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5599 PyObject *resultobj;
5600 wxRegion *arg1 = (wxRegion *) 0 ;
5601 wxRegion *arg2 = 0 ;
5602 bool result;
5603 PyObject * obj0 = 0 ;
5604 PyObject * obj1 = 0 ;
5605 char *kwnames[] = {
5606 (char *) "self",(char *) "region", NULL
5607 };
5608
5609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5612 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5613 SWIG_POINTER_EXCEPTION | 0)) == -1)
5614 SWIG_fail;
5615 if (arg2 == NULL) {
5616 PyErr_SetString(PyExc_TypeError,"null reference");
5617 SWIG_fail;
5618 }
5619 {
5620 PyThreadState* __tstate = wxPyBeginAllowThreads();
5621 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5622
5623 wxPyEndAllowThreads(__tstate);
5624 if (PyErr_Occurred()) SWIG_fail;
5625 }
5626 {
5627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5628 }
5629 return resultobj;
5630 fail:
5631 return NULL;
5632}
5633
5634
c370783e 5635static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5636 PyObject *resultobj;
5637 wxRegion *arg1 = (wxRegion *) 0 ;
5638 int arg2 ;
5639 int arg3 ;
5640 int arg4 ;
5641 int arg5 ;
5642 bool result;
5643 PyObject * obj0 = 0 ;
5644 PyObject * obj1 = 0 ;
5645 PyObject * obj2 = 0 ;
5646 PyObject * obj3 = 0 ;
5647 PyObject * obj4 = 0 ;
5648 char *kwnames[] = {
5649 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5650 };
5651
5652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 5655 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5656 if (PyErr_Occurred()) SWIG_fail;
c370783e 5657 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 5658 if (PyErr_Occurred()) SWIG_fail;
c370783e 5659 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 5660 if (PyErr_Occurred()) SWIG_fail;
c370783e 5661 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
5662 if (PyErr_Occurred()) SWIG_fail;
5663 {
5664 PyThreadState* __tstate = wxPyBeginAllowThreads();
5665 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5666
5667 wxPyEndAllowThreads(__tstate);
5668 if (PyErr_Occurred()) SWIG_fail;
5669 }
5670 {
5671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5672 }
5673 return resultobj;
5674 fail:
5675 return NULL;
5676}
5677
5678
c370783e 5679static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5680 PyObject *resultobj;
5681 wxRegion *arg1 = (wxRegion *) 0 ;
5682 wxRect *arg2 = 0 ;
5683 bool result;
5684 wxRect temp2 ;
5685 PyObject * obj0 = 0 ;
5686 PyObject * obj1 = 0 ;
5687 char *kwnames[] = {
5688 (char *) "self",(char *) "rect", NULL
5689 };
5690
5691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5694 {
5695 arg2 = &temp2;
5696 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5697 }
5698 {
5699 PyThreadState* __tstate = wxPyBeginAllowThreads();
5700 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5701
5702 wxPyEndAllowThreads(__tstate);
5703 if (PyErr_Occurred()) SWIG_fail;
5704 }
5705 {
5706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5707 }
5708 return resultobj;
5709 fail:
5710 return NULL;
5711}
5712
5713
c370783e 5714static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5715 PyObject *resultobj;
5716 wxRegion *arg1 = (wxRegion *) 0 ;
5717 wxRegion *arg2 = 0 ;
5718 bool result;
5719 PyObject * obj0 = 0 ;
5720 PyObject * obj1 = 0 ;
5721 char *kwnames[] = {
5722 (char *) "self",(char *) "region", NULL
5723 };
5724
5725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5728 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5729 SWIG_POINTER_EXCEPTION | 0)) == -1)
5730 SWIG_fail;
5731 if (arg2 == NULL) {
5732 PyErr_SetString(PyExc_TypeError,"null reference");
5733 SWIG_fail;
5734 }
5735 {
5736 PyThreadState* __tstate = wxPyBeginAllowThreads();
5737 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5738
5739 wxPyEndAllowThreads(__tstate);
5740 if (PyErr_Occurred()) SWIG_fail;
5741 }
5742 {
5743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5744 }
5745 return resultobj;
5746 fail:
5747 return NULL;
5748}
5749
5750
c370783e 5751static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5752 PyObject *resultobj;
5753 wxRegion *arg1 = (wxRegion *) 0 ;
5754 SwigValueWrapper< wxBitmap > result;
5755 PyObject * obj0 = 0 ;
5756 char *kwnames[] = {
5757 (char *) "self", NULL
5758 };
5759
5760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5763 {
5764 PyThreadState* __tstate = wxPyBeginAllowThreads();
5765 result = (arg1)->ConvertToBitmap();
5766
5767 wxPyEndAllowThreads(__tstate);
5768 if (PyErr_Occurred()) SWIG_fail;
5769 }
5770 {
5771 wxBitmap * resultptr;
5772 resultptr = new wxBitmap((wxBitmap &) result);
5773 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5774 }
5775 return resultobj;
5776 fail:
5777 return NULL;
5778}
5779
5780
c370783e 5781static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5782 PyObject *resultobj;
5783 wxRegion *arg1 = (wxRegion *) 0 ;
5784 wxBitmap *arg2 = 0 ;
d07096ad
RD
5785 bool result;
5786 PyObject * obj0 = 0 ;
5787 PyObject * obj1 = 0 ;
5788 char *kwnames[] = {
5789 (char *) "self",(char *) "bmp", NULL
5790 };
5791
5792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
5793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5795 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5796 SWIG_POINTER_EXCEPTION | 0)) == -1)
5797 SWIG_fail;
5798 if (arg2 == NULL) {
5799 PyErr_SetString(PyExc_TypeError,"null reference");
5800 SWIG_fail;
5801 }
5802 {
5803 PyThreadState* __tstate = wxPyBeginAllowThreads();
5804 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5805
5806 wxPyEndAllowThreads(__tstate);
5807 if (PyErr_Occurred()) SWIG_fail;
5808 }
5809 {
5810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5811 }
5812 return resultobj;
5813 fail:
5814 return NULL;
5815}
5816
5817
c370783e 5818static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
d07096ad
RD
5819 PyObject *resultobj;
5820 wxRegion *arg1 = (wxRegion *) 0 ;
5821 wxBitmap *arg2 = 0 ;
5822 wxColour *arg3 = 0 ;
d55e5bfc
RD
5823 int arg4 = (int) 0 ;
5824 bool result;
5825 wxColour temp3 ;
5826 PyObject * obj0 = 0 ;
5827 PyObject * obj1 = 0 ;
5828 PyObject * obj2 = 0 ;
5829 PyObject * obj3 = 0 ;
5830 char *kwnames[] = {
5831 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5832 };
5833
d07096ad 5834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
5835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5837 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5838 SWIG_POINTER_EXCEPTION | 0)) == -1)
5839 SWIG_fail;
5840 if (arg2 == NULL) {
5841 PyErr_SetString(PyExc_TypeError,"null reference");
5842 SWIG_fail;
5843 }
d07096ad
RD
5844 {
5845 arg3 = &temp3;
5846 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
5847 }
5848 if (obj3) {
c370783e 5849 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
5850 if (PyErr_Occurred()) SWIG_fail;
5851 }
5852 {
5853 PyThreadState* __tstate = wxPyBeginAllowThreads();
5854 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5855
5856 wxPyEndAllowThreads(__tstate);
5857 if (PyErr_Occurred()) SWIG_fail;
5858 }
5859 {
5860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5861 }
5862 return resultobj;
5863 fail:
5864 return NULL;
5865}
5866
5867
c370783e 5868static PyObject * Region_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5869 PyObject *obj;
5870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5871 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5872 Py_INCREF(obj);
5873 return Py_BuildValue((char *)"");
5874}
c370783e 5875static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5876 PyObject *resultobj;
5877 wxRegion *arg1 = 0 ;
5878 wxRegionIterator *result;
5879 PyObject * obj0 = 0 ;
5880 char *kwnames[] = {
5881 (char *) "region", NULL
5882 };
5883
5884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5886 SWIG_POINTER_EXCEPTION | 0)) == -1)
5887 SWIG_fail;
5888 if (arg1 == NULL) {
5889 PyErr_SetString(PyExc_TypeError,"null reference");
5890 SWIG_fail;
5891 }
5892 {
0439c23b 5893 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5894 PyThreadState* __tstate = wxPyBeginAllowThreads();
5895 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5896
5897 wxPyEndAllowThreads(__tstate);
110da5b0 5898 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5899 }
5900 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5901 return resultobj;
5902 fail:
5903 return NULL;
5904}
5905
5906
c370783e 5907static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5908 PyObject *resultobj;
5909 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5910 PyObject * obj0 = 0 ;
5911 char *kwnames[] = {
5912 (char *) "self", NULL
5913 };
5914
5915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5918 {
5919 PyThreadState* __tstate = wxPyBeginAllowThreads();
5920 delete arg1;
5921
5922 wxPyEndAllowThreads(__tstate);
5923 if (PyErr_Occurred()) SWIG_fail;
5924 }
5925 Py_INCREF(Py_None); resultobj = Py_None;
5926 return resultobj;
5927 fail:
5928 return NULL;
5929}
5930
5931
c370783e 5932static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5933 PyObject *resultobj;
5934 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5935 int result;
5936 PyObject * obj0 = 0 ;
5937 char *kwnames[] = {
5938 (char *) "self", NULL
5939 };
5940
5941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5944 {
5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
5946 result = (int)(arg1)->GetX();
5947
5948 wxPyEndAllowThreads(__tstate);
5949 if (PyErr_Occurred()) SWIG_fail;
5950 }
c370783e 5951 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5952 return resultobj;
5953 fail:
5954 return NULL;
5955}
5956
5957
c370783e 5958static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5959 PyObject *resultobj;
5960 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5961 int result;
5962 PyObject * obj0 = 0 ;
5963 char *kwnames[] = {
5964 (char *) "self", NULL
5965 };
5966
5967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5970 {
5971 PyThreadState* __tstate = wxPyBeginAllowThreads();
5972 result = (int)(arg1)->GetY();
5973
5974 wxPyEndAllowThreads(__tstate);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 }
c370783e 5977 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5978 return resultobj;
5979 fail:
5980 return NULL;
5981}
5982
5983
c370783e 5984static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5985 PyObject *resultobj;
5986 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5987 int result;
5988 PyObject * obj0 = 0 ;
5989 char *kwnames[] = {
5990 (char *) "self", NULL
5991 };
5992
5993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5996 {
5997 PyThreadState* __tstate = wxPyBeginAllowThreads();
5998 result = (int)(arg1)->GetW();
5999
6000 wxPyEndAllowThreads(__tstate);
6001 if (PyErr_Occurred()) SWIG_fail;
6002 }
c370783e 6003 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6004 return resultobj;
6005 fail:
6006 return NULL;
6007}
6008
6009
c370783e 6010static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6011 PyObject *resultobj;
6012 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6013 int result;
6014 PyObject * obj0 = 0 ;
6015 char *kwnames[] = {
6016 (char *) "self", NULL
6017 };
6018
6019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
6020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6022 {
6023 PyThreadState* __tstate = wxPyBeginAllowThreads();
6024 result = (int)(arg1)->GetWidth();
6025
6026 wxPyEndAllowThreads(__tstate);
6027 if (PyErr_Occurred()) SWIG_fail;
6028 }
c370783e 6029 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6030 return resultobj;
6031 fail:
6032 return NULL;
6033}
6034
6035
c370783e 6036static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6037 PyObject *resultobj;
6038 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6039 int result;
6040 PyObject * obj0 = 0 ;
6041 char *kwnames[] = {
6042 (char *) "self", NULL
6043 };
6044
6045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6048 {
6049 PyThreadState* __tstate = wxPyBeginAllowThreads();
6050 result = (int)(arg1)->GetH();
6051
6052 wxPyEndAllowThreads(__tstate);
6053 if (PyErr_Occurred()) SWIG_fail;
6054 }
c370783e 6055 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6056 return resultobj;
6057 fail:
6058 return NULL;
6059}
6060
6061
c370783e 6062static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6063 PyObject *resultobj;
6064 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6065 int result;
6066 PyObject * obj0 = 0 ;
6067 char *kwnames[] = {
6068 (char *) "self", NULL
6069 };
6070
6071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6074 {
6075 PyThreadState* __tstate = wxPyBeginAllowThreads();
6076 result = (int)(arg1)->GetHeight();
6077
6078 wxPyEndAllowThreads(__tstate);
6079 if (PyErr_Occurred()) SWIG_fail;
6080 }
c370783e 6081 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6082 return resultobj;
6083 fail:
6084 return NULL;
6085}
6086
6087
c370783e 6088static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6089 PyObject *resultobj;
6090 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6091 wxRect result;
6092 PyObject * obj0 = 0 ;
6093 char *kwnames[] = {
6094 (char *) "self", NULL
6095 };
6096
6097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6100 {
6101 PyThreadState* __tstate = wxPyBeginAllowThreads();
6102 result = (arg1)->GetRect();
6103
6104 wxPyEndAllowThreads(__tstate);
6105 if (PyErr_Occurred()) SWIG_fail;
6106 }
6107 {
6108 wxRect * resultptr;
6109 resultptr = new wxRect((wxRect &) result);
6110 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6111 }
6112 return resultobj;
6113 fail:
6114 return NULL;
6115}
6116
6117
c370783e 6118static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6119 PyObject *resultobj;
6120 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6121 bool result;
6122 PyObject * obj0 = 0 ;
6123 char *kwnames[] = {
6124 (char *) "self", NULL
6125 };
6126
6127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6130 {
6131 PyThreadState* __tstate = wxPyBeginAllowThreads();
6132 result = (bool)(arg1)->HaveRects();
6133
6134 wxPyEndAllowThreads(__tstate);
6135 if (PyErr_Occurred()) SWIG_fail;
6136 }
6137 {
6138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6139 }
6140 return resultobj;
6141 fail:
6142 return NULL;
6143}
6144
6145
c370783e 6146static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6147 PyObject *resultobj;
6148 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6149 PyObject * obj0 = 0 ;
6150 char *kwnames[] = {
6151 (char *) "self", NULL
6152 };
6153
6154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6157 {
6158 PyThreadState* __tstate = wxPyBeginAllowThreads();
6159 (arg1)->Reset();
6160
6161 wxPyEndAllowThreads(__tstate);
6162 if (PyErr_Occurred()) SWIG_fail;
6163 }
6164 Py_INCREF(Py_None); resultobj = Py_None;
6165 return resultobj;
6166 fail:
6167 return NULL;
6168}
6169
6170
c370783e 6171static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6172 PyObject *resultobj;
6173 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6174 PyObject * obj0 = 0 ;
6175 char *kwnames[] = {
6176 (char *) "self", NULL
6177 };
6178
6179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6182 {
6183 PyThreadState* __tstate = wxPyBeginAllowThreads();
6184 wxRegionIterator_Next(arg1);
6185
6186 wxPyEndAllowThreads(__tstate);
6187 if (PyErr_Occurred()) SWIG_fail;
6188 }
6189 Py_INCREF(Py_None); resultobj = Py_None;
6190 return resultobj;
6191 fail:
6192 return NULL;
6193}
6194
6195
c370783e 6196static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6197 PyObject *resultobj;
6198 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6199 bool result;
6200 PyObject * obj0 = 0 ;
6201 char *kwnames[] = {
6202 (char *) "self", NULL
6203 };
6204
6205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6208 {
6209 PyThreadState* __tstate = wxPyBeginAllowThreads();
6210 result = (bool)wxRegionIterator___nonzero__(arg1);
6211
6212 wxPyEndAllowThreads(__tstate);
6213 if (PyErr_Occurred()) SWIG_fail;
6214 }
6215 {
6216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6217 }
6218 return resultobj;
6219 fail:
6220 return NULL;
6221}
6222
6223
c370783e 6224static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6225 PyObject *obj;
6226 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6227 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6228 Py_INCREF(obj);
6229 return Py_BuildValue((char *)"");
6230}
c370783e 6231static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6232 PyObject *resultobj;
6233 wxNativeFontInfo *result;
6234 char *kwnames[] = {
6235 NULL
6236 };
6237
6238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6239 {
6240 PyThreadState* __tstate = wxPyBeginAllowThreads();
6241 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6242
6243 wxPyEndAllowThreads(__tstate);
6244 if (PyErr_Occurred()) SWIG_fail;
6245 }
6246 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6247 return resultobj;
6248 fail:
6249 return NULL;
6250}
6251
6252
c370783e 6253static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6254 PyObject *resultobj;
6255 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6256 PyObject * obj0 = 0 ;
6257 char *kwnames[] = {
6258 (char *) "self", NULL
6259 };
6260
6261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6264 {
6265 PyThreadState* __tstate = wxPyBeginAllowThreads();
6266 delete arg1;
6267
6268 wxPyEndAllowThreads(__tstate);
6269 if (PyErr_Occurred()) SWIG_fail;
6270 }
6271 Py_INCREF(Py_None); resultobj = Py_None;
6272 return resultobj;
6273 fail:
6274 return NULL;
6275}
6276
6277
c370783e 6278static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6279 PyObject *resultobj;
6280 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6281 PyObject * obj0 = 0 ;
6282 char *kwnames[] = {
6283 (char *) "self", NULL
6284 };
6285
6286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6289 {
6290 PyThreadState* __tstate = wxPyBeginAllowThreads();
6291 (arg1)->Init();
6292
6293 wxPyEndAllowThreads(__tstate);
6294 if (PyErr_Occurred()) SWIG_fail;
6295 }
6296 Py_INCREF(Py_None); resultobj = Py_None;
6297 return resultobj;
6298 fail:
6299 return NULL;
6300}
6301
6302
c370783e 6303static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6304 PyObject *resultobj;
6305 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6306 wxFont *arg2 = 0 ;
6307 PyObject * obj0 = 0 ;
6308 PyObject * obj1 = 0 ;
6309 char *kwnames[] = {
6310 (char *) "self",(char *) "font", NULL
6311 };
6312
6313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6316 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6317 SWIG_POINTER_EXCEPTION | 0)) == -1)
6318 SWIG_fail;
6319 if (arg2 == NULL) {
6320 PyErr_SetString(PyExc_TypeError,"null reference");
6321 SWIG_fail;
6322 }
6323 {
6324 PyThreadState* __tstate = wxPyBeginAllowThreads();
6325 (arg1)->InitFromFont((wxFont const &)*arg2);
6326
6327 wxPyEndAllowThreads(__tstate);
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
6330 Py_INCREF(Py_None); resultobj = Py_None;
6331 return resultobj;
6332 fail:
6333 return NULL;
6334}
6335
6336
c370783e 6337static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6338 PyObject *resultobj;
6339 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6340 int result;
6341 PyObject * obj0 = 0 ;
6342 char *kwnames[] = {
6343 (char *) "self", NULL
6344 };
6345
6346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6349 {
6350 PyThreadState* __tstate = wxPyBeginAllowThreads();
6351 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6352
6353 wxPyEndAllowThreads(__tstate);
6354 if (PyErr_Occurred()) SWIG_fail;
6355 }
c370783e 6356 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6357 return resultobj;
6358 fail:
6359 return NULL;
6360}
6361
6362
c370783e 6363static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6364 PyObject *resultobj;
6365 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6366 int result;
6367 PyObject * obj0 = 0 ;
6368 char *kwnames[] = {
6369 (char *) "self", NULL
6370 };
6371
6372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6375 {
6376 PyThreadState* __tstate = wxPyBeginAllowThreads();
6377 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6378
6379 wxPyEndAllowThreads(__tstate);
6380 if (PyErr_Occurred()) SWIG_fail;
6381 }
c370783e 6382 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6383 return resultobj;
6384 fail:
6385 return NULL;
6386}
6387
6388
c370783e 6389static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6390 PyObject *resultobj;
6391 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6392 int result;
6393 PyObject * obj0 = 0 ;
6394 char *kwnames[] = {
6395 (char *) "self", NULL
6396 };
6397
6398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6401 {
6402 PyThreadState* __tstate = wxPyBeginAllowThreads();
6403 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6404
6405 wxPyEndAllowThreads(__tstate);
6406 if (PyErr_Occurred()) SWIG_fail;
6407 }
c370783e 6408 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6409 return resultobj;
6410 fail:
6411 return NULL;
6412}
6413
6414
c370783e 6415static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6416 PyObject *resultobj;
6417 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6418 bool result;
6419 PyObject * obj0 = 0 ;
6420 char *kwnames[] = {
6421 (char *) "self", NULL
6422 };
6423
6424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",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 = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6430
6431 wxPyEndAllowThreads(__tstate);
6432 if (PyErr_Occurred()) SWIG_fail;
6433 }
6434 {
6435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6436 }
6437 return resultobj;
6438 fail:
6439 return NULL;
6440}
6441
6442
c370783e 6443static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6444 PyObject *resultobj;
6445 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6446 wxString result;
6447 PyObject * obj0 = 0 ;
6448 char *kwnames[] = {
6449 (char *) "self", NULL
6450 };
6451
6452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6455 {
6456 PyThreadState* __tstate = wxPyBeginAllowThreads();
6457 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6458
6459 wxPyEndAllowThreads(__tstate);
6460 if (PyErr_Occurred()) SWIG_fail;
6461 }
6462 {
6463#if wxUSE_UNICODE
6464 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6465#else
6466 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6467#endif
6468 }
6469 return resultobj;
6470 fail:
6471 return NULL;
6472}
6473
6474
c370783e 6475static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6476 PyObject *resultobj;
6477 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6478 int result;
6479 PyObject * obj0 = 0 ;
6480 char *kwnames[] = {
6481 (char *) "self", NULL
6482 };
6483
6484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6487 {
6488 PyThreadState* __tstate = wxPyBeginAllowThreads();
6489 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6490
6491 wxPyEndAllowThreads(__tstate);
6492 if (PyErr_Occurred()) SWIG_fail;
6493 }
c370783e 6494 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6495 return resultobj;
6496 fail:
6497 return NULL;
6498}
6499
6500
c370783e 6501static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6502 PyObject *resultobj;
6503 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6504 int result;
6505 PyObject * obj0 = 0 ;
6506 char *kwnames[] = {
6507 (char *) "self", NULL
6508 };
6509
6510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6513 {
6514 PyThreadState* __tstate = wxPyBeginAllowThreads();
6515 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6516
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
c370783e 6520 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6521 return resultobj;
6522 fail:
6523 return NULL;
6524}
6525
6526
c370783e 6527static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6528 PyObject *resultobj;
6529 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6530 int arg2 ;
6531 PyObject * obj0 = 0 ;
6532 PyObject * obj1 = 0 ;
6533 char *kwnames[] = {
6534 (char *) "self",(char *) "pointsize", NULL
6535 };
6536
6537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6540 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6541 if (PyErr_Occurred()) SWIG_fail;
6542 {
6543 PyThreadState* __tstate = wxPyBeginAllowThreads();
6544 (arg1)->SetPointSize(arg2);
6545
6546 wxPyEndAllowThreads(__tstate);
6547 if (PyErr_Occurred()) SWIG_fail;
6548 }
6549 Py_INCREF(Py_None); resultobj = Py_None;
6550 return resultobj;
6551 fail:
6552 return NULL;
6553}
6554
6555
c370783e 6556static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6557 PyObject *resultobj;
6558 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6559 int arg2 ;
6560 PyObject * obj0 = 0 ;
6561 PyObject * obj1 = 0 ;
6562 char *kwnames[] = {
6563 (char *) "self",(char *) "style", NULL
6564 };
6565
6566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6569 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6570 if (PyErr_Occurred()) SWIG_fail;
6571 {
6572 PyThreadState* __tstate = wxPyBeginAllowThreads();
6573 (arg1)->SetStyle((wxFontStyle )arg2);
6574
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 Py_INCREF(Py_None); resultobj = Py_None;
6579 return resultobj;
6580 fail:
6581 return NULL;
6582}
6583
6584
c370783e 6585static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6586 PyObject *resultobj;
6587 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6588 int arg2 ;
6589 PyObject * obj0 = 0 ;
6590 PyObject * obj1 = 0 ;
6591 char *kwnames[] = {
6592 (char *) "self",(char *) "weight", NULL
6593 };
6594
6595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6598 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6599 if (PyErr_Occurred()) SWIG_fail;
6600 {
6601 PyThreadState* __tstate = wxPyBeginAllowThreads();
6602 (arg1)->SetWeight((wxFontWeight )arg2);
6603
6604 wxPyEndAllowThreads(__tstate);
6605 if (PyErr_Occurred()) SWIG_fail;
6606 }
6607 Py_INCREF(Py_None); resultobj = Py_None;
6608 return resultobj;
6609 fail:
6610 return NULL;
6611}
6612
6613
c370783e 6614static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6615 PyObject *resultobj;
6616 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6617 bool arg2 ;
6618 PyObject * obj0 = 0 ;
6619 PyObject * obj1 = 0 ;
6620 char *kwnames[] = {
6621 (char *) "self",(char *) "underlined", NULL
6622 };
6623
6624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6627 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
6628 if (PyErr_Occurred()) SWIG_fail;
6629 {
6630 PyThreadState* __tstate = wxPyBeginAllowThreads();
6631 (arg1)->SetUnderlined(arg2);
6632
6633 wxPyEndAllowThreads(__tstate);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 Py_INCREF(Py_None); resultobj = Py_None;
6637 return resultobj;
6638 fail:
6639 return NULL;
6640}
6641
6642
c370783e 6643static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6644 PyObject *resultobj;
6645 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6646 wxString arg2 ;
6647 PyObject * obj0 = 0 ;
6648 PyObject * obj1 = 0 ;
6649 char *kwnames[] = {
6650 (char *) "self",(char *) "facename", NULL
6651 };
6652
6653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6656 {
6657 wxString* sptr = wxString_in_helper(obj1);
6658 if (sptr == NULL) SWIG_fail;
6659 arg2 = *sptr;
6660 delete sptr;
6661 }
6662 {
6663 PyThreadState* __tstate = wxPyBeginAllowThreads();
6664 (arg1)->SetFaceName(arg2);
6665
6666 wxPyEndAllowThreads(__tstate);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 Py_INCREF(Py_None); resultobj = Py_None;
6670 return resultobj;
6671 fail:
6672 return NULL;
6673}
6674
6675
c370783e 6676static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6677 PyObject *resultobj;
6678 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6679 int arg2 ;
6680 PyObject * obj0 = 0 ;
6681 PyObject * obj1 = 0 ;
6682 char *kwnames[] = {
6683 (char *) "self",(char *) "family", NULL
6684 };
6685
6686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6689 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6690 if (PyErr_Occurred()) SWIG_fail;
6691 {
6692 PyThreadState* __tstate = wxPyBeginAllowThreads();
6693 (arg1)->SetFamily((wxFontFamily )arg2);
6694
6695 wxPyEndAllowThreads(__tstate);
6696 if (PyErr_Occurred()) SWIG_fail;
6697 }
6698 Py_INCREF(Py_None); resultobj = Py_None;
6699 return resultobj;
6700 fail:
6701 return NULL;
6702}
6703
6704
c370783e 6705static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6706 PyObject *resultobj;
6707 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6708 int arg2 ;
6709 PyObject * obj0 = 0 ;
6710 PyObject * obj1 = 0 ;
6711 char *kwnames[] = {
6712 (char *) "self",(char *) "encoding", NULL
6713 };
6714
6715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6718 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6719 if (PyErr_Occurred()) SWIG_fail;
6720 {
6721 PyThreadState* __tstate = wxPyBeginAllowThreads();
6722 (arg1)->SetEncoding((wxFontEncoding )arg2);
6723
6724 wxPyEndAllowThreads(__tstate);
6725 if (PyErr_Occurred()) SWIG_fail;
6726 }
6727 Py_INCREF(Py_None); resultobj = Py_None;
6728 return resultobj;
6729 fail:
6730 return NULL;
6731}
6732
6733
c370783e 6734static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6735 PyObject *resultobj;
6736 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6737 wxString *arg2 = 0 ;
6738 bool result;
b411df4a 6739 bool temp2 = false ;
d55e5bfc
RD
6740 PyObject * obj0 = 0 ;
6741 PyObject * obj1 = 0 ;
6742 char *kwnames[] = {
6743 (char *) "self",(char *) "s", NULL
6744 };
6745
6746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6749 {
6750 arg2 = wxString_in_helper(obj1);
6751 if (arg2 == NULL) SWIG_fail;
b411df4a 6752 temp2 = true;
d55e5bfc
RD
6753 }
6754 {
6755 PyThreadState* __tstate = wxPyBeginAllowThreads();
6756 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6757
6758 wxPyEndAllowThreads(__tstate);
6759 if (PyErr_Occurred()) SWIG_fail;
6760 }
6761 {
6762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6763 }
6764 {
6765 if (temp2)
6766 delete arg2;
6767 }
6768 return resultobj;
6769 fail:
6770 {
6771 if (temp2)
6772 delete arg2;
6773 }
6774 return NULL;
6775}
6776
6777
c370783e 6778static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6779 PyObject *resultobj;
6780 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6781 wxString result;
6782 PyObject * obj0 = 0 ;
6783 char *kwnames[] = {
6784 (char *) "self", NULL
6785 };
6786
6787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6790 {
6791 PyThreadState* __tstate = wxPyBeginAllowThreads();
6792 result = ((wxNativeFontInfo const *)arg1)->ToString();
6793
6794 wxPyEndAllowThreads(__tstate);
6795 if (PyErr_Occurred()) SWIG_fail;
6796 }
6797 {
6798#if wxUSE_UNICODE
6799 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6800#else
6801 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6802#endif
6803 }
6804 return resultobj;
6805 fail:
6806 return NULL;
6807}
6808
6809
c370783e 6810static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6811 PyObject *resultobj;
6812 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6813 wxString result;
6814 PyObject * obj0 = 0 ;
6815 char *kwnames[] = {
6816 (char *) "self", NULL
6817 };
6818
6819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6822 {
6823 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824 result = wxNativeFontInfo___str__(arg1);
6825
6826 wxPyEndAllowThreads(__tstate);
6827 if (PyErr_Occurred()) SWIG_fail;
6828 }
6829 {
6830#if wxUSE_UNICODE
6831 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6832#else
6833 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6834#endif
6835 }
6836 return resultobj;
6837 fail:
6838 return NULL;
6839}
6840
6841
c370783e 6842static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6843 PyObject *resultobj;
6844 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6845 wxString *arg2 = 0 ;
6846 bool result;
b411df4a 6847 bool temp2 = false ;
d55e5bfc
RD
6848 PyObject * obj0 = 0 ;
6849 PyObject * obj1 = 0 ;
6850 char *kwnames[] = {
6851 (char *) "self",(char *) "s", NULL
6852 };
6853
6854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6857 {
6858 arg2 = wxString_in_helper(obj1);
6859 if (arg2 == NULL) SWIG_fail;
b411df4a 6860 temp2 = true;
d55e5bfc
RD
6861 }
6862 {
6863 PyThreadState* __tstate = wxPyBeginAllowThreads();
6864 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6865
6866 wxPyEndAllowThreads(__tstate);
6867 if (PyErr_Occurred()) SWIG_fail;
6868 }
6869 {
6870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6871 }
6872 {
6873 if (temp2)
6874 delete arg2;
6875 }
6876 return resultobj;
6877 fail:
6878 {
6879 if (temp2)
6880 delete arg2;
6881 }
6882 return NULL;
6883}
6884
6885
c370783e 6886static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6887 PyObject *resultobj;
6888 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6889 wxString result;
6890 PyObject * obj0 = 0 ;
6891 char *kwnames[] = {
6892 (char *) "self", NULL
6893 };
6894
6895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6898 {
6899 PyThreadState* __tstate = wxPyBeginAllowThreads();
6900 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6901
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 {
6906#if wxUSE_UNICODE
6907 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6908#else
6909 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6910#endif
6911 }
6912 return resultobj;
6913 fail:
6914 return NULL;
6915}
6916
6917
c370783e 6918static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6919 PyObject *obj;
6920 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6921 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6922 Py_INCREF(obj);
6923 return Py_BuildValue((char *)"");
6924}
c370783e 6925static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6926 PyObject *resultobj;
6927 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6928 wxString *arg2 = (wxString *) 0 ;
b411df4a 6929 bool temp2 = false ;
d55e5bfc
RD
6930 PyObject * obj0 = 0 ;
6931 PyObject * obj1 = 0 ;
6932 char *kwnames[] = {
6933 (char *) "self",(char *) "facename", NULL
6934 };
6935
6936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6939 {
6940 arg2 = wxString_in_helper(obj1);
6941 if (arg2 == NULL) SWIG_fail;
b411df4a 6942 temp2 = true;
d55e5bfc
RD
6943 }
6944 if (arg1) (arg1)->facename = *arg2;
6945
6946 Py_INCREF(Py_None); resultobj = Py_None;
6947 {
6948 if (temp2)
6949 delete arg2;
6950 }
6951 return resultobj;
6952 fail:
6953 {
6954 if (temp2)
6955 delete arg2;
6956 }
6957 return NULL;
6958}
6959
6960
c370783e 6961static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6962 PyObject *resultobj;
6963 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6964 wxString *result;
6965 PyObject * obj0 = 0 ;
6966 char *kwnames[] = {
6967 (char *) "self", NULL
6968 };
6969
6970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6973 result = (wxString *)& ((arg1)->facename);
6974
6975 {
6976#if wxUSE_UNICODE
6977 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6978#else
6979 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6980#endif
6981 }
6982 return resultobj;
6983 fail:
6984 return NULL;
6985}
6986
6987
c370783e 6988static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6989 PyObject *resultobj;
6990 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6991 int arg2 ;
6992 PyObject * obj0 = 0 ;
6993 PyObject * obj1 = 0 ;
6994 char *kwnames[] = {
6995 (char *) "self",(char *) "encoding", NULL
6996 };
6997
6998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 7001 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7002 if (PyErr_Occurred()) SWIG_fail;
7003 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
7004
7005 Py_INCREF(Py_None); resultobj = Py_None;
7006 return resultobj;
7007 fail:
7008 return NULL;
7009}
7010
7011
c370783e 7012static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7013 PyObject *resultobj;
7014 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7015 int result;
7016 PyObject * obj0 = 0 ;
7017 char *kwnames[] = {
7018 (char *) "self", NULL
7019 };
7020
7021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
7022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7024 result = (int) ((arg1)->encoding);
7025
c370783e 7026 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7027 return resultobj;
7028 fail:
7029 return NULL;
7030}
7031
7032
c370783e 7033static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7034 PyObject *resultobj;
7035 wxNativeEncodingInfo *result;
7036 char *kwnames[] = {
7037 NULL
7038 };
7039
7040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7044
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) SWIG_fail;
7047 }
7048 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7049 return resultobj;
7050 fail:
7051 return NULL;
7052}
7053
7054
c370783e 7055static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7056 PyObject *resultobj;
7057 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7058 PyObject * obj0 = 0 ;
7059 char *kwnames[] = {
7060 (char *) "self", NULL
7061 };
7062
7063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7066 {
7067 PyThreadState* __tstate = wxPyBeginAllowThreads();
7068 delete arg1;
7069
7070 wxPyEndAllowThreads(__tstate);
7071 if (PyErr_Occurred()) SWIG_fail;
7072 }
7073 Py_INCREF(Py_None); resultobj = Py_None;
7074 return resultobj;
7075 fail:
7076 return NULL;
7077}
7078
7079
c370783e 7080static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7081 PyObject *resultobj;
7082 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7083 wxString *arg2 = 0 ;
7084 bool result;
b411df4a 7085 bool temp2 = false ;
d55e5bfc
RD
7086 PyObject * obj0 = 0 ;
7087 PyObject * obj1 = 0 ;
7088 char *kwnames[] = {
7089 (char *) "self",(char *) "s", NULL
7090 };
7091
7092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7095 {
7096 arg2 = wxString_in_helper(obj1);
7097 if (arg2 == NULL) SWIG_fail;
b411df4a 7098 temp2 = true;
d55e5bfc
RD
7099 }
7100 {
7101 PyThreadState* __tstate = wxPyBeginAllowThreads();
7102 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7103
7104 wxPyEndAllowThreads(__tstate);
7105 if (PyErr_Occurred()) SWIG_fail;
7106 }
7107 {
7108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7109 }
7110 {
7111 if (temp2)
7112 delete arg2;
7113 }
7114 return resultobj;
7115 fail:
7116 {
7117 if (temp2)
7118 delete arg2;
7119 }
7120 return NULL;
7121}
7122
7123
c370783e 7124static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7125 PyObject *resultobj;
7126 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7127 wxString result;
7128 PyObject * obj0 = 0 ;
7129 char *kwnames[] = {
7130 (char *) "self", NULL
7131 };
7132
7133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7136 {
7137 PyThreadState* __tstate = wxPyBeginAllowThreads();
7138 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7139
7140 wxPyEndAllowThreads(__tstate);
7141 if (PyErr_Occurred()) SWIG_fail;
7142 }
7143 {
7144#if wxUSE_UNICODE
7145 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7146#else
7147 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7148#endif
7149 }
7150 return resultobj;
7151 fail:
7152 return NULL;
7153}
7154
7155
c370783e 7156static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7157 PyObject *obj;
7158 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7159 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7160 Py_INCREF(obj);
7161 return Py_BuildValue((char *)"");
7162}
c370783e 7163static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7164 PyObject *resultobj;
7165 int arg1 ;
7166 wxNativeEncodingInfo *result;
7167 PyObject * obj0 = 0 ;
7168 char *kwnames[] = {
7169 (char *) "encoding", NULL
7170 };
7171
7172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
c370783e 7173 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
7174 if (PyErr_Occurred()) SWIG_fail;
7175 {
7176 PyThreadState* __tstate = wxPyBeginAllowThreads();
7177 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7178
7179 wxPyEndAllowThreads(__tstate);
7180 if (PyErr_Occurred()) SWIG_fail;
7181 }
7182 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7183 return resultobj;
7184 fail:
7185 return NULL;
7186}
7187
7188
c370783e 7189static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7190 PyObject *resultobj;
7191 wxNativeEncodingInfo *arg1 = 0 ;
7192 bool result;
7193 PyObject * obj0 = 0 ;
7194 char *kwnames[] = {
7195 (char *) "info", NULL
7196 };
7197
7198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7200 SWIG_POINTER_EXCEPTION | 0)) == -1)
7201 SWIG_fail;
7202 if (arg1 == NULL) {
7203 PyErr_SetString(PyExc_TypeError,"null reference");
7204 SWIG_fail;
7205 }
7206 {
7207 PyThreadState* __tstate = wxPyBeginAllowThreads();
7208 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7209
7210 wxPyEndAllowThreads(__tstate);
7211 if (PyErr_Occurred()) SWIG_fail;
7212 }
7213 {
7214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7215 }
7216 return resultobj;
7217 fail:
7218 return NULL;
7219}
7220
7221
c370783e 7222static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7223 PyObject *resultobj;
7224 wxFontMapper *result;
7225 char *kwnames[] = {
7226 NULL
7227 };
7228
7229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7230 {
7231 PyThreadState* __tstate = wxPyBeginAllowThreads();
7232 result = (wxFontMapper *)new wxFontMapper();
7233
7234 wxPyEndAllowThreads(__tstate);
7235 if (PyErr_Occurred()) SWIG_fail;
7236 }
7237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7238 return resultobj;
7239 fail:
7240 return NULL;
7241}
7242
7243
c370783e 7244static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7245 PyObject *resultobj;
7246 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7247 PyObject * obj0 = 0 ;
7248 char *kwnames[] = {
7249 (char *) "self", NULL
7250 };
7251
7252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7255 {
7256 PyThreadState* __tstate = wxPyBeginAllowThreads();
7257 delete arg1;
7258
7259 wxPyEndAllowThreads(__tstate);
7260 if (PyErr_Occurred()) SWIG_fail;
7261 }
7262 Py_INCREF(Py_None); resultobj = Py_None;
7263 return resultobj;
7264 fail:
7265 return NULL;
7266}
7267
7268
c370783e 7269static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7270 PyObject *resultobj;
7271 wxFontMapper *result;
7272 char *kwnames[] = {
7273 NULL
7274 };
7275
7276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7277 {
7278 PyThreadState* __tstate = wxPyBeginAllowThreads();
7279 result = (wxFontMapper *)wxFontMapper::Get();
7280
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7285 return resultobj;
7286 fail:
7287 return NULL;
7288}
7289
7290
c370783e 7291static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7292 PyObject *resultobj;
7293 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7294 wxFontMapper *result;
7295 PyObject * obj0 = 0 ;
7296 char *kwnames[] = {
7297 (char *) "mapper", NULL
7298 };
7299
7300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7303 {
7304 PyThreadState* __tstate = wxPyBeginAllowThreads();
7305 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7306
7307 wxPyEndAllowThreads(__tstate);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7311 return resultobj;
7312 fail:
7313 return NULL;
7314}
7315
7316
c370783e 7317static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7318 PyObject *resultobj;
7319 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7320 wxString *arg2 = 0 ;
b411df4a 7321 bool arg3 = (bool) true ;
d55e5bfc 7322 int result;
b411df4a 7323 bool temp2 = false ;
d55e5bfc
RD
7324 PyObject * obj0 = 0 ;
7325 PyObject * obj1 = 0 ;
7326 PyObject * obj2 = 0 ;
7327 char *kwnames[] = {
7328 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7329 };
7330
7331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7334 {
7335 arg2 = wxString_in_helper(obj1);
7336 if (arg2 == NULL) SWIG_fail;
b411df4a 7337 temp2 = true;
d55e5bfc
RD
7338 }
7339 if (obj2) {
c370783e 7340 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
7341 if (PyErr_Occurred()) SWIG_fail;
7342 }
7343 {
7344 PyThreadState* __tstate = wxPyBeginAllowThreads();
7345 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7346
7347 wxPyEndAllowThreads(__tstate);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 }
c370783e 7350 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7351 {
7352 if (temp2)
7353 delete arg2;
7354 }
7355 return resultobj;
7356 fail:
7357 {
7358 if (temp2)
7359 delete arg2;
7360 }
7361 return NULL;
7362}
7363
7364
c370783e 7365static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7366 PyObject *resultobj;
7367 size_t result;
7368 char *kwnames[] = {
7369 NULL
7370 };
7371
7372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7373 {
7374 PyThreadState* __tstate = wxPyBeginAllowThreads();
7375 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7376
7377 wxPyEndAllowThreads(__tstate);
7378 if (PyErr_Occurred()) SWIG_fail;
7379 }
c370783e 7380 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
7381 return resultobj;
7382 fail:
7383 return NULL;
7384}
7385
7386
c370783e 7387static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7388 PyObject *resultobj;
7389 size_t arg1 ;
7390 int result;
7391 PyObject * obj0 = 0 ;
7392 char *kwnames[] = {
7393 (char *) "n", NULL
7394 };
7395
7396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
c370783e 7397 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
7398 if (PyErr_Occurred()) SWIG_fail;
7399 {
7400 PyThreadState* __tstate = wxPyBeginAllowThreads();
7401 result = (int)wxFontMapper::GetEncoding(arg1);
7402
7403 wxPyEndAllowThreads(__tstate);
7404 if (PyErr_Occurred()) SWIG_fail;
7405 }
c370783e 7406 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7407 return resultobj;
7408 fail:
7409 return NULL;
7410}
7411
7412
c370783e 7413static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7414 PyObject *resultobj;
7415 int arg1 ;
7416 wxString result;
7417 PyObject * obj0 = 0 ;
7418 char *kwnames[] = {
7419 (char *) "encoding", NULL
7420 };
7421
7422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
c370783e 7423 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
7424 if (PyErr_Occurred()) SWIG_fail;
7425 {
7426 PyThreadState* __tstate = wxPyBeginAllowThreads();
7427 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7428
7429 wxPyEndAllowThreads(__tstate);
7430 if (PyErr_Occurred()) SWIG_fail;
7431 }
7432 {
7433#if wxUSE_UNICODE
7434 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7435#else
7436 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7437#endif
7438 }
7439 return resultobj;
7440 fail:
7441 return NULL;
7442}
7443
7444
c370783e 7445static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7446 PyObject *resultobj;
7447 int arg1 ;
7448 wxString result;
7449 PyObject * obj0 = 0 ;
7450 char *kwnames[] = {
7451 (char *) "encoding", NULL
7452 };
7453
7454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
c370783e 7455 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
7456 if (PyErr_Occurred()) SWIG_fail;
7457 {
7458 PyThreadState* __tstate = wxPyBeginAllowThreads();
7459 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7460
7461 wxPyEndAllowThreads(__tstate);
7462 if (PyErr_Occurred()) SWIG_fail;
7463 }
7464 {
7465#if wxUSE_UNICODE
7466 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7467#else
7468 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7469#endif
7470 }
7471 return resultobj;
7472 fail:
7473 return NULL;
7474}
7475
7476
c370783e 7477static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7478 PyObject *resultobj;
7479 wxString *arg1 = 0 ;
7480 int result;
b411df4a 7481 bool temp1 = false ;
d55e5bfc
RD
7482 PyObject * obj0 = 0 ;
7483 char *kwnames[] = {
7484 (char *) "name", NULL
7485 };
7486
7487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7488 {
7489 arg1 = wxString_in_helper(obj0);
7490 if (arg1 == NULL) SWIG_fail;
b411df4a 7491 temp1 = true;
d55e5bfc
RD
7492 }
7493 {
7494 PyThreadState* __tstate = wxPyBeginAllowThreads();
7495 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7496
7497 wxPyEndAllowThreads(__tstate);
7498 if (PyErr_Occurred()) SWIG_fail;
7499 }
c370783e 7500 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7501 {
7502 if (temp1)
7503 delete arg1;
7504 }
7505 return resultobj;
7506 fail:
7507 {
7508 if (temp1)
7509 delete arg1;
7510 }
7511 return NULL;
7512}
7513
7514
c370783e 7515static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7516 PyObject *resultobj;
7517 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7518 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7519 PyObject * obj0 = 0 ;
7520 PyObject * obj1 = 0 ;
7521 char *kwnames[] = {
7522 (char *) "self",(char *) "config", NULL
7523 };
7524
7525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7528 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7530 {
7531 PyThreadState* __tstate = wxPyBeginAllowThreads();
7532 (arg1)->SetConfig(arg2);
7533
7534 wxPyEndAllowThreads(__tstate);
7535 if (PyErr_Occurred()) SWIG_fail;
7536 }
7537 Py_INCREF(Py_None); resultobj = Py_None;
7538 return resultobj;
7539 fail:
7540 return NULL;
7541}
7542
7543
c370783e 7544static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7545 PyObject *resultobj;
7546 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7547 wxString *arg2 = 0 ;
b411df4a 7548 bool temp2 = false ;
d55e5bfc
RD
7549 PyObject * obj0 = 0 ;
7550 PyObject * obj1 = 0 ;
7551 char *kwnames[] = {
7552 (char *) "self",(char *) "prefix", NULL
7553 };
7554
7555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7558 {
7559 arg2 = wxString_in_helper(obj1);
7560 if (arg2 == NULL) SWIG_fail;
b411df4a 7561 temp2 = true;
d55e5bfc
RD
7562 }
7563 {
7564 PyThreadState* __tstate = wxPyBeginAllowThreads();
7565 (arg1)->SetConfigPath((wxString const &)*arg2);
7566
7567 wxPyEndAllowThreads(__tstate);
7568 if (PyErr_Occurred()) SWIG_fail;
7569 }
7570 Py_INCREF(Py_None); resultobj = Py_None;
7571 {
7572 if (temp2)
7573 delete arg2;
7574 }
7575 return resultobj;
7576 fail:
7577 {
7578 if (temp2)
7579 delete arg2;
7580 }
7581 return NULL;
7582}
7583
7584
c370783e 7585static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7586 PyObject *resultobj;
7587 wxString result;
7588 char *kwnames[] = {
7589 NULL
7590 };
7591
7592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7593 {
7594 PyThreadState* __tstate = wxPyBeginAllowThreads();
7595 result = wxFontMapper::GetDefaultConfigPath();
7596
7597 wxPyEndAllowThreads(__tstate);
7598 if (PyErr_Occurred()) SWIG_fail;
7599 }
7600 {
7601#if wxUSE_UNICODE
7602 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7603#else
7604 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7605#endif
7606 }
7607 return resultobj;
7608 fail:
7609 return NULL;
7610}
7611
7612
c370783e 7613static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7614 PyObject *resultobj;
7615 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7616 int arg2 ;
7617 wxString const &arg3_defvalue = wxPyEmptyString ;
7618 wxString *arg3 = (wxString *) &arg3_defvalue ;
b411df4a 7619 bool arg4 = (bool) true ;
d55e5bfc 7620 PyObject *result;
b411df4a 7621 bool temp3 = false ;
d55e5bfc
RD
7622 PyObject * obj0 = 0 ;
7623 PyObject * obj1 = 0 ;
7624 PyObject * obj2 = 0 ;
7625 PyObject * obj3 = 0 ;
7626 char *kwnames[] = {
7627 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7628 };
7629
7630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 7633 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7634 if (PyErr_Occurred()) SWIG_fail;
7635 if (obj2) {
7636 {
7637 arg3 = wxString_in_helper(obj2);
7638 if (arg3 == NULL) SWIG_fail;
b411df4a 7639 temp3 = true;
d55e5bfc
RD
7640 }
7641 }
7642 if (obj3) {
c370783e 7643 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
7644 if (PyErr_Occurred()) SWIG_fail;
7645 }
7646 {
7647 PyThreadState* __tstate = wxPyBeginAllowThreads();
7648 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7649
7650 wxPyEndAllowThreads(__tstate);
7651 if (PyErr_Occurred()) SWIG_fail;
7652 }
7653 resultobj = result;
7654 {
7655 if (temp3)
7656 delete arg3;
7657 }
7658 return resultobj;
7659 fail:
7660 {
7661 if (temp3)
7662 delete arg3;
7663 }
7664 return NULL;
7665}
7666
7667
c370783e 7668static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7669 PyObject *resultobj;
7670 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7671 int arg2 ;
7672 wxString const &arg3_defvalue = wxPyEmptyString ;
7673 wxString *arg3 = (wxString *) &arg3_defvalue ;
7674 bool result;
b411df4a 7675 bool temp3 = false ;
d55e5bfc
RD
7676 PyObject * obj0 = 0 ;
7677 PyObject * obj1 = 0 ;
7678 PyObject * obj2 = 0 ;
7679 char *kwnames[] = {
7680 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7681 };
7682
7683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 7686 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7687 if (PyErr_Occurred()) SWIG_fail;
7688 if (obj2) {
7689 {
7690 arg3 = wxString_in_helper(obj2);
7691 if (arg3 == NULL) SWIG_fail;
b411df4a 7692 temp3 = true;
d55e5bfc
RD
7693 }
7694 }
7695 {
7696 PyThreadState* __tstate = wxPyBeginAllowThreads();
7697 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7698
7699 wxPyEndAllowThreads(__tstate);
7700 if (PyErr_Occurred()) SWIG_fail;
7701 }
7702 {
7703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7704 }
7705 {
7706 if (temp3)
7707 delete arg3;
7708 }
7709 return resultobj;
7710 fail:
7711 {
7712 if (temp3)
7713 delete arg3;
7714 }
7715 return NULL;
7716}
7717
7718
c370783e 7719static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7720 PyObject *resultobj;
7721 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7722 wxWindow *arg2 = (wxWindow *) 0 ;
7723 PyObject * obj0 = 0 ;
7724 PyObject * obj1 = 0 ;
7725 char *kwnames[] = {
7726 (char *) "self",(char *) "parent", NULL
7727 };
7728
7729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7732 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7734 {
7735 PyThreadState* __tstate = wxPyBeginAllowThreads();
7736 (arg1)->SetDialogParent(arg2);
7737
7738 wxPyEndAllowThreads(__tstate);
7739 if (PyErr_Occurred()) SWIG_fail;
7740 }
7741 Py_INCREF(Py_None); resultobj = Py_None;
7742 return resultobj;
7743 fail:
7744 return NULL;
7745}
7746
7747
c370783e 7748static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7749 PyObject *resultobj;
7750 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7751 wxString *arg2 = 0 ;
b411df4a 7752 bool temp2 = false ;
d55e5bfc
RD
7753 PyObject * obj0 = 0 ;
7754 PyObject * obj1 = 0 ;
7755 char *kwnames[] = {
7756 (char *) "self",(char *) "title", NULL
7757 };
7758
7759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7762 {
7763 arg2 = wxString_in_helper(obj1);
7764 if (arg2 == NULL) SWIG_fail;
b411df4a 7765 temp2 = true;
d55e5bfc
RD
7766 }
7767 {
7768 PyThreadState* __tstate = wxPyBeginAllowThreads();
7769 (arg1)->SetDialogTitle((wxString const &)*arg2);
7770
7771 wxPyEndAllowThreads(__tstate);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 Py_INCREF(Py_None); resultobj = Py_None;
7775 {
7776 if (temp2)
7777 delete arg2;
7778 }
7779 return resultobj;
7780 fail:
7781 {
7782 if (temp2)
7783 delete arg2;
7784 }
7785 return NULL;
7786}
7787
7788
c370783e 7789static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7790 PyObject *obj;
7791 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7792 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7793 Py_INCREF(obj);
7794 return Py_BuildValue((char *)"");
7795}
c370783e 7796static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7797 PyObject *resultobj;
7798 int arg1 ;
7799 int arg2 ;
7800 int arg3 ;
7801 int arg4 ;
b411df4a 7802 bool arg5 = (bool) false ;
d55e5bfc
RD
7803 wxString const &arg6_defvalue = wxPyEmptyString ;
7804 wxString *arg6 = (wxString *) &arg6_defvalue ;
7805 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7806 wxFont *result;
b411df4a 7807 bool temp6 = false ;
d55e5bfc
RD
7808 PyObject * obj0 = 0 ;
7809 PyObject * obj1 = 0 ;
7810 PyObject * obj2 = 0 ;
7811 PyObject * obj3 = 0 ;
7812 PyObject * obj4 = 0 ;
7813 PyObject * obj5 = 0 ;
7814 PyObject * obj6 = 0 ;
7815 char *kwnames[] = {
7816 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7817 };
7818
7819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
c370783e 7820 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 7821 if (PyErr_Occurred()) SWIG_fail;
c370783e 7822 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 7823 if (PyErr_Occurred()) SWIG_fail;
c370783e 7824 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 7825 if (PyErr_Occurred()) SWIG_fail;
c370783e 7826 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
7827 if (PyErr_Occurred()) SWIG_fail;
7828 if (obj4) {
c370783e 7829 arg5 = (bool)SWIG_As_bool(obj4);
d55e5bfc
RD
7830 if (PyErr_Occurred()) SWIG_fail;
7831 }
7832 if (obj5) {
7833 {
7834 arg6 = wxString_in_helper(obj5);
7835 if (arg6 == NULL) SWIG_fail;
b411df4a 7836 temp6 = true;
d55e5bfc
RD
7837 }
7838 }
7839 if (obj6) {
c370783e 7840 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc
RD
7841 if (PyErr_Occurred()) SWIG_fail;
7842 }
7843 {
0439c23b 7844 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7845 PyThreadState* __tstate = wxPyBeginAllowThreads();
7846 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7847
7848 wxPyEndAllowThreads(__tstate);
110da5b0 7849 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7850 }
7851 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7852 {
7853 if (temp6)
7854 delete arg6;
7855 }
7856 return resultobj;
7857 fail:
7858 {
7859 if (temp6)
7860 delete arg6;
7861 }
7862 return NULL;
7863}
7864
7865
c370783e 7866static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7867 PyObject *resultobj;
7868 wxFont *arg1 = (wxFont *) 0 ;
7869 PyObject * obj0 = 0 ;
7870 char *kwnames[] = {
7871 (char *) "self", NULL
7872 };
7873
7874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7877 {
7878 PyThreadState* __tstate = wxPyBeginAllowThreads();
7879 delete arg1;
7880
7881 wxPyEndAllowThreads(__tstate);
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
7884 Py_INCREF(Py_None); resultobj = Py_None;
7885 return resultobj;
7886 fail:
7887 return NULL;
7888}
7889
7890
c370783e 7891static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7892 PyObject *resultobj;
7893 wxNativeFontInfo *arg1 = 0 ;
7894 wxFont *result;
7895 PyObject * obj0 = 0 ;
7896 char *kwnames[] = {
7897 (char *) "info", NULL
7898 };
7899
7900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7902 SWIG_POINTER_EXCEPTION | 0)) == -1)
7903 SWIG_fail;
7904 if (arg1 == NULL) {
7905 PyErr_SetString(PyExc_TypeError,"null reference");
7906 SWIG_fail;
7907 }
7908 {
0439c23b 7909 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7910 PyThreadState* __tstate = wxPyBeginAllowThreads();
7911 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7912
7913 wxPyEndAllowThreads(__tstate);
110da5b0 7914 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7915 }
7916 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7917 return resultobj;
7918 fail:
7919 return NULL;
7920}
7921
7922
c370783e 7923static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7924 PyObject *resultobj;
7925 wxString *arg1 = 0 ;
7926 wxFont *result;
b411df4a 7927 bool temp1 = false ;
d55e5bfc
RD
7928 PyObject * obj0 = 0 ;
7929 char *kwnames[] = {
7930 (char *) "info", NULL
7931 };
7932
7933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7934 {
7935 arg1 = wxString_in_helper(obj0);
7936 if (arg1 == NULL) SWIG_fail;
b411df4a 7937 temp1 = true;
d55e5bfc
RD
7938 }
7939 {
0439c23b 7940 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7941 PyThreadState* __tstate = wxPyBeginAllowThreads();
7942 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7943
7944 wxPyEndAllowThreads(__tstate);
110da5b0 7945 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7946 }
7947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7948 {
7949 if (temp1)
7950 delete arg1;
7951 }
7952 return resultobj;
7953 fail:
7954 {
7955 if (temp1)
7956 delete arg1;
7957 }
7958 return NULL;
7959}
7960
7961
c370783e 7962static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7963 PyObject *resultobj;
7964 int arg1 ;
7965 int arg2 ;
7966 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7967 wxString const &arg4_defvalue = wxPyEmptyString ;
7968 wxString *arg4 = (wxString *) &arg4_defvalue ;
7969 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7970 wxFont *result;
b411df4a 7971 bool temp4 = false ;
d55e5bfc
RD
7972 PyObject * obj0 = 0 ;
7973 PyObject * obj1 = 0 ;
7974 PyObject * obj2 = 0 ;
7975 PyObject * obj3 = 0 ;
7976 PyObject * obj4 = 0 ;
7977 char *kwnames[] = {
7978 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7979 };
7980
7981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
c370783e 7982 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 7983 if (PyErr_Occurred()) SWIG_fail;
c370783e 7984 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7985 if (PyErr_Occurred()) SWIG_fail;
7986 if (obj2) {
c370783e 7987 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
7988 if (PyErr_Occurred()) SWIG_fail;
7989 }
7990 if (obj3) {
7991 {
7992 arg4 = wxString_in_helper(obj3);
7993 if (arg4 == NULL) SWIG_fail;
b411df4a 7994 temp4 = true;
d55e5bfc
RD
7995 }
7996 }
7997 if (obj4) {
c370783e 7998 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
7999 if (PyErr_Occurred()) SWIG_fail;
8000 }
8001 {
0439c23b 8002 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8003 PyThreadState* __tstate = wxPyBeginAllowThreads();
8004 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8005
8006 wxPyEndAllowThreads(__tstate);
110da5b0 8007 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8008 }
8009 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8010 {
8011 if (temp4)
8012 delete arg4;
8013 }
8014 return resultobj;
8015 fail:
8016 {
8017 if (temp4)
8018 delete arg4;
8019 }
8020 return NULL;
8021}
8022
8023
5e483524
RD
8024static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8025 PyObject *resultobj;
8026 wxSize *arg1 = 0 ;
8027 int arg2 ;
8028 int arg3 ;
8029 int arg4 ;
8030 bool arg5 = (bool) false ;
8031 wxString const &arg6_defvalue = wxEmptyString ;
8032 wxString *arg6 = (wxString *) &arg6_defvalue ;
8033 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8034 wxFont *result;
8035 wxSize temp1 ;
8036 bool temp6 = false ;
8037 PyObject * obj0 = 0 ;
8038 PyObject * obj1 = 0 ;
8039 PyObject * obj2 = 0 ;
8040 PyObject * obj3 = 0 ;
8041 PyObject * obj4 = 0 ;
8042 PyObject * obj5 = 0 ;
8043 PyObject * obj6 = 0 ;
8044 char *kwnames[] = {
8045 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
8046 };
8047
8048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8049 {
8050 arg1 = &temp1;
8051 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
8052 }
8053 arg2 = (int)SWIG_As_int(obj1);
8054 if (PyErr_Occurred()) SWIG_fail;
8055 arg3 = (int)SWIG_As_int(obj2);
8056 if (PyErr_Occurred()) SWIG_fail;
8057 arg4 = (int)SWIG_As_int(obj3);
8058 if (PyErr_Occurred()) SWIG_fail;
8059 if (obj4) {
8060 arg5 = (bool)SWIG_As_bool(obj4);
8061 if (PyErr_Occurred()) SWIG_fail;
8062 }
8063 if (obj5) {
8064 {
8065 arg6 = wxString_in_helper(obj5);
8066 if (arg6 == NULL) SWIG_fail;
8067 temp6 = true;
8068 }
8069 }
8070 if (obj6) {
8071 arg7 = (int)SWIG_As_int(obj6);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 {
8075 if (!wxPyCheckForApp()) SWIG_fail;
8076 PyThreadState* __tstate = wxPyBeginAllowThreads();
8077 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8078
8079 wxPyEndAllowThreads(__tstate);
8080 if (PyErr_Occurred()) SWIG_fail;
8081 }
8082 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8083 {
8084 if (temp6)
8085 delete arg6;
8086 }
8087 return resultobj;
8088 fail:
8089 {
8090 if (temp6)
8091 delete arg6;
8092 }
8093 return NULL;
8094}
8095
8096
c370783e 8097static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8098 PyObject *resultobj;
8099 wxFont *arg1 = (wxFont *) 0 ;
8100 bool result;
8101 PyObject * obj0 = 0 ;
8102 char *kwnames[] = {
8103 (char *) "self", NULL
8104 };
8105
8106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8109 {
8110 PyThreadState* __tstate = wxPyBeginAllowThreads();
8111 result = (bool)((wxFont const *)arg1)->Ok();
8112
8113 wxPyEndAllowThreads(__tstate);
8114 if (PyErr_Occurred()) SWIG_fail;
8115 }
8116 {
8117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8118 }
8119 return resultobj;
8120 fail:
8121 return NULL;
8122}
8123
8124
c370783e 8125static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8126 PyObject *resultobj;
8127 wxFont *arg1 = (wxFont *) 0 ;
8128 wxFont *arg2 = (wxFont *) 0 ;
8129 bool result;
8130 PyObject * obj0 = 0 ;
8131 PyObject * obj1 = 0 ;
8132 char *kwnames[] = {
8133 (char *) "self",(char *) "other", NULL
8134 };
8135
8136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8139 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8141 {
8142 PyThreadState* __tstate = wxPyBeginAllowThreads();
8143 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8144
8145 wxPyEndAllowThreads(__tstate);
8146 if (PyErr_Occurred()) SWIG_fail;
8147 }
8148 {
8149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8150 }
8151 return resultobj;
8152 fail:
8153 return NULL;
8154}
8155
8156
c370783e 8157static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8158 PyObject *resultobj;
8159 wxFont *arg1 = (wxFont *) 0 ;
8160 wxFont *arg2 = (wxFont *) 0 ;
8161 bool result;
8162 PyObject * obj0 = 0 ;
8163 PyObject * obj1 = 0 ;
8164 char *kwnames[] = {
8165 (char *) "self",(char *) "other", NULL
8166 };
8167
8168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8171 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8173 {
8174 PyThreadState* __tstate = wxPyBeginAllowThreads();
8175 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8176
8177 wxPyEndAllowThreads(__tstate);
8178 if (PyErr_Occurred()) SWIG_fail;
8179 }
8180 {
8181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8182 }
8183 return resultobj;
8184 fail:
8185 return NULL;
8186}
8187
8188
c370783e 8189static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8190 PyObject *resultobj;
8191 wxFont *arg1 = (wxFont *) 0 ;
8192 int result;
8193 PyObject * obj0 = 0 ;
8194 char *kwnames[] = {
8195 (char *) "self", NULL
8196 };
8197
8198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8201 {
8202 PyThreadState* __tstate = wxPyBeginAllowThreads();
8203 result = (int)((wxFont const *)arg1)->GetPointSize();
8204
8205 wxPyEndAllowThreads(__tstate);
8206 if (PyErr_Occurred()) SWIG_fail;
8207 }
c370783e 8208 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8209 return resultobj;
8210 fail:
8211 return NULL;
8212}
8213
8214
5e483524
RD
8215static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8216 PyObject *resultobj;
8217 wxFont *arg1 = (wxFont *) 0 ;
8218 wxSize result;
8219 PyObject * obj0 = 0 ;
8220 char *kwnames[] = {
8221 (char *) "self", NULL
8222 };
8223
8224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail;
8225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8227 {
8228 PyThreadState* __tstate = wxPyBeginAllowThreads();
8229 result = ((wxFont const *)arg1)->GetPixelSize();
8230
8231 wxPyEndAllowThreads(__tstate);
8232 if (PyErr_Occurred()) SWIG_fail;
8233 }
8234 {
8235 wxSize * resultptr;
8236 resultptr = new wxSize((wxSize &) result);
8237 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
8238 }
8239 return resultobj;
8240 fail:
8241 return NULL;
8242}
8243
8244
8245static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) {
8246 PyObject *resultobj;
8247 wxFont *arg1 = (wxFont *) 0 ;
8248 bool result;
8249 PyObject * obj0 = 0 ;
8250 char *kwnames[] = {
8251 (char *) "self", NULL
8252 };
8253
8254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",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 = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
8260
8261 wxPyEndAllowThreads(__tstate);
8262 if (PyErr_Occurred()) SWIG_fail;
8263 }
8264 {
8265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8266 }
8267 return resultobj;
8268 fail:
8269 return NULL;
8270}
8271
8272
c370783e 8273static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8274 PyObject *resultobj;
8275 wxFont *arg1 = (wxFont *) 0 ;
8276 int result;
8277 PyObject * obj0 = 0 ;
8278 char *kwnames[] = {
8279 (char *) "self", NULL
8280 };
8281
8282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8285 {
8286 PyThreadState* __tstate = wxPyBeginAllowThreads();
8287 result = (int)((wxFont const *)arg1)->GetFamily();
8288
8289 wxPyEndAllowThreads(__tstate);
8290 if (PyErr_Occurred()) SWIG_fail;
8291 }
c370783e 8292 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8293 return resultobj;
8294 fail:
8295 return NULL;
8296}
8297
8298
c370783e 8299static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8300 PyObject *resultobj;
8301 wxFont *arg1 = (wxFont *) 0 ;
8302 int result;
8303 PyObject * obj0 = 0 ;
8304 char *kwnames[] = {
8305 (char *) "self", NULL
8306 };
8307
8308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8311 {
8312 PyThreadState* __tstate = wxPyBeginAllowThreads();
8313 result = (int)((wxFont const *)arg1)->GetStyle();
8314
8315 wxPyEndAllowThreads(__tstate);
8316 if (PyErr_Occurred()) SWIG_fail;
8317 }
c370783e 8318 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8319 return resultobj;
8320 fail:
8321 return NULL;
8322}
8323
8324
c370783e 8325static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8326 PyObject *resultobj;
8327 wxFont *arg1 = (wxFont *) 0 ;
8328 int result;
8329 PyObject * obj0 = 0 ;
8330 char *kwnames[] = {
8331 (char *) "self", NULL
8332 };
8333
8334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8337 {
8338 PyThreadState* __tstate = wxPyBeginAllowThreads();
8339 result = (int)((wxFont const *)arg1)->GetWeight();
8340
8341 wxPyEndAllowThreads(__tstate);
8342 if (PyErr_Occurred()) SWIG_fail;
8343 }
c370783e 8344 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8345 return resultobj;
8346 fail:
8347 return NULL;
8348}
8349
8350
c370783e 8351static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8352 PyObject *resultobj;
8353 wxFont *arg1 = (wxFont *) 0 ;
8354 bool result;
8355 PyObject * obj0 = 0 ;
8356 char *kwnames[] = {
8357 (char *) "self", NULL
8358 };
8359
8360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",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 = (bool)((wxFont const *)arg1)->GetUnderlined();
8366
8367 wxPyEndAllowThreads(__tstate);
8368 if (PyErr_Occurred()) SWIG_fail;
8369 }
8370 {
8371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8372 }
8373 return resultobj;
8374 fail:
8375 return NULL;
8376}
8377
8378
c370783e 8379static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8380 PyObject *resultobj;
8381 wxFont *arg1 = (wxFont *) 0 ;
8382 wxString result;
8383 PyObject * obj0 = 0 ;
8384 char *kwnames[] = {
8385 (char *) "self", NULL
8386 };
8387
8388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8391 {
8392 PyThreadState* __tstate = wxPyBeginAllowThreads();
8393 result = ((wxFont const *)arg1)->GetFaceName();
8394
8395 wxPyEndAllowThreads(__tstate);
8396 if (PyErr_Occurred()) SWIG_fail;
8397 }
8398 {
8399#if wxUSE_UNICODE
8400 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8401#else
8402 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8403#endif
8404 }
8405 return resultobj;
8406 fail:
8407 return NULL;
8408}
8409
8410
c370783e 8411static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8412 PyObject *resultobj;
8413 wxFont *arg1 = (wxFont *) 0 ;
8414 int result;
8415 PyObject * obj0 = 0 ;
8416 char *kwnames[] = {
8417 (char *) "self", NULL
8418 };
8419
8420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8423 {
8424 PyThreadState* __tstate = wxPyBeginAllowThreads();
8425 result = (int)((wxFont const *)arg1)->GetEncoding();
8426
8427 wxPyEndAllowThreads(__tstate);
8428 if (PyErr_Occurred()) SWIG_fail;
8429 }
c370783e 8430 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
8431 return resultobj;
8432 fail:
8433 return NULL;
8434}
8435
8436
c370783e 8437static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8438 PyObject *resultobj;
8439 wxFont *arg1 = (wxFont *) 0 ;
8440 wxNativeFontInfo *result;
8441 PyObject * obj0 = 0 ;
8442 char *kwnames[] = {
8443 (char *) "self", NULL
8444 };
8445
8446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8449 {
8450 PyThreadState* __tstate = wxPyBeginAllowThreads();
8451 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8452
8453 wxPyEndAllowThreads(__tstate);
8454 if (PyErr_Occurred()) SWIG_fail;
8455 }
8456 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8457 return resultobj;
8458 fail:
8459 return NULL;
8460}
8461
8462
c370783e 8463static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8464 PyObject *resultobj;
8465 wxFont *arg1 = (wxFont *) 0 ;
8466 bool result;
8467 PyObject * obj0 = 0 ;
8468 char *kwnames[] = {
8469 (char *) "self", NULL
8470 };
8471
8472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",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 = (bool)((wxFont const *)arg1)->IsFixedWidth();
8478
8479 wxPyEndAllowThreads(__tstate);
8480 if (PyErr_Occurred()) SWIG_fail;
8481 }
8482 {
8483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8484 }
8485 return resultobj;
8486 fail:
8487 return NULL;
8488}
8489
8490
c370783e 8491static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8492 PyObject *resultobj;
8493 wxFont *arg1 = (wxFont *) 0 ;
8494 wxString result;
8495 PyObject * obj0 = 0 ;
8496 char *kwnames[] = {
8497 (char *) "self", NULL
8498 };
8499
8500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8503 {
8504 PyThreadState* __tstate = wxPyBeginAllowThreads();
8505 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8506
8507 wxPyEndAllowThreads(__tstate);
8508 if (PyErr_Occurred()) SWIG_fail;
8509 }
8510 {
8511#if wxUSE_UNICODE
8512 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8513#else
8514 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8515#endif
8516 }
8517 return resultobj;
8518 fail:
8519 return NULL;
8520}
8521
8522
c370783e 8523static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8524 PyObject *resultobj;
8525 wxFont *arg1 = (wxFont *) 0 ;
8526 wxString result;
8527 PyObject * obj0 = 0 ;
8528 char *kwnames[] = {
8529 (char *) "self", NULL
8530 };
8531
8532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8535 {
8536 PyThreadState* __tstate = wxPyBeginAllowThreads();
8537 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8538
8539 wxPyEndAllowThreads(__tstate);
8540 if (PyErr_Occurred()) SWIG_fail;
8541 }
8542 {
8543#if wxUSE_UNICODE
8544 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8545#else
8546 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8547#endif
8548 }
8549 return resultobj;
8550 fail:
8551 return NULL;
8552}
8553
8554
c370783e 8555static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8556 PyObject *resultobj;
8557 wxFont *arg1 = (wxFont *) 0 ;
8558 int arg2 ;
8559 PyObject * obj0 = 0 ;
8560 PyObject * obj1 = 0 ;
8561 char *kwnames[] = {
8562 (char *) "self",(char *) "pointSize", NULL
8563 };
8564
8565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 8568 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8569 if (PyErr_Occurred()) SWIG_fail;
8570 {
8571 PyThreadState* __tstate = wxPyBeginAllowThreads();
8572 (arg1)->SetPointSize(arg2);
8573
8574 wxPyEndAllowThreads(__tstate);
8575 if (PyErr_Occurred()) SWIG_fail;
8576 }
8577 Py_INCREF(Py_None); resultobj = Py_None;
8578 return resultobj;
8579 fail:
8580 return NULL;
8581}
8582
8583
5e483524
RD
8584static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8585 PyObject *resultobj;
8586 wxFont *arg1 = (wxFont *) 0 ;
8587 wxSize *arg2 = 0 ;
8588 wxSize temp2 ;
8589 PyObject * obj0 = 0 ;
8590 PyObject * obj1 = 0 ;
8591 char *kwnames[] = {
8592 (char *) "self",(char *) "pixelSize", NULL
8593 };
8594
8595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
8596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8598 {
8599 arg2 = &temp2;
8600 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8601 }
8602 {
8603 PyThreadState* __tstate = wxPyBeginAllowThreads();
8604 (arg1)->SetPixelSize((wxSize const &)*arg2);
8605
8606 wxPyEndAllowThreads(__tstate);
8607 if (PyErr_Occurred()) SWIG_fail;
8608 }
8609 Py_INCREF(Py_None); resultobj = Py_None;
8610 return resultobj;
8611 fail:
8612 return NULL;
8613}
8614
8615
c370783e 8616static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8617 PyObject *resultobj;
8618 wxFont *arg1 = (wxFont *) 0 ;
8619 int arg2 ;
8620 PyObject * obj0 = 0 ;
8621 PyObject * obj1 = 0 ;
8622 char *kwnames[] = {
8623 (char *) "self",(char *) "family", NULL
8624 };
8625
8626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 8629 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8630 if (PyErr_Occurred()) SWIG_fail;
8631 {
8632 PyThreadState* __tstate = wxPyBeginAllowThreads();
8633 (arg1)->SetFamily(arg2);
8634
8635 wxPyEndAllowThreads(__tstate);
8636 if (PyErr_Occurred()) SWIG_fail;
8637 }
8638 Py_INCREF(Py_None); resultobj = Py_None;
8639 return resultobj;
8640 fail:
8641 return NULL;
8642}
8643
8644
c370783e 8645static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8646 PyObject *resultobj;
8647 wxFont *arg1 = (wxFont *) 0 ;
8648 int arg2 ;
8649 PyObject * obj0 = 0 ;
8650 PyObject * obj1 = 0 ;
8651 char *kwnames[] = {
8652 (char *) "self",(char *) "style", NULL
8653 };
8654
8655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 8658 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8659 if (PyErr_Occurred()) SWIG_fail;
8660 {
8661 PyThreadState* __tstate = wxPyBeginAllowThreads();
8662 (arg1)->SetStyle(arg2);
8663
8664 wxPyEndAllowThreads(__tstate);
8665 if (PyErr_Occurred()) SWIG_fail;
8666 }
8667 Py_INCREF(Py_None); resultobj = Py_None;
8668 return resultobj;
8669 fail:
8670 return NULL;
8671}
8672
8673
c370783e 8674static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8675 PyObject *resultobj;
8676 wxFont *arg1 = (wxFont *) 0 ;
8677 int arg2 ;
8678 PyObject * obj0 = 0 ;
8679 PyObject * obj1 = 0 ;
8680 char *kwnames[] = {
8681 (char *) "self",(char *) "weight", NULL
8682 };
8683
8684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 8687 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8688 if (PyErr_Occurred()) SWIG_fail;
8689 {
8690 PyThreadState* __tstate = wxPyBeginAllowThreads();
8691 (arg1)->SetWeight(arg2);
8692
8693 wxPyEndAllowThreads(__tstate);
8694 if (PyErr_Occurred()) SWIG_fail;
8695 }
8696 Py_INCREF(Py_None); resultobj = Py_None;
8697 return resultobj;
8698 fail:
8699 return NULL;
8700}
8701
8702
c370783e 8703static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8704 PyObject *resultobj;
8705 wxFont *arg1 = (wxFont *) 0 ;
8706 wxString *arg2 = 0 ;
b411df4a 8707 bool temp2 = false ;
d55e5bfc
RD
8708 PyObject * obj0 = 0 ;
8709 PyObject * obj1 = 0 ;
8710 char *kwnames[] = {
8711 (char *) "self",(char *) "faceName", NULL
8712 };
8713
8714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8717 {
8718 arg2 = wxString_in_helper(obj1);
8719 if (arg2 == NULL) SWIG_fail;
b411df4a 8720 temp2 = true;
d55e5bfc
RD
8721 }
8722 {
8723 PyThreadState* __tstate = wxPyBeginAllowThreads();
8724 (arg1)->SetFaceName((wxString const &)*arg2);
8725
8726 wxPyEndAllowThreads(__tstate);
8727 if (PyErr_Occurred()) SWIG_fail;
8728 }
8729 Py_INCREF(Py_None); resultobj = Py_None;
8730 {
8731 if (temp2)
8732 delete arg2;
8733 }
8734 return resultobj;
8735 fail:
8736 {
8737 if (temp2)
8738 delete arg2;
8739 }
8740 return NULL;
8741}
8742
8743
c370783e 8744static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8745 PyObject *resultobj;
8746 wxFont *arg1 = (wxFont *) 0 ;
8747 bool arg2 ;
8748 PyObject * obj0 = 0 ;
8749 PyObject * obj1 = 0 ;
8750 char *kwnames[] = {
8751 (char *) "self",(char *) "underlined", NULL
8752 };
8753
8754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 8757 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
8758 if (PyErr_Occurred()) SWIG_fail;
8759 {
8760 PyThreadState* __tstate = wxPyBeginAllowThreads();
8761 (arg1)->SetUnderlined(arg2);
8762
8763 wxPyEndAllowThreads(__tstate);
8764 if (PyErr_Occurred()) SWIG_fail;
8765 }
8766 Py_INCREF(Py_None); resultobj = Py_None;
8767 return resultobj;
8768 fail:
8769 return NULL;
8770}
8771
8772
c370783e 8773static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8774 PyObject *resultobj;
8775 wxFont *arg1 = (wxFont *) 0 ;
8776 int arg2 ;
8777 PyObject * obj0 = 0 ;
8778 PyObject * obj1 = 0 ;
8779 char *kwnames[] = {
8780 (char *) "self",(char *) "encoding", NULL
8781 };
8782
8783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 8786 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
8787 if (PyErr_Occurred()) SWIG_fail;
8788 {
8789 PyThreadState* __tstate = wxPyBeginAllowThreads();
8790 (arg1)->SetEncoding((wxFontEncoding )arg2);
8791
8792 wxPyEndAllowThreads(__tstate);
8793 if (PyErr_Occurred()) SWIG_fail;
8794 }
8795 Py_INCREF(Py_None); resultobj = Py_None;
8796 return resultobj;
8797 fail:
8798 return NULL;
8799}
8800
8801
c370783e 8802static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8803 PyObject *resultobj;
8804 wxFont *arg1 = (wxFont *) 0 ;
8805 wxNativeFontInfo *arg2 = 0 ;
8806 PyObject * obj0 = 0 ;
8807 PyObject * obj1 = 0 ;
8808 char *kwnames[] = {
8809 (char *) "self",(char *) "info", NULL
8810 };
8811
8812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8815 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8816 SWIG_POINTER_EXCEPTION | 0)) == -1)
8817 SWIG_fail;
8818 if (arg2 == NULL) {
8819 PyErr_SetString(PyExc_TypeError,"null reference");
8820 SWIG_fail;
8821 }
8822 {
8823 PyThreadState* __tstate = wxPyBeginAllowThreads();
8824 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8825
8826 wxPyEndAllowThreads(__tstate);
8827 if (PyErr_Occurred()) SWIG_fail;
8828 }
8829 Py_INCREF(Py_None); resultobj = Py_None;
8830 return resultobj;
8831 fail:
8832 return NULL;
8833}
8834
8835
c370783e 8836static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8837 PyObject *resultobj;
8838 wxFont *arg1 = (wxFont *) 0 ;
8839 wxString *arg2 = 0 ;
b411df4a 8840 bool temp2 = false ;
d55e5bfc
RD
8841 PyObject * obj0 = 0 ;
8842 PyObject * obj1 = 0 ;
8843 char *kwnames[] = {
8844 (char *) "self",(char *) "info", NULL
8845 };
8846
8847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8850 {
8851 arg2 = wxString_in_helper(obj1);
8852 if (arg2 == NULL) SWIG_fail;
b411df4a 8853 temp2 = true;
d55e5bfc
RD
8854 }
8855 {
8856 PyThreadState* __tstate = wxPyBeginAllowThreads();
8857 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8858
8859 wxPyEndAllowThreads(__tstate);
8860 if (PyErr_Occurred()) SWIG_fail;
8861 }
8862 Py_INCREF(Py_None); resultobj = Py_None;
8863 {
8864 if (temp2)
8865 delete arg2;
8866 }
8867 return resultobj;
8868 fail:
8869 {
8870 if (temp2)
8871 delete arg2;
8872 }
8873 return NULL;
8874}
8875
8876
c370783e 8877static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8878 PyObject *resultobj;
8879 wxFont *arg1 = (wxFont *) 0 ;
8880 wxString *arg2 = 0 ;
b411df4a 8881 bool temp2 = false ;
d55e5bfc
RD
8882 PyObject * obj0 = 0 ;
8883 PyObject * obj1 = 0 ;
8884 char *kwnames[] = {
8885 (char *) "self",(char *) "info", NULL
8886 };
8887
8888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8891 {
8892 arg2 = wxString_in_helper(obj1);
8893 if (arg2 == NULL) SWIG_fail;
b411df4a 8894 temp2 = true;
d55e5bfc
RD
8895 }
8896 {
8897 PyThreadState* __tstate = wxPyBeginAllowThreads();
8898 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8899
8900 wxPyEndAllowThreads(__tstate);
8901 if (PyErr_Occurred()) SWIG_fail;
8902 }
8903 Py_INCREF(Py_None); resultobj = Py_None;
8904 {
8905 if (temp2)
8906 delete arg2;
8907 }
8908 return resultobj;
8909 fail:
8910 {
8911 if (temp2)
8912 delete arg2;
8913 }
8914 return NULL;
8915}
8916
8917
c370783e 8918static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8919 PyObject *resultobj;
8920 wxFont *arg1 = (wxFont *) 0 ;
8921 wxString result;
8922 PyObject * obj0 = 0 ;
8923 char *kwnames[] = {
8924 (char *) "self", NULL
8925 };
8926
8927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8930 {
8931 PyThreadState* __tstate = wxPyBeginAllowThreads();
8932 result = ((wxFont const *)arg1)->GetFamilyString();
8933
8934 wxPyEndAllowThreads(__tstate);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 }
8937 {
8938#if wxUSE_UNICODE
8939 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8940#else
8941 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8942#endif
8943 }
8944 return resultobj;
8945 fail:
8946 return NULL;
8947}
8948
8949
c370783e 8950static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8951 PyObject *resultobj;
8952 wxFont *arg1 = (wxFont *) 0 ;
8953 wxString result;
8954 PyObject * obj0 = 0 ;
8955 char *kwnames[] = {
8956 (char *) "self", NULL
8957 };
8958
8959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8962 {
8963 PyThreadState* __tstate = wxPyBeginAllowThreads();
8964 result = ((wxFont const *)arg1)->GetStyleString();
8965
8966 wxPyEndAllowThreads(__tstate);
8967 if (PyErr_Occurred()) SWIG_fail;
8968 }
8969 {
8970#if wxUSE_UNICODE
8971 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8972#else
8973 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8974#endif
8975 }
8976 return resultobj;
8977 fail:
8978 return NULL;
8979}
8980
8981
c370783e 8982static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8983 PyObject *resultobj;
8984 wxFont *arg1 = (wxFont *) 0 ;
8985 wxString result;
8986 PyObject * obj0 = 0 ;
8987 char *kwnames[] = {
8988 (char *) "self", NULL
8989 };
8990
8991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8994 {
8995 PyThreadState* __tstate = wxPyBeginAllowThreads();
8996 result = ((wxFont const *)arg1)->GetWeightString();
8997
8998 wxPyEndAllowThreads(__tstate);
8999 if (PyErr_Occurred()) SWIG_fail;
9000 }
9001 {
9002#if wxUSE_UNICODE
9003 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9004#else
9005 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9006#endif
9007 }
9008 return resultobj;
9009 fail:
9010 return NULL;
9011}
9012
9013
c370783e 9014static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9015 PyObject *resultobj;
9016 wxFont *arg1 = (wxFont *) 0 ;
b411df4a 9017 bool arg2 = (bool) true ;
d55e5bfc
RD
9018 PyObject * obj0 = 0 ;
9019 PyObject * obj1 = 0 ;
9020 char *kwnames[] = {
9021 (char *) "self",(char *) "no", NULL
9022 };
9023
9024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
9025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9027 if (obj1) {
c370783e 9028 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
9029 if (PyErr_Occurred()) SWIG_fail;
9030 }
9031 {
9032 PyThreadState* __tstate = wxPyBeginAllowThreads();
9033 (arg1)->SetNoAntiAliasing(arg2);
9034
9035 wxPyEndAllowThreads(__tstate);
9036 if (PyErr_Occurred()) SWIG_fail;
9037 }
9038 Py_INCREF(Py_None); resultobj = Py_None;
9039 return resultobj;
9040 fail:
9041 return NULL;
9042}
9043
9044
c370783e 9045static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9046 PyObject *resultobj;
9047 wxFont *arg1 = (wxFont *) 0 ;
9048 bool result;
9049 PyObject * obj0 = 0 ;
9050 char *kwnames[] = {
9051 (char *) "self", NULL
9052 };
9053
9054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9057 {
9058 PyThreadState* __tstate = wxPyBeginAllowThreads();
92379a03 9059 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
d55e5bfc
RD
9060
9061 wxPyEndAllowThreads(__tstate);
9062 if (PyErr_Occurred()) SWIG_fail;
9063 }
9064 {
9065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9066 }
9067 return resultobj;
9068 fail:
9069 return NULL;
9070}
9071
9072
c370783e 9073static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9074 PyObject *resultobj;
9075 int result;
9076 char *kwnames[] = {
9077 NULL
9078 };
9079
9080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9081 {
0439c23b 9082 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9083 PyThreadState* __tstate = wxPyBeginAllowThreads();
9084 result = (int)wxFont::GetDefaultEncoding();
9085
9086 wxPyEndAllowThreads(__tstate);
110da5b0 9087 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 9088 }
c370783e 9089 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9090 return resultobj;
9091 fail:
9092 return NULL;
9093}
9094
9095
c370783e 9096static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9097 PyObject *resultobj;
9098 int arg1 ;
9099 PyObject * obj0 = 0 ;
9100 char *kwnames[] = {
9101 (char *) "encoding", NULL
9102 };
9103
9104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
c370783e 9105 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9106 if (PyErr_Occurred()) SWIG_fail;
9107 {
0439c23b 9108 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9109 PyThreadState* __tstate = wxPyBeginAllowThreads();
9110 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9111
9112 wxPyEndAllowThreads(__tstate);
110da5b0 9113 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
9114 }
9115 Py_INCREF(Py_None); resultobj = Py_None;
9116 return resultobj;
9117 fail:
9118 return NULL;
9119}
9120
9121
c370783e 9122static PyObject * Font_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9123 PyObject *obj;
9124 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9125 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9126 Py_INCREF(obj);
9127 return Py_BuildValue((char *)"");
9128}
c370783e 9129static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9130 PyObject *resultobj;
9131 wxPyFontEnumerator *result;
9132 char *kwnames[] = {
9133 NULL
9134 };
9135
9136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9137 {
0439c23b 9138 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9139 PyThreadState* __tstate = wxPyBeginAllowThreads();
9140 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9141
9142 wxPyEndAllowThreads(__tstate);
110da5b0 9143 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
9144 }
9145 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9146 return resultobj;
9147 fail:
9148 return NULL;
9149}
9150
9151
c370783e 9152static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9153 PyObject *resultobj;
9154 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9155 PyObject * obj0 = 0 ;
9156 char *kwnames[] = {
9157 (char *) "self", NULL
9158 };
9159
9160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9163 {
9164 PyThreadState* __tstate = wxPyBeginAllowThreads();
9165 delete arg1;
9166
9167 wxPyEndAllowThreads(__tstate);
9168 if (PyErr_Occurred()) SWIG_fail;
9169 }
9170 Py_INCREF(Py_None); resultobj = Py_None;
9171 return resultobj;
9172 fail:
9173 return NULL;
9174}
9175
9176
c370783e 9177static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9178 PyObject *resultobj;
9179 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9180 PyObject *arg2 = (PyObject *) 0 ;
9181 PyObject *arg3 = (PyObject *) 0 ;
9182 bool arg4 ;
9183 PyObject * obj0 = 0 ;
9184 PyObject * obj1 = 0 ;
9185 PyObject * obj2 = 0 ;
9186 PyObject * obj3 = 0 ;
9187 char *kwnames[] = {
9188 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9189 };
9190
9191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9194 arg2 = obj1;
9195 arg3 = obj2;
c370783e 9196 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
9197 if (PyErr_Occurred()) SWIG_fail;
9198 {
9199 PyThreadState* __tstate = wxPyBeginAllowThreads();
9200 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9201
9202 wxPyEndAllowThreads(__tstate);
9203 if (PyErr_Occurred()) SWIG_fail;
9204 }
9205 Py_INCREF(Py_None); resultobj = Py_None;
9206 return resultobj;
9207 fail:
9208 return NULL;
9209}
9210
9211
c370783e 9212static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9213 PyObject *resultobj;
9214 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9215 int arg2 = (int) wxFONTENCODING_SYSTEM ;
b411df4a 9216 bool arg3 = (bool) false ;
d55e5bfc
RD
9217 bool result;
9218 PyObject * obj0 = 0 ;
9219 PyObject * obj1 = 0 ;
9220 PyObject * obj2 = 0 ;
9221 char *kwnames[] = {
9222 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9223 };
9224
9225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9228 if (obj1) {
c370783e 9229 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9230 if (PyErr_Occurred()) SWIG_fail;
9231 }
9232 if (obj2) {
c370783e 9233 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
9234 if (PyErr_Occurred()) SWIG_fail;
9235 }
9236 {
9237 PyThreadState* __tstate = wxPyBeginAllowThreads();
9238 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9239
9240 wxPyEndAllowThreads(__tstate);
9241 if (PyErr_Occurred()) SWIG_fail;
9242 }
9243 {
9244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9245 }
9246 return resultobj;
9247 fail:
9248 return NULL;
9249}
9250
9251
c370783e 9252static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9253 PyObject *resultobj;
9254 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9255 wxString const &arg2_defvalue = wxPyEmptyString ;
9256 wxString *arg2 = (wxString *) &arg2_defvalue ;
9257 bool result;
b411df4a 9258 bool temp2 = false ;
d55e5bfc
RD
9259 PyObject * obj0 = 0 ;
9260 PyObject * obj1 = 0 ;
9261 char *kwnames[] = {
9262 (char *) "self",(char *) "facename", NULL
9263 };
9264
9265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9268 if (obj1) {
9269 {
9270 arg2 = wxString_in_helper(obj1);
9271 if (arg2 == NULL) SWIG_fail;
b411df4a 9272 temp2 = true;
d55e5bfc
RD
9273 }
9274 }
9275 {
9276 PyThreadState* __tstate = wxPyBeginAllowThreads();
9277 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9278
9279 wxPyEndAllowThreads(__tstate);
9280 if (PyErr_Occurred()) SWIG_fail;
9281 }
9282 {
9283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9284 }
9285 {
9286 if (temp2)
9287 delete arg2;
9288 }
9289 return resultobj;
9290 fail:
9291 {
9292 if (temp2)
9293 delete arg2;
9294 }
9295 return NULL;
9296}
9297
9298
c370783e 9299static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9300 PyObject *resultobj;
9301 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9302 PyObject *result;
9303 PyObject * obj0 = 0 ;
9304 char *kwnames[] = {
9305 (char *) "self", NULL
9306 };
9307
9308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9311 {
9312 PyThreadState* __tstate = wxPyBeginAllowThreads();
9313 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9314
9315 wxPyEndAllowThreads(__tstate);
9316 if (PyErr_Occurred()) SWIG_fail;
9317 }
9318 resultobj = result;
9319 return resultobj;
9320 fail:
9321 return NULL;
9322}
9323
9324
c370783e 9325static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9326 PyObject *resultobj;
9327 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9328 PyObject *result;
9329 PyObject * obj0 = 0 ;
9330 char *kwnames[] = {
9331 (char *) "self", NULL
9332 };
9333
9334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9337 {
9338 PyThreadState* __tstate = wxPyBeginAllowThreads();
9339 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9340
9341 wxPyEndAllowThreads(__tstate);
9342 if (PyErr_Occurred()) SWIG_fail;
9343 }
9344 resultobj = result;
9345 return resultobj;
9346 fail:
9347 return NULL;
9348}
9349
9350
c370783e 9351static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9352 PyObject *obj;
9353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9354 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9355 Py_INCREF(obj);
9356 return Py_BuildValue((char *)"");
9357}
c370783e 9358static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9359 PyObject *resultobj;
9360 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9361 int arg2 ;
9362 PyObject * obj0 = 0 ;
9363 PyObject * obj1 = 0 ;
9364 char *kwnames[] = {
9365 (char *) "self",(char *) "Language", NULL
9366 };
9367
9368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 9371 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9372 if (PyErr_Occurred()) SWIG_fail;
9373 if (arg1) (arg1)->Language = arg2;
9374
9375 Py_INCREF(Py_None); resultobj = Py_None;
9376 return resultobj;
9377 fail:
9378 return NULL;
9379}
9380
9381
c370783e 9382static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9383 PyObject *resultobj;
9384 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9385 int result;
9386 PyObject * obj0 = 0 ;
9387 char *kwnames[] = {
9388 (char *) "self", NULL
9389 };
9390
9391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9394 result = (int) ((arg1)->Language);
9395
c370783e 9396 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9397 return resultobj;
9398 fail:
9399 return NULL;
9400}
9401
9402
c370783e 9403static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9404 PyObject *resultobj;
9405 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9406 wxString *arg2 = (wxString *) 0 ;
b411df4a 9407 bool temp2 = false ;
d55e5bfc
RD
9408 PyObject * obj0 = 0 ;
9409 PyObject * obj1 = 0 ;
9410 char *kwnames[] = {
9411 (char *) "self",(char *) "CanonicalName", NULL
9412 };
9413
9414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9417 {
9418 arg2 = wxString_in_helper(obj1);
9419 if (arg2 == NULL) SWIG_fail;
b411df4a 9420 temp2 = true;
d55e5bfc
RD
9421 }
9422 if (arg1) (arg1)->CanonicalName = *arg2;
9423
9424 Py_INCREF(Py_None); resultobj = Py_None;
9425 {
9426 if (temp2)
9427 delete arg2;
9428 }
9429 return resultobj;
9430 fail:
9431 {
9432 if (temp2)
9433 delete arg2;
9434 }
9435 return NULL;
9436}
9437
9438
c370783e 9439static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9440 PyObject *resultobj;
9441 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9442 wxString *result;
9443 PyObject * obj0 = 0 ;
9444 char *kwnames[] = {
9445 (char *) "self", NULL
9446 };
9447
9448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9451 result = (wxString *)& ((arg1)->CanonicalName);
9452
9453 {
9454#if wxUSE_UNICODE
9455 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9456#else
9457 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9458#endif
9459 }
9460 return resultobj;
9461 fail:
9462 return NULL;
9463}
9464
9465
c370783e 9466static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9467 PyObject *resultobj;
9468 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9469 wxString *arg2 = (wxString *) 0 ;
b411df4a 9470 bool temp2 = false ;
d55e5bfc
RD
9471 PyObject * obj0 = 0 ;
9472 PyObject * obj1 = 0 ;
9473 char *kwnames[] = {
9474 (char *) "self",(char *) "Description", NULL
9475 };
9476
9477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9480 {
9481 arg2 = wxString_in_helper(obj1);
9482 if (arg2 == NULL) SWIG_fail;
b411df4a 9483 temp2 = true;
d55e5bfc
RD
9484 }
9485 if (arg1) (arg1)->Description = *arg2;
9486
9487 Py_INCREF(Py_None); resultobj = Py_None;
9488 {
9489 if (temp2)
9490 delete arg2;
9491 }
9492 return resultobj;
9493 fail:
9494 {
9495 if (temp2)
9496 delete arg2;
9497 }
9498 return NULL;
9499}
9500
9501
c370783e 9502static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9503 PyObject *resultobj;
9504 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9505 wxString *result;
9506 PyObject * obj0 = 0 ;
9507 char *kwnames[] = {
9508 (char *) "self", NULL
9509 };
9510
9511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9514 result = (wxString *)& ((arg1)->Description);
9515
9516 {
9517#if wxUSE_UNICODE
9518 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9519#else
9520 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9521#endif
9522 }
9523 return resultobj;
9524 fail:
9525 return NULL;
9526}
9527
9528
c370783e 9529static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9530 PyObject *obj;
9531 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9532 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9533 Py_INCREF(obj);
9534 return Py_BuildValue((char *)"");
9535}
c370783e 9536static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 9537 PyObject *resultobj;
15817c7e 9538 int arg1 = (int) -1 ;
d55e5bfc
RD
9539 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9540 wxLocale *result;
9541 PyObject * obj0 = 0 ;
9542 PyObject * obj1 = 0 ;
9543 char *kwnames[] = {
9544 (char *) "language",(char *) "flags", NULL
9545 };
9546
9547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9548 if (obj0) {
c370783e 9549 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9550 if (PyErr_Occurred()) SWIG_fail;
9551 }
9552 if (obj1) {
c370783e 9553 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9554 if (PyErr_Occurred()) SWIG_fail;
9555 }
9556 {
9557 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817c7e 9558 result = (wxLocale *)new_wxLocale(arg1,arg2);
d55e5bfc
RD
9559
9560 wxPyEndAllowThreads(__tstate);
9561 if (PyErr_Occurred()) SWIG_fail;
9562 }
9563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9564 return resultobj;
9565 fail:
9566 return NULL;
9567}
9568
9569
c370783e 9570static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9571 PyObject *resultobj;
9572 wxLocale *arg1 = (wxLocale *) 0 ;
9573 PyObject * obj0 = 0 ;
9574 char *kwnames[] = {
9575 (char *) "self", NULL
9576 };
9577
9578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9581 {
9582 PyThreadState* __tstate = wxPyBeginAllowThreads();
9583 delete arg1;
9584
9585 wxPyEndAllowThreads(__tstate);
9586 if (PyErr_Occurred()) SWIG_fail;
9587 }
9588 Py_INCREF(Py_None); resultobj = Py_None;
9589 return resultobj;
9590 fail:
9591 return NULL;
9592}
9593
9594
c370783e 9595static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9596 PyObject *resultobj;
9597 wxLocale *arg1 = (wxLocale *) 0 ;
9598 wxString *arg2 = 0 ;
9599 wxString const &arg3_defvalue = wxPyEmptyString ;
9600 wxString *arg3 = (wxString *) &arg3_defvalue ;
9601 wxString const &arg4_defvalue = wxPyEmptyString ;
9602 wxString *arg4 = (wxString *) &arg4_defvalue ;
b411df4a
RD
9603 bool arg5 = (bool) true ;
9604 bool arg6 = (bool) false ;
d55e5bfc 9605 bool result;
b411df4a
RD
9606 bool temp2 = false ;
9607 bool temp3 = false ;
9608 bool temp4 = false ;
d55e5bfc
RD
9609 PyObject * obj0 = 0 ;
9610 PyObject * obj1 = 0 ;
9611 PyObject * obj2 = 0 ;
9612 PyObject * obj3 = 0 ;
9613 PyObject * obj4 = 0 ;
9614 PyObject * obj5 = 0 ;
9615 char *kwnames[] = {
9616 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9617 };
9618
9619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9622 {
9623 arg2 = wxString_in_helper(obj1);
9624 if (arg2 == NULL) SWIG_fail;
b411df4a 9625 temp2 = true;
d55e5bfc
RD
9626 }
9627 if (obj2) {
9628 {
9629 arg3 = wxString_in_helper(obj2);
9630 if (arg3 == NULL) SWIG_fail;
b411df4a 9631 temp3 = true;
d55e5bfc
RD
9632 }
9633 }
9634 if (obj3) {
9635 {
9636 arg4 = wxString_in_helper(obj3);
9637 if (arg4 == NULL) SWIG_fail;
b411df4a 9638 temp4 = true;
d55e5bfc
RD
9639 }
9640 }
9641 if (obj4) {
c370783e 9642 arg5 = (bool)SWIG_As_bool(obj4);
d55e5bfc
RD
9643 if (PyErr_Occurred()) SWIG_fail;
9644 }
9645 if (obj5) {
c370783e 9646 arg6 = (bool)SWIG_As_bool(obj5);
d55e5bfc
RD
9647 if (PyErr_Occurred()) SWIG_fail;
9648 }
9649 {
9650 PyThreadState* __tstate = wxPyBeginAllowThreads();
070c48b4 9651 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
d55e5bfc
RD
9652
9653 wxPyEndAllowThreads(__tstate);
9654 if (PyErr_Occurred()) SWIG_fail;
9655 }
9656 {
9657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9658 }
9659 {
9660 if (temp2)
9661 delete arg2;
9662 }
9663 {
9664 if (temp3)
9665 delete arg3;
9666 }
9667 {
9668 if (temp4)
9669 delete arg4;
9670 }
9671 return resultobj;
9672 fail:
9673 {
9674 if (temp2)
9675 delete arg2;
9676 }
9677 {
9678 if (temp3)
9679 delete arg3;
9680 }
9681 {
9682 if (temp4)
9683 delete arg4;
9684 }
9685 return NULL;
9686}
9687
9688
c370783e 9689static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9690 PyObject *resultobj;
9691 wxLocale *arg1 = (wxLocale *) 0 ;
9692 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9693 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9694 bool result;
9695 PyObject * obj0 = 0 ;
9696 PyObject * obj1 = 0 ;
9697 PyObject * obj2 = 0 ;
9698 char *kwnames[] = {
9699 (char *) "self",(char *) "language",(char *) "flags", NULL
9700 };
9701
9702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9705 if (obj1) {
c370783e 9706 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9707 if (PyErr_Occurred()) SWIG_fail;
9708 }
9709 if (obj2) {
c370783e 9710 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9711 if (PyErr_Occurred()) SWIG_fail;
9712 }
9713 {
9714 PyThreadState* __tstate = wxPyBeginAllowThreads();
070c48b4 9715 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
d55e5bfc
RD
9716
9717 wxPyEndAllowThreads(__tstate);
9718 if (PyErr_Occurred()) SWIG_fail;
9719 }
9720 {
9721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9722 }
9723 return resultobj;
9724 fail:
9725 return NULL;
9726}
9727
9728
c370783e 9729static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9730 PyObject *resultobj;
9731 int result;
9732 char *kwnames[] = {
9733 NULL
9734 };
9735
9736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9737 {
9738 PyThreadState* __tstate = wxPyBeginAllowThreads();
9739 result = (int)wxLocale::GetSystemLanguage();
9740
9741 wxPyEndAllowThreads(__tstate);
9742 if (PyErr_Occurred()) SWIG_fail;
9743 }
c370783e 9744 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9745 return resultobj;
9746 fail:
9747 return NULL;
9748}
9749
9750
c370783e 9751static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9752 PyObject *resultobj;
9753 int result;
9754 char *kwnames[] = {
9755 NULL
9756 };
9757
9758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9759 {
9760 PyThreadState* __tstate = wxPyBeginAllowThreads();
9761 result = (int)wxLocale::GetSystemEncoding();
9762
9763 wxPyEndAllowThreads(__tstate);
9764 if (PyErr_Occurred()) SWIG_fail;
9765 }
c370783e 9766 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9767 return resultobj;
9768 fail:
9769 return NULL;
9770}
9771
9772
c370783e 9773static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9774 PyObject *resultobj;
9775 wxString result;
9776 char *kwnames[] = {
9777 NULL
9778 };
9779
9780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9781 {
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 result = wxLocale::GetSystemEncodingName();
9784
9785 wxPyEndAllowThreads(__tstate);
9786 if (PyErr_Occurred()) SWIG_fail;
9787 }
9788 {
9789#if wxUSE_UNICODE
9790 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9791#else
9792 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9793#endif
9794 }
9795 return resultobj;
9796 fail:
9797 return NULL;
9798}
9799
9800
c370783e 9801static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9802 PyObject *resultobj;
9803 wxLocale *arg1 = (wxLocale *) 0 ;
9804 bool result;
9805 PyObject * obj0 = 0 ;
9806 char *kwnames[] = {
9807 (char *) "self", NULL
9808 };
9809
9810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",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 = (bool)((wxLocale const *)arg1)->IsOk();
9816
9817 wxPyEndAllowThreads(__tstate);
9818 if (PyErr_Occurred()) SWIG_fail;
9819 }
9820 {
9821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9822 }
9823 return resultobj;
9824 fail:
9825 return NULL;
9826}
9827
9828
c370783e 9829static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9830 PyObject *resultobj;
9831 wxLocale *arg1 = (wxLocale *) 0 ;
9832 wxString result;
9833 PyObject * obj0 = 0 ;
9834 char *kwnames[] = {
9835 (char *) "self", NULL
9836 };
9837
9838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9841 {
9842 PyThreadState* __tstate = wxPyBeginAllowThreads();
9843 result = ((wxLocale const *)arg1)->GetLocale();
9844
9845 wxPyEndAllowThreads(__tstate);
9846 if (PyErr_Occurred()) SWIG_fail;
9847 }
9848 {
9849#if wxUSE_UNICODE
9850 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9851#else
9852 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9853#endif
9854 }
9855 return resultobj;
9856 fail:
9857 return NULL;
9858}
9859
9860
c370783e 9861static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9862 PyObject *resultobj;
9863 wxLocale *arg1 = (wxLocale *) 0 ;
9864 int result;
9865 PyObject * obj0 = 0 ;
9866 char *kwnames[] = {
9867 (char *) "self", NULL
9868 };
9869
9870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9873 {
9874 PyThreadState* __tstate = wxPyBeginAllowThreads();
9875 result = (int)((wxLocale const *)arg1)->GetLanguage();
9876
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) SWIG_fail;
9879 }
c370783e 9880 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9881 return resultobj;
9882 fail:
9883 return NULL;
9884}
9885
9886
c370783e 9887static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9888 PyObject *resultobj;
9889 wxLocale *arg1 = (wxLocale *) 0 ;
9890 wxString result;
9891 PyObject * obj0 = 0 ;
9892 char *kwnames[] = {
9893 (char *) "self", NULL
9894 };
9895
9896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9899 {
9900 PyThreadState* __tstate = wxPyBeginAllowThreads();
9901 result = ((wxLocale const *)arg1)->GetSysName();
9902
9903 wxPyEndAllowThreads(__tstate);
9904 if (PyErr_Occurred()) SWIG_fail;
9905 }
9906 {
9907#if wxUSE_UNICODE
9908 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9909#else
9910 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9911#endif
9912 }
9913 return resultobj;
9914 fail:
9915 return NULL;
9916}
9917
9918
c370783e 9919static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9920 PyObject *resultobj;
9921 wxLocale *arg1 = (wxLocale *) 0 ;
9922 wxString result;
9923 PyObject * obj0 = 0 ;
9924 char *kwnames[] = {
9925 (char *) "self", NULL
9926 };
9927
9928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9931 {
9932 PyThreadState* __tstate = wxPyBeginAllowThreads();
9933 result = ((wxLocale const *)arg1)->GetCanonicalName();
9934
9935 wxPyEndAllowThreads(__tstate);
9936 if (PyErr_Occurred()) SWIG_fail;
9937 }
9938 {
9939#if wxUSE_UNICODE
9940 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9941#else
9942 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9943#endif
9944 }
9945 return resultobj;
9946 fail:
9947 return NULL;
9948}
9949
9950
c370783e 9951static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9952 PyObject *resultobj;
9953 wxString *arg1 = 0 ;
b411df4a 9954 bool temp1 = false ;
d55e5bfc
RD
9955 PyObject * obj0 = 0 ;
9956 char *kwnames[] = {
9957 (char *) "prefix", NULL
9958 };
9959
9960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9961 {
9962 arg1 = wxString_in_helper(obj0);
9963 if (arg1 == NULL) SWIG_fail;
b411df4a 9964 temp1 = true;
d55e5bfc
RD
9965 }
9966 {
9967 PyThreadState* __tstate = wxPyBeginAllowThreads();
9968 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9969
9970 wxPyEndAllowThreads(__tstate);
9971 if (PyErr_Occurred()) SWIG_fail;
9972 }
9973 Py_INCREF(Py_None); resultobj = Py_None;
9974 {
9975 if (temp1)
9976 delete arg1;
9977 }
9978 return resultobj;
9979 fail:
9980 {
9981 if (temp1)
9982 delete arg1;
9983 }
9984 return NULL;
9985}
9986
9987
c370783e 9988static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9989 PyObject *resultobj;
9990 wxLocale *arg1 = (wxLocale *) 0 ;
9991 wxString *arg2 = 0 ;
9992 bool result;
b411df4a 9993 bool temp2 = false ;
d55e5bfc
RD
9994 PyObject * obj0 = 0 ;
9995 PyObject * obj1 = 0 ;
9996 char *kwnames[] = {
9997 (char *) "self",(char *) "szDomain", NULL
9998 };
9999
10000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
10001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10003 {
10004 arg2 = wxString_in_helper(obj1);
10005 if (arg2 == NULL) SWIG_fail;
b411df4a 10006 temp2 = true;
d55e5bfc
RD
10007 }
10008 {
10009 PyThreadState* __tstate = wxPyBeginAllowThreads();
10010 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10011
10012 wxPyEndAllowThreads(__tstate);
10013 if (PyErr_Occurred()) SWIG_fail;
10014 }
10015 {
10016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10017 }
10018 {
10019 if (temp2)
10020 delete arg2;
10021 }
10022 return resultobj;
10023 fail:
10024 {
10025 if (temp2)
10026 delete arg2;
10027 }
10028 return NULL;
10029}
10030
10031
c370783e 10032static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10033 PyObject *resultobj;
10034 wxLocale *arg1 = (wxLocale *) 0 ;
10035 wxString *arg2 = 0 ;
10036 bool result;
b411df4a 10037 bool temp2 = false ;
d55e5bfc
RD
10038 PyObject * obj0 = 0 ;
10039 PyObject * obj1 = 0 ;
10040 char *kwnames[] = {
10041 (char *) "self",(char *) "szDomain", NULL
10042 };
10043
10044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
10045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10047 {
10048 arg2 = wxString_in_helper(obj1);
10049 if (arg2 == NULL) SWIG_fail;
b411df4a 10050 temp2 = true;
d55e5bfc
RD
10051 }
10052 {
10053 PyThreadState* __tstate = wxPyBeginAllowThreads();
10054 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10055
10056 wxPyEndAllowThreads(__tstate);
10057 if (PyErr_Occurred()) SWIG_fail;
10058 }
10059 {
10060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10061 }
10062 {
10063 if (temp2)
10064 delete arg2;
10065 }
10066 return resultobj;
10067 fail:
10068 {
10069 if (temp2)
10070 delete arg2;
10071 }
10072 return NULL;
10073}
10074
10075
c370783e 10076static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10077 PyObject *resultobj;
10078 int arg1 ;
10079 wxLanguageInfo *result;
10080 PyObject * obj0 = 0 ;
10081 char *kwnames[] = {
10082 (char *) "lang", NULL
10083 };
10084
10085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
c370783e 10086 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10087 if (PyErr_Occurred()) SWIG_fail;
10088 {
10089 PyThreadState* __tstate = wxPyBeginAllowThreads();
10090 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10091
10092 wxPyEndAllowThreads(__tstate);
10093 if (PyErr_Occurred()) SWIG_fail;
10094 }
10095 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10096 return resultobj;
10097 fail:
10098 return NULL;
10099}
10100
10101
c370783e 10102static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10103 PyObject *resultobj;
10104 int arg1 ;
10105 wxString result;
10106 PyObject * obj0 = 0 ;
10107 char *kwnames[] = {
10108 (char *) "lang", NULL
10109 };
10110
10111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
c370783e 10112 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10113 if (PyErr_Occurred()) SWIG_fail;
10114 {
10115 PyThreadState* __tstate = wxPyBeginAllowThreads();
10116 result = wxLocale::GetLanguageName(arg1);
10117
10118 wxPyEndAllowThreads(__tstate);
10119 if (PyErr_Occurred()) SWIG_fail;
10120 }
10121 {
10122#if wxUSE_UNICODE
10123 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10124#else
10125 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10126#endif
10127 }
10128 return resultobj;
10129 fail:
10130 return NULL;
10131}
10132
10133
c370783e 10134static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10135 PyObject *resultobj;
10136 wxString *arg1 = 0 ;
10137 wxLanguageInfo *result;
b411df4a 10138 bool temp1 = false ;
d55e5bfc
RD
10139 PyObject * obj0 = 0 ;
10140 char *kwnames[] = {
10141 (char *) "locale", NULL
10142 };
10143
10144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10145 {
10146 arg1 = wxString_in_helper(obj0);
10147 if (arg1 == NULL) SWIG_fail;
b411df4a 10148 temp1 = true;
d55e5bfc
RD
10149 }
10150 {
10151 PyThreadState* __tstate = wxPyBeginAllowThreads();
10152 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10153
10154 wxPyEndAllowThreads(__tstate);
10155 if (PyErr_Occurred()) SWIG_fail;
10156 }
10157 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10158 {
10159 if (temp1)
10160 delete arg1;
10161 }
10162 return resultobj;
10163 fail:
10164 {
10165 if (temp1)
10166 delete arg1;
10167 }
10168 return NULL;
10169}
10170
10171
c370783e 10172static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10173 PyObject *resultobj;
10174 wxLanguageInfo *arg1 = 0 ;
10175 PyObject * obj0 = 0 ;
10176 char *kwnames[] = {
10177 (char *) "info", NULL
10178 };
10179
10180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10182 SWIG_POINTER_EXCEPTION | 0)) == -1)
10183 SWIG_fail;
10184 if (arg1 == NULL) {
10185 PyErr_SetString(PyExc_TypeError,"null reference");
10186 SWIG_fail;
10187 }
10188 {
10189 PyThreadState* __tstate = wxPyBeginAllowThreads();
10190 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10191
10192 wxPyEndAllowThreads(__tstate);
10193 if (PyErr_Occurred()) SWIG_fail;
10194 }
10195 Py_INCREF(Py_None); resultobj = Py_None;
10196 return resultobj;
10197 fail:
10198 return NULL;
10199}
10200
10201
c370783e 10202static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10203 PyObject *resultobj;
10204 wxLocale *arg1 = (wxLocale *) 0 ;
10205 wxString *arg2 = 0 ;
10206 wxString const &arg3_defvalue = wxPyEmptyString ;
10207 wxString *arg3 = (wxString *) &arg3_defvalue ;
10208 wxString result;
b411df4a
RD
10209 bool temp2 = false ;
10210 bool temp3 = false ;
d55e5bfc
RD
10211 PyObject * obj0 = 0 ;
10212 PyObject * obj1 = 0 ;
10213 PyObject * obj2 = 0 ;
10214 char *kwnames[] = {
10215 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10216 };
10217
10218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10221 {
10222 arg2 = wxString_in_helper(obj1);
10223 if (arg2 == NULL) SWIG_fail;
b411df4a 10224 temp2 = true;
d55e5bfc
RD
10225 }
10226 if (obj2) {
10227 {
10228 arg3 = wxString_in_helper(obj2);
10229 if (arg3 == NULL) SWIG_fail;
b411df4a 10230 temp3 = true;
d55e5bfc
RD
10231 }
10232 }
10233 {
10234 PyThreadState* __tstate = wxPyBeginAllowThreads();
10235 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10236
10237 wxPyEndAllowThreads(__tstate);
10238 if (PyErr_Occurred()) SWIG_fail;
10239 }
10240 {
10241#if wxUSE_UNICODE
10242 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10243#else
10244 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10245#endif
10246 }
10247 {
10248 if (temp2)
10249 delete arg2;
10250 }
10251 {
10252 if (temp3)
10253 delete arg3;
10254 }
10255 return resultobj;
10256 fail:
10257 {
10258 if (temp2)
10259 delete arg2;
10260 }
10261 {
10262 if (temp3)
10263 delete arg3;
10264 }
10265 return NULL;
10266}
10267
10268
c370783e 10269static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10270 PyObject *resultobj;
10271 wxLocale *arg1 = (wxLocale *) 0 ;
10272 wxString *result;
10273 PyObject * obj0 = 0 ;
10274 char *kwnames[] = {
10275 (char *) "self", NULL
10276 };
10277
10278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10281 {
10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
10283 {
10284 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10285 result = (wxString *) &_result_ref;
10286 }
10287
10288 wxPyEndAllowThreads(__tstate);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 {
10292#if wxUSE_UNICODE
10293 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10294#else
10295 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10296#endif
10297 }
10298 return resultobj;
10299 fail:
10300 return NULL;
10301}
10302
10303
c370783e 10304static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
10305 PyObject *obj;
10306 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10307 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10308 Py_INCREF(obj);
10309 return Py_BuildValue((char *)"");
10310}
c370783e 10311static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10312 PyObject *resultobj;
10313 wxLocale *result;
10314 char *kwnames[] = {
10315 NULL
10316 };
10317
10318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10319 {
10320 PyThreadState* __tstate = wxPyBeginAllowThreads();
10321 result = (wxLocale *)wxGetLocale();
10322
10323 wxPyEndAllowThreads(__tstate);
10324 if (PyErr_Occurred()) SWIG_fail;
10325 }
10326 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10327 return resultobj;
10328 fail:
10329 return NULL;
10330}
10331
10332
c370783e 10333static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
10334 PyObject *resultobj;
10335 wxString *arg1 = 0 ;
10336 wxString result;
b411df4a 10337 bool temp1 = false ;
d55e5bfc
RD
10338 PyObject * obj0 = 0 ;
10339
10340 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10341 {
10342 arg1 = wxString_in_helper(obj0);
10343 if (arg1 == NULL) SWIG_fail;
b411df4a 10344 temp1 = true;
d55e5bfc
RD
10345 }
10346 {
10347 PyThreadState* __tstate = wxPyBeginAllowThreads();
10348 result = wxGetTranslation((wxString const &)*arg1);
10349
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 {
10354#if wxUSE_UNICODE
10355 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10356#else
10357 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10358#endif
10359 }
10360 {
10361 if (temp1)
10362 delete arg1;
10363 }
10364 return resultobj;
10365 fail:
10366 {
10367 if (temp1)
10368 delete arg1;
10369 }
10370 return NULL;
10371}
10372
10373
c370783e 10374static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
10375 PyObject *resultobj;
10376 wxString *arg1 = 0 ;
10377 wxString *arg2 = 0 ;
10378 size_t arg3 ;
10379 wxString result;
b411df4a
RD
10380 bool temp1 = false ;
10381 bool temp2 = false ;
d55e5bfc
RD
10382 PyObject * obj0 = 0 ;
10383 PyObject * obj1 = 0 ;
10384 PyObject * obj2 = 0 ;
10385
10386 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10387 {
10388 arg1 = wxString_in_helper(obj0);
10389 if (arg1 == NULL) SWIG_fail;
b411df4a 10390 temp1 = true;
d55e5bfc
RD
10391 }
10392 {
10393 arg2 = wxString_in_helper(obj1);
10394 if (arg2 == NULL) SWIG_fail;
b411df4a 10395 temp2 = true;
d55e5bfc 10396 }
c370783e 10397 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
d55e5bfc
RD
10398 if (PyErr_Occurred()) SWIG_fail;
10399 {
10400 PyThreadState* __tstate = wxPyBeginAllowThreads();
10401 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10402
10403 wxPyEndAllowThreads(__tstate);
10404 if (PyErr_Occurred()) SWIG_fail;
10405 }
10406 {
10407#if wxUSE_UNICODE
10408 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10409#else
10410 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10411#endif
10412 }
10413 {
10414 if (temp1)
10415 delete arg1;
10416 }
10417 {
10418 if (temp2)
10419 delete arg2;
10420 }
10421 return resultobj;
10422 fail:
10423 {
10424 if (temp1)
10425 delete arg1;
10426 }
10427 {
10428 if (temp2)
10429 delete arg2;
10430 }
10431 return NULL;
10432}
10433
10434
10435static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10436 int argc;
10437 PyObject *argv[4];
10438 int ii;
10439
10440 argc = PyObject_Length(args);
10441 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10442 argv[ii] = PyTuple_GetItem(args,ii);
10443 }
10444 if (argc == 1) {
10445 int _v;
10446 {
10447 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10448 }
10449 if (_v) {
10450 return _wrap_GetTranslation__SWIG_0(self,args);
10451 }
10452 }
10453 if (argc == 3) {
10454 int _v;
10455 {
10456 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10457 }
10458 if (_v) {
10459 {
10460 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10461 }
10462 if (_v) {
c370783e 10463 _v = SWIG_Check_unsigned_SS_long(argv[2]);
d55e5bfc
RD
10464 if (_v) {
10465 return _wrap_GetTranslation__SWIG_1(self,args);
10466 }
10467 }
10468 }
10469 }
10470
10471 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10472 return NULL;
10473}
10474
10475
c370783e 10476static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10477 PyObject *resultobj;
10478 wxEncodingConverter *result;
10479 char *kwnames[] = {
10480 NULL
10481 };
10482
10483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10484 {
10485 PyThreadState* __tstate = wxPyBeginAllowThreads();
10486 result = (wxEncodingConverter *)new wxEncodingConverter();
10487
10488 wxPyEndAllowThreads(__tstate);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 }
10491 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10492 return resultobj;
10493 fail:
10494 return NULL;
10495}
10496
10497
c370783e 10498static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10499 PyObject *resultobj;
10500 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10501 PyObject * obj0 = 0 ;
10502 char *kwnames[] = {
10503 (char *) "self", NULL
10504 };
10505
10506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10509 {
10510 PyThreadState* __tstate = wxPyBeginAllowThreads();
10511 delete arg1;
10512
10513 wxPyEndAllowThreads(__tstate);
10514 if (PyErr_Occurred()) SWIG_fail;
10515 }
10516 Py_INCREF(Py_None); resultobj = Py_None;
10517 return resultobj;
10518 fail:
10519 return NULL;
10520}
10521
10522
c370783e 10523static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10524 PyObject *resultobj;
10525 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10526 int arg2 ;
10527 int arg3 ;
10528 int arg4 = (int) wxCONVERT_STRICT ;
10529 bool result;
10530 PyObject * obj0 = 0 ;
10531 PyObject * obj1 = 0 ;
10532 PyObject * obj2 = 0 ;
10533 PyObject * obj3 = 0 ;
10534 char *kwnames[] = {
10535 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10536 };
10537
10538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 10541 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 10542 if (PyErr_Occurred()) SWIG_fail;
c370783e 10543 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
10544 if (PyErr_Occurred()) SWIG_fail;
10545 if (obj3) {
c370783e 10546 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
10547 if (PyErr_Occurred()) SWIG_fail;
10548 }
10549 {
10550 PyThreadState* __tstate = wxPyBeginAllowThreads();
10551 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10552
10553 wxPyEndAllowThreads(__tstate);
10554 if (PyErr_Occurred()) SWIG_fail;
10555 }
10556 {
10557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10558 }
10559 return resultobj;
10560 fail:
10561 return NULL;
10562}
10563
10564
c370783e 10565static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10566 PyObject *resultobj;
10567 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10568 wxString *arg2 = 0 ;
10569 wxString result;
b411df4a 10570 bool temp2 = false ;
d55e5bfc
RD
10571 PyObject * obj0 = 0 ;
10572 PyObject * obj1 = 0 ;
10573 char *kwnames[] = {
10574 (char *) "self",(char *) "input", NULL
10575 };
10576
10577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10580 {
10581 arg2 = wxString_in_helper(obj1);
10582 if (arg2 == NULL) SWIG_fail;
b411df4a 10583 temp2 = true;
d55e5bfc
RD
10584 }
10585 {
10586 PyThreadState* __tstate = wxPyBeginAllowThreads();
10587 result = (arg1)->Convert((wxString const &)*arg2);
10588
10589 wxPyEndAllowThreads(__tstate);
10590 if (PyErr_Occurred()) SWIG_fail;
10591 }
10592 {
10593#if wxUSE_UNICODE
10594 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10595#else
10596 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10597#endif
10598 }
10599 {
10600 if (temp2)
10601 delete arg2;
10602 }
10603 return resultobj;
10604 fail:
10605 {
10606 if (temp2)
10607 delete arg2;
10608 }
10609 return NULL;
10610}
10611
10612
c370783e 10613static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10614 PyObject *resultobj;
10615 int arg1 ;
10616 int arg2 = (int) wxPLATFORM_CURRENT ;
10617 wxFontEncodingArray result;
10618 PyObject * obj0 = 0 ;
10619 PyObject * obj1 = 0 ;
10620 char *kwnames[] = {
10621 (char *) "enc",(char *) "platform", NULL
10622 };
10623
10624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
c370783e 10625 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10626 if (PyErr_Occurred()) SWIG_fail;
10627 if (obj1) {
c370783e 10628 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
10629 if (PyErr_Occurred()) SWIG_fail;
10630 }
10631 {
10632 PyThreadState* __tstate = wxPyBeginAllowThreads();
10633 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10634
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 {
10639 resultobj = PyList_New(0);
10640 for (size_t i=0; i < (&result)->GetCount(); i++) {
10641 PyObject* number = PyInt_FromLong((&result)->Item(i));
10642 PyList_Append(resultobj, number);
10643 Py_DECREF(number);
10644 }
10645 }
10646 return resultobj;
10647 fail:
10648 return NULL;
10649}
10650
10651
c370783e 10652static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10653 PyObject *resultobj;
10654 int arg1 ;
10655 wxFontEncodingArray result;
10656 PyObject * obj0 = 0 ;
10657 char *kwnames[] = {
10658 (char *) "enc", NULL
10659 };
10660
10661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
c370783e 10662 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10663 if (PyErr_Occurred()) SWIG_fail;
10664 {
10665 PyThreadState* __tstate = wxPyBeginAllowThreads();
10666 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10667
10668 wxPyEndAllowThreads(__tstate);
10669 if (PyErr_Occurred()) SWIG_fail;
10670 }
10671 {
10672 resultobj = PyList_New(0);
10673 for (size_t i=0; i < (&result)->GetCount(); i++) {
10674 PyObject* number = PyInt_FromLong((&result)->Item(i));
10675 PyList_Append(resultobj, number);
10676 Py_DECREF(number);
10677 }
10678 }
10679 return resultobj;
10680 fail:
10681 return NULL;
10682}
10683
10684
c370783e 10685static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10686 PyObject *resultobj;
10687 int arg1 ;
10688 int arg2 ;
10689 bool result;
10690 PyObject * obj0 = 0 ;
10691 PyObject * obj1 = 0 ;
10692 char *kwnames[] = {
10693 (char *) "encIn",(char *) "encOut", NULL
10694 };
10695
10696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
c370783e 10697 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 10698 if (PyErr_Occurred()) SWIG_fail;
c370783e 10699 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
10700 if (PyErr_Occurred()) SWIG_fail;
10701 {
10702 PyThreadState* __tstate = wxPyBeginAllowThreads();
10703 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10704
10705 wxPyEndAllowThreads(__tstate);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 }
10708 {
10709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10710 }
10711 return resultobj;
10712 fail:
10713 return NULL;
10714}
10715
10716
c370783e 10717static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
10718 PyObject *obj;
10719 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10720 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10721 Py_INCREF(obj);
10722 return Py_BuildValue((char *)"");
10723}
c370783e 10724static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10725 PyObject *resultobj;
10726 wxDC *arg1 = (wxDC *) 0 ;
10727 PyObject * obj0 = 0 ;
10728 char *kwnames[] = {
10729 (char *) "self", NULL
10730 };
10731
10732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10735 {
10736 PyThreadState* __tstate = wxPyBeginAllowThreads();
10737 delete arg1;
10738
10739 wxPyEndAllowThreads(__tstate);
10740 if (PyErr_Occurred()) SWIG_fail;
10741 }
10742 Py_INCREF(Py_None); resultobj = Py_None;
10743 return resultobj;
10744 fail:
10745 return NULL;
10746}
10747
10748
c370783e 10749static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10750 PyObject *resultobj;
10751 wxDC *arg1 = (wxDC *) 0 ;
10752 PyObject * obj0 = 0 ;
10753 char *kwnames[] = {
10754 (char *) "self", NULL
10755 };
10756
10757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10760 {
10761 PyThreadState* __tstate = wxPyBeginAllowThreads();
10762 (arg1)->BeginDrawing();
10763
10764 wxPyEndAllowThreads(__tstate);
10765 if (PyErr_Occurred()) SWIG_fail;
10766 }
10767 Py_INCREF(Py_None); resultobj = Py_None;
10768 return resultobj;
10769 fail:
10770 return NULL;
10771}
10772
10773
c370783e 10774static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10775 PyObject *resultobj;
10776 wxDC *arg1 = (wxDC *) 0 ;
10777 PyObject * obj0 = 0 ;
10778 char *kwnames[] = {
10779 (char *) "self", NULL
10780 };
10781
10782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10785 {
10786 PyThreadState* __tstate = wxPyBeginAllowThreads();
10787 (arg1)->EndDrawing();
10788
10789 wxPyEndAllowThreads(__tstate);
10790 if (PyErr_Occurred()) SWIG_fail;
10791 }
10792 Py_INCREF(Py_None); resultobj = Py_None;
10793 return resultobj;
10794 fail:
10795 return NULL;
10796}
10797
10798
c370783e 10799static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10800 PyObject *resultobj;
10801 wxDC *arg1 = (wxDC *) 0 ;
10802 int arg2 ;
10803 int arg3 ;
10804 wxColour *arg4 = 0 ;
10805 int arg5 = (int) wxFLOOD_SURFACE ;
10806 bool result;
10807 wxColour temp4 ;
10808 PyObject * obj0 = 0 ;
10809 PyObject * obj1 = 0 ;
10810 PyObject * obj2 = 0 ;
10811 PyObject * obj3 = 0 ;
10812 PyObject * obj4 = 0 ;
10813 char *kwnames[] = {
10814 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10815 };
10816
d6c14a4c 10817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
10818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 10820 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 10821 if (PyErr_Occurred()) SWIG_fail;
c370783e 10822 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
10823 if (PyErr_Occurred()) SWIG_fail;
10824 {
10825 arg4 = &temp4;
10826 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10827 }
10828 if (obj4) {
c370783e 10829 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
10830 if (PyErr_Occurred()) SWIG_fail;
10831 }
10832 {
10833 PyThreadState* __tstate = wxPyBeginAllowThreads();
10834 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10835
10836 wxPyEndAllowThreads(__tstate);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
10839 {
10840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10841 }
10842 return resultobj;
10843 fail:
10844 return NULL;
10845}
10846
10847
c370783e 10848static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10849 PyObject *resultobj;
10850 wxDC *arg1 = (wxDC *) 0 ;
10851 wxPoint *arg2 = 0 ;
10852 wxColour *arg3 = 0 ;
10853 int arg4 = (int) wxFLOOD_SURFACE ;
10854 bool result;
10855 wxPoint temp2 ;
10856 wxColour temp3 ;
10857 PyObject * obj0 = 0 ;
10858 PyObject * obj1 = 0 ;
10859 PyObject * obj2 = 0 ;
10860 PyObject * obj3 = 0 ;
10861 char *kwnames[] = {
10862 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10863 };
10864
d6c14a4c 10865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
10866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10868 {
10869 arg2 = &temp2;
10870 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10871 }
10872 {
10873 arg3 = &temp3;
10874 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10875 }
10876 if (obj3) {
c370783e 10877 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
10878 if (PyErr_Occurred()) SWIG_fail;
10879 }
10880 {
10881 PyThreadState* __tstate = wxPyBeginAllowThreads();
10882 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10883
10884 wxPyEndAllowThreads(__tstate);
10885 if (PyErr_Occurred()) SWIG_fail;
10886 }
10887 {
10888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10889 }
10890 return resultobj;
10891 fail:
10892 return NULL;
10893}
10894
10895
c370783e 10896static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10897 PyObject *resultobj;
10898 wxDC *arg1 = (wxDC *) 0 ;
10899 int arg2 ;
10900 int arg3 ;
10901 wxColour result;
10902 PyObject * obj0 = 0 ;
10903 PyObject * obj1 = 0 ;
10904 PyObject * obj2 = 0 ;
10905 char *kwnames[] = {
10906 (char *) "self",(char *) "x",(char *) "y", NULL
10907 };
10908
d6c14a4c 10909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
10910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 10912 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 10913 if (PyErr_Occurred()) SWIG_fail;
c370783e 10914 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
10915 if (PyErr_Occurred()) SWIG_fail;
10916 {
10917 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 10918 result = wxDC_GetPixel(arg1,arg2,arg3);
d55e5bfc
RD
10919
10920 wxPyEndAllowThreads(__tstate);
10921 if (PyErr_Occurred()) SWIG_fail;
10922 }
10923 {
10924 wxColour * resultptr;
10925 resultptr = new wxColour((wxColour &) result);
10926 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10927 }
10928 return resultobj;
10929 fail:
10930 return NULL;
10931}
10932
10933
c370783e 10934static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10935 PyObject *resultobj;
10936 wxDC *arg1 = (wxDC *) 0 ;
10937 wxPoint *arg2 = 0 ;
10938 wxColour result;
10939 wxPoint temp2 ;
10940 PyObject * obj0 = 0 ;
10941 PyObject * obj1 = 0 ;
10942 char *kwnames[] = {
10943 (char *) "self",(char *) "pt", NULL
10944 };
10945
d6c14a4c 10946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
10947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10949 {
10950 arg2 = &temp2;
10951 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10952 }
10953 {
10954 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 10955 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
d55e5bfc
RD
10956
10957 wxPyEndAllowThreads(__tstate);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 }
10960 {
10961 wxColour * resultptr;
10962 resultptr = new wxColour((wxColour &) result);
10963 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10964 }
10965 return resultobj;
10966 fail:
10967 return NULL;
10968}
10969
10970
c370783e 10971static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10972 PyObject *resultobj;
10973 wxDC *arg1 = (wxDC *) 0 ;
10974 int arg2 ;
10975 int arg3 ;
10976 int arg4 ;
10977 int arg5 ;
10978 PyObject * obj0 = 0 ;
10979 PyObject * obj1 = 0 ;
10980 PyObject * obj2 = 0 ;
10981 PyObject * obj3 = 0 ;
10982 PyObject * obj4 = 0 ;
10983 char *kwnames[] = {
10984 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10985 };
10986
d6c14a4c 10987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
10988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 10990 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 10991 if (PyErr_Occurred()) SWIG_fail;
c370783e 10992 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 10993 if (PyErr_Occurred()) SWIG_fail;
c370783e 10994 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 10995 if (PyErr_Occurred()) SWIG_fail;
c370783e 10996 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
10997 if (PyErr_Occurred()) SWIG_fail;
10998 {
10999 PyThreadState* __tstate = wxPyBeginAllowThreads();
11000 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
11001
11002 wxPyEndAllowThreads(__tstate);
11003 if (PyErr_Occurred()) SWIG_fail;
11004 }
11005 Py_INCREF(Py_None); resultobj = Py_None;
11006 return resultobj;
11007 fail:
11008 return NULL;
11009}
11010
11011
c370783e 11012static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11013 PyObject *resultobj;
11014 wxDC *arg1 = (wxDC *) 0 ;
11015 wxPoint *arg2 = 0 ;
11016 wxPoint *arg3 = 0 ;
11017 wxPoint temp2 ;
11018 wxPoint temp3 ;
11019 PyObject * obj0 = 0 ;
11020 PyObject * obj1 = 0 ;
11021 PyObject * obj2 = 0 ;
11022 char *kwnames[] = {
11023 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11024 };
11025
d6c14a4c 11026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11029 {
11030 arg2 = &temp2;
11031 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11032 }
11033 {
11034 arg3 = &temp3;
11035 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11036 }
11037 {
11038 PyThreadState* __tstate = wxPyBeginAllowThreads();
11039 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11040
11041 wxPyEndAllowThreads(__tstate);
11042 if (PyErr_Occurred()) SWIG_fail;
11043 }
11044 Py_INCREF(Py_None); resultobj = Py_None;
11045 return resultobj;
11046 fail:
11047 return NULL;
11048}
11049
11050
c370783e 11051static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11052 PyObject *resultobj;
11053 wxDC *arg1 = (wxDC *) 0 ;
11054 int arg2 ;
11055 int arg3 ;
11056 PyObject * obj0 = 0 ;
11057 PyObject * obj1 = 0 ;
11058 PyObject * obj2 = 0 ;
11059 char *kwnames[] = {
11060 (char *) "self",(char *) "x",(char *) "y", NULL
11061 };
11062
d6c14a4c 11063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11066 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11067 if (PyErr_Occurred()) SWIG_fail;
c370783e 11068 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11069 if (PyErr_Occurred()) SWIG_fail;
11070 {
11071 PyThreadState* __tstate = wxPyBeginAllowThreads();
11072 (arg1)->CrossHair(arg2,arg3);
11073
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 Py_INCREF(Py_None); resultobj = Py_None;
11078 return resultobj;
11079 fail:
11080 return NULL;
11081}
11082
11083
c370783e 11084static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11085 PyObject *resultobj;
11086 wxDC *arg1 = (wxDC *) 0 ;
11087 wxPoint *arg2 = 0 ;
11088 wxPoint temp2 ;
11089 PyObject * obj0 = 0 ;
11090 PyObject * obj1 = 0 ;
11091 char *kwnames[] = {
11092 (char *) "self",(char *) "pt", NULL
11093 };
11094
d6c14a4c 11095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11098 {
11099 arg2 = &temp2;
11100 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11101 }
11102 {
11103 PyThreadState* __tstate = wxPyBeginAllowThreads();
11104 (arg1)->CrossHair((wxPoint const &)*arg2);
11105
11106 wxPyEndAllowThreads(__tstate);
11107 if (PyErr_Occurred()) SWIG_fail;
11108 }
11109 Py_INCREF(Py_None); resultobj = Py_None;
11110 return resultobj;
11111 fail:
11112 return NULL;
11113}
11114
11115
c370783e 11116static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11117 PyObject *resultobj;
11118 wxDC *arg1 = (wxDC *) 0 ;
11119 int arg2 ;
11120 int arg3 ;
11121 int arg4 ;
11122 int arg5 ;
11123 int arg6 ;
11124 int arg7 ;
11125 PyObject * obj0 = 0 ;
11126 PyObject * obj1 = 0 ;
11127 PyObject * obj2 = 0 ;
11128 PyObject * obj3 = 0 ;
11129 PyObject * obj4 = 0 ;
11130 PyObject * obj5 = 0 ;
11131 PyObject * obj6 = 0 ;
11132 char *kwnames[] = {
11133 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11134 };
11135
d6c14a4c 11136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
11137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11139 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11140 if (PyErr_Occurred()) SWIG_fail;
c370783e 11141 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11142 if (PyErr_Occurred()) SWIG_fail;
c370783e 11143 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11144 if (PyErr_Occurred()) SWIG_fail;
c370783e 11145 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 11146 if (PyErr_Occurred()) SWIG_fail;
c370783e 11147 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc 11148 if (PyErr_Occurred()) SWIG_fail;
c370783e 11149 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc
RD
11150 if (PyErr_Occurred()) SWIG_fail;
11151 {
11152 PyThreadState* __tstate = wxPyBeginAllowThreads();
11153 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11154
11155 wxPyEndAllowThreads(__tstate);
11156 if (PyErr_Occurred()) SWIG_fail;
11157 }
11158 Py_INCREF(Py_None); resultobj = Py_None;
11159 return resultobj;
11160 fail:
11161 return NULL;
11162}
11163
11164
c370783e 11165static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11166 PyObject *resultobj;
11167 wxDC *arg1 = (wxDC *) 0 ;
11168 wxPoint *arg2 = 0 ;
11169 wxPoint *arg3 = 0 ;
11170 wxPoint *arg4 = 0 ;
11171 wxPoint temp2 ;
11172 wxPoint temp3 ;
11173 wxPoint temp4 ;
11174 PyObject * obj0 = 0 ;
11175 PyObject * obj1 = 0 ;
11176 PyObject * obj2 = 0 ;
11177 PyObject * obj3 = 0 ;
11178 char *kwnames[] = {
f5b96ee1 11179 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
d55e5bfc
RD
11180 };
11181
d6c14a4c 11182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11185 {
11186 arg2 = &temp2;
11187 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11188 }
11189 {
11190 arg3 = &temp3;
11191 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11192 }
11193 {
11194 arg4 = &temp4;
11195 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11196 }
11197 {
11198 PyThreadState* __tstate = wxPyBeginAllowThreads();
11199 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11200
11201 wxPyEndAllowThreads(__tstate);
11202 if (PyErr_Occurred()) SWIG_fail;
11203 }
11204 Py_INCREF(Py_None); resultobj = Py_None;
11205 return resultobj;
11206 fail:
11207 return NULL;
11208}
11209
11210
c370783e 11211static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11212 PyObject *resultobj;
11213 wxDC *arg1 = (wxDC *) 0 ;
11214 int arg2 ;
11215 int arg3 ;
11216 int arg4 ;
11217 int arg5 ;
11218 PyObject * obj0 = 0 ;
11219 PyObject * obj1 = 0 ;
11220 PyObject * obj2 = 0 ;
11221 PyObject * obj3 = 0 ;
11222 PyObject * obj4 = 0 ;
11223 char *kwnames[] = {
11224 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11225 };
11226
d6c14a4c 11227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11230 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11231 if (PyErr_Occurred()) SWIG_fail;
c370783e 11232 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11233 if (PyErr_Occurred()) SWIG_fail;
c370783e 11234 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11235 if (PyErr_Occurred()) SWIG_fail;
c370783e 11236 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
11237 if (PyErr_Occurred()) SWIG_fail;
11238 {
11239 PyThreadState* __tstate = wxPyBeginAllowThreads();
11240 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11241
11242 wxPyEndAllowThreads(__tstate);
11243 if (PyErr_Occurred()) SWIG_fail;
11244 }
11245 Py_INCREF(Py_None); resultobj = Py_None;
11246 return resultobj;
11247 fail:
11248 return NULL;
11249}
11250
11251
c370783e 11252static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11253 PyObject *resultobj;
11254 wxDC *arg1 = (wxDC *) 0 ;
11255 wxRect *arg2 = 0 ;
11256 wxRect temp2 ;
11257 PyObject * obj0 = 0 ;
11258 PyObject * obj1 = 0 ;
11259 char *kwnames[] = {
11260 (char *) "self",(char *) "rect", NULL
11261 };
11262
d6c14a4c 11263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11266 {
11267 arg2 = &temp2;
11268 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11269 }
11270 {
11271 PyThreadState* __tstate = wxPyBeginAllowThreads();
11272 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11273
11274 wxPyEndAllowThreads(__tstate);
11275 if (PyErr_Occurred()) SWIG_fail;
11276 }
11277 Py_INCREF(Py_None); resultobj = Py_None;
11278 return resultobj;
11279 fail:
11280 return NULL;
11281}
11282
11283
c370783e 11284static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11285 PyObject *resultobj;
11286 wxDC *arg1 = (wxDC *) 0 ;
11287 int arg2 ;
11288 int arg3 ;
11289 int arg4 ;
11290 int arg5 ;
11291 double arg6 ;
11292 double arg7 ;
11293 PyObject * obj0 = 0 ;
11294 PyObject * obj1 = 0 ;
11295 PyObject * obj2 = 0 ;
11296 PyObject * obj3 = 0 ;
11297 PyObject * obj4 = 0 ;
11298 PyObject * obj5 = 0 ;
11299 PyObject * obj6 = 0 ;
11300 char *kwnames[] = {
f5b96ee1 11301 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
d55e5bfc
RD
11302 };
11303
d6c14a4c 11304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
11305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11307 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11308 if (PyErr_Occurred()) SWIG_fail;
c370783e 11309 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11310 if (PyErr_Occurred()) SWIG_fail;
c370783e 11311 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11312 if (PyErr_Occurred()) SWIG_fail;
c370783e 11313 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 11314 if (PyErr_Occurred()) SWIG_fail;
c370783e 11315 arg6 = (double)SWIG_As_double(obj5);
d55e5bfc 11316 if (PyErr_Occurred()) SWIG_fail;
c370783e 11317 arg7 = (double)SWIG_As_double(obj6);
d55e5bfc
RD
11318 if (PyErr_Occurred()) SWIG_fail;
11319 {
11320 PyThreadState* __tstate = wxPyBeginAllowThreads();
11321 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11322
11323 wxPyEndAllowThreads(__tstate);
11324 if (PyErr_Occurred()) SWIG_fail;
11325 }
11326 Py_INCREF(Py_None); resultobj = Py_None;
11327 return resultobj;
11328 fail:
11329 return NULL;
11330}
11331
11332
c370783e 11333static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11334 PyObject *resultobj;
11335 wxDC *arg1 = (wxDC *) 0 ;
11336 wxPoint *arg2 = 0 ;
11337 wxSize *arg3 = 0 ;
11338 double arg4 ;
11339 double arg5 ;
11340 wxPoint temp2 ;
11341 wxSize temp3 ;
11342 PyObject * obj0 = 0 ;
11343 PyObject * obj1 = 0 ;
11344 PyObject * obj2 = 0 ;
11345 PyObject * obj3 = 0 ;
11346 PyObject * obj4 = 0 ;
11347 char *kwnames[] = {
f5b96ee1 11348 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
d55e5bfc
RD
11349 };
11350
d6c14a4c 11351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11354 {
11355 arg2 = &temp2;
11356 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11357 }
11358 {
11359 arg3 = &temp3;
11360 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11361 }
c370783e 11362 arg4 = (double)SWIG_As_double(obj3);
d55e5bfc 11363 if (PyErr_Occurred()) SWIG_fail;
c370783e 11364 arg5 = (double)SWIG_As_double(obj4);
d55e5bfc
RD
11365 if (PyErr_Occurred()) SWIG_fail;
11366 {
11367 PyThreadState* __tstate = wxPyBeginAllowThreads();
11368 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11369
11370 wxPyEndAllowThreads(__tstate);
11371 if (PyErr_Occurred()) SWIG_fail;
11372 }
11373 Py_INCREF(Py_None); resultobj = Py_None;
11374 return resultobj;
11375 fail:
11376 return NULL;
11377}
11378
11379
c370783e 11380static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11381 PyObject *resultobj;
11382 wxDC *arg1 = (wxDC *) 0 ;
11383 int arg2 ;
11384 int arg3 ;
11385 PyObject * obj0 = 0 ;
11386 PyObject * obj1 = 0 ;
11387 PyObject * obj2 = 0 ;
11388 char *kwnames[] = {
11389 (char *) "self",(char *) "x",(char *) "y", NULL
11390 };
11391
d6c14a4c 11392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11395 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11396 if (PyErr_Occurred()) SWIG_fail;
c370783e 11397 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11398 if (PyErr_Occurred()) SWIG_fail;
11399 {
11400 PyThreadState* __tstate = wxPyBeginAllowThreads();
11401 (arg1)->DrawPoint(arg2,arg3);
11402
11403 wxPyEndAllowThreads(__tstate);
11404 if (PyErr_Occurred()) SWIG_fail;
11405 }
11406 Py_INCREF(Py_None); resultobj = Py_None;
11407 return resultobj;
11408 fail:
11409 return NULL;
11410}
11411
11412
c370783e 11413static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11414 PyObject *resultobj;
11415 wxDC *arg1 = (wxDC *) 0 ;
11416 wxPoint *arg2 = 0 ;
11417 wxPoint temp2 ;
11418 PyObject * obj0 = 0 ;
11419 PyObject * obj1 = 0 ;
11420 char *kwnames[] = {
11421 (char *) "self",(char *) "pt", NULL
11422 };
11423
d6c14a4c 11424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11427 {
11428 arg2 = &temp2;
11429 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11430 }
11431 {
11432 PyThreadState* __tstate = wxPyBeginAllowThreads();
11433 (arg1)->DrawPoint((wxPoint const &)*arg2);
11434
11435 wxPyEndAllowThreads(__tstate);
11436 if (PyErr_Occurred()) SWIG_fail;
11437 }
11438 Py_INCREF(Py_None); resultobj = Py_None;
11439 return resultobj;
11440 fail:
11441 return NULL;
11442}
11443
11444
c370783e 11445static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11446 PyObject *resultobj;
11447 wxDC *arg1 = (wxDC *) 0 ;
11448 int arg2 ;
11449 int arg3 ;
11450 int arg4 ;
11451 int arg5 ;
11452 PyObject * obj0 = 0 ;
11453 PyObject * obj1 = 0 ;
11454 PyObject * obj2 = 0 ;
11455 PyObject * obj3 = 0 ;
11456 PyObject * obj4 = 0 ;
11457 char *kwnames[] = {
11458 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11459 };
11460
d6c14a4c 11461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11464 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11465 if (PyErr_Occurred()) SWIG_fail;
c370783e 11466 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11467 if (PyErr_Occurred()) SWIG_fail;
c370783e 11468 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11469 if (PyErr_Occurred()) SWIG_fail;
c370783e 11470 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
11471 if (PyErr_Occurred()) SWIG_fail;
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11475
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 Py_INCREF(Py_None); resultobj = Py_None;
11480 return resultobj;
11481 fail:
11482 return NULL;
11483}
11484
11485
c370783e 11486static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11487 PyObject *resultobj;
11488 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11489 wxRect *arg2 = 0 ;
11490 wxRect temp2 ;
d55e5bfc
RD
11491 PyObject * obj0 = 0 ;
11492 PyObject * obj1 = 0 ;
d55e5bfc 11493 char *kwnames[] = {
d6c14a4c 11494 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
11495 };
11496
d6c14a4c 11497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11500 {
11501 arg2 = &temp2;
d6c14a4c 11502 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
11503 }
11504 {
11505 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11506 (arg1)->DrawRectangle((wxRect const &)*arg2);
d55e5bfc
RD
11507
11508 wxPyEndAllowThreads(__tstate);
11509 if (PyErr_Occurred()) SWIG_fail;
11510 }
11511 Py_INCREF(Py_None); resultobj = Py_None;
11512 return resultobj;
11513 fail:
11514 return NULL;
11515}
11516
11517
c370783e 11518static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11519 PyObject *resultobj;
11520 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11521 wxPoint *arg2 = 0 ;
11522 wxSize *arg3 = 0 ;
11523 wxPoint temp2 ;
11524 wxSize temp3 ;
d55e5bfc
RD
11525 PyObject * obj0 = 0 ;
11526 PyObject * obj1 = 0 ;
d6c14a4c 11527 PyObject * obj2 = 0 ;
d55e5bfc 11528 char *kwnames[] = {
d6c14a4c 11529 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
11530 };
11531
d6c14a4c 11532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11535 {
11536 arg2 = &temp2;
d6c14a4c
RD
11537 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11538 }
11539 {
11540 arg3 = &temp3;
11541 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
11542 }
11543 {
11544 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11545 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
11546
11547 wxPyEndAllowThreads(__tstate);
11548 if (PyErr_Occurred()) SWIG_fail;
11549 }
11550 Py_INCREF(Py_None); resultobj = Py_None;
11551 return resultobj;
11552 fail:
11553 return NULL;
11554}
11555
11556
c370783e 11557static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11558 PyObject *resultobj;
11559 wxDC *arg1 = (wxDC *) 0 ;
11560 int arg2 ;
11561 int arg3 ;
11562 int arg4 ;
11563 int arg5 ;
11564 double arg6 ;
11565 PyObject * obj0 = 0 ;
11566 PyObject * obj1 = 0 ;
11567 PyObject * obj2 = 0 ;
11568 PyObject * obj3 = 0 ;
11569 PyObject * obj4 = 0 ;
11570 PyObject * obj5 = 0 ;
11571 char *kwnames[] = {
11572 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11573 };
11574
d6c14a4c 11575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
11576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11578 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11579 if (PyErr_Occurred()) SWIG_fail;
c370783e 11580 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11581 if (PyErr_Occurred()) SWIG_fail;
c370783e 11582 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11583 if (PyErr_Occurred()) SWIG_fail;
c370783e 11584 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 11585 if (PyErr_Occurred()) SWIG_fail;
c370783e 11586 arg6 = (double)SWIG_As_double(obj5);
d55e5bfc
RD
11587 if (PyErr_Occurred()) SWIG_fail;
11588 {
11589 PyThreadState* __tstate = wxPyBeginAllowThreads();
11590 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11591
11592 wxPyEndAllowThreads(__tstate);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 }
11595 Py_INCREF(Py_None); resultobj = Py_None;
11596 return resultobj;
11597 fail:
11598 return NULL;
11599}
11600
11601
c370783e 11602static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11603 PyObject *resultobj;
11604 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11605 wxRect *arg2 = 0 ;
11606 double arg3 ;
11607 wxRect temp2 ;
d55e5bfc
RD
11608 PyObject * obj0 = 0 ;
11609 PyObject * obj1 = 0 ;
11610 PyObject * obj2 = 0 ;
d55e5bfc 11611 char *kwnames[] = {
d6c14a4c 11612 (char *) "self",(char *) "r",(char *) "radius", NULL
d55e5bfc
RD
11613 };
11614
d6c14a4c 11615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11618 {
11619 arg2 = &temp2;
d6c14a4c 11620 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 11621 }
c370783e 11622 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
11623 if (PyErr_Occurred()) SWIG_fail;
11624 {
11625 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11626 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
d55e5bfc
RD
11627
11628 wxPyEndAllowThreads(__tstate);
11629 if (PyErr_Occurred()) SWIG_fail;
11630 }
11631 Py_INCREF(Py_None); resultobj = Py_None;
11632 return resultobj;
11633 fail:
11634 return NULL;
11635}
11636
11637
c370783e 11638static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11639 PyObject *resultobj;
11640 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11641 wxPoint *arg2 = 0 ;
11642 wxSize *arg3 = 0 ;
11643 double arg4 ;
11644 wxPoint temp2 ;
11645 wxSize temp3 ;
d55e5bfc
RD
11646 PyObject * obj0 = 0 ;
11647 PyObject * obj1 = 0 ;
11648 PyObject * obj2 = 0 ;
d6c14a4c 11649 PyObject * obj3 = 0 ;
d55e5bfc 11650 char *kwnames[] = {
d6c14a4c 11651 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
d55e5bfc
RD
11652 };
11653
d6c14a4c 11654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11657 {
11658 arg2 = &temp2;
d6c14a4c 11659 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 11660 }
d6c14a4c
RD
11661 {
11662 arg3 = &temp3;
11663 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11664 }
c370783e 11665 arg4 = (double)SWIG_As_double(obj3);
d55e5bfc
RD
11666 if (PyErr_Occurred()) SWIG_fail;
11667 {
11668 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11669 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
d55e5bfc
RD
11670
11671 wxPyEndAllowThreads(__tstate);
11672 if (PyErr_Occurred()) SWIG_fail;
11673 }
11674 Py_INCREF(Py_None); resultobj = Py_None;
11675 return resultobj;
11676 fail:
11677 return NULL;
11678}
11679
11680
c370783e 11681static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11682 PyObject *resultobj;
11683 wxDC *arg1 = (wxDC *) 0 ;
11684 int arg2 ;
11685 int arg3 ;
11686 int arg4 ;
11687 PyObject * obj0 = 0 ;
11688 PyObject * obj1 = 0 ;
11689 PyObject * obj2 = 0 ;
11690 PyObject * obj3 = 0 ;
11691 char *kwnames[] = {
11692 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11693 };
11694
d6c14a4c 11695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11698 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11699 if (PyErr_Occurred()) SWIG_fail;
c370783e 11700 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11701 if (PyErr_Occurred()) SWIG_fail;
c370783e 11702 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
11703 if (PyErr_Occurred()) SWIG_fail;
11704 {
11705 PyThreadState* __tstate = wxPyBeginAllowThreads();
11706 (arg1)->DrawCircle(arg2,arg3,arg4);
11707
11708 wxPyEndAllowThreads(__tstate);
11709 if (PyErr_Occurred()) SWIG_fail;
11710 }
11711 Py_INCREF(Py_None); resultobj = Py_None;
11712 return resultobj;
11713 fail:
11714 return NULL;
11715}
11716
11717
c370783e 11718static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11719 PyObject *resultobj;
11720 wxDC *arg1 = (wxDC *) 0 ;
11721 wxPoint *arg2 = 0 ;
11722 int arg3 ;
11723 wxPoint temp2 ;
11724 PyObject * obj0 = 0 ;
11725 PyObject * obj1 = 0 ;
11726 PyObject * obj2 = 0 ;
11727 char *kwnames[] = {
11728 (char *) "self",(char *) "pt",(char *) "radius", NULL
11729 };
11730
d6c14a4c 11731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11734 {
11735 arg2 = &temp2;
11736 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11737 }
c370783e 11738 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11739 if (PyErr_Occurred()) SWIG_fail;
11740 {
11741 PyThreadState* __tstate = wxPyBeginAllowThreads();
11742 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11743
11744 wxPyEndAllowThreads(__tstate);
11745 if (PyErr_Occurred()) SWIG_fail;
11746 }
11747 Py_INCREF(Py_None); resultobj = Py_None;
11748 return resultobj;
11749 fail:
11750 return NULL;
11751}
11752
11753
c370783e 11754static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11755 PyObject *resultobj;
11756 wxDC *arg1 = (wxDC *) 0 ;
11757 int arg2 ;
11758 int arg3 ;
11759 int arg4 ;
11760 int arg5 ;
11761 PyObject * obj0 = 0 ;
11762 PyObject * obj1 = 0 ;
11763 PyObject * obj2 = 0 ;
11764 PyObject * obj3 = 0 ;
11765 PyObject * obj4 = 0 ;
11766 char *kwnames[] = {
11767 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11768 };
11769
d6c14a4c 11770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11773 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 11774 if (PyErr_Occurred()) SWIG_fail;
c370783e 11775 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11776 if (PyErr_Occurred()) SWIG_fail;
c370783e 11777 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 11778 if (PyErr_Occurred()) SWIG_fail;
c370783e 11779 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
11780 if (PyErr_Occurred()) SWIG_fail;
11781 {
11782 PyThreadState* __tstate = wxPyBeginAllowThreads();
11783 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11784
11785 wxPyEndAllowThreads(__tstate);
11786 if (PyErr_Occurred()) SWIG_fail;
11787 }
11788 Py_INCREF(Py_None); resultobj = Py_None;
11789 return resultobj;
11790 fail:
11791 return NULL;
11792}
11793
11794
c370783e 11795static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11796 PyObject *resultobj;
11797 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11798 wxRect *arg2 = 0 ;
11799 wxRect temp2 ;
d55e5bfc
RD
11800 PyObject * obj0 = 0 ;
11801 PyObject * obj1 = 0 ;
d55e5bfc 11802 char *kwnames[] = {
d6c14a4c 11803 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
11804 };
11805
d6c14a4c 11806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11809 {
11810 arg2 = &temp2;
d6c14a4c 11811 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
11812 }
11813 {
11814 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11815 (arg1)->DrawEllipse((wxRect const &)*arg2);
d55e5bfc
RD
11816
11817 wxPyEndAllowThreads(__tstate);
11818 if (PyErr_Occurred()) SWIG_fail;
11819 }
11820 Py_INCREF(Py_None); resultobj = Py_None;
11821 return resultobj;
11822 fail:
11823 return NULL;
11824}
11825
11826
c370783e 11827static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11828 PyObject *resultobj;
11829 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11830 wxPoint *arg2 = 0 ;
11831 wxSize *arg3 = 0 ;
11832 wxPoint temp2 ;
11833 wxSize temp3 ;
d55e5bfc
RD
11834 PyObject * obj0 = 0 ;
11835 PyObject * obj1 = 0 ;
d6c14a4c 11836 PyObject * obj2 = 0 ;
d55e5bfc 11837 char *kwnames[] = {
d6c14a4c 11838 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
11839 };
11840
d6c14a4c 11841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11844 {
11845 arg2 = &temp2;
d6c14a4c
RD
11846 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11847 }
11848 {
11849 arg3 = &temp3;
11850 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
11851 }
11852 {
11853 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11854 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
11855
11856 wxPyEndAllowThreads(__tstate);
11857 if (PyErr_Occurred()) SWIG_fail;
11858 }
11859 Py_INCREF(Py_None); resultobj = Py_None;
11860 return resultobj;
11861 fail:
11862 return NULL;
11863}
11864
11865
c370783e 11866static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11867 PyObject *resultobj;
11868 wxDC *arg1 = (wxDC *) 0 ;
11869 wxIcon *arg2 = 0 ;
11870 int arg3 ;
11871 int arg4 ;
11872 PyObject * obj0 = 0 ;
11873 PyObject * obj1 = 0 ;
11874 PyObject * obj2 = 0 ;
11875 PyObject * obj3 = 0 ;
11876 char *kwnames[] = {
11877 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11878 };
11879
d6c14a4c 11880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11883 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11884 SWIG_POINTER_EXCEPTION | 0)) == -1)
11885 SWIG_fail;
11886 if (arg2 == NULL) {
11887 PyErr_SetString(PyExc_TypeError,"null reference");
11888 SWIG_fail;
11889 }
c370783e 11890 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11891 if (PyErr_Occurred()) SWIG_fail;
c370783e 11892 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
11893 if (PyErr_Occurred()) SWIG_fail;
11894 {
11895 PyThreadState* __tstate = wxPyBeginAllowThreads();
11896 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11897
11898 wxPyEndAllowThreads(__tstate);
11899 if (PyErr_Occurred()) SWIG_fail;
11900 }
11901 Py_INCREF(Py_None); resultobj = Py_None;
11902 return resultobj;
11903 fail:
11904 return NULL;
11905}
11906
11907
c370783e 11908static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11909 PyObject *resultobj;
11910 wxDC *arg1 = (wxDC *) 0 ;
11911 wxIcon *arg2 = 0 ;
11912 wxPoint *arg3 = 0 ;
11913 wxPoint temp3 ;
11914 PyObject * obj0 = 0 ;
11915 PyObject * obj1 = 0 ;
11916 PyObject * obj2 = 0 ;
11917 char *kwnames[] = {
11918 (char *) "self",(char *) "icon",(char *) "pt", NULL
11919 };
11920
d6c14a4c 11921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11924 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11925 SWIG_POINTER_EXCEPTION | 0)) == -1)
11926 SWIG_fail;
11927 if (arg2 == NULL) {
11928 PyErr_SetString(PyExc_TypeError,"null reference");
11929 SWIG_fail;
11930 }
11931 {
11932 arg3 = &temp3;
11933 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11934 }
11935 {
11936 PyThreadState* __tstate = wxPyBeginAllowThreads();
11937 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11938
11939 wxPyEndAllowThreads(__tstate);
11940 if (PyErr_Occurred()) SWIG_fail;
11941 }
11942 Py_INCREF(Py_None); resultobj = Py_None;
11943 return resultobj;
11944 fail:
11945 return NULL;
11946}
11947
11948
c370783e 11949static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11950 PyObject *resultobj;
11951 wxDC *arg1 = (wxDC *) 0 ;
11952 wxBitmap *arg2 = 0 ;
11953 int arg3 ;
11954 int arg4 ;
b411df4a 11955 bool arg5 = (bool) false ;
d55e5bfc
RD
11956 PyObject * obj0 = 0 ;
11957 PyObject * obj1 = 0 ;
11958 PyObject * obj2 = 0 ;
11959 PyObject * obj3 = 0 ;
11960 PyObject * obj4 = 0 ;
11961 char *kwnames[] = {
11962 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11963 };
11964
d6c14a4c 11965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11968 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11969 SWIG_POINTER_EXCEPTION | 0)) == -1)
11970 SWIG_fail;
11971 if (arg2 == NULL) {
11972 PyErr_SetString(PyExc_TypeError,"null reference");
11973 SWIG_fail;
11974 }
c370783e 11975 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 11976 if (PyErr_Occurred()) SWIG_fail;
c370783e 11977 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
11978 if (PyErr_Occurred()) SWIG_fail;
11979 if (obj4) {
c370783e 11980 arg5 = (bool)SWIG_As_bool(obj4);
d55e5bfc
RD
11981 if (PyErr_Occurred()) SWIG_fail;
11982 }
11983 {
11984 PyThreadState* __tstate = wxPyBeginAllowThreads();
11985 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11986
11987 wxPyEndAllowThreads(__tstate);
11988 if (PyErr_Occurred()) SWIG_fail;
11989 }
11990 Py_INCREF(Py_None); resultobj = Py_None;
11991 return resultobj;
11992 fail:
11993 return NULL;
11994}
11995
11996
c370783e 11997static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11998 PyObject *resultobj;
11999 wxDC *arg1 = (wxDC *) 0 ;
12000 wxBitmap *arg2 = 0 ;
12001 wxPoint *arg3 = 0 ;
b411df4a 12002 bool arg4 = (bool) false ;
d55e5bfc
RD
12003 wxPoint temp3 ;
12004 PyObject * obj0 = 0 ;
12005 PyObject * obj1 = 0 ;
12006 PyObject * obj2 = 0 ;
12007 PyObject * obj3 = 0 ;
12008 char *kwnames[] = {
12009 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
12010 };
12011
d6c14a4c 12012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12015 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12016 SWIG_POINTER_EXCEPTION | 0)) == -1)
12017 SWIG_fail;
12018 if (arg2 == NULL) {
12019 PyErr_SetString(PyExc_TypeError,"null reference");
12020 SWIG_fail;
12021 }
12022 {
12023 arg3 = &temp3;
12024 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12025 }
12026 if (obj3) {
c370783e 12027 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 {
12031 PyThreadState* __tstate = wxPyBeginAllowThreads();
12032 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12033
12034 wxPyEndAllowThreads(__tstate);
12035 if (PyErr_Occurred()) SWIG_fail;
12036 }
12037 Py_INCREF(Py_None); resultobj = Py_None;
12038 return resultobj;
12039 fail:
12040 return NULL;
12041}
12042
12043
c370783e 12044static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12045 PyObject *resultobj;
12046 wxDC *arg1 = (wxDC *) 0 ;
12047 wxString *arg2 = 0 ;
12048 int arg3 ;
12049 int arg4 ;
b411df4a 12050 bool temp2 = false ;
d55e5bfc
RD
12051 PyObject * obj0 = 0 ;
12052 PyObject * obj1 = 0 ;
12053 PyObject * obj2 = 0 ;
12054 PyObject * obj3 = 0 ;
12055 char *kwnames[] = {
12056 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12057 };
12058
d6c14a4c 12059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12062 {
12063 arg2 = wxString_in_helper(obj1);
12064 if (arg2 == NULL) SWIG_fail;
b411df4a 12065 temp2 = true;
d55e5bfc 12066 }
c370783e 12067 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12068 if (PyErr_Occurred()) SWIG_fail;
c370783e 12069 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12070 if (PyErr_Occurred()) SWIG_fail;
12071 {
12072 PyThreadState* __tstate = wxPyBeginAllowThreads();
12073 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12074
12075 wxPyEndAllowThreads(__tstate);
12076 if (PyErr_Occurred()) SWIG_fail;
12077 }
12078 Py_INCREF(Py_None); resultobj = Py_None;
12079 {
12080 if (temp2)
12081 delete arg2;
12082 }
12083 return resultobj;
12084 fail:
12085 {
12086 if (temp2)
12087 delete arg2;
12088 }
12089 return NULL;
12090}
12091
12092
c370783e 12093static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12094 PyObject *resultobj;
12095 wxDC *arg1 = (wxDC *) 0 ;
12096 wxString *arg2 = 0 ;
12097 wxPoint *arg3 = 0 ;
b411df4a 12098 bool temp2 = false ;
d55e5bfc
RD
12099 wxPoint temp3 ;
12100 PyObject * obj0 = 0 ;
12101 PyObject * obj1 = 0 ;
12102 PyObject * obj2 = 0 ;
12103 char *kwnames[] = {
12104 (char *) "self",(char *) "text",(char *) "pt", NULL
12105 };
12106
d6c14a4c 12107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
12108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12110 {
12111 arg2 = wxString_in_helper(obj1);
12112 if (arg2 == NULL) SWIG_fail;
b411df4a 12113 temp2 = true;
d55e5bfc
RD
12114 }
12115 {
12116 arg3 = &temp3;
12117 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12118 }
12119 {
12120 PyThreadState* __tstate = wxPyBeginAllowThreads();
12121 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12122
12123 wxPyEndAllowThreads(__tstate);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
12126 Py_INCREF(Py_None); resultobj = Py_None;
12127 {
12128 if (temp2)
12129 delete arg2;
12130 }
12131 return resultobj;
12132 fail:
12133 {
12134 if (temp2)
12135 delete arg2;
12136 }
12137 return NULL;
12138}
12139
12140
c370783e 12141static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12142 PyObject *resultobj;
12143 wxDC *arg1 = (wxDC *) 0 ;
12144 wxString *arg2 = 0 ;
12145 int arg3 ;
12146 int arg4 ;
12147 double arg5 ;
b411df4a 12148 bool temp2 = false ;
d55e5bfc
RD
12149 PyObject * obj0 = 0 ;
12150 PyObject * obj1 = 0 ;
12151 PyObject * obj2 = 0 ;
12152 PyObject * obj3 = 0 ;
12153 PyObject * obj4 = 0 ;
12154 char *kwnames[] = {
12155 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12156 };
12157
d6c14a4c 12158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
12159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12161 {
12162 arg2 = wxString_in_helper(obj1);
12163 if (arg2 == NULL) SWIG_fail;
b411df4a 12164 temp2 = true;
d55e5bfc 12165 }
c370783e 12166 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12167 if (PyErr_Occurred()) SWIG_fail;
c370783e 12168 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 12169 if (PyErr_Occurred()) SWIG_fail;
c370783e 12170 arg5 = (double)SWIG_As_double(obj4);
d55e5bfc
RD
12171 if (PyErr_Occurred()) SWIG_fail;
12172 {
12173 PyThreadState* __tstate = wxPyBeginAllowThreads();
12174 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12175
12176 wxPyEndAllowThreads(__tstate);
12177 if (PyErr_Occurred()) SWIG_fail;
12178 }
12179 Py_INCREF(Py_None); resultobj = Py_None;
12180 {
12181 if (temp2)
12182 delete arg2;
12183 }
12184 return resultobj;
12185 fail:
12186 {
12187 if (temp2)
12188 delete arg2;
12189 }
12190 return NULL;
12191}
12192
12193
c370783e 12194static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12195 PyObject *resultobj;
12196 wxDC *arg1 = (wxDC *) 0 ;
12197 wxString *arg2 = 0 ;
12198 wxPoint *arg3 = 0 ;
12199 double arg4 ;
b411df4a 12200 bool temp2 = false ;
d55e5bfc
RD
12201 wxPoint temp3 ;
12202 PyObject * obj0 = 0 ;
12203 PyObject * obj1 = 0 ;
12204 PyObject * obj2 = 0 ;
12205 PyObject * obj3 = 0 ;
12206 char *kwnames[] = {
12207 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12208 };
12209
d6c14a4c 12210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
12211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12213 {
12214 arg2 = wxString_in_helper(obj1);
12215 if (arg2 == NULL) SWIG_fail;
b411df4a 12216 temp2 = true;
d55e5bfc
RD
12217 }
12218 {
12219 arg3 = &temp3;
12220 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12221 }
c370783e 12222 arg4 = (double)SWIG_As_double(obj3);
d55e5bfc
RD
12223 if (PyErr_Occurred()) SWIG_fail;
12224 {
12225 PyThreadState* __tstate = wxPyBeginAllowThreads();
12226 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12227
12228 wxPyEndAllowThreads(__tstate);
12229 if (PyErr_Occurred()) SWIG_fail;
12230 }
12231 Py_INCREF(Py_None); resultobj = Py_None;
12232 {
12233 if (temp2)
12234 delete arg2;
12235 }
12236 return resultobj;
12237 fail:
12238 {
12239 if (temp2)
12240 delete arg2;
12241 }
12242 return NULL;
12243}
12244
12245
c370783e 12246static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12247 PyObject *resultobj;
12248 wxDC *arg1 = (wxDC *) 0 ;
12249 int arg2 ;
12250 int arg3 ;
12251 int arg4 ;
12252 int arg5 ;
12253 wxDC *arg6 = (wxDC *) 0 ;
12254 int arg7 ;
12255 int arg8 ;
12256 int arg9 = (int) wxCOPY ;
b411df4a 12257 bool arg10 = (bool) false ;
d55e5bfc
RD
12258 int arg11 = (int) -1 ;
12259 int arg12 = (int) -1 ;
12260 bool result;
12261 PyObject * obj0 = 0 ;
12262 PyObject * obj1 = 0 ;
12263 PyObject * obj2 = 0 ;
12264 PyObject * obj3 = 0 ;
12265 PyObject * obj4 = 0 ;
12266 PyObject * obj5 = 0 ;
12267 PyObject * obj6 = 0 ;
12268 PyObject * obj7 = 0 ;
12269 PyObject * obj8 = 0 ;
12270 PyObject * obj9 = 0 ;
12271 PyObject * obj10 = 0 ;
12272 PyObject * obj11 = 0 ;
12273 char *kwnames[] = {
12274 (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
12275 };
12276
d6c14a4c 12277 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
12278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 12280 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 12281 if (PyErr_Occurred()) SWIG_fail;
c370783e 12282 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12283 if (PyErr_Occurred()) SWIG_fail;
c370783e 12284 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 12285 if (PyErr_Occurred()) SWIG_fail;
c370783e 12286 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12287 if (PyErr_Occurred()) SWIG_fail;
12288 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 12290 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc 12291 if (PyErr_Occurred()) SWIG_fail;
c370783e 12292 arg8 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
12293 if (PyErr_Occurred()) SWIG_fail;
12294 if (obj8) {
c370783e 12295 arg9 = (int)SWIG_As_int(obj8);
d55e5bfc
RD
12296 if (PyErr_Occurred()) SWIG_fail;
12297 }
12298 if (obj9) {
c370783e 12299 arg10 = (bool)SWIG_As_bool(obj9);
d55e5bfc
RD
12300 if (PyErr_Occurred()) SWIG_fail;
12301 }
12302 if (obj10) {
c370783e 12303 arg11 = (int)SWIG_As_int(obj10);
d55e5bfc
RD
12304 if (PyErr_Occurred()) SWIG_fail;
12305 }
12306 if (obj11) {
c370783e 12307 arg12 = (int)SWIG_As_int(obj11);
d55e5bfc
RD
12308 if (PyErr_Occurred()) SWIG_fail;
12309 }
12310 {
12311 PyThreadState* __tstate = wxPyBeginAllowThreads();
12312 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12313
12314 wxPyEndAllowThreads(__tstate);
12315 if (PyErr_Occurred()) SWIG_fail;
12316 }
12317 {
12318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12319 }
12320 return resultobj;
12321 fail:
12322 return NULL;
12323}
12324
12325
c370783e 12326static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12327 PyObject *resultobj;
12328 wxDC *arg1 = (wxDC *) 0 ;
12329 wxPoint *arg2 = 0 ;
12330 wxSize *arg3 = 0 ;
12331 wxDC *arg4 = (wxDC *) 0 ;
12332 wxPoint *arg5 = 0 ;
12333 int arg6 = (int) wxCOPY ;
b411df4a 12334 bool arg7 = (bool) false ;
d55e5bfc
RD
12335 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12336 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12337 bool result;
12338 wxPoint temp2 ;
12339 wxSize temp3 ;
12340 wxPoint temp5 ;
12341 wxPoint temp8 ;
12342 PyObject * obj0 = 0 ;
12343 PyObject * obj1 = 0 ;
12344 PyObject * obj2 = 0 ;
12345 PyObject * obj3 = 0 ;
12346 PyObject * obj4 = 0 ;
12347 PyObject * obj5 = 0 ;
12348 PyObject * obj6 = 0 ;
12349 PyObject * obj7 = 0 ;
12350 char *kwnames[] = {
12351 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12352 };
12353
d6c14a4c 12354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
12355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12357 {
12358 arg2 = &temp2;
12359 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12360 }
12361 {
12362 arg3 = &temp3;
12363 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12364 }
12365 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12367 {
12368 arg5 = &temp5;
12369 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12370 }
12371 if (obj5) {
c370783e 12372 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
12373 if (PyErr_Occurred()) SWIG_fail;
12374 }
12375 if (obj6) {
c370783e 12376 arg7 = (bool)SWIG_As_bool(obj6);
d55e5bfc
RD
12377 if (PyErr_Occurred()) SWIG_fail;
12378 }
12379 if (obj7) {
12380 {
12381 arg8 = &temp8;
12382 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12383 }
12384 }
12385 {
12386 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c
RD
12387 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12388
12389 wxPyEndAllowThreads(__tstate);
12390 if (PyErr_Occurred()) SWIG_fail;
12391 }
12392 {
12393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12394 }
12395 return resultobj;
12396 fail:
12397 return NULL;
12398}
12399
12400
c370783e 12401static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
12402 PyObject *resultobj;
12403 wxDC *arg1 = (wxDC *) 0 ;
12404 int arg2 ;
12405 int arg3 ;
12406 int arg4 ;
12407 int arg5 ;
12408 PyObject * obj0 = 0 ;
12409 PyObject * obj1 = 0 ;
12410 PyObject * obj2 = 0 ;
12411 PyObject * obj3 = 0 ;
12412 PyObject * obj4 = 0 ;
12413 char *kwnames[] = {
12414 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12415 };
12416
12417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 12420 arg2 = (int)SWIG_As_int(obj1);
d6c14a4c 12421 if (PyErr_Occurred()) SWIG_fail;
c370783e 12422 arg3 = (int)SWIG_As_int(obj2);
d6c14a4c 12423 if (PyErr_Occurred()) SWIG_fail;
c370783e 12424 arg4 = (int)SWIG_As_int(obj3);
d6c14a4c 12425 if (PyErr_Occurred()) SWIG_fail;
c370783e 12426 arg5 = (int)SWIG_As_int(obj4);
d6c14a4c
RD
12427 if (PyErr_Occurred()) SWIG_fail;
12428 {
12429 PyThreadState* __tstate = wxPyBeginAllowThreads();
12430 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12431
12432 wxPyEndAllowThreads(__tstate);
12433 if (PyErr_Occurred()) SWIG_fail;
12434 }
12435 Py_INCREF(Py_None); resultobj = Py_None;
12436 return resultobj;
12437 fail:
12438 return NULL;
12439}
12440
12441
c370783e 12442static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
12443 PyObject *resultobj;
12444 wxDC *arg1 = (wxDC *) 0 ;
12445 wxPoint *arg2 = 0 ;
12446 wxSize *arg3 = 0 ;
12447 wxPoint temp2 ;
12448 wxSize temp3 ;
12449 PyObject * obj0 = 0 ;
12450 PyObject * obj1 = 0 ;
12451 PyObject * obj2 = 0 ;
12452 char *kwnames[] = {
12453 (char *) "self",(char *) "pt",(char *) "sz", NULL
12454 };
12455
12456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12459 {
12460 arg2 = &temp2;
12461 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12462 }
12463 {
12464 arg3 = &temp3;
12465 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12466 }
12467 {
12468 PyThreadState* __tstate = wxPyBeginAllowThreads();
12469 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12470
12471 wxPyEndAllowThreads(__tstate);
12472 if (PyErr_Occurred()) SWIG_fail;
12473 }
12474 Py_INCREF(Py_None); resultobj = Py_None;
12475 return resultobj;
12476 fail:
12477 return NULL;
12478}
12479
12480
c370783e 12481static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
12482 PyObject *resultobj;
12483 wxDC *arg1 = (wxDC *) 0 ;
12484 wxRegion *arg2 = 0 ;
12485 PyObject * obj0 = 0 ;
12486 PyObject * obj1 = 0 ;
12487 char *kwnames[] = {
12488 (char *) "self",(char *) "region", NULL
12489 };
12490
12491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12494 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12495 SWIG_POINTER_EXCEPTION | 0)) == -1)
12496 SWIG_fail;
12497 if (arg2 == NULL) {
12498 PyErr_SetString(PyExc_TypeError,"null reference");
12499 SWIG_fail;
12500 }
12501 {
12502 PyThreadState* __tstate = wxPyBeginAllowThreads();
12503 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12504
12505 wxPyEndAllowThreads(__tstate);
12506 if (PyErr_Occurred()) SWIG_fail;
12507 }
12508 Py_INCREF(Py_None); resultobj = Py_None;
12509 return resultobj;
12510 fail:
12511 return NULL;
12512}
12513
12514
c370783e 12515static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
12516 PyObject *resultobj;
12517 wxDC *arg1 = (wxDC *) 0 ;
12518 wxRect *arg2 = 0 ;
12519 wxRect temp2 ;
12520 PyObject * obj0 = 0 ;
12521 PyObject * obj1 = 0 ;
12522 char *kwnames[] = {
12523 (char *) "self",(char *) "rect", NULL
12524 };
12525
12526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12529 {
12530 arg2 = &temp2;
12531 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12532 }
12533 {
12534 PyThreadState* __tstate = wxPyBeginAllowThreads();
12535 (arg1)->SetClippingRegion((wxRect const &)*arg2);
d55e5bfc
RD
12536
12537 wxPyEndAllowThreads(__tstate);
12538 if (PyErr_Occurred()) SWIG_fail;
12539 }
d6c14a4c 12540 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
12541 return resultobj;
12542 fail:
12543 return NULL;
12544}
12545
12546
c370783e 12547static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12548 PyObject *resultobj;
12549 wxDC *arg1 = (wxDC *) 0 ;
12550 int arg2 ;
12551 wxPoint *arg3 = (wxPoint *) 0 ;
12552 int arg4 = (int) 0 ;
12553 int arg5 = (int) 0 ;
12554 PyObject * obj0 = 0 ;
12555 PyObject * obj1 = 0 ;
12556 PyObject * obj2 = 0 ;
12557 PyObject * obj3 = 0 ;
12558 char *kwnames[] = {
12559 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12560 };
12561
12562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12565 {
12566 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12567 if (arg3 == NULL) SWIG_fail;
12568 }
12569 if (obj2) {
c370783e 12570 arg4 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
12571 if (PyErr_Occurred()) SWIG_fail;
12572 }
12573 if (obj3) {
c370783e 12574 arg5 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12575 if (PyErr_Occurred()) SWIG_fail;
12576 }
12577 {
12578 PyThreadState* __tstate = wxPyBeginAllowThreads();
12579 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12580
12581 wxPyEndAllowThreads(__tstate);
12582 if (PyErr_Occurred()) SWIG_fail;
12583 }
12584 Py_INCREF(Py_None); resultobj = Py_None;
12585 {
12586 if (arg3) delete [] arg3;
12587 }
12588 return resultobj;
12589 fail:
12590 {
12591 if (arg3) delete [] arg3;
12592 }
12593 return NULL;
12594}
12595
12596
c370783e 12597static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12598 PyObject *resultobj;
12599 wxDC *arg1 = (wxDC *) 0 ;
12600 int arg2 ;
12601 wxPoint *arg3 = (wxPoint *) 0 ;
12602 int arg4 = (int) 0 ;
12603 int arg5 = (int) 0 ;
12604 int arg6 = (int) wxODDEVEN_RULE ;
12605 PyObject * obj0 = 0 ;
12606 PyObject * obj1 = 0 ;
12607 PyObject * obj2 = 0 ;
12608 PyObject * obj3 = 0 ;
12609 PyObject * obj4 = 0 ;
12610 char *kwnames[] = {
12611 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12612 };
12613
12614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12617 {
12618 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12619 if (arg3 == NULL) SWIG_fail;
12620 }
12621 if (obj2) {
c370783e 12622 arg4 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
12623 if (PyErr_Occurred()) SWIG_fail;
12624 }
12625 if (obj3) {
c370783e 12626 arg5 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12627 if (PyErr_Occurred()) SWIG_fail;
12628 }
12629 if (obj4) {
c370783e 12630 arg6 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12631 if (PyErr_Occurred()) SWIG_fail;
12632 }
12633 {
12634 PyThreadState* __tstate = wxPyBeginAllowThreads();
12635 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12636
12637 wxPyEndAllowThreads(__tstate);
12638 if (PyErr_Occurred()) SWIG_fail;
12639 }
12640 Py_INCREF(Py_None); resultobj = Py_None;
12641 {
12642 if (arg3) delete [] arg3;
12643 }
12644 return resultobj;
12645 fail:
12646 {
12647 if (arg3) delete [] arg3;
12648 }
12649 return NULL;
12650}
12651
12652
c370783e 12653static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12654 PyObject *resultobj;
12655 wxDC *arg1 = (wxDC *) 0 ;
12656 wxString *arg2 = 0 ;
12657 wxRect *arg3 = 0 ;
12658 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12659 int arg5 = (int) -1 ;
b411df4a 12660 bool temp2 = false ;
d55e5bfc
RD
12661 wxRect temp3 ;
12662 PyObject * obj0 = 0 ;
12663 PyObject * obj1 = 0 ;
12664 PyObject * obj2 = 0 ;
12665 PyObject * obj3 = 0 ;
12666 PyObject * obj4 = 0 ;
12667 char *kwnames[] = {
12668 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12669 };
12670
12671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12674 {
12675 arg2 = wxString_in_helper(obj1);
12676 if (arg2 == NULL) SWIG_fail;
b411df4a 12677 temp2 = true;
d55e5bfc
RD
12678 }
12679 {
12680 arg3 = &temp3;
12681 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12682 }
12683 if (obj3) {
c370783e 12684 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12685 if (PyErr_Occurred()) SWIG_fail;
12686 }
12687 if (obj4) {
c370783e 12688 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12689 if (PyErr_Occurred()) SWIG_fail;
12690 }
12691 {
12692 PyThreadState* __tstate = wxPyBeginAllowThreads();
12693 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12694
12695 wxPyEndAllowThreads(__tstate);
12696 if (PyErr_Occurred()) SWIG_fail;
12697 }
12698 Py_INCREF(Py_None); resultobj = Py_None;
12699 {
12700 if (temp2)
12701 delete arg2;
12702 }
12703 return resultobj;
12704 fail:
12705 {
12706 if (temp2)
12707 delete arg2;
12708 }
12709 return NULL;
12710}
12711
12712
c370783e 12713static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12714 PyObject *resultobj;
12715 wxDC *arg1 = (wxDC *) 0 ;
12716 wxString *arg2 = 0 ;
12717 wxBitmap *arg3 = 0 ;
12718 wxRect *arg4 = 0 ;
12719 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12720 int arg6 = (int) -1 ;
12721 wxRect result;
b411df4a 12722 bool temp2 = false ;
d55e5bfc
RD
12723 wxRect temp4 ;
12724 PyObject * obj0 = 0 ;
12725 PyObject * obj1 = 0 ;
12726 PyObject * obj2 = 0 ;
12727 PyObject * obj3 = 0 ;
12728 PyObject * obj4 = 0 ;
12729 PyObject * obj5 = 0 ;
12730 char *kwnames[] = {
12731 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12732 };
12733
12734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12737 {
12738 arg2 = wxString_in_helper(obj1);
12739 if (arg2 == NULL) SWIG_fail;
b411df4a 12740 temp2 = true;
d55e5bfc
RD
12741 }
12742 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12743 SWIG_POINTER_EXCEPTION | 0)) == -1)
12744 SWIG_fail;
12745 if (arg3 == NULL) {
12746 PyErr_SetString(PyExc_TypeError,"null reference");
12747 SWIG_fail;
12748 }
12749 {
12750 arg4 = &temp4;
12751 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12752 }
12753 if (obj4) {
c370783e 12754 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
12755 if (PyErr_Occurred()) SWIG_fail;
12756 }
12757 if (obj5) {
c370783e 12758 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
12759 if (PyErr_Occurred()) SWIG_fail;
12760 }
12761 {
12762 PyThreadState* __tstate = wxPyBeginAllowThreads();
12763 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12764
12765 wxPyEndAllowThreads(__tstate);
12766 if (PyErr_Occurred()) SWIG_fail;
12767 }
12768 {
12769 wxRect * resultptr;
12770 resultptr = new wxRect((wxRect &) result);
12771 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12772 }
12773 {
12774 if (temp2)
12775 delete arg2;
12776 }
12777 return resultobj;
12778 fail:
12779 {
12780 if (temp2)
12781 delete arg2;
12782 }
12783 return NULL;
12784}
12785
12786
c370783e 12787static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12788 PyObject *resultobj;
12789 wxDC *arg1 = (wxDC *) 0 ;
12790 int arg2 ;
12791 wxPoint *arg3 = (wxPoint *) 0 ;
12792 PyObject * obj0 = 0 ;
12793 PyObject * obj1 = 0 ;
12794 char *kwnames[] = {
12795 (char *) "self",(char *) "points", NULL
12796 };
12797
12798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12801 {
12802 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12803 if (arg3 == NULL) SWIG_fail;
12804 }
12805 {
12806 PyThreadState* __tstate = wxPyBeginAllowThreads();
12807 (arg1)->DrawSpline(arg2,arg3);
12808
12809 wxPyEndAllowThreads(__tstate);
12810 if (PyErr_Occurred()) SWIG_fail;
12811 }
12812 Py_INCREF(Py_None); resultobj = Py_None;
12813 {
12814 if (arg3) delete [] arg3;
12815 }
12816 return resultobj;
12817 fail:
12818 {
12819 if (arg3) delete [] arg3;
12820 }
12821 return NULL;
12822}
12823
12824
c370783e 12825static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12826 PyObject *resultobj;
12827 wxDC *arg1 = (wxDC *) 0 ;
12828 PyObject * obj0 = 0 ;
12829 char *kwnames[] = {
12830 (char *) "self", NULL
12831 };
12832
12833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12836 {
12837 PyThreadState* __tstate = wxPyBeginAllowThreads();
12838 (arg1)->Clear();
12839
12840 wxPyEndAllowThreads(__tstate);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 }
12843 Py_INCREF(Py_None); resultobj = Py_None;
12844 return resultobj;
12845 fail:
12846 return NULL;
12847}
12848
12849
c370783e 12850static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12851 PyObject *resultobj;
12852 wxDC *arg1 = (wxDC *) 0 ;
12853 wxString *arg2 = 0 ;
12854 bool result;
b411df4a 12855 bool temp2 = false ;
d55e5bfc
RD
12856 PyObject * obj0 = 0 ;
12857 PyObject * obj1 = 0 ;
12858 char *kwnames[] = {
12859 (char *) "self",(char *) "message", NULL
12860 };
12861
12862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12865 {
12866 arg2 = wxString_in_helper(obj1);
12867 if (arg2 == NULL) SWIG_fail;
b411df4a 12868 temp2 = true;
d55e5bfc
RD
12869 }
12870 {
12871 PyThreadState* __tstate = wxPyBeginAllowThreads();
12872 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12873
12874 wxPyEndAllowThreads(__tstate);
12875 if (PyErr_Occurred()) SWIG_fail;
12876 }
12877 {
12878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12879 }
12880 {
12881 if (temp2)
12882 delete arg2;
12883 }
12884 return resultobj;
12885 fail:
12886 {
12887 if (temp2)
12888 delete arg2;
12889 }
12890 return NULL;
12891}
12892
12893
c370783e 12894static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12895 PyObject *resultobj;
12896 wxDC *arg1 = (wxDC *) 0 ;
12897 PyObject * obj0 = 0 ;
12898 char *kwnames[] = {
12899 (char *) "self", NULL
12900 };
12901
12902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12905 {
12906 PyThreadState* __tstate = wxPyBeginAllowThreads();
12907 (arg1)->EndDoc();
12908
12909 wxPyEndAllowThreads(__tstate);
12910 if (PyErr_Occurred()) SWIG_fail;
12911 }
12912 Py_INCREF(Py_None); resultobj = Py_None;
12913 return resultobj;
12914 fail:
12915 return NULL;
12916}
12917
12918
c370783e 12919static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12920 PyObject *resultobj;
12921 wxDC *arg1 = (wxDC *) 0 ;
12922 PyObject * obj0 = 0 ;
12923 char *kwnames[] = {
12924 (char *) "self", NULL
12925 };
12926
12927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12930 {
12931 PyThreadState* __tstate = wxPyBeginAllowThreads();
12932 (arg1)->StartPage();
12933
12934 wxPyEndAllowThreads(__tstate);
12935 if (PyErr_Occurred()) SWIG_fail;
12936 }
12937 Py_INCREF(Py_None); resultobj = Py_None;
12938 return resultobj;
12939 fail:
12940 return NULL;
12941}
12942
12943
c370783e 12944static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12945 PyObject *resultobj;
12946 wxDC *arg1 = (wxDC *) 0 ;
12947 PyObject * obj0 = 0 ;
12948 char *kwnames[] = {
12949 (char *) "self", NULL
12950 };
12951
12952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12955 {
12956 PyThreadState* __tstate = wxPyBeginAllowThreads();
12957 (arg1)->EndPage();
12958
12959 wxPyEndAllowThreads(__tstate);
12960 if (PyErr_Occurred()) SWIG_fail;
12961 }
12962 Py_INCREF(Py_None); resultobj = Py_None;
12963 return resultobj;
12964 fail:
12965 return NULL;
12966}
12967
12968
c370783e 12969static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12970 PyObject *resultobj;
12971 wxDC *arg1 = (wxDC *) 0 ;
12972 wxFont *arg2 = 0 ;
12973 PyObject * obj0 = 0 ;
12974 PyObject * obj1 = 0 ;
12975 char *kwnames[] = {
12976 (char *) "self",(char *) "font", NULL
12977 };
12978
12979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12982 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12983 SWIG_POINTER_EXCEPTION | 0)) == -1)
12984 SWIG_fail;
12985 if (arg2 == NULL) {
12986 PyErr_SetString(PyExc_TypeError,"null reference");
12987 SWIG_fail;
12988 }
12989 {
12990 PyThreadState* __tstate = wxPyBeginAllowThreads();
12991 (arg1)->SetFont((wxFont const &)*arg2);
12992
12993 wxPyEndAllowThreads(__tstate);
12994 if (PyErr_Occurred()) SWIG_fail;
12995 }
12996 Py_INCREF(Py_None); resultobj = Py_None;
12997 return resultobj;
12998 fail:
12999 return NULL;
13000}
13001
13002
c370783e 13003static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13004 PyObject *resultobj;
13005 wxDC *arg1 = (wxDC *) 0 ;
13006 wxPen *arg2 = 0 ;
13007 PyObject * obj0 = 0 ;
13008 PyObject * obj1 = 0 ;
13009 char *kwnames[] = {
13010 (char *) "self",(char *) "pen", NULL
13011 };
13012
13013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
13014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13016 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
13017 SWIG_POINTER_EXCEPTION | 0)) == -1)
13018 SWIG_fail;
13019 if (arg2 == NULL) {
13020 PyErr_SetString(PyExc_TypeError,"null reference");
13021 SWIG_fail;
13022 }
13023 {
13024 PyThreadState* __tstate = wxPyBeginAllowThreads();
13025 (arg1)->SetPen((wxPen const &)*arg2);
13026
13027 wxPyEndAllowThreads(__tstate);
13028 if (PyErr_Occurred()) SWIG_fail;
13029 }
13030 Py_INCREF(Py_None); resultobj = Py_None;
13031 return resultobj;
13032 fail:
13033 return NULL;
13034}
13035
13036
c370783e 13037static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13038 PyObject *resultobj;
13039 wxDC *arg1 = (wxDC *) 0 ;
13040 wxBrush *arg2 = 0 ;
13041 PyObject * obj0 = 0 ;
13042 PyObject * obj1 = 0 ;
13043 char *kwnames[] = {
13044 (char *) "self",(char *) "brush", NULL
13045 };
13046
13047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
13048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13050 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13051 SWIG_POINTER_EXCEPTION | 0)) == -1)
13052 SWIG_fail;
13053 if (arg2 == NULL) {
13054 PyErr_SetString(PyExc_TypeError,"null reference");
13055 SWIG_fail;
13056 }
13057 {
13058 PyThreadState* __tstate = wxPyBeginAllowThreads();
13059 (arg1)->SetBrush((wxBrush const &)*arg2);
13060
13061 wxPyEndAllowThreads(__tstate);
13062 if (PyErr_Occurred()) SWIG_fail;
13063 }
13064 Py_INCREF(Py_None); resultobj = Py_None;
13065 return resultobj;
13066 fail:
13067 return NULL;
13068}
13069
13070
c370783e 13071static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13072 PyObject *resultobj;
13073 wxDC *arg1 = (wxDC *) 0 ;
13074 wxBrush *arg2 = 0 ;
13075 PyObject * obj0 = 0 ;
13076 PyObject * obj1 = 0 ;
13077 char *kwnames[] = {
13078 (char *) "self",(char *) "brush", NULL
13079 };
13080
13081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
13082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13084 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13085 SWIG_POINTER_EXCEPTION | 0)) == -1)
13086 SWIG_fail;
13087 if (arg2 == NULL) {
13088 PyErr_SetString(PyExc_TypeError,"null reference");
13089 SWIG_fail;
13090 }
13091 {
13092 PyThreadState* __tstate = wxPyBeginAllowThreads();
13093 (arg1)->SetBackground((wxBrush const &)*arg2);
13094
13095 wxPyEndAllowThreads(__tstate);
13096 if (PyErr_Occurred()) SWIG_fail;
13097 }
13098 Py_INCREF(Py_None); resultobj = Py_None;
13099 return resultobj;
13100 fail:
13101 return NULL;
13102}
13103
13104
c370783e 13105static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13106 PyObject *resultobj;
13107 wxDC *arg1 = (wxDC *) 0 ;
13108 int arg2 ;
13109 PyObject * obj0 = 0 ;
13110 PyObject * obj1 = 0 ;
13111 char *kwnames[] = {
13112 (char *) "self",(char *) "mode", NULL
13113 };
13114
13115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13118 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13119 if (PyErr_Occurred()) SWIG_fail;
13120 {
13121 PyThreadState* __tstate = wxPyBeginAllowThreads();
13122 (arg1)->SetBackgroundMode(arg2);
13123
13124 wxPyEndAllowThreads(__tstate);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 }
13127 Py_INCREF(Py_None); resultobj = Py_None;
13128 return resultobj;
13129 fail:
13130 return NULL;
13131}
13132
13133
c370783e 13134static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13135 PyObject *resultobj;
13136 wxDC *arg1 = (wxDC *) 0 ;
13137 wxPalette *arg2 = 0 ;
13138 PyObject * obj0 = 0 ;
13139 PyObject * obj1 = 0 ;
13140 char *kwnames[] = {
13141 (char *) "self",(char *) "palette", NULL
13142 };
13143
13144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13147 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13148 SWIG_POINTER_EXCEPTION | 0)) == -1)
13149 SWIG_fail;
13150 if (arg2 == NULL) {
13151 PyErr_SetString(PyExc_TypeError,"null reference");
13152 SWIG_fail;
13153 }
13154 {
13155 PyThreadState* __tstate = wxPyBeginAllowThreads();
13156 (arg1)->SetPalette((wxPalette const &)*arg2);
13157
13158 wxPyEndAllowThreads(__tstate);
13159 if (PyErr_Occurred()) SWIG_fail;
13160 }
13161 Py_INCREF(Py_None); resultobj = Py_None;
13162 return resultobj;
13163 fail:
13164 return NULL;
13165}
13166
13167
c370783e 13168static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13169 PyObject *resultobj;
13170 wxDC *arg1 = (wxDC *) 0 ;
13171 PyObject * obj0 = 0 ;
13172 char *kwnames[] = {
13173 (char *) "self", NULL
13174 };
13175
13176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13179 {
13180 PyThreadState* __tstate = wxPyBeginAllowThreads();
13181 (arg1)->DestroyClippingRegion();
13182
13183 wxPyEndAllowThreads(__tstate);
13184 if (PyErr_Occurred()) SWIG_fail;
13185 }
13186 Py_INCREF(Py_None); resultobj = Py_None;
13187 return resultobj;
13188 fail:
13189 return NULL;
13190}
13191
13192
c370783e 13193static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13194 PyObject *resultobj;
13195 wxDC *arg1 = (wxDC *) 0 ;
13196 int *arg2 = (int *) 0 ;
13197 int *arg3 = (int *) 0 ;
13198 int *arg4 = (int *) 0 ;
13199 int *arg5 = (int *) 0 ;
13200 int temp2 ;
c370783e 13201 int res2 = 0 ;
d55e5bfc 13202 int temp3 ;
c370783e 13203 int res3 = 0 ;
d55e5bfc 13204 int temp4 ;
c370783e 13205 int res4 = 0 ;
d55e5bfc 13206 int temp5 ;
c370783e 13207 int res5 = 0 ;
d55e5bfc
RD
13208 PyObject * obj0 = 0 ;
13209 char *kwnames[] = {
13210 (char *) "self", NULL
13211 };
13212
c370783e
RD
13213 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13214 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13215 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13216 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
13217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13220 {
13221 PyThreadState* __tstate = wxPyBeginAllowThreads();
13222 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13223
13224 wxPyEndAllowThreads(__tstate);
13225 if (PyErr_Occurred()) SWIG_fail;
13226 }
13227 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
13228 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13229 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13230 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13231 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13232 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13233 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13234 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13235 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13236 return resultobj;
13237 fail:
13238 return NULL;
13239}
13240
13241
c370783e 13242static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13243 PyObject *resultobj;
13244 wxDC *arg1 = (wxDC *) 0 ;
13245 wxRect result;
13246 PyObject * obj0 = 0 ;
13247 char *kwnames[] = {
13248 (char *) "self", NULL
13249 };
13250
13251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13254 {
13255 PyThreadState* __tstate = wxPyBeginAllowThreads();
13256 result = wxDC_GetClippingRect(arg1);
13257
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 {
13262 wxRect * resultptr;
13263 resultptr = new wxRect((wxRect &) result);
13264 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13265 }
13266 return resultobj;
13267 fail:
13268 return NULL;
13269}
13270
13271
c370783e 13272static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13273 PyObject *resultobj;
13274 wxDC *arg1 = (wxDC *) 0 ;
13275 int result;
13276 PyObject * obj0 = 0 ;
13277 char *kwnames[] = {
13278 (char *) "self", NULL
13279 };
13280
13281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13284 {
13285 PyThreadState* __tstate = wxPyBeginAllowThreads();
13286 result = (int)((wxDC const *)arg1)->GetCharHeight();
13287
13288 wxPyEndAllowThreads(__tstate);
13289 if (PyErr_Occurred()) SWIG_fail;
13290 }
c370783e 13291 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13292 return resultobj;
13293 fail:
13294 return NULL;
13295}
13296
13297
c370783e 13298static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13299 PyObject *resultobj;
13300 wxDC *arg1 = (wxDC *) 0 ;
13301 int result;
13302 PyObject * obj0 = 0 ;
13303 char *kwnames[] = {
13304 (char *) "self", NULL
13305 };
13306
13307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13310 {
13311 PyThreadState* __tstate = wxPyBeginAllowThreads();
13312 result = (int)((wxDC const *)arg1)->GetCharWidth();
13313
13314 wxPyEndAllowThreads(__tstate);
13315 if (PyErr_Occurred()) SWIG_fail;
13316 }
c370783e 13317 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13318 return resultobj;
13319 fail:
13320 return NULL;
13321}
13322
13323
c370783e 13324static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13325 PyObject *resultobj;
13326 wxDC *arg1 = (wxDC *) 0 ;
13327 wxString *arg2 = 0 ;
13328 int *arg3 = (int *) 0 ;
13329 int *arg4 = (int *) 0 ;
b411df4a 13330 bool temp2 = false ;
d55e5bfc 13331 int temp3 ;
c370783e 13332 int res3 = 0 ;
d55e5bfc 13333 int temp4 ;
c370783e 13334 int res4 = 0 ;
d55e5bfc
RD
13335 PyObject * obj0 = 0 ;
13336 PyObject * obj1 = 0 ;
13337 char *kwnames[] = {
13338 (char *) "self",(char *) "string", NULL
13339 };
13340
c370783e
RD
13341 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13342 arg4 = &temp4; res4 = SWIG_NEWOBJ;
d55e5bfc
RD
13343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13346 {
13347 arg2 = wxString_in_helper(obj1);
13348 if (arg2 == NULL) SWIG_fail;
b411df4a 13349 temp2 = true;
d55e5bfc
RD
13350 }
13351 {
13352 PyThreadState* __tstate = wxPyBeginAllowThreads();
13353 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13354
13355 wxPyEndAllowThreads(__tstate);
13356 if (PyErr_Occurred()) SWIG_fail;
13357 }
13358 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
13359 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13360 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13361 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13362 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13363 {
13364 if (temp2)
13365 delete arg2;
13366 }
13367 return resultobj;
13368 fail:
13369 {
13370 if (temp2)
13371 delete arg2;
13372 }
13373 return NULL;
13374}
13375
13376
c370783e 13377static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13378 PyObject *resultobj;
13379 wxDC *arg1 = (wxDC *) 0 ;
13380 wxString *arg2 = 0 ;
13381 int *arg3 = (int *) 0 ;
13382 int *arg4 = (int *) 0 ;
13383 int *arg5 = (int *) 0 ;
13384 int *arg6 = (int *) 0 ;
13385 wxFont *arg7 = (wxFont *) NULL ;
b411df4a 13386 bool temp2 = false ;
d55e5bfc 13387 int temp3 ;
c370783e 13388 int res3 = 0 ;
d55e5bfc 13389 int temp4 ;
c370783e 13390 int res4 = 0 ;
d55e5bfc 13391 int temp5 ;
c370783e 13392 int res5 = 0 ;
d55e5bfc 13393 int temp6 ;
c370783e 13394 int res6 = 0 ;
d55e5bfc
RD
13395 PyObject * obj0 = 0 ;
13396 PyObject * obj1 = 0 ;
13397 PyObject * obj2 = 0 ;
13398 char *kwnames[] = {
13399 (char *) "self",(char *) "string",(char *) "font", NULL
13400 };
13401
c370783e
RD
13402 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13403 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13404 arg5 = &temp5; res5 = SWIG_NEWOBJ;
13405 arg6 = &temp6; res6 = SWIG_NEWOBJ;
d55e5bfc
RD
13406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13409 {
13410 arg2 = wxString_in_helper(obj1);
13411 if (arg2 == NULL) SWIG_fail;
b411df4a 13412 temp2 = true;
d55e5bfc
RD
13413 }
13414 if (obj2) {
13415 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13417 }
13418 {
13419 PyThreadState* __tstate = wxPyBeginAllowThreads();
13420 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13421
13422 wxPyEndAllowThreads(__tstate);
13423 if (PyErr_Occurred()) SWIG_fail;
13424 }
13425 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
13426 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13427 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13428 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13429 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13430 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13431 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
13432 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
13433 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13434 {
13435 if (temp2)
13436 delete arg2;
13437 }
13438 return resultobj;
13439 fail:
13440 {
13441 if (temp2)
13442 delete arg2;
13443 }
13444 return NULL;
13445}
13446
13447
c370783e 13448static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13449 PyObject *resultobj;
13450 wxDC *arg1 = (wxDC *) 0 ;
13451 wxString *arg2 = 0 ;
13452 int *arg3 = (int *) 0 ;
13453 int *arg4 = (int *) 0 ;
13454 int *arg5 = (int *) 0 ;
13455 wxFont *arg6 = (wxFont *) NULL ;
b411df4a 13456 bool temp2 = false ;
d55e5bfc 13457 int temp3 ;
c370783e 13458 int res3 = 0 ;
d55e5bfc 13459 int temp4 ;
c370783e 13460 int res4 = 0 ;
d55e5bfc 13461 int temp5 ;
c370783e 13462 int res5 = 0 ;
d55e5bfc
RD
13463 PyObject * obj0 = 0 ;
13464 PyObject * obj1 = 0 ;
13465 PyObject * obj2 = 0 ;
13466 char *kwnames[] = {
13467 (char *) "self",(char *) "text",(char *) "font", NULL
13468 };
13469
c370783e
RD
13470 arg3 = &temp3; res3 = SWIG_NEWOBJ;
13471 arg4 = &temp4; res4 = SWIG_NEWOBJ;
13472 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
13473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13476 {
13477 arg2 = wxString_in_helper(obj1);
13478 if (arg2 == NULL) SWIG_fail;
b411df4a 13479 temp2 = true;
d55e5bfc
RD
13480 }
13481 if (obj2) {
13482 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13484 }
13485 {
13486 PyThreadState* __tstate = wxPyBeginAllowThreads();
13487 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13488
13489 wxPyEndAllowThreads(__tstate);
13490 if (PyErr_Occurred()) SWIG_fail;
13491 }
13492 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
13493 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13494 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
13495 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
13496 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
13497 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
13498 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13499 {
13500 if (temp2)
13501 delete arg2;
13502 }
13503 return resultobj;
13504 fail:
13505 {
13506 if (temp2)
13507 delete arg2;
13508 }
13509 return NULL;
13510}
13511
13512
c370783e 13513static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13514 PyObject *resultobj;
13515 wxDC *arg1 = (wxDC *) 0 ;
13516 wxString *arg2 = 0 ;
13517 wxArrayInt result;
b411df4a 13518 bool temp2 = false ;
d55e5bfc
RD
13519 PyObject * obj0 = 0 ;
13520 PyObject * obj1 = 0 ;
13521 char *kwnames[] = {
13522 (char *) "self",(char *) "text", NULL
13523 };
13524
13525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13528 {
13529 arg2 = wxString_in_helper(obj1);
13530 if (arg2 == NULL) SWIG_fail;
b411df4a 13531 temp2 = true;
d55e5bfc
RD
13532 }
13533 {
13534 PyThreadState* __tstate = wxPyBeginAllowThreads();
13535 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13536
13537 wxPyEndAllowThreads(__tstate);
13538 if (PyErr_Occurred()) SWIG_fail;
13539 }
13540 {
13541 resultobj = PyList_New(0);
13542 size_t idx;
13543 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13544 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13545 PyList_Append(resultobj, val);
13546 Py_DECREF(val);
13547 }
13548 }
13549 {
13550 if (temp2)
13551 delete arg2;
13552 }
13553 return resultobj;
13554 fail:
13555 {
13556 if (temp2)
13557 delete arg2;
13558 }
13559 return NULL;
13560}
13561
13562
c370783e 13563static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13564 PyObject *resultobj;
13565 wxDC *arg1 = (wxDC *) 0 ;
13566 wxSize result;
13567 PyObject * obj0 = 0 ;
13568 char *kwnames[] = {
13569 (char *) "self", NULL
13570 };
13571
13572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13575 {
13576 PyThreadState* __tstate = wxPyBeginAllowThreads();
13577 result = (arg1)->GetSize();
13578
13579 wxPyEndAllowThreads(__tstate);
13580 if (PyErr_Occurred()) SWIG_fail;
13581 }
13582 {
13583 wxSize * resultptr;
13584 resultptr = new wxSize((wxSize &) result);
13585 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13586 }
13587 return resultobj;
13588 fail:
13589 return NULL;
13590}
13591
13592
c370783e 13593static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13594 PyObject *resultobj;
13595 wxDC *arg1 = (wxDC *) 0 ;
13596 int *arg2 = (int *) 0 ;
13597 int *arg3 = (int *) 0 ;
13598 int temp2 ;
c370783e 13599 int res2 = 0 ;
d55e5bfc 13600 int temp3 ;
c370783e 13601 int res3 = 0 ;
d55e5bfc
RD
13602 PyObject * obj0 = 0 ;
13603 char *kwnames[] = {
13604 (char *) "self", NULL
13605 };
13606
c370783e
RD
13607 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13608 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
13609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13612 {
13613 PyThreadState* __tstate = wxPyBeginAllowThreads();
13614 (arg1)->GetSize(arg2,arg3);
13615
13616 wxPyEndAllowThreads(__tstate);
13617 if (PyErr_Occurred()) SWIG_fail;
13618 }
13619 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
13620 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13621 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13622 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13623 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13624 return resultobj;
13625 fail:
13626 return NULL;
13627}
13628
13629
c370783e 13630static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13631 PyObject *resultobj;
13632 wxDC *arg1 = (wxDC *) 0 ;
13633 wxSize result;
13634 PyObject * obj0 = 0 ;
13635 char *kwnames[] = {
13636 (char *) "self", NULL
13637 };
13638
13639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13642 {
13643 PyThreadState* __tstate = wxPyBeginAllowThreads();
13644 result = ((wxDC const *)arg1)->GetSizeMM();
13645
13646 wxPyEndAllowThreads(__tstate);
13647 if (PyErr_Occurred()) SWIG_fail;
13648 }
13649 {
13650 wxSize * resultptr;
13651 resultptr = new wxSize((wxSize &) result);
13652 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13653 }
13654 return resultobj;
13655 fail:
13656 return NULL;
13657}
13658
13659
c370783e 13660static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13661 PyObject *resultobj;
13662 wxDC *arg1 = (wxDC *) 0 ;
13663 int *arg2 = (int *) 0 ;
13664 int *arg3 = (int *) 0 ;
13665 int temp2 ;
c370783e 13666 int res2 = 0 ;
d55e5bfc 13667 int temp3 ;
c370783e 13668 int res3 = 0 ;
d55e5bfc
RD
13669 PyObject * obj0 = 0 ;
13670 char *kwnames[] = {
13671 (char *) "self", NULL
13672 };
13673
c370783e
RD
13674 arg2 = &temp2; res2 = SWIG_NEWOBJ;
13675 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
13676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13679 {
13680 PyThreadState* __tstate = wxPyBeginAllowThreads();
13681 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13682
13683 wxPyEndAllowThreads(__tstate);
13684 if (PyErr_Occurred()) SWIG_fail;
13685 }
13686 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
13687 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
13688 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
13689 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
13690 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
13691 return resultobj;
13692 fail:
13693 return NULL;
13694}
13695
13696
c370783e 13697static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13698 PyObject *resultobj;
13699 wxDC *arg1 = (wxDC *) 0 ;
13700 int arg2 ;
13701 int result;
13702 PyObject * obj0 = 0 ;
13703 PyObject * obj1 = 0 ;
13704 char *kwnames[] = {
13705 (char *) "self",(char *) "x", NULL
13706 };
13707
13708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13711 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13712 if (PyErr_Occurred()) SWIG_fail;
13713 {
13714 PyThreadState* __tstate = wxPyBeginAllowThreads();
13715 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13716
13717 wxPyEndAllowThreads(__tstate);
13718 if (PyErr_Occurred()) SWIG_fail;
13719 }
c370783e 13720 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13721 return resultobj;
13722 fail:
13723 return NULL;
13724}
13725
13726
c370783e 13727static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13728 PyObject *resultobj;
13729 wxDC *arg1 = (wxDC *) 0 ;
13730 int arg2 ;
13731 int result;
13732 PyObject * obj0 = 0 ;
13733 PyObject * obj1 = 0 ;
13734 char *kwnames[] = {
13735 (char *) "self",(char *) "y", NULL
13736 };
13737
13738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13741 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13742 if (PyErr_Occurred()) SWIG_fail;
13743 {
13744 PyThreadState* __tstate = wxPyBeginAllowThreads();
13745 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13746
13747 wxPyEndAllowThreads(__tstate);
13748 if (PyErr_Occurred()) SWIG_fail;
13749 }
c370783e 13750 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13751 return resultobj;
13752 fail:
13753 return NULL;
13754}
13755
13756
c370783e 13757static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13758 PyObject *resultobj;
13759 wxDC *arg1 = (wxDC *) 0 ;
13760 int arg2 ;
13761 int result;
13762 PyObject * obj0 = 0 ;
13763 PyObject * obj1 = 0 ;
13764 char *kwnames[] = {
13765 (char *) "self",(char *) "x", NULL
13766 };
13767
13768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13771 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13772 if (PyErr_Occurred()) SWIG_fail;
13773 {
13774 PyThreadState* __tstate = wxPyBeginAllowThreads();
13775 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13776
13777 wxPyEndAllowThreads(__tstate);
13778 if (PyErr_Occurred()) SWIG_fail;
13779 }
c370783e 13780 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13781 return resultobj;
13782 fail:
13783 return NULL;
13784}
13785
13786
c370783e 13787static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13788 PyObject *resultobj;
13789 wxDC *arg1 = (wxDC *) 0 ;
13790 int arg2 ;
13791 int result;
13792 PyObject * obj0 = 0 ;
13793 PyObject * obj1 = 0 ;
13794 char *kwnames[] = {
13795 (char *) "self",(char *) "y", NULL
13796 };
13797
13798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13801 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13802 if (PyErr_Occurred()) SWIG_fail;
13803 {
13804 PyThreadState* __tstate = wxPyBeginAllowThreads();
13805 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13806
13807 wxPyEndAllowThreads(__tstate);
13808 if (PyErr_Occurred()) SWIG_fail;
13809 }
c370783e 13810 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13811 return resultobj;
13812 fail:
13813 return NULL;
13814}
13815
13816
c370783e 13817static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13818 PyObject *resultobj;
13819 wxDC *arg1 = (wxDC *) 0 ;
13820 int arg2 ;
13821 int result;
13822 PyObject * obj0 = 0 ;
13823 PyObject * obj1 = 0 ;
13824 char *kwnames[] = {
13825 (char *) "self",(char *) "x", NULL
13826 };
13827
13828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13831 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13832 if (PyErr_Occurred()) SWIG_fail;
13833 {
13834 PyThreadState* __tstate = wxPyBeginAllowThreads();
13835 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13836
13837 wxPyEndAllowThreads(__tstate);
13838 if (PyErr_Occurred()) SWIG_fail;
13839 }
c370783e 13840 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13841 return resultobj;
13842 fail:
13843 return NULL;
13844}
13845
13846
c370783e 13847static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13848 PyObject *resultobj;
13849 wxDC *arg1 = (wxDC *) 0 ;
13850 int arg2 ;
13851 int result;
13852 PyObject * obj0 = 0 ;
13853 PyObject * obj1 = 0 ;
13854 char *kwnames[] = {
13855 (char *) "self",(char *) "y", NULL
13856 };
13857
13858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13861 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13862 if (PyErr_Occurred()) SWIG_fail;
13863 {
13864 PyThreadState* __tstate = wxPyBeginAllowThreads();
13865 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13866
13867 wxPyEndAllowThreads(__tstate);
13868 if (PyErr_Occurred()) SWIG_fail;
13869 }
c370783e 13870 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13871 return resultobj;
13872 fail:
13873 return NULL;
13874}
13875
13876
c370783e 13877static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13878 PyObject *resultobj;
13879 wxDC *arg1 = (wxDC *) 0 ;
13880 int arg2 ;
13881 int result;
13882 PyObject * obj0 = 0 ;
13883 PyObject * obj1 = 0 ;
13884 char *kwnames[] = {
13885 (char *) "self",(char *) "x", NULL
13886 };
13887
13888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13891 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13892 if (PyErr_Occurred()) SWIG_fail;
13893 {
13894 PyThreadState* __tstate = wxPyBeginAllowThreads();
13895 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13896
13897 wxPyEndAllowThreads(__tstate);
13898 if (PyErr_Occurred()) SWIG_fail;
13899 }
c370783e 13900 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13901 return resultobj;
13902 fail:
13903 return NULL;
13904}
13905
13906
c370783e 13907static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13908 PyObject *resultobj;
13909 wxDC *arg1 = (wxDC *) 0 ;
13910 int arg2 ;
13911 int result;
13912 PyObject * obj0 = 0 ;
13913 PyObject * obj1 = 0 ;
13914 char *kwnames[] = {
13915 (char *) "self",(char *) "y", NULL
13916 };
13917
13918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 13921 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13922 if (PyErr_Occurred()) SWIG_fail;
13923 {
13924 PyThreadState* __tstate = wxPyBeginAllowThreads();
13925 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13926
13927 wxPyEndAllowThreads(__tstate);
13928 if (PyErr_Occurred()) SWIG_fail;
13929 }
c370783e 13930 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13931 return resultobj;
13932 fail:
13933 return NULL;
13934}
13935
13936
c370783e 13937static PyObject *_wrap_DC_CanDrawBitmap(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_CanDrawBitmap",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)->CanDrawBitmap();
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_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13966 PyObject *resultobj;
13967 wxDC *arg1 = (wxDC *) 0 ;
13968 bool result;
13969 PyObject * obj0 = 0 ;
13970 char *kwnames[] = {
13971 (char *) "self", NULL
13972 };
13973
13974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",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 = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13980
13981 wxPyEndAllowThreads(__tstate);
13982 if (PyErr_Occurred()) SWIG_fail;
13983 }
13984 {
13985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13986 }
13987 return resultobj;
13988 fail:
13989 return NULL;
13990}
13991
13992
c370783e 13993static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13994 PyObject *resultobj;
13995 wxDC *arg1 = (wxDC *) 0 ;
13996 int result;
13997 PyObject * obj0 = 0 ;
13998 char *kwnames[] = {
13999 (char *) "self", NULL
14000 };
14001
14002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
14003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14005 {
14006 PyThreadState* __tstate = wxPyBeginAllowThreads();
14007 result = (int)((wxDC const *)arg1)->GetDepth();
14008
14009 wxPyEndAllowThreads(__tstate);
14010 if (PyErr_Occurred()) SWIG_fail;
14011 }
c370783e 14012 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14013 return resultobj;
14014 fail:
14015 return NULL;
14016}
14017
14018
c370783e 14019static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14020 PyObject *resultobj;
14021 wxDC *arg1 = (wxDC *) 0 ;
14022 wxSize result;
14023 PyObject * obj0 = 0 ;
14024 char *kwnames[] = {
14025 (char *) "self", NULL
14026 };
14027
14028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
14029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14031 {
14032 PyThreadState* __tstate = wxPyBeginAllowThreads();
14033 result = ((wxDC const *)arg1)->GetPPI();
14034
14035 wxPyEndAllowThreads(__tstate);
14036 if (PyErr_Occurred()) SWIG_fail;
14037 }
14038 {
14039 wxSize * resultptr;
14040 resultptr = new wxSize((wxSize &) result);
14041 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14042 }
14043 return resultobj;
14044 fail:
14045 return NULL;
14046}
14047
14048
c370783e 14049static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14050 PyObject *resultobj;
14051 wxDC *arg1 = (wxDC *) 0 ;
14052 bool result;
14053 PyObject * obj0 = 0 ;
14054 char *kwnames[] = {
14055 (char *) "self", NULL
14056 };
14057
14058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",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 = (bool)((wxDC const *)arg1)->Ok();
14064
14065 wxPyEndAllowThreads(__tstate);
14066 if (PyErr_Occurred()) SWIG_fail;
14067 }
14068 {
14069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14070 }
14071 return resultobj;
14072 fail:
14073 return NULL;
14074}
14075
14076
c370783e 14077static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14078 PyObject *resultobj;
14079 wxDC *arg1 = (wxDC *) 0 ;
14080 int result;
14081 PyObject * obj0 = 0 ;
14082 char *kwnames[] = {
14083 (char *) "self", NULL
14084 };
14085
14086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14089 {
14090 PyThreadState* __tstate = wxPyBeginAllowThreads();
14091 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14092
14093 wxPyEndAllowThreads(__tstate);
14094 if (PyErr_Occurred()) SWIG_fail;
14095 }
c370783e 14096 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14097 return resultobj;
14098 fail:
14099 return NULL;
14100}
14101
14102
c370783e 14103static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14104 PyObject *resultobj;
14105 wxDC *arg1 = (wxDC *) 0 ;
14106 wxBrush *result;
14107 PyObject * obj0 = 0 ;
14108 char *kwnames[] = {
14109 (char *) "self", NULL
14110 };
14111
14112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
14113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14115 {
14116 PyThreadState* __tstate = wxPyBeginAllowThreads();
14117 {
14118 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14119 result = (wxBrush *) &_result_ref;
14120 }
14121
14122 wxPyEndAllowThreads(__tstate);
14123 if (PyErr_Occurred()) SWIG_fail;
14124 }
14125 {
14126 wxBrush* resultptr = new wxBrush(*result);
14127 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14128 }
14129 return resultobj;
14130 fail:
14131 return NULL;
14132}
14133
14134
c370783e 14135static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14136 PyObject *resultobj;
14137 wxDC *arg1 = (wxDC *) 0 ;
14138 wxBrush *result;
14139 PyObject * obj0 = 0 ;
14140 char *kwnames[] = {
14141 (char *) "self", NULL
14142 };
14143
14144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14147 {
14148 PyThreadState* __tstate = wxPyBeginAllowThreads();
14149 {
14150 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14151 result = (wxBrush *) &_result_ref;
14152 }
14153
14154 wxPyEndAllowThreads(__tstate);
14155 if (PyErr_Occurred()) SWIG_fail;
14156 }
14157 {
14158 wxBrush* resultptr = new wxBrush(*result);
14159 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14160 }
14161 return resultobj;
14162 fail:
14163 return NULL;
14164}
14165
14166
c370783e 14167static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14168 PyObject *resultobj;
14169 wxDC *arg1 = (wxDC *) 0 ;
14170 wxFont *result;
14171 PyObject * obj0 = 0 ;
14172 char *kwnames[] = {
14173 (char *) "self", NULL
14174 };
14175
14176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14179 {
14180 PyThreadState* __tstate = wxPyBeginAllowThreads();
14181 {
14182 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14183 result = (wxFont *) &_result_ref;
14184 }
14185
14186 wxPyEndAllowThreads(__tstate);
14187 if (PyErr_Occurred()) SWIG_fail;
14188 }
14189 {
14190 wxFont* resultptr = new wxFont(*result);
14191 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14192 }
14193 return resultobj;
14194 fail:
14195 return NULL;
14196}
14197
14198
c370783e 14199static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14200 PyObject *resultobj;
14201 wxDC *arg1 = (wxDC *) 0 ;
14202 wxPen *result;
14203 PyObject * obj0 = 0 ;
14204 char *kwnames[] = {
14205 (char *) "self", NULL
14206 };
14207
14208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14211 {
14212 PyThreadState* __tstate = wxPyBeginAllowThreads();
14213 {
14214 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14215 result = (wxPen *) &_result_ref;
14216 }
14217
14218 wxPyEndAllowThreads(__tstate);
14219 if (PyErr_Occurred()) SWIG_fail;
14220 }
14221 {
14222 wxPen* resultptr = new wxPen(*result);
14223 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14224 }
14225 return resultobj;
14226 fail:
14227 return NULL;
14228}
14229
14230
c370783e 14231static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14232 PyObject *resultobj;
14233 wxDC *arg1 = (wxDC *) 0 ;
14234 wxColour *result;
14235 PyObject * obj0 = 0 ;
14236 char *kwnames[] = {
14237 (char *) "self", NULL
14238 };
14239
14240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14243 {
14244 PyThreadState* __tstate = wxPyBeginAllowThreads();
14245 {
14246 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14247 result = (wxColour *) &_result_ref;
14248 }
14249
14250 wxPyEndAllowThreads(__tstate);
14251 if (PyErr_Occurred()) SWIG_fail;
14252 }
14253 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14254 return resultobj;
14255 fail:
14256 return NULL;
14257}
14258
14259
c370783e 14260static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14261 PyObject *resultobj;
14262 wxDC *arg1 = (wxDC *) 0 ;
14263 wxColour *result;
14264 PyObject * obj0 = 0 ;
14265 char *kwnames[] = {
14266 (char *) "self", NULL
14267 };
14268
14269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14272 {
14273 PyThreadState* __tstate = wxPyBeginAllowThreads();
14274 {
14275 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14276 result = (wxColour *) &_result_ref;
14277 }
14278
14279 wxPyEndAllowThreads(__tstate);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14283 return resultobj;
14284 fail:
14285 return NULL;
14286}
14287
14288
c370783e 14289static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14290 PyObject *resultobj;
14291 wxDC *arg1 = (wxDC *) 0 ;
14292 wxColour *arg2 = 0 ;
14293 wxColour temp2 ;
14294 PyObject * obj0 = 0 ;
14295 PyObject * obj1 = 0 ;
14296 char *kwnames[] = {
14297 (char *) "self",(char *) "colour", NULL
14298 };
14299
14300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14303 {
14304 arg2 = &temp2;
14305 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14306 }
14307 {
14308 PyThreadState* __tstate = wxPyBeginAllowThreads();
14309 (arg1)->SetTextForeground((wxColour const &)*arg2);
14310
14311 wxPyEndAllowThreads(__tstate);
14312 if (PyErr_Occurred()) SWIG_fail;
14313 }
14314 Py_INCREF(Py_None); resultobj = Py_None;
14315 return resultobj;
14316 fail:
14317 return NULL;
14318}
14319
14320
c370783e 14321static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14322 PyObject *resultobj;
14323 wxDC *arg1 = (wxDC *) 0 ;
14324 wxColour *arg2 = 0 ;
14325 wxColour temp2 ;
14326 PyObject * obj0 = 0 ;
14327 PyObject * obj1 = 0 ;
14328 char *kwnames[] = {
14329 (char *) "self",(char *) "colour", NULL
14330 };
14331
14332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14335 {
14336 arg2 = &temp2;
14337 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14338 }
14339 {
14340 PyThreadState* __tstate = wxPyBeginAllowThreads();
14341 (arg1)->SetTextBackground((wxColour const &)*arg2);
14342
14343 wxPyEndAllowThreads(__tstate);
14344 if (PyErr_Occurred()) SWIG_fail;
14345 }
14346 Py_INCREF(Py_None); resultobj = Py_None;
14347 return resultobj;
14348 fail:
14349 return NULL;
14350}
14351
14352
c370783e 14353static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14354 PyObject *resultobj;
14355 wxDC *arg1 = (wxDC *) 0 ;
14356 int result;
14357 PyObject * obj0 = 0 ;
14358 char *kwnames[] = {
14359 (char *) "self", NULL
14360 };
14361
14362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14365 {
14366 PyThreadState* __tstate = wxPyBeginAllowThreads();
14367 result = (int)((wxDC const *)arg1)->GetMapMode();
14368
14369 wxPyEndAllowThreads(__tstate);
14370 if (PyErr_Occurred()) SWIG_fail;
14371 }
c370783e 14372 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14373 return resultobj;
14374 fail:
14375 return NULL;
14376}
14377
14378
c370783e 14379static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14380 PyObject *resultobj;
14381 wxDC *arg1 = (wxDC *) 0 ;
14382 int arg2 ;
14383 PyObject * obj0 = 0 ;
14384 PyObject * obj1 = 0 ;
14385 char *kwnames[] = {
14386 (char *) "self",(char *) "mode", NULL
14387 };
14388
14389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14392 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14393 if (PyErr_Occurred()) SWIG_fail;
14394 {
14395 PyThreadState* __tstate = wxPyBeginAllowThreads();
14396 (arg1)->SetMapMode(arg2);
14397
14398 wxPyEndAllowThreads(__tstate);
14399 if (PyErr_Occurred()) SWIG_fail;
14400 }
14401 Py_INCREF(Py_None); resultobj = Py_None;
14402 return resultobj;
14403 fail:
14404 return NULL;
14405}
14406
14407
c370783e 14408static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14409 PyObject *resultobj;
14410 wxDC *arg1 = (wxDC *) 0 ;
14411 double *arg2 = (double *) 0 ;
14412 double *arg3 = (double *) 0 ;
14413 double temp2 ;
c370783e 14414 int res2 = 0 ;
d55e5bfc 14415 double temp3 ;
c370783e 14416 int res3 = 0 ;
d55e5bfc
RD
14417 PyObject * obj0 = 0 ;
14418 char *kwnames[] = {
14419 (char *) "self", NULL
14420 };
14421
c370783e
RD
14422 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14423 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14427 {
14428 PyThreadState* __tstate = wxPyBeginAllowThreads();
14429 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14430
14431 wxPyEndAllowThreads(__tstate);
14432 if (PyErr_Occurred()) SWIG_fail;
14433 }
14434 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
14435 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14436 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14437 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14438 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
d55e5bfc
RD
14439 return resultobj;
14440 fail:
14441 return NULL;
14442}
14443
14444
c370783e 14445static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14446 PyObject *resultobj;
14447 wxDC *arg1 = (wxDC *) 0 ;
14448 double arg2 ;
14449 double arg3 ;
14450 PyObject * obj0 = 0 ;
14451 PyObject * obj1 = 0 ;
14452 PyObject * obj2 = 0 ;
14453 char *kwnames[] = {
14454 (char *) "self",(char *) "x",(char *) "y", NULL
14455 };
14456
14457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14460 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc 14461 if (PyErr_Occurred()) SWIG_fail;
c370783e 14462 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
14463 if (PyErr_Occurred()) SWIG_fail;
14464 {
14465 PyThreadState* __tstate = wxPyBeginAllowThreads();
14466 (arg1)->SetUserScale(arg2,arg3);
14467
14468 wxPyEndAllowThreads(__tstate);
14469 if (PyErr_Occurred()) SWIG_fail;
14470 }
14471 Py_INCREF(Py_None); resultobj = Py_None;
14472 return resultobj;
14473 fail:
14474 return NULL;
14475}
14476
14477
c370783e 14478static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14479 PyObject *resultobj;
14480 wxDC *arg1 = (wxDC *) 0 ;
14481 double *arg2 = (double *) 0 ;
14482 double *arg3 = (double *) 0 ;
14483 double temp2 ;
c370783e 14484 int res2 = 0 ;
d55e5bfc 14485 double temp3 ;
c370783e 14486 int res3 = 0 ;
d55e5bfc
RD
14487 PyObject * obj0 = 0 ;
14488 char *kwnames[] = {
14489 (char *) "self", NULL
14490 };
14491
c370783e
RD
14492 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14493 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14497 {
14498 PyThreadState* __tstate = wxPyBeginAllowThreads();
14499 (arg1)->GetLogicalScale(arg2,arg3);
14500
14501 wxPyEndAllowThreads(__tstate);
14502 if (PyErr_Occurred()) SWIG_fail;
14503 }
14504 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
14505 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14506 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
14507 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14508 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
d55e5bfc
RD
14509 return resultobj;
14510 fail:
14511 return NULL;
14512}
14513
14514
c370783e 14515static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14516 PyObject *resultobj;
14517 wxDC *arg1 = (wxDC *) 0 ;
14518 double arg2 ;
14519 double arg3 ;
14520 PyObject * obj0 = 0 ;
14521 PyObject * obj1 = 0 ;
14522 PyObject * obj2 = 0 ;
14523 char *kwnames[] = {
14524 (char *) "self",(char *) "x",(char *) "y", NULL
14525 };
14526
14527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14530 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc 14531 if (PyErr_Occurred()) SWIG_fail;
c370783e 14532 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
14533 if (PyErr_Occurred()) SWIG_fail;
14534 {
14535 PyThreadState* __tstate = wxPyBeginAllowThreads();
14536 (arg1)->SetLogicalScale(arg2,arg3);
14537
14538 wxPyEndAllowThreads(__tstate);
14539 if (PyErr_Occurred()) SWIG_fail;
14540 }
14541 Py_INCREF(Py_None); resultobj = Py_None;
14542 return resultobj;
14543 fail:
14544 return NULL;
14545}
14546
14547
c370783e 14548static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14549 PyObject *resultobj;
14550 wxDC *arg1 = (wxDC *) 0 ;
14551 wxPoint result;
14552 PyObject * obj0 = 0 ;
14553 char *kwnames[] = {
14554 (char *) "self", NULL
14555 };
14556
14557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14560 {
14561 PyThreadState* __tstate = wxPyBeginAllowThreads();
14562 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14563
14564 wxPyEndAllowThreads(__tstate);
14565 if (PyErr_Occurred()) SWIG_fail;
14566 }
14567 {
14568 wxPoint * resultptr;
14569 resultptr = new wxPoint((wxPoint &) result);
14570 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14571 }
14572 return resultobj;
14573 fail:
14574 return NULL;
14575}
14576
14577
c370783e 14578static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14579 PyObject *resultobj;
14580 wxDC *arg1 = (wxDC *) 0 ;
14581 int *arg2 = (int *) 0 ;
14582 int *arg3 = (int *) 0 ;
14583 int temp2 ;
c370783e 14584 int res2 = 0 ;
d55e5bfc 14585 int temp3 ;
c370783e 14586 int res3 = 0 ;
d55e5bfc
RD
14587 PyObject * obj0 = 0 ;
14588 char *kwnames[] = {
14589 (char *) "self", NULL
14590 };
14591
c370783e
RD
14592 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14593 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14597 {
14598 PyThreadState* __tstate = wxPyBeginAllowThreads();
14599 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14600
14601 wxPyEndAllowThreads(__tstate);
14602 if (PyErr_Occurred()) SWIG_fail;
14603 }
14604 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
14605 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14606 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14607 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14608 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
14609 return resultobj;
14610 fail:
14611 return NULL;
14612}
14613
14614
c370783e 14615static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14616 PyObject *resultobj;
14617 wxDC *arg1 = (wxDC *) 0 ;
14618 int arg2 ;
14619 int arg3 ;
14620 PyObject * obj0 = 0 ;
14621 PyObject * obj1 = 0 ;
14622 PyObject * obj2 = 0 ;
14623 char *kwnames[] = {
14624 (char *) "self",(char *) "x",(char *) "y", NULL
14625 };
14626
14627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14630 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 14631 if (PyErr_Occurred()) SWIG_fail;
c370783e 14632 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
14633 if (PyErr_Occurred()) SWIG_fail;
14634 {
14635 PyThreadState* __tstate = wxPyBeginAllowThreads();
14636 (arg1)->SetLogicalOrigin(arg2,arg3);
14637
14638 wxPyEndAllowThreads(__tstate);
14639 if (PyErr_Occurred()) SWIG_fail;
14640 }
14641 Py_INCREF(Py_None); resultobj = Py_None;
14642 return resultobj;
14643 fail:
14644 return NULL;
14645}
14646
14647
c370783e 14648static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
14649 PyObject *resultobj;
14650 wxDC *arg1 = (wxDC *) 0 ;
14651 wxPoint *arg2 = 0 ;
14652 wxPoint temp2 ;
14653 PyObject * obj0 = 0 ;
14654 PyObject * obj1 = 0 ;
14655 char *kwnames[] = {
14656 (char *) "self",(char *) "point", NULL
14657 };
14658
14659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14662 {
14663 arg2 = &temp2;
14664 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14665 }
14666 {
14667 PyThreadState* __tstate = wxPyBeginAllowThreads();
14668 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14669
14670 wxPyEndAllowThreads(__tstate);
14671 if (PyErr_Occurred()) SWIG_fail;
14672 }
14673 Py_INCREF(Py_None); resultobj = Py_None;
14674 return resultobj;
14675 fail:
14676 return NULL;
14677}
14678
14679
c370783e 14680static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14681 PyObject *resultobj;
14682 wxDC *arg1 = (wxDC *) 0 ;
14683 wxPoint result;
14684 PyObject * obj0 = 0 ;
14685 char *kwnames[] = {
14686 (char *) "self", NULL
14687 };
14688
14689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14692 {
14693 PyThreadState* __tstate = wxPyBeginAllowThreads();
14694 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14695
14696 wxPyEndAllowThreads(__tstate);
14697 if (PyErr_Occurred()) SWIG_fail;
14698 }
14699 {
14700 wxPoint * resultptr;
14701 resultptr = new wxPoint((wxPoint &) result);
14702 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14703 }
14704 return resultobj;
14705 fail:
14706 return NULL;
14707}
14708
14709
c370783e 14710static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14711 PyObject *resultobj;
14712 wxDC *arg1 = (wxDC *) 0 ;
14713 int *arg2 = (int *) 0 ;
14714 int *arg3 = (int *) 0 ;
14715 int temp2 ;
c370783e 14716 int res2 = 0 ;
d55e5bfc 14717 int temp3 ;
c370783e 14718 int res3 = 0 ;
d55e5bfc
RD
14719 PyObject * obj0 = 0 ;
14720 char *kwnames[] = {
14721 (char *) "self", NULL
14722 };
14723
c370783e
RD
14724 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14725 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14729 {
14730 PyThreadState* __tstate = wxPyBeginAllowThreads();
14731 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14732
14733 wxPyEndAllowThreads(__tstate);
14734 if (PyErr_Occurred()) SWIG_fail;
14735 }
14736 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
14737 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14738 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14739 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14740 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
14741 return resultobj;
14742 fail:
14743 return NULL;
14744}
14745
14746
c370783e 14747static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14748 PyObject *resultobj;
14749 wxDC *arg1 = (wxDC *) 0 ;
14750 int arg2 ;
14751 int arg3 ;
14752 PyObject * obj0 = 0 ;
14753 PyObject * obj1 = 0 ;
14754 PyObject * obj2 = 0 ;
14755 char *kwnames[] = {
14756 (char *) "self",(char *) "x",(char *) "y", NULL
14757 };
14758
14759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14762 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 14763 if (PyErr_Occurred()) SWIG_fail;
c370783e 14764 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
14765 if (PyErr_Occurred()) SWIG_fail;
14766 {
14767 PyThreadState* __tstate = wxPyBeginAllowThreads();
14768 (arg1)->SetDeviceOrigin(arg2,arg3);
14769
14770 wxPyEndAllowThreads(__tstate);
14771 if (PyErr_Occurred()) SWIG_fail;
14772 }
14773 Py_INCREF(Py_None); resultobj = Py_None;
14774 return resultobj;
14775 fail:
14776 return NULL;
14777}
14778
14779
c370783e 14780static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
14781 PyObject *resultobj;
14782 wxDC *arg1 = (wxDC *) 0 ;
14783 wxPoint *arg2 = 0 ;
14784 wxPoint temp2 ;
14785 PyObject * obj0 = 0 ;
14786 PyObject * obj1 = 0 ;
14787 char *kwnames[] = {
14788 (char *) "self",(char *) "point", NULL
14789 };
14790
14791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14794 {
14795 arg2 = &temp2;
14796 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14797 }
14798 {
14799 PyThreadState* __tstate = wxPyBeginAllowThreads();
14800 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14801
14802 wxPyEndAllowThreads(__tstate);
14803 if (PyErr_Occurred()) SWIG_fail;
14804 }
14805 Py_INCREF(Py_None); resultobj = Py_None;
14806 return resultobj;
14807 fail:
14808 return NULL;
14809}
14810
14811
c370783e 14812static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14813 PyObject *resultobj;
14814 wxDC *arg1 = (wxDC *) 0 ;
14815 bool arg2 ;
14816 bool arg3 ;
14817 PyObject * obj0 = 0 ;
14818 PyObject * obj1 = 0 ;
14819 PyObject * obj2 = 0 ;
14820 char *kwnames[] = {
14821 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14822 };
14823
14824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14827 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc 14828 if (PyErr_Occurred()) SWIG_fail;
c370783e 14829 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
14830 if (PyErr_Occurred()) SWIG_fail;
14831 {
14832 PyThreadState* __tstate = wxPyBeginAllowThreads();
14833 (arg1)->SetAxisOrientation(arg2,arg3);
14834
14835 wxPyEndAllowThreads(__tstate);
14836 if (PyErr_Occurred()) SWIG_fail;
14837 }
14838 Py_INCREF(Py_None); resultobj = Py_None;
14839 return resultobj;
14840 fail:
14841 return NULL;
14842}
14843
14844
c370783e 14845static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14846 PyObject *resultobj;
14847 wxDC *arg1 = (wxDC *) 0 ;
14848 int result;
14849 PyObject * obj0 = 0 ;
14850 char *kwnames[] = {
14851 (char *) "self", NULL
14852 };
14853
14854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14857 {
14858 PyThreadState* __tstate = wxPyBeginAllowThreads();
14859 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14860
14861 wxPyEndAllowThreads(__tstate);
14862 if (PyErr_Occurred()) SWIG_fail;
14863 }
c370783e 14864 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14865 return resultobj;
14866 fail:
14867 return NULL;
14868}
14869
14870
c370783e 14871static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14872 PyObject *resultobj;
14873 wxDC *arg1 = (wxDC *) 0 ;
14874 int arg2 ;
14875 PyObject * obj0 = 0 ;
14876 PyObject * obj1 = 0 ;
14877 char *kwnames[] = {
14878 (char *) "self",(char *) "function", NULL
14879 };
14880
14881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14884 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14885 if (PyErr_Occurred()) SWIG_fail;
14886 {
14887 PyThreadState* __tstate = wxPyBeginAllowThreads();
14888 (arg1)->SetLogicalFunction(arg2);
14889
14890 wxPyEndAllowThreads(__tstate);
14891 if (PyErr_Occurred()) SWIG_fail;
14892 }
14893 Py_INCREF(Py_None); resultobj = Py_None;
14894 return resultobj;
14895 fail:
14896 return NULL;
14897}
14898
14899
c370783e 14900static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14901 PyObject *resultobj;
14902 wxDC *arg1 = (wxDC *) 0 ;
14903 bool arg2 ;
14904 PyObject * obj0 = 0 ;
14905 PyObject * obj1 = 0 ;
14906 char *kwnames[] = {
f5b96ee1 14907 (char *) "self",(char *) "optimize", NULL
d55e5bfc
RD
14908 };
14909
14910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14913 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
14914 if (PyErr_Occurred()) SWIG_fail;
14915 {
14916 PyThreadState* __tstate = wxPyBeginAllowThreads();
14917 (arg1)->SetOptimization(arg2);
14918
14919 wxPyEndAllowThreads(__tstate);
14920 if (PyErr_Occurred()) SWIG_fail;
14921 }
14922 Py_INCREF(Py_None); resultobj = Py_None;
14923 return resultobj;
14924 fail:
14925 return NULL;
14926}
14927
14928
c370783e 14929static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14930 PyObject *resultobj;
14931 wxDC *arg1 = (wxDC *) 0 ;
14932 bool result;
14933 PyObject * obj0 = 0 ;
14934 char *kwnames[] = {
14935 (char *) "self", NULL
14936 };
14937
14938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14941 {
14942 PyThreadState* __tstate = wxPyBeginAllowThreads();
14943 result = (bool)(arg1)->GetOptimization();
14944
14945 wxPyEndAllowThreads(__tstate);
14946 if (PyErr_Occurred()) SWIG_fail;
14947 }
14948 {
14949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14950 }
14951 return resultobj;
14952 fail:
14953 return NULL;
14954}
14955
14956
c370783e 14957static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14958 PyObject *resultobj;
14959 wxDC *arg1 = (wxDC *) 0 ;
14960 int arg2 ;
14961 int arg3 ;
14962 PyObject * obj0 = 0 ;
14963 PyObject * obj1 = 0 ;
14964 PyObject * obj2 = 0 ;
14965 char *kwnames[] = {
14966 (char *) "self",(char *) "x",(char *) "y", NULL
14967 };
14968
14969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 14972 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 14973 if (PyErr_Occurred()) SWIG_fail;
c370783e 14974 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
14975 if (PyErr_Occurred()) SWIG_fail;
14976 {
14977 PyThreadState* __tstate = wxPyBeginAllowThreads();
14978 (arg1)->CalcBoundingBox(arg2,arg3);
14979
14980 wxPyEndAllowThreads(__tstate);
14981 if (PyErr_Occurred()) SWIG_fail;
14982 }
14983 Py_INCREF(Py_None); resultobj = Py_None;
14984 return resultobj;
14985 fail:
14986 return NULL;
14987}
14988
14989
c370783e 14990static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d6c14a4c
RD
14991 PyObject *resultobj;
14992 wxDC *arg1 = (wxDC *) 0 ;
14993 wxPoint *arg2 = 0 ;
14994 wxPoint temp2 ;
14995 PyObject * obj0 = 0 ;
14996 PyObject * obj1 = 0 ;
14997 char *kwnames[] = {
14998 (char *) "self",(char *) "point", NULL
14999 };
15000
15001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
15002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15004 {
15005 arg2 = &temp2;
15006 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15007 }
15008 {
15009 PyThreadState* __tstate = wxPyBeginAllowThreads();
15010 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
15011
15012 wxPyEndAllowThreads(__tstate);
15013 if (PyErr_Occurred()) SWIG_fail;
15014 }
15015 Py_INCREF(Py_None); resultobj = Py_None;
15016 return resultobj;
15017 fail:
15018 return NULL;
15019}
15020
15021
c370783e 15022static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15023 PyObject *resultobj;
15024 wxDC *arg1 = (wxDC *) 0 ;
15025 PyObject * obj0 = 0 ;
15026 char *kwnames[] = {
15027 (char *) "self", NULL
15028 };
15029
15030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15033 {
15034 PyThreadState* __tstate = wxPyBeginAllowThreads();
15035 (arg1)->ResetBoundingBox();
15036
15037 wxPyEndAllowThreads(__tstate);
15038 if (PyErr_Occurred()) SWIG_fail;
15039 }
15040 Py_INCREF(Py_None); resultobj = Py_None;
15041 return resultobj;
15042 fail:
15043 return NULL;
15044}
15045
15046
c370783e 15047static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15048 PyObject *resultobj;
15049 wxDC *arg1 = (wxDC *) 0 ;
15050 int result;
15051 PyObject * obj0 = 0 ;
15052 char *kwnames[] = {
15053 (char *) "self", NULL
15054 };
15055
15056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15059 {
15060 PyThreadState* __tstate = wxPyBeginAllowThreads();
15061 result = (int)((wxDC const *)arg1)->MinX();
15062
15063 wxPyEndAllowThreads(__tstate);
15064 if (PyErr_Occurred()) SWIG_fail;
15065 }
c370783e 15066 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15067 return resultobj;
15068 fail:
15069 return NULL;
15070}
15071
15072
c370783e 15073static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15074 PyObject *resultobj;
15075 wxDC *arg1 = (wxDC *) 0 ;
15076 int result;
15077 PyObject * obj0 = 0 ;
15078 char *kwnames[] = {
15079 (char *) "self", NULL
15080 };
15081
15082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15085 {
15086 PyThreadState* __tstate = wxPyBeginAllowThreads();
15087 result = (int)((wxDC const *)arg1)->MaxX();
15088
15089 wxPyEndAllowThreads(__tstate);
15090 if (PyErr_Occurred()) SWIG_fail;
15091 }
c370783e 15092 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15093 return resultobj;
15094 fail:
15095 return NULL;
15096}
15097
15098
c370783e 15099static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15100 PyObject *resultobj;
15101 wxDC *arg1 = (wxDC *) 0 ;
15102 int result;
15103 PyObject * obj0 = 0 ;
15104 char *kwnames[] = {
15105 (char *) "self", NULL
15106 };
15107
15108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15111 {
15112 PyThreadState* __tstate = wxPyBeginAllowThreads();
15113 result = (int)((wxDC const *)arg1)->MinY();
15114
15115 wxPyEndAllowThreads(__tstate);
15116 if (PyErr_Occurred()) SWIG_fail;
15117 }
c370783e 15118 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15119 return resultobj;
15120 fail:
15121 return NULL;
15122}
15123
15124
c370783e 15125static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15126 PyObject *resultobj;
15127 wxDC *arg1 = (wxDC *) 0 ;
15128 int result;
15129 PyObject * obj0 = 0 ;
15130 char *kwnames[] = {
15131 (char *) "self", NULL
15132 };
15133
15134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15137 {
15138 PyThreadState* __tstate = wxPyBeginAllowThreads();
15139 result = (int)((wxDC const *)arg1)->MaxY();
15140
15141 wxPyEndAllowThreads(__tstate);
15142 if (PyErr_Occurred()) SWIG_fail;
15143 }
c370783e 15144 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15145 return resultobj;
15146 fail:
15147 return NULL;
15148}
15149
15150
c370783e 15151static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15152 PyObject *resultobj;
15153 wxDC *arg1 = (wxDC *) 0 ;
15154 int *arg2 = (int *) 0 ;
15155 int *arg3 = (int *) 0 ;
15156 int *arg4 = (int *) 0 ;
15157 int *arg5 = (int *) 0 ;
15158 int temp2 ;
c370783e 15159 int res2 = 0 ;
d55e5bfc 15160 int temp3 ;
c370783e 15161 int res3 = 0 ;
d55e5bfc 15162 int temp4 ;
c370783e 15163 int res4 = 0 ;
d55e5bfc 15164 int temp5 ;
c370783e 15165 int res5 = 0 ;
d55e5bfc
RD
15166 PyObject * obj0 = 0 ;
15167 char *kwnames[] = {
15168 (char *) "self", NULL
15169 };
15170
c370783e
RD
15171 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15172 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15173 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15174 arg5 = &temp5; res5 = SWIG_NEWOBJ;
d55e5bfc
RD
15175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15178 {
15179 PyThreadState* __tstate = wxPyBeginAllowThreads();
15180 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15181
15182 wxPyEndAllowThreads(__tstate);
15183 if (PyErr_Occurred()) SWIG_fail;
15184 }
15185 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
15186 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15187 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15188 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15189 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15190 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15191 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15192 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15193 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
15194 return resultobj;
15195 fail:
15196 return NULL;
15197}
15198
15199
c370783e 15200static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15201 PyObject *resultobj;
15202 wxDC *arg1 = (wxDC *) 0 ;
15203 PyObject *arg2 = (PyObject *) 0 ;
15204 PyObject *arg3 = (PyObject *) 0 ;
15205 PyObject *arg4 = (PyObject *) 0 ;
15206 PyObject *result;
15207 PyObject * obj0 = 0 ;
15208 PyObject * obj1 = 0 ;
15209 PyObject * obj2 = 0 ;
15210 PyObject * obj3 = 0 ;
15211 char *kwnames[] = {
15212 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15213 };
15214
15215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15218 arg2 = obj1;
15219 arg3 = obj2;
15220 arg4 = obj3;
15221 {
15222 PyThreadState* __tstate = wxPyBeginAllowThreads();
15223 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15224
15225 wxPyEndAllowThreads(__tstate);
15226 if (PyErr_Occurred()) SWIG_fail;
15227 }
15228 resultobj = result;
15229 return resultobj;
15230 fail:
15231 return NULL;
15232}
15233
15234
c370783e 15235static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15236 PyObject *resultobj;
15237 wxDC *arg1 = (wxDC *) 0 ;
15238 PyObject *arg2 = (PyObject *) 0 ;
15239 PyObject *arg3 = (PyObject *) 0 ;
15240 PyObject *arg4 = (PyObject *) 0 ;
15241 PyObject *result;
15242 PyObject * obj0 = 0 ;
15243 PyObject * obj1 = 0 ;
15244 PyObject * obj2 = 0 ;
15245 PyObject * obj3 = 0 ;
15246 char *kwnames[] = {
15247 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15248 };
15249
15250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15253 arg2 = obj1;
15254 arg3 = obj2;
15255 arg4 = obj3;
15256 {
15257 PyThreadState* __tstate = wxPyBeginAllowThreads();
15258 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15259
15260 wxPyEndAllowThreads(__tstate);
15261 if (PyErr_Occurred()) SWIG_fail;
15262 }
15263 resultobj = result;
15264 return resultobj;
15265 fail:
15266 return NULL;
15267}
15268
15269
c370783e 15270static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15271 PyObject *resultobj;
15272 wxDC *arg1 = (wxDC *) 0 ;
15273 PyObject *arg2 = (PyObject *) 0 ;
15274 PyObject *arg3 = (PyObject *) 0 ;
15275 PyObject *arg4 = (PyObject *) 0 ;
15276 PyObject *result;
15277 PyObject * obj0 = 0 ;
15278 PyObject * obj1 = 0 ;
15279 PyObject * obj2 = 0 ;
15280 PyObject * obj3 = 0 ;
15281 char *kwnames[] = {
15282 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15283 };
15284
15285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15288 arg2 = obj1;
15289 arg3 = obj2;
15290 arg4 = obj3;
15291 {
15292 PyThreadState* __tstate = wxPyBeginAllowThreads();
15293 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15294
15295 wxPyEndAllowThreads(__tstate);
15296 if (PyErr_Occurred()) SWIG_fail;
15297 }
15298 resultobj = result;
15299 return resultobj;
15300 fail:
15301 return NULL;
15302}
15303
15304
c370783e 15305static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15306 PyObject *resultobj;
15307 wxDC *arg1 = (wxDC *) 0 ;
15308 PyObject *arg2 = (PyObject *) 0 ;
15309 PyObject *arg3 = (PyObject *) 0 ;
15310 PyObject *arg4 = (PyObject *) 0 ;
15311 PyObject *result;
15312 PyObject * obj0 = 0 ;
15313 PyObject * obj1 = 0 ;
15314 PyObject * obj2 = 0 ;
15315 PyObject * obj3 = 0 ;
15316 char *kwnames[] = {
15317 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15318 };
15319
15320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15323 arg2 = obj1;
15324 arg3 = obj2;
15325 arg4 = obj3;
15326 {
15327 PyThreadState* __tstate = wxPyBeginAllowThreads();
15328 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15329
15330 wxPyEndAllowThreads(__tstate);
15331 if (PyErr_Occurred()) SWIG_fail;
15332 }
15333 resultobj = result;
15334 return resultobj;
15335 fail:
15336 return NULL;
15337}
15338
15339
c370783e 15340static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15341 PyObject *resultobj;
15342 wxDC *arg1 = (wxDC *) 0 ;
15343 PyObject *arg2 = (PyObject *) 0 ;
15344 PyObject *arg3 = (PyObject *) 0 ;
15345 PyObject *arg4 = (PyObject *) 0 ;
15346 PyObject *result;
15347 PyObject * obj0 = 0 ;
15348 PyObject * obj1 = 0 ;
15349 PyObject * obj2 = 0 ;
15350 PyObject * obj3 = 0 ;
15351 char *kwnames[] = {
15352 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15353 };
15354
15355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15358 arg2 = obj1;
15359 arg3 = obj2;
15360 arg4 = obj3;
15361 {
15362 PyThreadState* __tstate = wxPyBeginAllowThreads();
15363 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15364
15365 wxPyEndAllowThreads(__tstate);
15366 if (PyErr_Occurred()) SWIG_fail;
15367 }
15368 resultobj = result;
15369 return resultobj;
15370 fail:
15371 return NULL;
15372}
15373
15374
c370783e 15375static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15376 PyObject *resultobj;
15377 wxDC *arg1 = (wxDC *) 0 ;
15378 PyObject *arg2 = (PyObject *) 0 ;
15379 PyObject *arg3 = (PyObject *) 0 ;
15380 PyObject *arg4 = (PyObject *) 0 ;
15381 PyObject *arg5 = (PyObject *) 0 ;
15382 PyObject *result;
15383 PyObject * obj0 = 0 ;
15384 PyObject * obj1 = 0 ;
15385 PyObject * obj2 = 0 ;
15386 PyObject * obj3 = 0 ;
15387 PyObject * obj4 = 0 ;
15388 char *kwnames[] = {
15389 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15390 };
15391
15392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15395 arg2 = obj1;
15396 arg3 = obj2;
15397 arg4 = obj3;
15398 arg5 = obj4;
15399 {
15400 PyThreadState* __tstate = wxPyBeginAllowThreads();
15401 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15402
15403 wxPyEndAllowThreads(__tstate);
15404 if (PyErr_Occurred()) SWIG_fail;
15405 }
15406 resultobj = result;
15407 return resultobj;
15408 fail:
15409 return NULL;
15410}
15411
15412
c370783e 15413static PyObject * DC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15414 PyObject *obj;
15415 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15416 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15417 Py_INCREF(obj);
15418 return Py_BuildValue((char *)"");
15419}
c370783e 15420static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15421 PyObject *resultobj;
15422 wxMemoryDC *result;
15423 char *kwnames[] = {
15424 NULL
15425 };
15426
15427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15428 {
0439c23b 15429 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15430 PyThreadState* __tstate = wxPyBeginAllowThreads();
15431 result = (wxMemoryDC *)new wxMemoryDC();
15432
15433 wxPyEndAllowThreads(__tstate);
110da5b0 15434 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15435 }
15436 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15437 return resultobj;
15438 fail:
15439 return NULL;
15440}
15441
15442
c370783e 15443static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15444 PyObject *resultobj;
15445 wxDC *arg1 = (wxDC *) 0 ;
15446 wxMemoryDC *result;
15447 PyObject * obj0 = 0 ;
15448 char *kwnames[] = {
15449 (char *) "oldDC", NULL
15450 };
15451
15452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15455 {
0439c23b 15456 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15457 PyThreadState* __tstate = wxPyBeginAllowThreads();
15458 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15459
15460 wxPyEndAllowThreads(__tstate);
110da5b0 15461 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15462 }
15463 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15464 return resultobj;
15465 fail:
15466 return NULL;
15467}
15468
15469
c370783e 15470static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15471 PyObject *resultobj;
15472 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15473 wxBitmap *arg2 = 0 ;
15474 PyObject * obj0 = 0 ;
15475 PyObject * obj1 = 0 ;
15476 char *kwnames[] = {
15477 (char *) "self",(char *) "bitmap", NULL
15478 };
15479
15480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15483 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15484 SWIG_POINTER_EXCEPTION | 0)) == -1)
15485 SWIG_fail;
15486 if (arg2 == NULL) {
15487 PyErr_SetString(PyExc_TypeError,"null reference");
15488 SWIG_fail;
15489 }
15490 {
15491 PyThreadState* __tstate = wxPyBeginAllowThreads();
15492 (arg1)->SelectObject((wxBitmap const &)*arg2);
15493
15494 wxPyEndAllowThreads(__tstate);
15495 if (PyErr_Occurred()) SWIG_fail;
15496 }
15497 Py_INCREF(Py_None); resultobj = Py_None;
15498 return resultobj;
15499 fail:
15500 return NULL;
15501}
15502
15503
c370783e 15504static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15505 PyObject *obj;
15506 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15507 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15508 Py_INCREF(obj);
15509 return Py_BuildValue((char *)"");
15510}
c370783e 15511static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
15512 PyObject *resultobj;
15513 wxDC *arg1 = (wxDC *) 0 ;
15514 wxBitmap *arg2 = 0 ;
15515 wxBufferedDC *result;
15516 PyObject * obj0 = 0 ;
15517 PyObject * obj1 = 0 ;
15518
15519 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15522 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15523 SWIG_POINTER_EXCEPTION | 0)) == -1)
15524 SWIG_fail;
15525 if (arg2 == NULL) {
15526 PyErr_SetString(PyExc_TypeError,"null reference");
15527 SWIG_fail;
15528 }
15529 {
0439c23b 15530 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15531 PyThreadState* __tstate = wxPyBeginAllowThreads();
15532 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15533
15534 wxPyEndAllowThreads(__tstate);
110da5b0 15535 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15536 }
15537 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15538 return resultobj;
15539 fail:
15540 return NULL;
15541}
15542
15543
c370783e 15544static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
15545 PyObject *resultobj;
15546 wxDC *arg1 = (wxDC *) 0 ;
15547 wxSize *arg2 = 0 ;
15548 wxBufferedDC *result;
15549 wxSize temp2 ;
15550 PyObject * obj0 = 0 ;
15551 PyObject * obj1 = 0 ;
15552
15553 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15556 {
15557 arg2 = &temp2;
15558 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15559 }
15560 {
0439c23b 15561 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15562 PyThreadState* __tstate = wxPyBeginAllowThreads();
15563 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15564
15565 wxPyEndAllowThreads(__tstate);
110da5b0 15566 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15567 }
15568 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15569 return resultobj;
15570 fail:
15571 return NULL;
15572}
15573
15574
15575static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15576 int argc;
15577 PyObject *argv[3];
15578 int ii;
15579
15580 argc = PyObject_Length(args);
15581 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15582 argv[ii] = PyTuple_GetItem(args,ii);
15583 }
15584 if (argc == 2) {
15585 int _v;
15586 {
15587 void *ptr;
15588 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15589 _v = 0;
15590 PyErr_Clear();
15591 } else {
15592 _v = 1;
15593 }
15594 }
15595 if (_v) {
15596 {
15597 void *ptr;
15598 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15599 _v = 0;
15600 PyErr_Clear();
15601 } else {
15602 _v = 1;
15603 }
15604 }
15605 if (_v) {
15606 return _wrap_new_BufferedDC__SWIG_0(self,args);
15607 }
15608 }
15609 }
15610 if (argc == 2) {
15611 int _v;
15612 {
15613 void *ptr;
15614 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15615 _v = 0;
15616 PyErr_Clear();
15617 } else {
15618 _v = 1;
15619 }
15620 }
15621 if (_v) {
15622 {
15623 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15624 }
15625 if (_v) {
15626 return _wrap_new_BufferedDC__SWIG_1(self,args);
15627 }
15628 }
15629 }
15630
15631 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15632 return NULL;
15633}
15634
15635
c370783e 15636static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15637 PyObject *resultobj;
15638 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15639 PyObject * obj0 = 0 ;
15640 char *kwnames[] = {
15641 (char *) "self", NULL
15642 };
15643
15644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15647 {
15648 PyThreadState* __tstate = wxPyBeginAllowThreads();
15649 delete arg1;
15650
15651 wxPyEndAllowThreads(__tstate);
15652 if (PyErr_Occurred()) SWIG_fail;
15653 }
15654 Py_INCREF(Py_None); resultobj = Py_None;
15655 return resultobj;
15656 fail:
15657 return NULL;
15658}
15659
15660
c370783e 15661static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15662 PyObject *resultobj;
15663 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15664 PyObject * obj0 = 0 ;
15665 char *kwnames[] = {
15666 (char *) "self", NULL
15667 };
15668
15669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15672 {
15673 PyThreadState* __tstate = wxPyBeginAllowThreads();
15674 (arg1)->UnMask();
15675
15676 wxPyEndAllowThreads(__tstate);
15677 if (PyErr_Occurred()) SWIG_fail;
15678 }
15679 Py_INCREF(Py_None); resultobj = Py_None;
15680 return resultobj;
15681 fail:
15682 return NULL;
15683}
15684
15685
c370783e 15686static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15687 PyObject *obj;
15688 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15689 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15690 Py_INCREF(obj);
15691 return Py_BuildValue((char *)"");
15692}
c370783e 15693static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15694 PyObject *resultobj;
15695 wxWindow *arg1 = (wxWindow *) 0 ;
15696 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15697 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15698 wxBufferedPaintDC *result;
15699 PyObject * obj0 = 0 ;
15700 PyObject * obj1 = 0 ;
15701 char *kwnames[] = {
15702 (char *) "window",(char *) "buffer", NULL
15703 };
15704
15705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15708 if (obj1) {
15709 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15710 SWIG_POINTER_EXCEPTION | 0)) == -1)
15711 SWIG_fail;
15712 if (arg2 == NULL) {
15713 PyErr_SetString(PyExc_TypeError,"null reference");
15714 SWIG_fail;
15715 }
15716 }
15717 {
0439c23b 15718 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15719 PyThreadState* __tstate = wxPyBeginAllowThreads();
15720 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15721
15722 wxPyEndAllowThreads(__tstate);
110da5b0 15723 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15724 }
15725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15726 return resultobj;
15727 fail:
15728 return NULL;
15729}
15730
15731
c370783e 15732static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15733 PyObject *obj;
15734 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15735 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15736 Py_INCREF(obj);
15737 return Py_BuildValue((char *)"");
15738}
c370783e 15739static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15740 PyObject *resultobj;
15741 wxScreenDC *result;
15742 char *kwnames[] = {
15743 NULL
15744 };
15745
15746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15747 {
0439c23b 15748 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
15750 result = (wxScreenDC *)new wxScreenDC();
15751
15752 wxPyEndAllowThreads(__tstate);
110da5b0 15753 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15754 }
15755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15756 return resultobj;
15757 fail:
15758 return NULL;
15759}
15760
15761
c370783e 15762static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15763 PyObject *resultobj;
15764 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15765 wxWindow *arg2 = (wxWindow *) 0 ;
15766 bool result;
15767 PyObject * obj0 = 0 ;
15768 PyObject * obj1 = 0 ;
15769 char *kwnames[] = {
15770 (char *) "self",(char *) "window", NULL
15771 };
15772
15773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15776 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15778 {
15779 PyThreadState* __tstate = wxPyBeginAllowThreads();
15780 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15781
15782 wxPyEndAllowThreads(__tstate);
15783 if (PyErr_Occurred()) SWIG_fail;
15784 }
15785 {
15786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15787 }
15788 return resultobj;
15789 fail:
15790 return NULL;
15791}
15792
15793
c370783e 15794static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15795 PyObject *resultobj;
15796 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15797 wxRect *arg2 = (wxRect *) NULL ;
15798 bool result;
15799 PyObject * obj0 = 0 ;
15800 PyObject * obj1 = 0 ;
15801 char *kwnames[] = {
15802 (char *) "self",(char *) "rect", NULL
15803 };
15804
15805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15808 if (obj1) {
15809 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15811 }
15812 {
15813 PyThreadState* __tstate = wxPyBeginAllowThreads();
15814 result = (bool)(arg1)->StartDrawingOnTop(arg2);
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 *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15829 PyObject *resultobj;
15830 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15831 bool result;
15832 PyObject * obj0 = 0 ;
15833 char *kwnames[] = {
15834 (char *) "self", NULL
15835 };
15836
15837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15840 {
15841 PyThreadState* __tstate = wxPyBeginAllowThreads();
15842 result = (bool)(arg1)->EndDrawingOnTop();
15843
15844 wxPyEndAllowThreads(__tstate);
15845 if (PyErr_Occurred()) SWIG_fail;
15846 }
15847 {
15848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15849 }
15850 return resultobj;
15851 fail:
15852 return NULL;
15853}
15854
15855
c370783e 15856static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15857 PyObject *obj;
15858 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15859 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15860 Py_INCREF(obj);
15861 return Py_BuildValue((char *)"");
15862}
c370783e 15863static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15864 PyObject *resultobj;
15865 wxWindow *arg1 = (wxWindow *) 0 ;
15866 wxClientDC *result;
15867 PyObject * obj0 = 0 ;
15868 char *kwnames[] = {
15869 (char *) "win", NULL
15870 };
15871
15872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15875 {
0439c23b 15876 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15877 PyThreadState* __tstate = wxPyBeginAllowThreads();
15878 result = (wxClientDC *)new wxClientDC(arg1);
15879
15880 wxPyEndAllowThreads(__tstate);
110da5b0 15881 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15882 }
15883 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15884 return resultobj;
15885 fail:
15886 return NULL;
15887}
15888
15889
c370783e 15890static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15891 PyObject *obj;
15892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15893 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15894 Py_INCREF(obj);
15895 return Py_BuildValue((char *)"");
15896}
c370783e 15897static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15898 PyObject *resultobj;
15899 wxWindow *arg1 = (wxWindow *) 0 ;
15900 wxPaintDC *result;
15901 PyObject * obj0 = 0 ;
15902 char *kwnames[] = {
15903 (char *) "win", NULL
15904 };
15905
15906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15909 {
0439c23b 15910 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15911 PyThreadState* __tstate = wxPyBeginAllowThreads();
15912 result = (wxPaintDC *)new wxPaintDC(arg1);
15913
15914 wxPyEndAllowThreads(__tstate);
110da5b0 15915 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15916 }
15917 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15918 return resultobj;
15919 fail:
15920 return NULL;
15921}
15922
15923
c370783e 15924static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15925 PyObject *obj;
15926 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15927 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15928 Py_INCREF(obj);
15929 return Py_BuildValue((char *)"");
15930}
c370783e 15931static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15932 PyObject *resultobj;
15933 wxWindow *arg1 = (wxWindow *) 0 ;
15934 wxWindowDC *result;
15935 PyObject * obj0 = 0 ;
15936 char *kwnames[] = {
15937 (char *) "win", NULL
15938 };
15939
15940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15943 {
0439c23b 15944 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15945 PyThreadState* __tstate = wxPyBeginAllowThreads();
15946 result = (wxWindowDC *)new wxWindowDC(arg1);
15947
15948 wxPyEndAllowThreads(__tstate);
110da5b0 15949 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15950 }
15951 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15952 return resultobj;
15953 fail:
15954 return NULL;
15955}
15956
15957
c370783e 15958static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15959 PyObject *obj;
15960 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15961 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15962 Py_INCREF(obj);
15963 return Py_BuildValue((char *)"");
15964}
c370783e 15965static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15966 PyObject *resultobj;
15967 wxDC *arg1 = 0 ;
15968 bool arg2 ;
15969 wxMirrorDC *result;
15970 PyObject * obj0 = 0 ;
15971 PyObject * obj1 = 0 ;
15972 char *kwnames[] = {
15973 (char *) "dc",(char *) "mirror", NULL
15974 };
15975
15976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15978 SWIG_POINTER_EXCEPTION | 0)) == -1)
15979 SWIG_fail;
15980 if (arg1 == NULL) {
15981 PyErr_SetString(PyExc_TypeError,"null reference");
15982 SWIG_fail;
15983 }
c370783e 15984 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15985 if (PyErr_Occurred()) SWIG_fail;
15986 {
0439c23b 15987 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15988 PyThreadState* __tstate = wxPyBeginAllowThreads();
15989 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15990
15991 wxPyEndAllowThreads(__tstate);
110da5b0 15992 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15993 }
15994 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15995 return resultobj;
15996 fail:
15997 return NULL;
15998}
15999
16000
c370783e 16001static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16002 PyObject *obj;
16003 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16004 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
16005 Py_INCREF(obj);
16006 return Py_BuildValue((char *)"");
16007}
c370783e 16008static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16009 PyObject *resultobj;
16010 wxPrintData *arg1 = 0 ;
16011 wxPostScriptDC *result;
16012 PyObject * obj0 = 0 ;
16013 char *kwnames[] = {
16014 (char *) "printData", NULL
16015 };
16016
16017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
16018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16019 SWIG_POINTER_EXCEPTION | 0)) == -1)
16020 SWIG_fail;
16021 if (arg1 == NULL) {
16022 PyErr_SetString(PyExc_TypeError,"null reference");
16023 SWIG_fail;
16024 }
16025 {
0439c23b 16026 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16027 PyThreadState* __tstate = wxPyBeginAllowThreads();
16028 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16029
16030 wxPyEndAllowThreads(__tstate);
110da5b0 16031 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16032 }
16033 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
16034 return resultobj;
16035 fail:
16036 return NULL;
16037}
16038
16039
c370783e 16040static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16041 PyObject *resultobj;
16042 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16043 wxPrintData *result;
16044 PyObject * obj0 = 0 ;
16045 char *kwnames[] = {
16046 (char *) "self", NULL
16047 };
16048
16049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
16050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16052 {
16053 PyThreadState* __tstate = wxPyBeginAllowThreads();
16054 {
16055 wxPrintData &_result_ref = (arg1)->GetPrintData();
16056 result = (wxPrintData *) &_result_ref;
16057 }
16058
16059 wxPyEndAllowThreads(__tstate);
16060 if (PyErr_Occurred()) SWIG_fail;
16061 }
16062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
16063 return resultobj;
16064 fail:
16065 return NULL;
16066}
16067
16068
c370783e 16069static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16070 PyObject *resultobj;
16071 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16072 wxPrintData *arg2 = 0 ;
16073 PyObject * obj0 = 0 ;
16074 PyObject * obj1 = 0 ;
16075 char *kwnames[] = {
16076 (char *) "self",(char *) "data", NULL
16077 };
16078
16079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
16080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16082 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16083 SWIG_POINTER_EXCEPTION | 0)) == -1)
16084 SWIG_fail;
16085 if (arg2 == NULL) {
16086 PyErr_SetString(PyExc_TypeError,"null reference");
16087 SWIG_fail;
16088 }
16089 {
16090 PyThreadState* __tstate = wxPyBeginAllowThreads();
16091 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16092
16093 wxPyEndAllowThreads(__tstate);
16094 if (PyErr_Occurred()) SWIG_fail;
16095 }
16096 Py_INCREF(Py_None); resultobj = Py_None;
16097 return resultobj;
16098 fail:
16099 return NULL;
16100}
16101
16102
c370783e 16103static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16104 PyObject *resultobj;
16105 int arg1 ;
16106 PyObject * obj0 = 0 ;
16107 char *kwnames[] = {
16108 (char *) "ppi", NULL
16109 };
16110
16111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
c370783e 16112 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
16113 if (PyErr_Occurred()) SWIG_fail;
16114 {
16115 PyThreadState* __tstate = wxPyBeginAllowThreads();
16116 wxPostScriptDC::SetResolution(arg1);
16117
16118 wxPyEndAllowThreads(__tstate);
16119 if (PyErr_Occurred()) SWIG_fail;
16120 }
16121 Py_INCREF(Py_None); resultobj = Py_None;
16122 return resultobj;
16123 fail:
16124 return NULL;
16125}
16126
16127
c370783e 16128static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16129 PyObject *resultobj;
16130 int result;
16131 char *kwnames[] = {
16132 NULL
16133 };
16134
16135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16136 {
16137 PyThreadState* __tstate = wxPyBeginAllowThreads();
16138 result = (int)wxPostScriptDC::GetResolution();
16139
16140 wxPyEndAllowThreads(__tstate);
16141 if (PyErr_Occurred()) SWIG_fail;
16142 }
c370783e 16143 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16144 return resultobj;
16145 fail:
16146 return NULL;
16147}
16148
16149
c370783e 16150static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16151 PyObject *obj;
16152 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16153 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16154 Py_INCREF(obj);
16155 return Py_BuildValue((char *)"");
16156}
c370783e 16157static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16158 PyObject *resultobj;
16159 wxString const &arg1_defvalue = wxPyEmptyString ;
16160 wxString *arg1 = (wxString *) &arg1_defvalue ;
16161 wxMetaFile *result;
b411df4a 16162 bool temp1 = false ;
d55e5bfc
RD
16163 PyObject * obj0 = 0 ;
16164 char *kwnames[] = {
16165 (char *) "filename", NULL
16166 };
16167
16168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16169 if (obj0) {
16170 {
16171 arg1 = wxString_in_helper(obj0);
16172 if (arg1 == NULL) SWIG_fail;
b411df4a 16173 temp1 = true;
d55e5bfc
RD
16174 }
16175 }
16176 {
0439c23b 16177 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16178 PyThreadState* __tstate = wxPyBeginAllowThreads();
16179 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16180
16181 wxPyEndAllowThreads(__tstate);
110da5b0 16182 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16183 }
16184 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16185 {
16186 if (temp1)
16187 delete arg1;
16188 }
16189 return resultobj;
16190 fail:
16191 {
16192 if (temp1)
16193 delete arg1;
16194 }
16195 return NULL;
16196}
16197
16198
c370783e 16199static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16200 PyObject *resultobj;
16201 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16202 PyObject * obj0 = 0 ;
16203 char *kwnames[] = {
16204 (char *) "self", NULL
16205 };
16206
16207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16210 {
16211 PyThreadState* __tstate = wxPyBeginAllowThreads();
16212 delete arg1;
16213
16214 wxPyEndAllowThreads(__tstate);
16215 if (PyErr_Occurred()) SWIG_fail;
16216 }
16217 Py_INCREF(Py_None); resultobj = Py_None;
16218 return resultobj;
16219 fail:
16220 return NULL;
16221}
16222
16223
c370783e 16224static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16225 PyObject *resultobj;
16226 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16227 bool result;
16228 PyObject * obj0 = 0 ;
16229 char *kwnames[] = {
16230 (char *) "self", NULL
16231 };
16232
16233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16236 {
16237 PyThreadState* __tstate = wxPyBeginAllowThreads();
16238 result = (bool)(arg1)->Ok();
16239
16240 wxPyEndAllowThreads(__tstate);
16241 if (PyErr_Occurred()) SWIG_fail;
16242 }
16243 {
16244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16245 }
16246 return resultobj;
16247 fail:
16248 return NULL;
16249}
16250
16251
c370783e 16252static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16253 PyObject *resultobj;
16254 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16255 int arg2 = (int) 0 ;
16256 int arg3 = (int) 0 ;
16257 bool result;
16258 PyObject * obj0 = 0 ;
16259 PyObject * obj1 = 0 ;
16260 PyObject * obj2 = 0 ;
16261 char *kwnames[] = {
16262 (char *) "self",(char *) "width",(char *) "height", NULL
16263 };
16264
16265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16268 if (obj1) {
c370783e 16269 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16270 if (PyErr_Occurred()) SWIG_fail;
16271 }
16272 if (obj2) {
c370783e 16273 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
16274 if (PyErr_Occurred()) SWIG_fail;
16275 }
16276 {
16277 PyThreadState* __tstate = wxPyBeginAllowThreads();
16278 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16279
16280 wxPyEndAllowThreads(__tstate);
16281 if (PyErr_Occurred()) SWIG_fail;
16282 }
16283 {
16284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16285 }
16286 return resultobj;
16287 fail:
16288 return NULL;
16289}
16290
16291
c370783e 16292static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16293 PyObject *resultobj;
16294 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16295 wxSize result;
16296 PyObject * obj0 = 0 ;
16297 char *kwnames[] = {
16298 (char *) "self", NULL
16299 };
16300
16301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16304 {
16305 PyThreadState* __tstate = wxPyBeginAllowThreads();
16306 result = (arg1)->GetSize();
16307
16308 wxPyEndAllowThreads(__tstate);
16309 if (PyErr_Occurred()) SWIG_fail;
16310 }
16311 {
16312 wxSize * resultptr;
16313 resultptr = new wxSize((wxSize &) result);
16314 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16315 }
16316 return resultobj;
16317 fail:
16318 return NULL;
16319}
16320
16321
c370783e 16322static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16323 PyObject *resultobj;
16324 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16325 int result;
16326 PyObject * obj0 = 0 ;
16327 char *kwnames[] = {
16328 (char *) "self", NULL
16329 };
16330
16331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16334 {
16335 PyThreadState* __tstate = wxPyBeginAllowThreads();
16336 result = (int)(arg1)->GetWidth();
16337
16338 wxPyEndAllowThreads(__tstate);
16339 if (PyErr_Occurred()) SWIG_fail;
16340 }
c370783e 16341 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16342 return resultobj;
16343 fail:
16344 return NULL;
16345}
16346
16347
c370783e 16348static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16349 PyObject *resultobj;
16350 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16351 int result;
16352 PyObject * obj0 = 0 ;
16353 char *kwnames[] = {
16354 (char *) "self", NULL
16355 };
16356
16357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16360 {
16361 PyThreadState* __tstate = wxPyBeginAllowThreads();
16362 result = (int)(arg1)->GetHeight();
16363
16364 wxPyEndAllowThreads(__tstate);
16365 if (PyErr_Occurred()) SWIG_fail;
16366 }
c370783e 16367 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16368 return resultobj;
16369 fail:
16370 return NULL;
16371}
16372
16373
c370783e 16374static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16375 PyObject *obj;
16376 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16377 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16378 Py_INCREF(obj);
16379 return Py_BuildValue((char *)"");
16380}
c370783e 16381static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16382 PyObject *resultobj;
16383 wxString const &arg1_defvalue = wxPyEmptyString ;
16384 wxString *arg1 = (wxString *) &arg1_defvalue ;
16385 int arg2 = (int) 0 ;
16386 int arg3 = (int) 0 ;
16387 wxString const &arg4_defvalue = wxPyEmptyString ;
16388 wxString *arg4 = (wxString *) &arg4_defvalue ;
16389 wxMetaFileDC *result;
b411df4a
RD
16390 bool temp1 = false ;
16391 bool temp4 = false ;
d55e5bfc
RD
16392 PyObject * obj0 = 0 ;
16393 PyObject * obj1 = 0 ;
16394 PyObject * obj2 = 0 ;
16395 PyObject * obj3 = 0 ;
16396 char *kwnames[] = {
16397 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16398 };
16399
16400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16401 if (obj0) {
16402 {
16403 arg1 = wxString_in_helper(obj0);
16404 if (arg1 == NULL) SWIG_fail;
b411df4a 16405 temp1 = true;
d55e5bfc
RD
16406 }
16407 }
16408 if (obj1) {
c370783e 16409 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16410 if (PyErr_Occurred()) SWIG_fail;
16411 }
16412 if (obj2) {
c370783e 16413 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
16414 if (PyErr_Occurred()) SWIG_fail;
16415 }
16416 if (obj3) {
16417 {
16418 arg4 = wxString_in_helper(obj3);
16419 if (arg4 == NULL) SWIG_fail;
b411df4a 16420 temp4 = true;
d55e5bfc
RD
16421 }
16422 }
16423 {
0439c23b 16424 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16425 PyThreadState* __tstate = wxPyBeginAllowThreads();
16426 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16427
16428 wxPyEndAllowThreads(__tstate);
110da5b0 16429 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16430 }
16431 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16432 {
16433 if (temp1)
16434 delete arg1;
16435 }
16436 {
16437 if (temp4)
16438 delete arg4;
16439 }
16440 return resultobj;
16441 fail:
16442 {
16443 if (temp1)
16444 delete arg1;
16445 }
16446 {
16447 if (temp4)
16448 delete arg4;
16449 }
16450 return NULL;
16451}
16452
16453
c370783e 16454static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16455 PyObject *resultobj;
16456 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16457 wxMetaFile *result;
16458 PyObject * obj0 = 0 ;
16459 char *kwnames[] = {
16460 (char *) "self", NULL
16461 };
16462
16463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16466 {
16467 PyThreadState* __tstate = wxPyBeginAllowThreads();
16468 result = (wxMetaFile *)(arg1)->Close();
16469
16470 wxPyEndAllowThreads(__tstate);
16471 if (PyErr_Occurred()) SWIG_fail;
16472 }
16473 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16474 return resultobj;
16475 fail:
16476 return NULL;
16477}
16478
16479
c370783e 16480static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16481 PyObject *obj;
16482 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16483 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16484 Py_INCREF(obj);
16485 return Py_BuildValue((char *)"");
16486}
c370783e 16487static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16488 PyObject *resultobj;
16489 wxPrintData *arg1 = 0 ;
16490 wxPrinterDC *result;
16491 PyObject * obj0 = 0 ;
16492 char *kwnames[] = {
16493 (char *) "printData", NULL
16494 };
16495
16496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16498 SWIG_POINTER_EXCEPTION | 0)) == -1)
16499 SWIG_fail;
16500 if (arg1 == NULL) {
16501 PyErr_SetString(PyExc_TypeError,"null reference");
16502 SWIG_fail;
16503 }
16504 {
0439c23b 16505 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16506 PyThreadState* __tstate = wxPyBeginAllowThreads();
16507 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16508
16509 wxPyEndAllowThreads(__tstate);
110da5b0 16510 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16511 }
16512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16513 return resultobj;
16514 fail:
16515 return NULL;
16516}
16517
16518
c370783e 16519static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16520 PyObject *obj;
16521 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16522 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16523 Py_INCREF(obj);
16524 return Py_BuildValue((char *)"");
16525}
c370783e 16526static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16527 PyObject *resultobj;
16528 int arg1 ;
16529 int arg2 ;
b411df4a 16530 int arg3 = (int) true ;
d55e5bfc
RD
16531 int arg4 = (int) 1 ;
16532 wxImageList *result;
16533 PyObject * obj0 = 0 ;
16534 PyObject * obj1 = 0 ;
16535 PyObject * obj2 = 0 ;
16536 PyObject * obj3 = 0 ;
16537 char *kwnames[] = {
16538 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16539 };
16540
16541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
c370783e 16542 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 16543 if (PyErr_Occurred()) SWIG_fail;
c370783e 16544 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16545 if (PyErr_Occurred()) SWIG_fail;
16546 if (obj2) {
c370783e 16547 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
16548 if (PyErr_Occurred()) SWIG_fail;
16549 }
16550 if (obj3) {
c370783e 16551 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
16552 if (PyErr_Occurred()) SWIG_fail;
16553 }
16554 {
0439c23b 16555 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16556 PyThreadState* __tstate = wxPyBeginAllowThreads();
16557 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16558
16559 wxPyEndAllowThreads(__tstate);
110da5b0 16560 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16561 }
16562 {
412d302d 16563 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
16564 }
16565 return resultobj;
16566 fail:
16567 return NULL;
16568}
16569
16570
c370783e 16571static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16572 PyObject *resultobj;
16573 wxImageList *arg1 = (wxImageList *) 0 ;
16574 PyObject * obj0 = 0 ;
16575 char *kwnames[] = {
16576 (char *) "self", NULL
16577 };
16578
16579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16582 {
16583 PyThreadState* __tstate = wxPyBeginAllowThreads();
16584 delete arg1;
16585
16586 wxPyEndAllowThreads(__tstate);
16587 if (PyErr_Occurred()) SWIG_fail;
16588 }
16589 Py_INCREF(Py_None); resultobj = Py_None;
16590 return resultobj;
16591 fail:
16592 return NULL;
16593}
16594
16595
c370783e 16596static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16597 PyObject *resultobj;
16598 wxImageList *arg1 = (wxImageList *) 0 ;
16599 wxBitmap *arg2 = 0 ;
16600 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16601 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16602 int result;
16603 PyObject * obj0 = 0 ;
16604 PyObject * obj1 = 0 ;
16605 PyObject * obj2 = 0 ;
16606 char *kwnames[] = {
16607 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16608 };
16609
16610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16613 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16614 SWIG_POINTER_EXCEPTION | 0)) == -1)
16615 SWIG_fail;
16616 if (arg2 == NULL) {
16617 PyErr_SetString(PyExc_TypeError,"null reference");
16618 SWIG_fail;
16619 }
16620 if (obj2) {
16621 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16622 SWIG_POINTER_EXCEPTION | 0)) == -1)
16623 SWIG_fail;
16624 if (arg3 == NULL) {
16625 PyErr_SetString(PyExc_TypeError,"null reference");
16626 SWIG_fail;
16627 }
16628 }
16629 {
16630 PyThreadState* __tstate = wxPyBeginAllowThreads();
16631 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16632
16633 wxPyEndAllowThreads(__tstate);
16634 if (PyErr_Occurred()) SWIG_fail;
16635 }
c370783e 16636 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16637 return resultobj;
16638 fail:
16639 return NULL;
16640}
16641
16642
c370783e 16643static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16644 PyObject *resultobj;
16645 wxImageList *arg1 = (wxImageList *) 0 ;
16646 wxBitmap *arg2 = 0 ;
16647 wxColour *arg3 = 0 ;
16648 int result;
16649 wxColour temp3 ;
16650 PyObject * obj0 = 0 ;
16651 PyObject * obj1 = 0 ;
16652 PyObject * obj2 = 0 ;
16653 char *kwnames[] = {
16654 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16655 };
16656
16657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16660 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16661 SWIG_POINTER_EXCEPTION | 0)) == -1)
16662 SWIG_fail;
16663 if (arg2 == NULL) {
16664 PyErr_SetString(PyExc_TypeError,"null reference");
16665 SWIG_fail;
16666 }
16667 {
16668 arg3 = &temp3;
16669 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16670 }
16671 {
16672 PyThreadState* __tstate = wxPyBeginAllowThreads();
16673 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16674
16675 wxPyEndAllowThreads(__tstate);
16676 if (PyErr_Occurred()) SWIG_fail;
16677 }
c370783e 16678 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16679 return resultobj;
16680 fail:
16681 return NULL;
16682}
16683
16684
c370783e 16685static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16686 PyObject *resultobj;
16687 wxImageList *arg1 = (wxImageList *) 0 ;
16688 wxIcon *arg2 = 0 ;
16689 int result;
16690 PyObject * obj0 = 0 ;
16691 PyObject * obj1 = 0 ;
16692 char *kwnames[] = {
16693 (char *) "self",(char *) "icon", NULL
16694 };
16695
16696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16699 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16700 SWIG_POINTER_EXCEPTION | 0)) == -1)
16701 SWIG_fail;
16702 if (arg2 == NULL) {
16703 PyErr_SetString(PyExc_TypeError,"null reference");
16704 SWIG_fail;
16705 }
16706 {
16707 PyThreadState* __tstate = wxPyBeginAllowThreads();
16708 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16709
16710 wxPyEndAllowThreads(__tstate);
16711 if (PyErr_Occurred()) SWIG_fail;
16712 }
c370783e 16713 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16714 return resultobj;
16715 fail:
16716 return NULL;
16717}
16718
16719
c370783e 16720static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16721 PyObject *resultobj;
16722 wxImageList *arg1 = (wxImageList *) 0 ;
16723 int arg2 ;
16724 wxBitmap *arg3 = 0 ;
16725 bool result;
16726 PyObject * obj0 = 0 ;
16727 PyObject * obj1 = 0 ;
16728 PyObject * obj2 = 0 ;
16729 char *kwnames[] = {
16730 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16731 };
16732
16733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 16736 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16737 if (PyErr_Occurred()) SWIG_fail;
16738 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16739 SWIG_POINTER_EXCEPTION | 0)) == -1)
16740 SWIG_fail;
16741 if (arg3 == NULL) {
16742 PyErr_SetString(PyExc_TypeError,"null reference");
16743 SWIG_fail;
16744 }
16745 {
16746 PyThreadState* __tstate = wxPyBeginAllowThreads();
16747 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16748
16749 wxPyEndAllowThreads(__tstate);
16750 if (PyErr_Occurred()) SWIG_fail;
16751 }
16752 {
16753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16754 }
16755 return resultobj;
16756 fail:
16757 return NULL;
16758}
16759
16760
c370783e 16761static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16762 PyObject *resultobj;
16763 wxImageList *arg1 = (wxImageList *) 0 ;
16764 int arg2 ;
16765 wxDC *arg3 = 0 ;
16766 int arg4 ;
16767 int arg5 ;
16768 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
b411df4a 16769 bool arg7 = (bool) (bool)false ;
d55e5bfc
RD
16770 bool result;
16771 PyObject * obj0 = 0 ;
16772 PyObject * obj1 = 0 ;
16773 PyObject * obj2 = 0 ;
16774 PyObject * obj3 = 0 ;
16775 PyObject * obj4 = 0 ;
16776 PyObject * obj5 = 0 ;
16777 PyObject * obj6 = 0 ;
16778 char *kwnames[] = {
16779 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16780 };
16781
16782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 16785 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16786 if (PyErr_Occurred()) SWIG_fail;
16787 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16788 SWIG_POINTER_EXCEPTION | 0)) == -1)
16789 SWIG_fail;
16790 if (arg3 == NULL) {
16791 PyErr_SetString(PyExc_TypeError,"null reference");
16792 SWIG_fail;
16793 }
c370783e 16794 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 16795 if (PyErr_Occurred()) SWIG_fail;
c370783e 16796 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
16797 if (PyErr_Occurred()) SWIG_fail;
16798 if (obj5) {
c370783e 16799 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
16800 if (PyErr_Occurred()) SWIG_fail;
16801 }
16802 if (obj6) {
c370783e 16803 arg7 = (bool)SWIG_As_bool(obj6);
d55e5bfc
RD
16804 if (PyErr_Occurred()) SWIG_fail;
16805 }
16806 {
16807 PyThreadState* __tstate = wxPyBeginAllowThreads();
16808 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16809
16810 wxPyEndAllowThreads(__tstate);
16811 if (PyErr_Occurred()) SWIG_fail;
16812 }
16813 {
16814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16815 }
16816 return resultobj;
16817 fail:
16818 return NULL;
16819}
16820
16821
c370783e 16822static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16823 PyObject *resultobj;
16824 wxImageList *arg1 = (wxImageList *) 0 ;
16825 int result;
16826 PyObject * obj0 = 0 ;
16827 char *kwnames[] = {
16828 (char *) "self", NULL
16829 };
16830
16831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16834 {
16835 PyThreadState* __tstate = wxPyBeginAllowThreads();
16836 result = (int)(arg1)->GetImageCount();
16837
16838 wxPyEndAllowThreads(__tstate);
16839 if (PyErr_Occurred()) SWIG_fail;
16840 }
c370783e 16841 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16842 return resultobj;
16843 fail:
16844 return NULL;
16845}
16846
16847
c370783e 16848static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16849 PyObject *resultobj;
16850 wxImageList *arg1 = (wxImageList *) 0 ;
16851 int arg2 ;
16852 bool result;
16853 PyObject * obj0 = 0 ;
16854 PyObject * obj1 = 0 ;
16855 char *kwnames[] = {
16856 (char *) "self",(char *) "index", NULL
16857 };
16858
16859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 16862 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16863 if (PyErr_Occurred()) SWIG_fail;
16864 {
16865 PyThreadState* __tstate = wxPyBeginAllowThreads();
16866 result = (bool)(arg1)->Remove(arg2);
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_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16881 PyObject *resultobj;
16882 wxImageList *arg1 = (wxImageList *) 0 ;
16883 bool result;
16884 PyObject * obj0 = 0 ;
16885 char *kwnames[] = {
16886 (char *) "self", NULL
16887 };
16888
16889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16892 {
16893 PyThreadState* __tstate = wxPyBeginAllowThreads();
16894 result = (bool)(arg1)->RemoveAll();
16895
16896 wxPyEndAllowThreads(__tstate);
16897 if (PyErr_Occurred()) SWIG_fail;
16898 }
16899 {
16900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16901 }
16902 return resultobj;
16903 fail:
16904 return NULL;
16905}
16906
16907
c370783e 16908static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16909 PyObject *resultobj;
16910 wxImageList *arg1 = (wxImageList *) 0 ;
16911 int arg2 ;
16912 int *arg3 = 0 ;
16913 int *arg4 = 0 ;
16914 int temp3 ;
c370783e 16915 int res3 = 0 ;
d55e5bfc 16916 int temp4 ;
c370783e 16917 int res4 = 0 ;
d55e5bfc
RD
16918 PyObject * obj0 = 0 ;
16919 PyObject * obj1 = 0 ;
16920 char *kwnames[] = {
16921 (char *) "self",(char *) "index", NULL
16922 };
16923
c370783e
RD
16924 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16925 arg4 = &temp4; res4 = SWIG_NEWOBJ;
d55e5bfc
RD
16926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 16929 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16930 if (PyErr_Occurred()) SWIG_fail;
16931 {
16932 PyThreadState* __tstate = wxPyBeginAllowThreads();
16933 (arg1)->GetSize(arg2,*arg3,*arg4);
16934
16935 wxPyEndAllowThreads(__tstate);
16936 if (PyErr_Occurred()) SWIG_fail;
16937 }
16938 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
16939 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16940 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16941 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
16942 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
16943 return resultobj;
16944 fail:
16945 return NULL;
16946}
16947
16948
c370783e 16949static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16950 PyObject *obj;
16951 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16952 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16953 Py_INCREF(obj);
16954 return Py_BuildValue((char *)"");
16955}
c370783e 16956static int _wrap_NORMAL_FONT_set(PyObject *) {
d55e5bfc
RD
16957 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16958 return 1;
16959}
16960
16961
16962static PyObject *_wrap_NORMAL_FONT_get() {
16963 PyObject *pyobj;
16964
16965 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16966 return pyobj;
16967}
16968
16969
c370783e 16970static int _wrap_SMALL_FONT_set(PyObject *) {
d55e5bfc
RD
16971 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16972 return 1;
16973}
16974
16975
16976static PyObject *_wrap_SMALL_FONT_get() {
16977 PyObject *pyobj;
16978
16979 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16980 return pyobj;
16981}
16982
16983
c370783e 16984static int _wrap_ITALIC_FONT_set(PyObject *) {
d55e5bfc
RD
16985 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16986 return 1;
16987}
16988
16989
16990static PyObject *_wrap_ITALIC_FONT_get() {
16991 PyObject *pyobj;
16992
16993 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16994 return pyobj;
16995}
16996
16997
c370783e 16998static int _wrap_SWISS_FONT_set(PyObject *) {
d55e5bfc
RD
16999 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
17000 return 1;
17001}
17002
17003
17004static PyObject *_wrap_SWISS_FONT_get() {
17005 PyObject *pyobj;
17006
17007 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
17008 return pyobj;
17009}
17010
17011
c370783e 17012static int _wrap_RED_PEN_set(PyObject *) {
d55e5bfc
RD
17013 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
17014 return 1;
17015}
17016
17017
17018static PyObject *_wrap_RED_PEN_get() {
17019 PyObject *pyobj;
17020
17021 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
17022 return pyobj;
17023}
17024
17025
c370783e 17026static int _wrap_CYAN_PEN_set(PyObject *) {
d55e5bfc
RD
17027 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
17028 return 1;
17029}
17030
17031
17032static PyObject *_wrap_CYAN_PEN_get() {
17033 PyObject *pyobj;
17034
17035 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
17036 return pyobj;
17037}
17038
17039
c370783e 17040static int _wrap_GREEN_PEN_set(PyObject *) {
d55e5bfc
RD
17041 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
17042 return 1;
17043}
17044
17045
17046static PyObject *_wrap_GREEN_PEN_get() {
17047 PyObject *pyobj;
17048
17049 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
17050 return pyobj;
17051}
17052
17053
c370783e 17054static int _wrap_BLACK_PEN_set(PyObject *) {
d55e5bfc
RD
17055 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17056 return 1;
17057}
17058
17059
17060static PyObject *_wrap_BLACK_PEN_get() {
17061 PyObject *pyobj;
17062
17063 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
17064 return pyobj;
17065}
17066
17067
c370783e 17068static int _wrap_WHITE_PEN_set(PyObject *) {
d55e5bfc
RD
17069 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17070 return 1;
17071}
17072
17073
17074static PyObject *_wrap_WHITE_PEN_get() {
17075 PyObject *pyobj;
17076
17077 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
17078 return pyobj;
17079}
17080
17081
c370783e 17082static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
d55e5bfc
RD
17083 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17084 return 1;
17085}
17086
17087
17088static PyObject *_wrap_TRANSPARENT_PEN_get() {
17089 PyObject *pyobj;
17090
17091 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
17092 return pyobj;
17093}
17094
17095
c370783e 17096static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
d55e5bfc
RD
17097 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17098 return 1;
17099}
17100
17101
17102static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17103 PyObject *pyobj;
17104
17105 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
17106 return pyobj;
17107}
17108
17109
c370783e 17110static int _wrap_GREY_PEN_set(PyObject *) {
d55e5bfc
RD
17111 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17112 return 1;
17113}
17114
17115
17116static PyObject *_wrap_GREY_PEN_get() {
17117 PyObject *pyobj;
17118
17119 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
17120 return pyobj;
17121}
17122
17123
c370783e 17124static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
d55e5bfc
RD
17125 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17126 return 1;
17127}
17128
17129
17130static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17131 PyObject *pyobj;
17132
17133 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17134 return pyobj;
17135}
17136
17137
c370783e 17138static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
d55e5bfc
RD
17139 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17140 return 1;
17141}
17142
17143
17144static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17145 PyObject *pyobj;
17146
17147 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17148 return pyobj;
17149}
17150
17151
c370783e 17152static int _wrap_BLUE_BRUSH_set(PyObject *) {
d55e5bfc
RD
17153 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17154 return 1;
17155}
17156
17157
17158static PyObject *_wrap_BLUE_BRUSH_get() {
17159 PyObject *pyobj;
17160
17161 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17162 return pyobj;
17163}
17164
17165
c370783e 17166static int _wrap_GREEN_BRUSH_set(PyObject *) {
d55e5bfc
RD
17167 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17168 return 1;
17169}
17170
17171
17172static PyObject *_wrap_GREEN_BRUSH_get() {
17173 PyObject *pyobj;
17174
17175 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17176 return pyobj;
17177}
17178
17179
c370783e 17180static int _wrap_WHITE_BRUSH_set(PyObject *) {
d55e5bfc
RD
17181 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17182 return 1;
17183}
17184
17185
17186static PyObject *_wrap_WHITE_BRUSH_get() {
17187 PyObject *pyobj;
17188
17189 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17190 return pyobj;
17191}
17192
17193
c370783e 17194static int _wrap_BLACK_BRUSH_set(PyObject *) {
d55e5bfc
RD
17195 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17196 return 1;
17197}
17198
17199
17200static PyObject *_wrap_BLACK_BRUSH_get() {
17201 PyObject *pyobj;
17202
17203 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17204 return pyobj;
17205}
17206
17207
c370783e 17208static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
d55e5bfc
RD
17209 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17210 return 1;
17211}
17212
17213
17214static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17215 PyObject *pyobj;
17216
17217 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17218 return pyobj;
17219}
17220
17221
c370783e 17222static int _wrap_CYAN_BRUSH_set(PyObject *) {
d55e5bfc
RD
17223 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17224 return 1;
17225}
17226
17227
17228static PyObject *_wrap_CYAN_BRUSH_get() {
17229 PyObject *pyobj;
17230
17231 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17232 return pyobj;
17233}
17234
17235
c370783e 17236static int _wrap_RED_BRUSH_set(PyObject *) {
d55e5bfc
RD
17237 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17238 return 1;
17239}
17240
17241
17242static PyObject *_wrap_RED_BRUSH_get() {
17243 PyObject *pyobj;
17244
17245 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17246 return pyobj;
17247}
17248
17249
c370783e 17250static int _wrap_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
17251 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17252 return 1;
17253}
17254
17255
17256static PyObject *_wrap_GREY_BRUSH_get() {
17257 PyObject *pyobj;
17258
17259 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17260 return pyobj;
17261}
17262
17263
c370783e 17264static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
17265 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17266 return 1;
17267}
17268
17269
17270static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17271 PyObject *pyobj;
17272
17273 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17274 return pyobj;
17275}
17276
17277
c370783e 17278static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
d55e5bfc
RD
17279 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17280 return 1;
17281}
17282
17283
17284static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17285 PyObject *pyobj;
17286
17287 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17288 return pyobj;
17289}
17290
17291
c370783e 17292static int _wrap_BLACK_set(PyObject *) {
d55e5bfc
RD
17293 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17294 return 1;
17295}
17296
17297
17298static PyObject *_wrap_BLACK_get() {
17299 PyObject *pyobj;
17300
17301 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17302 return pyobj;
17303}
17304
17305
c370783e 17306static int _wrap_WHITE_set(PyObject *) {
d55e5bfc
RD
17307 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17308 return 1;
17309}
17310
17311
17312static PyObject *_wrap_WHITE_get() {
17313 PyObject *pyobj;
17314
17315 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17316 return pyobj;
17317}
17318
17319
c370783e 17320static int _wrap_RED_set(PyObject *) {
d55e5bfc
RD
17321 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17322 return 1;
17323}
17324
17325
17326static PyObject *_wrap_RED_get() {
17327 PyObject *pyobj;
17328
17329 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17330 return pyobj;
17331}
17332
17333
c370783e 17334static int _wrap_BLUE_set(PyObject *) {
d55e5bfc
RD
17335 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17336 return 1;
17337}
17338
17339
17340static PyObject *_wrap_BLUE_get() {
17341 PyObject *pyobj;
17342
17343 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17344 return pyobj;
17345}
17346
17347
c370783e 17348static int _wrap_GREEN_set(PyObject *) {
d55e5bfc
RD
17349 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17350 return 1;
17351}
17352
17353
17354static PyObject *_wrap_GREEN_get() {
17355 PyObject *pyobj;
17356
17357 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17358 return pyobj;
17359}
17360
17361
c370783e 17362static int _wrap_CYAN_set(PyObject *) {
d55e5bfc
RD
17363 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17364 return 1;
17365}
17366
17367
17368static PyObject *_wrap_CYAN_get() {
17369 PyObject *pyobj;
17370
17371 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17372 return pyobj;
17373}
17374
17375
c370783e 17376static int _wrap_LIGHT_GREY_set(PyObject *) {
d55e5bfc
RD
17377 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17378 return 1;
17379}
17380
17381
17382static PyObject *_wrap_LIGHT_GREY_get() {
17383 PyObject *pyobj;
17384
17385 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17386 return pyobj;
17387}
17388
17389
c370783e 17390static int _wrap_STANDARD_CURSOR_set(PyObject *) {
d55e5bfc
RD
17391 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17392 return 1;
17393}
17394
17395
17396static PyObject *_wrap_STANDARD_CURSOR_get() {
17397 PyObject *pyobj;
17398
17399 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17400 return pyobj;
17401}
17402
17403
c370783e 17404static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
d55e5bfc
RD
17405 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17406 return 1;
17407}
17408
17409
17410static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17411 PyObject *pyobj;
17412
17413 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17414 return pyobj;
17415}
17416
17417
c370783e 17418static int _wrap_CROSS_CURSOR_set(PyObject *) {
d55e5bfc
RD
17419 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17420 return 1;
17421}
17422
17423
17424static PyObject *_wrap_CROSS_CURSOR_get() {
17425 PyObject *pyobj;
17426
17427 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17428 return pyobj;
17429}
17430
17431
c370783e 17432static int _wrap_NullBitmap_set(PyObject *) {
d55e5bfc
RD
17433 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17434 return 1;
17435}
17436
17437
17438static PyObject *_wrap_NullBitmap_get() {
17439 PyObject *pyobj;
17440
17441 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17442 return pyobj;
17443}
17444
17445
c370783e 17446static int _wrap_NullIcon_set(PyObject *) {
d55e5bfc
RD
17447 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17448 return 1;
17449}
17450
17451
17452static PyObject *_wrap_NullIcon_get() {
17453 PyObject *pyobj;
17454
17455 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17456 return pyobj;
17457}
17458
17459
c370783e 17460static int _wrap_NullCursor_set(PyObject *) {
d55e5bfc
RD
17461 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17462 return 1;
17463}
17464
17465
17466static PyObject *_wrap_NullCursor_get() {
17467 PyObject *pyobj;
17468
17469 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17470 return pyobj;
17471}
17472
17473
c370783e 17474static int _wrap_NullPen_set(PyObject *) {
d55e5bfc
RD
17475 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17476 return 1;
17477}
17478
17479
17480static PyObject *_wrap_NullPen_get() {
17481 PyObject *pyobj;
17482
17483 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17484 return pyobj;
17485}
17486
17487
c370783e 17488static int _wrap_NullBrush_set(PyObject *) {
d55e5bfc
RD
17489 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17490 return 1;
17491}
17492
17493
17494static PyObject *_wrap_NullBrush_get() {
17495 PyObject *pyobj;
17496
17497 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17498 return pyobj;
17499}
17500
17501
c370783e 17502static int _wrap_NullPalette_set(PyObject *) {
d55e5bfc
RD
17503 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17504 return 1;
17505}
17506
17507
17508static PyObject *_wrap_NullPalette_get() {
17509 PyObject *pyobj;
17510
17511 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17512 return pyobj;
17513}
17514
17515
c370783e 17516static int _wrap_NullFont_set(PyObject *) {
d55e5bfc
RD
17517 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17518 return 1;
17519}
17520
17521
17522static PyObject *_wrap_NullFont_get() {
17523 PyObject *pyobj;
17524
17525 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17526 return pyobj;
17527}
17528
17529
c370783e 17530static int _wrap_NullColour_set(PyObject *) {
d55e5bfc
RD
17531 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17532 return 1;
17533}
17534
17535
17536static PyObject *_wrap_NullColour_get() {
17537 PyObject *pyobj;
17538
17539 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17540 return pyobj;
17541}
17542
17543
c370783e 17544static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17545 PyObject *resultobj;
17546 wxPenList *arg1 = (wxPenList *) 0 ;
17547 wxPen *arg2 = (wxPen *) 0 ;
17548 PyObject * obj0 = 0 ;
17549 PyObject * obj1 = 0 ;
17550 char *kwnames[] = {
17551 (char *) "self",(char *) "pen", NULL
17552 };
17553
17554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17557 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17559 {
17560 PyThreadState* __tstate = wxPyBeginAllowThreads();
17561 (arg1)->AddPen(arg2);
17562
17563 wxPyEndAllowThreads(__tstate);
17564 if (PyErr_Occurred()) SWIG_fail;
17565 }
17566 Py_INCREF(Py_None); resultobj = Py_None;
17567 return resultobj;
17568 fail:
17569 return NULL;
17570}
17571
17572
c370783e 17573static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17574 PyObject *resultobj;
17575 wxPenList *arg1 = (wxPenList *) 0 ;
17576 wxColour *arg2 = 0 ;
17577 int arg3 ;
17578 int arg4 ;
17579 wxPen *result;
17580 wxColour temp2 ;
17581 PyObject * obj0 = 0 ;
17582 PyObject * obj1 = 0 ;
17583 PyObject * obj2 = 0 ;
17584 PyObject * obj3 = 0 ;
17585 char *kwnames[] = {
17586 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17587 };
17588
17589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17592 {
17593 arg2 = &temp2;
17594 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17595 }
c370783e 17596 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 17597 if (PyErr_Occurred()) SWIG_fail;
c370783e 17598 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
17599 if (PyErr_Occurred()) SWIG_fail;
17600 {
17601 PyThreadState* __tstate = wxPyBeginAllowThreads();
17602 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17603
17604 wxPyEndAllowThreads(__tstate);
17605 if (PyErr_Occurred()) SWIG_fail;
17606 }
17607 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17608 return resultobj;
17609 fail:
17610 return NULL;
17611}
17612
17613
c370783e 17614static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17615 PyObject *resultobj;
17616 wxPenList *arg1 = (wxPenList *) 0 ;
17617 wxPen *arg2 = (wxPen *) 0 ;
17618 PyObject * obj0 = 0 ;
17619 PyObject * obj1 = 0 ;
17620 char *kwnames[] = {
17621 (char *) "self",(char *) "pen", NULL
17622 };
17623
17624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17627 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17629 {
17630 PyThreadState* __tstate = wxPyBeginAllowThreads();
17631 (arg1)->RemovePen(arg2);
17632
17633 wxPyEndAllowThreads(__tstate);
17634 if (PyErr_Occurred()) SWIG_fail;
17635 }
17636 Py_INCREF(Py_None); resultobj = Py_None;
17637 return resultobj;
17638 fail:
17639 return NULL;
17640}
17641
17642
c370783e 17643static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17644 PyObject *resultobj;
17645 wxPenList *arg1 = (wxPenList *) 0 ;
17646 int result;
17647 PyObject * obj0 = 0 ;
17648 char *kwnames[] = {
17649 (char *) "self", NULL
17650 };
17651
17652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17655 {
17656 PyThreadState* __tstate = wxPyBeginAllowThreads();
17657 result = (int)(arg1)->GetCount();
17658
17659 wxPyEndAllowThreads(__tstate);
17660 if (PyErr_Occurred()) SWIG_fail;
17661 }
c370783e 17662 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17663 return resultobj;
17664 fail:
17665 return NULL;
17666}
17667
17668
c370783e 17669static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17670 PyObject *obj;
17671 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17672 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17673 Py_INCREF(obj);
17674 return Py_BuildValue((char *)"");
17675}
c370783e 17676static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17677 PyObject *resultobj;
17678 wxBrushList *arg1 = (wxBrushList *) 0 ;
17679 wxBrush *arg2 = (wxBrush *) 0 ;
17680 PyObject * obj0 = 0 ;
17681 PyObject * obj1 = 0 ;
17682 char *kwnames[] = {
17683 (char *) "self",(char *) "brush", NULL
17684 };
17685
17686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17689 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17691 {
17692 PyThreadState* __tstate = wxPyBeginAllowThreads();
17693 (arg1)->AddBrush(arg2);
17694
17695 wxPyEndAllowThreads(__tstate);
17696 if (PyErr_Occurred()) SWIG_fail;
17697 }
17698 Py_INCREF(Py_None); resultobj = Py_None;
17699 return resultobj;
17700 fail:
17701 return NULL;
17702}
17703
17704
c370783e 17705static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17706 PyObject *resultobj;
17707 wxBrushList *arg1 = (wxBrushList *) 0 ;
17708 wxColour *arg2 = 0 ;
17709 int arg3 ;
17710 wxBrush *result;
17711 wxColour temp2 ;
17712 PyObject * obj0 = 0 ;
17713 PyObject * obj1 = 0 ;
17714 PyObject * obj2 = 0 ;
17715 char *kwnames[] = {
17716 (char *) "self",(char *) "colour",(char *) "style", NULL
17717 };
17718
17719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17722 {
17723 arg2 = &temp2;
17724 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17725 }
c370783e 17726 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
17727 if (PyErr_Occurred()) SWIG_fail;
17728 {
17729 PyThreadState* __tstate = wxPyBeginAllowThreads();
17730 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17731
17732 wxPyEndAllowThreads(__tstate);
17733 if (PyErr_Occurred()) SWIG_fail;
17734 }
17735 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17736 return resultobj;
17737 fail:
17738 return NULL;
17739}
17740
17741
c370783e 17742static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17743 PyObject *resultobj;
17744 wxBrushList *arg1 = (wxBrushList *) 0 ;
17745 wxBrush *arg2 = (wxBrush *) 0 ;
17746 PyObject * obj0 = 0 ;
17747 PyObject * obj1 = 0 ;
17748 char *kwnames[] = {
17749 (char *) "self",(char *) "brush", NULL
17750 };
17751
17752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17755 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17757 {
17758 PyThreadState* __tstate = wxPyBeginAllowThreads();
17759 (arg1)->RemoveBrush(arg2);
17760
17761 wxPyEndAllowThreads(__tstate);
17762 if (PyErr_Occurred()) SWIG_fail;
17763 }
17764 Py_INCREF(Py_None); resultobj = Py_None;
17765 return resultobj;
17766 fail:
17767 return NULL;
17768}
17769
17770
c370783e 17771static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17772 PyObject *resultobj;
17773 wxBrushList *arg1 = (wxBrushList *) 0 ;
17774 int result;
17775 PyObject * obj0 = 0 ;
17776 char *kwnames[] = {
17777 (char *) "self", NULL
17778 };
17779
17780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17783 {
17784 PyThreadState* __tstate = wxPyBeginAllowThreads();
17785 result = (int)(arg1)->GetCount();
17786
17787 wxPyEndAllowThreads(__tstate);
17788 if (PyErr_Occurred()) SWIG_fail;
17789 }
c370783e 17790 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17791 return resultobj;
17792 fail:
17793 return NULL;
17794}
17795
17796
c370783e 17797static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17798 PyObject *obj;
17799 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17800 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17801 Py_INCREF(obj);
17802 return Py_BuildValue((char *)"");
17803}
c370783e 17804static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17805 PyObject *resultobj;
17806 wxColourDatabase *result;
17807 char *kwnames[] = {
17808 NULL
17809 };
17810
17811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17812 {
0439c23b 17813 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
17814 PyThreadState* __tstate = wxPyBeginAllowThreads();
17815 result = (wxColourDatabase *)new wxColourDatabase();
17816
17817 wxPyEndAllowThreads(__tstate);
110da5b0 17818 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
17819 }
17820 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17821 return resultobj;
17822 fail:
17823 return NULL;
17824}
17825
17826
c370783e 17827static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17828 PyObject *resultobj;
17829 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17830 PyObject * obj0 = 0 ;
17831 char *kwnames[] = {
17832 (char *) "self", NULL
17833 };
17834
17835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17838 {
17839 PyThreadState* __tstate = wxPyBeginAllowThreads();
17840 delete arg1;
17841
17842 wxPyEndAllowThreads(__tstate);
17843 if (PyErr_Occurred()) SWIG_fail;
17844 }
17845 Py_INCREF(Py_None); resultobj = Py_None;
17846 return resultobj;
17847 fail:
17848 return NULL;
17849}
17850
17851
c370783e 17852static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17853 PyObject *resultobj;
17854 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17855 wxString *arg2 = 0 ;
17856 wxColour result;
b411df4a 17857 bool temp2 = false ;
d55e5bfc
RD
17858 PyObject * obj0 = 0 ;
17859 PyObject * obj1 = 0 ;
17860 char *kwnames[] = {
17861 (char *) "self",(char *) "name", NULL
17862 };
17863
17864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17867 {
17868 arg2 = wxString_in_helper(obj1);
17869 if (arg2 == NULL) SWIG_fail;
b411df4a 17870 temp2 = true;
d55e5bfc
RD
17871 }
17872 {
17873 PyThreadState* __tstate = wxPyBeginAllowThreads();
17874 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17875
17876 wxPyEndAllowThreads(__tstate);
17877 if (PyErr_Occurred()) SWIG_fail;
17878 }
17879 {
17880 wxColour * resultptr;
17881 resultptr = new wxColour((wxColour &) result);
17882 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17883 }
17884 {
17885 if (temp2)
17886 delete arg2;
17887 }
17888 return resultobj;
17889 fail:
17890 {
17891 if (temp2)
17892 delete arg2;
17893 }
17894 return NULL;
17895}
17896
17897
c370783e 17898static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17899 PyObject *resultobj;
17900 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17901 wxColour *arg2 = 0 ;
17902 wxString result;
17903 wxColour temp2 ;
17904 PyObject * obj0 = 0 ;
17905 PyObject * obj1 = 0 ;
17906 char *kwnames[] = {
17907 (char *) "self",(char *) "colour", NULL
17908 };
17909
17910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17913 {
17914 arg2 = &temp2;
17915 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17916 }
17917 {
17918 PyThreadState* __tstate = wxPyBeginAllowThreads();
17919 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17920
17921 wxPyEndAllowThreads(__tstate);
17922 if (PyErr_Occurred()) SWIG_fail;
17923 }
17924 {
17925#if wxUSE_UNICODE
17926 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17927#else
17928 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17929#endif
17930 }
17931 return resultobj;
17932 fail:
17933 return NULL;
17934}
17935
17936
c370783e 17937static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17938 PyObject *resultobj;
17939 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17940 wxString *arg2 = 0 ;
17941 wxColour *arg3 = 0 ;
b411df4a 17942 bool temp2 = false ;
d55e5bfc
RD
17943 wxColour temp3 ;
17944 PyObject * obj0 = 0 ;
17945 PyObject * obj1 = 0 ;
17946 PyObject * obj2 = 0 ;
17947 char *kwnames[] = {
17948 (char *) "self",(char *) "name",(char *) "colour", NULL
17949 };
17950
17951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17954 {
17955 arg2 = wxString_in_helper(obj1);
17956 if (arg2 == NULL) SWIG_fail;
b411df4a 17957 temp2 = true;
d55e5bfc
RD
17958 }
17959 {
17960 arg3 = &temp3;
17961 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17962 }
17963 {
17964 PyThreadState* __tstate = wxPyBeginAllowThreads();
17965 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17966
17967 wxPyEndAllowThreads(__tstate);
17968 if (PyErr_Occurred()) SWIG_fail;
17969 }
17970 Py_INCREF(Py_None); resultobj = Py_None;
17971 {
17972 if (temp2)
17973 delete arg2;
17974 }
17975 return resultobj;
17976 fail:
17977 {
17978 if (temp2)
17979 delete arg2;
17980 }
17981 return NULL;
17982}
17983
17984
c370783e 17985static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17986 PyObject *resultobj;
17987 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17988 wxString *arg2 = 0 ;
17989 int arg3 ;
17990 int arg4 ;
17991 int arg5 ;
b411df4a 17992 bool temp2 = false ;
d55e5bfc
RD
17993 PyObject * obj0 = 0 ;
17994 PyObject * obj1 = 0 ;
17995 PyObject * obj2 = 0 ;
17996 PyObject * obj3 = 0 ;
17997 PyObject * obj4 = 0 ;
17998 char *kwnames[] = {
17999 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
18000 };
18001
18002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18005 {
18006 arg2 = wxString_in_helper(obj1);
18007 if (arg2 == NULL) SWIG_fail;
b411df4a 18008 temp2 = true;
d55e5bfc 18009 }
c370783e 18010 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 18011 if (PyErr_Occurred()) SWIG_fail;
c370783e 18012 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 18013 if (PyErr_Occurred()) SWIG_fail;
c370783e 18014 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
18015 if (PyErr_Occurred()) SWIG_fail;
18016 {
18017 PyThreadState* __tstate = wxPyBeginAllowThreads();
18018 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
18019
18020 wxPyEndAllowThreads(__tstate);
18021 if (PyErr_Occurred()) SWIG_fail;
18022 }
18023 Py_INCREF(Py_None); resultobj = Py_None;
18024 {
18025 if (temp2)
18026 delete arg2;
18027 }
18028 return resultobj;
18029 fail:
18030 {
18031 if (temp2)
18032 delete arg2;
18033 }
18034 return NULL;
18035}
18036
18037
c370783e 18038static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18039 PyObject *obj;
18040 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18041 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
18042 Py_INCREF(obj);
18043 return Py_BuildValue((char *)"");
18044}
c370783e 18045static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18046 PyObject *resultobj;
18047 wxFontList *arg1 = (wxFontList *) 0 ;
18048 wxFont *arg2 = (wxFont *) 0 ;
18049 PyObject * obj0 = 0 ;
18050 PyObject * obj1 = 0 ;
18051 char *kwnames[] = {
18052 (char *) "self",(char *) "font", NULL
18053 };
18054
18055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
18056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18058 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18060 {
18061 PyThreadState* __tstate = wxPyBeginAllowThreads();
18062 (arg1)->AddFont(arg2);
18063
18064 wxPyEndAllowThreads(__tstate);
18065 if (PyErr_Occurred()) SWIG_fail;
18066 }
18067 Py_INCREF(Py_None); resultobj = Py_None;
18068 return resultobj;
18069 fail:
18070 return NULL;
18071}
18072
18073
c370783e 18074static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18075 PyObject *resultobj;
18076 wxFontList *arg1 = (wxFontList *) 0 ;
18077 int arg2 ;
18078 int arg3 ;
18079 int arg4 ;
18080 int arg5 ;
b411df4a 18081 bool arg6 = (bool) false ;
d55e5bfc
RD
18082 wxString const &arg7_defvalue = wxPyEmptyString ;
18083 wxString *arg7 = (wxString *) &arg7_defvalue ;
18084 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18085 wxFont *result;
b411df4a 18086 bool temp7 = false ;
d55e5bfc
RD
18087 PyObject * obj0 = 0 ;
18088 PyObject * obj1 = 0 ;
18089 PyObject * obj2 = 0 ;
18090 PyObject * obj3 = 0 ;
18091 PyObject * obj4 = 0 ;
18092 PyObject * obj5 = 0 ;
18093 PyObject * obj6 = 0 ;
18094 PyObject * obj7 = 0 ;
18095 char *kwnames[] = {
18096 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18097 };
18098
18099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18102 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 18103 if (PyErr_Occurred()) SWIG_fail;
c370783e 18104 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 18105 if (PyErr_Occurred()) SWIG_fail;
c370783e 18106 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 18107 if (PyErr_Occurred()) SWIG_fail;
c370783e 18108 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
18109 if (PyErr_Occurred()) SWIG_fail;
18110 if (obj5) {
c370783e 18111 arg6 = (bool)SWIG_As_bool(obj5);
d55e5bfc
RD
18112 if (PyErr_Occurred()) SWIG_fail;
18113 }
18114 if (obj6) {
18115 {
18116 arg7 = wxString_in_helper(obj6);
18117 if (arg7 == NULL) SWIG_fail;
b411df4a 18118 temp7 = true;
d55e5bfc
RD
18119 }
18120 }
18121 if (obj7) {
c370783e 18122 arg8 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
18123 if (PyErr_Occurred()) SWIG_fail;
18124 }
18125 {
18126 PyThreadState* __tstate = wxPyBeginAllowThreads();
18127 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18128
18129 wxPyEndAllowThreads(__tstate);
18130 if (PyErr_Occurred()) SWIG_fail;
18131 }
18132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18133 {
18134 if (temp7)
18135 delete arg7;
18136 }
18137 return resultobj;
18138 fail:
18139 {
18140 if (temp7)
18141 delete arg7;
18142 }
18143 return NULL;
18144}
18145
18146
c370783e 18147static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18148 PyObject *resultobj;
18149 wxFontList *arg1 = (wxFontList *) 0 ;
18150 wxFont *arg2 = (wxFont *) 0 ;
18151 PyObject * obj0 = 0 ;
18152 PyObject * obj1 = 0 ;
18153 char *kwnames[] = {
18154 (char *) "self",(char *) "font", NULL
18155 };
18156
18157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18160 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18162 {
18163 PyThreadState* __tstate = wxPyBeginAllowThreads();
18164 (arg1)->RemoveFont(arg2);
18165
18166 wxPyEndAllowThreads(__tstate);
18167 if (PyErr_Occurred()) SWIG_fail;
18168 }
18169 Py_INCREF(Py_None); resultobj = Py_None;
18170 return resultobj;
18171 fail:
18172 return NULL;
18173}
18174
18175
c370783e 18176static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18177 PyObject *resultobj;
18178 wxFontList *arg1 = (wxFontList *) 0 ;
18179 int result;
18180 PyObject * obj0 = 0 ;
18181 char *kwnames[] = {
18182 (char *) "self", NULL
18183 };
18184
18185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18188 {
18189 PyThreadState* __tstate = wxPyBeginAllowThreads();
18190 result = (int)(arg1)->GetCount();
18191
18192 wxPyEndAllowThreads(__tstate);
18193 if (PyErr_Occurred()) SWIG_fail;
18194 }
c370783e 18195 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
18196 return resultobj;
18197 fail:
18198 return NULL;
18199}
18200
18201
c370783e 18202static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18203 PyObject *obj;
18204 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18205 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18206 Py_INCREF(obj);
18207 return Py_BuildValue((char *)"");
18208}
c370783e 18209static int _wrap_TheFontList_set(PyObject *) {
d55e5bfc
RD
18210 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18211 return 1;
18212}
18213
18214
18215static PyObject *_wrap_TheFontList_get() {
18216 PyObject *pyobj;
18217
18218 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18219 return pyobj;
18220}
18221
18222
c370783e 18223static int _wrap_ThePenList_set(PyObject *) {
d55e5bfc
RD
18224 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18225 return 1;
18226}
18227
18228
18229static PyObject *_wrap_ThePenList_get() {
18230 PyObject *pyobj;
18231
18232 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18233 return pyobj;
18234}
18235
18236
c370783e 18237static int _wrap_TheBrushList_set(PyObject *) {
d55e5bfc
RD
18238 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18239 return 1;
18240}
18241
18242
18243static PyObject *_wrap_TheBrushList_get() {
18244 PyObject *pyobj;
18245
18246 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18247 return pyobj;
18248}
18249
18250
c370783e 18251static int _wrap_TheColourDatabase_set(PyObject *) {
d55e5bfc
RD
18252 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18253 return 1;
18254}
18255
18256
18257static PyObject *_wrap_TheColourDatabase_get() {
18258 PyObject *pyobj;
18259
18260 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18261 return pyobj;
18262}
18263
18264
c370783e 18265static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18266 PyObject *resultobj;
18267 wxEffects *result;
18268 char *kwnames[] = {
18269 NULL
18270 };
18271
18272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18273 {
18274 PyThreadState* __tstate = wxPyBeginAllowThreads();
18275 result = (wxEffects *)new wxEffects();
18276
18277 wxPyEndAllowThreads(__tstate);
18278 if (PyErr_Occurred()) SWIG_fail;
18279 }
18280 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18281 return resultobj;
18282 fail:
18283 return NULL;
18284}
18285
18286
c370783e 18287static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18288 PyObject *resultobj;
18289 wxEffects *arg1 = (wxEffects *) 0 ;
18290 wxColour result;
18291 PyObject * obj0 = 0 ;
18292 char *kwnames[] = {
18293 (char *) "self", NULL
18294 };
18295
18296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 result = ((wxEffects const *)arg1)->GetHighlightColour();
18302
18303 wxPyEndAllowThreads(__tstate);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 {
18307 wxColour * resultptr;
18308 resultptr = new wxColour((wxColour &) result);
18309 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18310 }
18311 return resultobj;
18312 fail:
18313 return NULL;
18314}
18315
18316
c370783e 18317static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18318 PyObject *resultobj;
18319 wxEffects *arg1 = (wxEffects *) 0 ;
18320 wxColour result;
18321 PyObject * obj0 = 0 ;
18322 char *kwnames[] = {
18323 (char *) "self", NULL
18324 };
18325
18326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18329 {
18330 PyThreadState* __tstate = wxPyBeginAllowThreads();
18331 result = ((wxEffects const *)arg1)->GetLightShadow();
18332
18333 wxPyEndAllowThreads(__tstate);
18334 if (PyErr_Occurred()) SWIG_fail;
18335 }
18336 {
18337 wxColour * resultptr;
18338 resultptr = new wxColour((wxColour &) result);
18339 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18340 }
18341 return resultobj;
18342 fail:
18343 return NULL;
18344}
18345
18346
c370783e 18347static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18348 PyObject *resultobj;
18349 wxEffects *arg1 = (wxEffects *) 0 ;
18350 wxColour result;
18351 PyObject * obj0 = 0 ;
18352 char *kwnames[] = {
18353 (char *) "self", NULL
18354 };
18355
18356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18359 {
18360 PyThreadState* __tstate = wxPyBeginAllowThreads();
18361 result = ((wxEffects const *)arg1)->GetFaceColour();
18362
18363 wxPyEndAllowThreads(__tstate);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 {
18367 wxColour * resultptr;
18368 resultptr = new wxColour((wxColour &) result);
18369 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18370 }
18371 return resultobj;
18372 fail:
18373 return NULL;
18374}
18375
18376
c370783e 18377static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18378 PyObject *resultobj;
18379 wxEffects *arg1 = (wxEffects *) 0 ;
18380 wxColour result;
18381 PyObject * obj0 = 0 ;
18382 char *kwnames[] = {
18383 (char *) "self", NULL
18384 };
18385
18386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18389 {
18390 PyThreadState* __tstate = wxPyBeginAllowThreads();
18391 result = ((wxEffects const *)arg1)->GetMediumShadow();
18392
18393 wxPyEndAllowThreads(__tstate);
18394 if (PyErr_Occurred()) SWIG_fail;
18395 }
18396 {
18397 wxColour * resultptr;
18398 resultptr = new wxColour((wxColour &) result);
18399 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18400 }
18401 return resultobj;
18402 fail:
18403 return NULL;
18404}
18405
18406
c370783e 18407static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18408 PyObject *resultobj;
18409 wxEffects *arg1 = (wxEffects *) 0 ;
18410 wxColour result;
18411 PyObject * obj0 = 0 ;
18412 char *kwnames[] = {
18413 (char *) "self", NULL
18414 };
18415
18416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18419 {
18420 PyThreadState* __tstate = wxPyBeginAllowThreads();
18421 result = ((wxEffects const *)arg1)->GetDarkShadow();
18422
18423 wxPyEndAllowThreads(__tstate);
18424 if (PyErr_Occurred()) SWIG_fail;
18425 }
18426 {
18427 wxColour * resultptr;
18428 resultptr = new wxColour((wxColour &) result);
18429 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18430 }
18431 return resultobj;
18432 fail:
18433 return NULL;
18434}
18435
18436
c370783e 18437static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18438 PyObject *resultobj;
18439 wxEffects *arg1 = (wxEffects *) 0 ;
18440 wxColour *arg2 = 0 ;
18441 wxColour temp2 ;
18442 PyObject * obj0 = 0 ;
18443 PyObject * obj1 = 0 ;
18444 char *kwnames[] = {
18445 (char *) "self",(char *) "c", NULL
18446 };
18447
18448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18451 {
18452 arg2 = &temp2;
18453 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18454 }
18455 {
18456 PyThreadState* __tstate = wxPyBeginAllowThreads();
18457 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18458
18459 wxPyEndAllowThreads(__tstate);
18460 if (PyErr_Occurred()) SWIG_fail;
18461 }
18462 Py_INCREF(Py_None); resultobj = Py_None;
18463 return resultobj;
18464 fail:
18465 return NULL;
18466}
18467
18468
c370783e 18469static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18470 PyObject *resultobj;
18471 wxEffects *arg1 = (wxEffects *) 0 ;
18472 wxColour *arg2 = 0 ;
18473 wxColour temp2 ;
18474 PyObject * obj0 = 0 ;
18475 PyObject * obj1 = 0 ;
18476 char *kwnames[] = {
18477 (char *) "self",(char *) "c", NULL
18478 };
18479
18480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18483 {
18484 arg2 = &temp2;
18485 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18486 }
18487 {
18488 PyThreadState* __tstate = wxPyBeginAllowThreads();
18489 (arg1)->SetLightShadow((wxColour const &)*arg2);
18490
18491 wxPyEndAllowThreads(__tstate);
18492 if (PyErr_Occurred()) SWIG_fail;
18493 }
18494 Py_INCREF(Py_None); resultobj = Py_None;
18495 return resultobj;
18496 fail:
18497 return NULL;
18498}
18499
18500
c370783e 18501static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18502 PyObject *resultobj;
18503 wxEffects *arg1 = (wxEffects *) 0 ;
18504 wxColour *arg2 = 0 ;
18505 wxColour temp2 ;
18506 PyObject * obj0 = 0 ;
18507 PyObject * obj1 = 0 ;
18508 char *kwnames[] = {
18509 (char *) "self",(char *) "c", NULL
18510 };
18511
18512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18515 {
18516 arg2 = &temp2;
18517 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18518 }
18519 {
18520 PyThreadState* __tstate = wxPyBeginAllowThreads();
18521 (arg1)->SetFaceColour((wxColour const &)*arg2);
18522
18523 wxPyEndAllowThreads(__tstate);
18524 if (PyErr_Occurred()) SWIG_fail;
18525 }
18526 Py_INCREF(Py_None); resultobj = Py_None;
18527 return resultobj;
18528 fail:
18529 return NULL;
18530}
18531
18532
c370783e 18533static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18534 PyObject *resultobj;
18535 wxEffects *arg1 = (wxEffects *) 0 ;
18536 wxColour *arg2 = 0 ;
18537 wxColour temp2 ;
18538 PyObject * obj0 = 0 ;
18539 PyObject * obj1 = 0 ;
18540 char *kwnames[] = {
18541 (char *) "self",(char *) "c", NULL
18542 };
18543
18544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18547 {
18548 arg2 = &temp2;
18549 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18550 }
18551 {
18552 PyThreadState* __tstate = wxPyBeginAllowThreads();
18553 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18554
18555 wxPyEndAllowThreads(__tstate);
18556 if (PyErr_Occurred()) SWIG_fail;
18557 }
18558 Py_INCREF(Py_None); resultobj = Py_None;
18559 return resultobj;
18560 fail:
18561 return NULL;
18562}
18563
18564
c370783e 18565static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18566 PyObject *resultobj;
18567 wxEffects *arg1 = (wxEffects *) 0 ;
18568 wxColour *arg2 = 0 ;
18569 wxColour temp2 ;
18570 PyObject * obj0 = 0 ;
18571 PyObject * obj1 = 0 ;
18572 char *kwnames[] = {
18573 (char *) "self",(char *) "c", NULL
18574 };
18575
18576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18579 {
18580 arg2 = &temp2;
18581 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18582 }
18583 {
18584 PyThreadState* __tstate = wxPyBeginAllowThreads();
18585 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18586
18587 wxPyEndAllowThreads(__tstate);
18588 if (PyErr_Occurred()) SWIG_fail;
18589 }
18590 Py_INCREF(Py_None); resultobj = Py_None;
18591 return resultobj;
18592 fail:
18593 return NULL;
18594}
18595
18596
c370783e 18597static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18598 PyObject *resultobj;
18599 wxEffects *arg1 = (wxEffects *) 0 ;
18600 wxColour *arg2 = 0 ;
18601 wxColour *arg3 = 0 ;
18602 wxColour *arg4 = 0 ;
18603 wxColour *arg5 = 0 ;
18604 wxColour *arg6 = 0 ;
18605 wxColour temp2 ;
18606 wxColour temp3 ;
18607 wxColour temp4 ;
18608 wxColour temp5 ;
18609 wxColour temp6 ;
18610 PyObject * obj0 = 0 ;
18611 PyObject * obj1 = 0 ;
18612 PyObject * obj2 = 0 ;
18613 PyObject * obj3 = 0 ;
18614 PyObject * obj4 = 0 ;
18615 PyObject * obj5 = 0 ;
18616 char *kwnames[] = {
18617 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18618 };
18619
18620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18623 {
18624 arg2 = &temp2;
18625 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18626 }
18627 {
18628 arg3 = &temp3;
18629 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18630 }
18631 {
18632 arg4 = &temp4;
18633 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18634 }
18635 {
18636 arg5 = &temp5;
18637 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18638 }
18639 {
18640 arg6 = &temp6;
18641 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18642 }
18643 {
18644 PyThreadState* __tstate = wxPyBeginAllowThreads();
18645 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18646
18647 wxPyEndAllowThreads(__tstate);
18648 if (PyErr_Occurred()) SWIG_fail;
18649 }
18650 Py_INCREF(Py_None); resultobj = Py_None;
18651 return resultobj;
18652 fail:
18653 return NULL;
18654}
18655
18656
c370783e 18657static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18658 PyObject *resultobj;
18659 wxEffects *arg1 = (wxEffects *) 0 ;
18660 wxDC *arg2 = 0 ;
18661 wxRect *arg3 = 0 ;
18662 int arg4 = (int) 1 ;
18663 wxRect temp3 ;
18664 PyObject * obj0 = 0 ;
18665 PyObject * obj1 = 0 ;
18666 PyObject * obj2 = 0 ;
18667 PyObject * obj3 = 0 ;
18668 char *kwnames[] = {
18669 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18670 };
18671
18672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18675 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18676 SWIG_POINTER_EXCEPTION | 0)) == -1)
18677 SWIG_fail;
18678 if (arg2 == NULL) {
18679 PyErr_SetString(PyExc_TypeError,"null reference");
18680 SWIG_fail;
18681 }
18682 {
18683 arg3 = &temp3;
18684 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18685 }
18686 if (obj3) {
c370783e 18687 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18688 if (PyErr_Occurred()) SWIG_fail;
18689 }
18690 {
18691 PyThreadState* __tstate = wxPyBeginAllowThreads();
18692 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18693
18694 wxPyEndAllowThreads(__tstate);
18695 if (PyErr_Occurred()) SWIG_fail;
18696 }
18697 Py_INCREF(Py_None); resultobj = Py_None;
18698 return resultobj;
18699 fail:
18700 return NULL;
18701}
18702
18703
c370783e 18704static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18705 PyObject *resultobj;
18706 wxEffects *arg1 = (wxEffects *) 0 ;
18707 wxRect *arg2 = 0 ;
18708 wxDC *arg3 = 0 ;
18709 wxBitmap *arg4 = 0 ;
18710 bool result;
18711 wxRect temp2 ;
18712 PyObject * obj0 = 0 ;
18713 PyObject * obj1 = 0 ;
18714 PyObject * obj2 = 0 ;
18715 PyObject * obj3 = 0 ;
18716 char *kwnames[] = {
18717 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18718 };
18719
18720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18723 {
18724 arg2 = &temp2;
18725 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18726 }
18727 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18728 SWIG_POINTER_EXCEPTION | 0)) == -1)
18729 SWIG_fail;
18730 if (arg3 == NULL) {
18731 PyErr_SetString(PyExc_TypeError,"null reference");
18732 SWIG_fail;
18733 }
18734 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18735 SWIG_POINTER_EXCEPTION | 0)) == -1)
18736 SWIG_fail;
18737 if (arg4 == NULL) {
18738 PyErr_SetString(PyExc_TypeError,"null reference");
18739 SWIG_fail;
18740 }
18741 {
18742 PyThreadState* __tstate = wxPyBeginAllowThreads();
18743 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18744
18745 wxPyEndAllowThreads(__tstate);
18746 if (PyErr_Occurred()) SWIG_fail;
18747 }
18748 {
18749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18750 }
18751 return resultobj;
18752 fail:
18753 return NULL;
18754}
18755
18756
c370783e 18757static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18758 PyObject *obj;
18759 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18760 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18761 Py_INCREF(obj);
18762 return Py_BuildValue((char *)"");
18763}
18764static PyMethodDef SwigMethods[] = {
c370783e
RD
18765 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18766 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18767 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18768 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18769 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
18770 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL },
18771 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18772 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL },
18773 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18774 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18775 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL },
18776 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL },
18777 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL },
18778 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18779 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18780 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18781 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18782 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18783 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18784 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18785 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18786 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18787 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL },
18788 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18789 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18790 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18791 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18792 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18793 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL },
18794 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18795 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18796 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18797 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18798 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18799 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18800 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18801 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18802 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18803 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18804 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18805 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18806 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18807 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18808 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18809 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18810 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18811 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18812 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL },
18813 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18814 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18815 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18816 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18817 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18818 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18819 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18820 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
f78cc896 18821 { (char *)"Brush_IsHatch", (PyCFunction) _wrap_Brush_IsHatch, METH_VARARGS | METH_KEYWORDS, NULL },
c370783e
RD
18822 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18823 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18824 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18825 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL },
18826 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18827 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18828 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18829 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18830 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18831 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18832 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL },
18833 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18834 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18835 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18836 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18837 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18838 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL },
18839 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18840 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18841 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
18842 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18843 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
18844 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
070c48b4 18845 { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
c370783e
RD
18846 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18847 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18848 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18849 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18850 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18851 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18852 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18853 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL },
18854 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL },
18855 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL },
18856 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18857 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18858 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18859 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18860 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18861 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18862 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18863 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18864 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18865 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18866 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18867 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18868 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18869 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18870 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL },
18871 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18872 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18873 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18874 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18875 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18876 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18877 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18878 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL },
18879 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18880 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18881 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18882 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18883 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18884 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18885 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18886 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL },
18887 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18888 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18889 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL },
18890 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18891 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18892 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL },
18893 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18894 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18895 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
18896 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL },
18897 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18898 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
070c48b4 18899 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL },
c370783e
RD
18900 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL },
18901 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18902 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL },
18903 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL },
18904 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL },
18905 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
18906 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
18907 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18908 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
18909 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL },
18910 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL },
18911 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18912 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
18913 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL },
18914 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18915 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL },
18916 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL },
18917 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18918 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18919 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18920 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL },
18921 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL },
18922 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18923 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18924 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
18925 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
18926 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL },
18927 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18928 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL },
18929 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18930 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
18931 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL },
18932 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL },
18933 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL },
18934 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
18935 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL },
18936 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18937 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18938 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18939 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL },
18940 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18941 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18942 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18943 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18944 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18945 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18946 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18947 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18948 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18949 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18950 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18951 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18952 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18953 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18954 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18955 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18956 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL },
18957 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18958 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18959 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL },
18960 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL },
18961 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL },
18962 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL },
18963 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL },
18964 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18965 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18966 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18967 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18968 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL },
18969 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18970 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18971 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18972 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18973 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18974 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18975 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18976 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL },
18977 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18978 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18979 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL },
18980 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18981 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL },
18982 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18983 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18984 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18985 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
18986 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL },
18987 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL },
18988 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL },
18989 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18990 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18991 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18992 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL },
18993 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL },
5e483524 18994 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
c370783e
RD
18995 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18996 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18997 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18998 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
5e483524
RD
18999 { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
19000 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL },
c370783e
RD
19001 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
19002 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19003 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
19004 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
19005 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
19006 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19007 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19008 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19009 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL },
19010 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
19011 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
5e483524 19012 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL },
c370783e
RD
19013 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
19014 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
19015 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
19016 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
19017 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
19018 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19019 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19020 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL },
19021 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
19022 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL },
19023 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL },
19024 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL },
19025 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
19026 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
19027 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19028 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19029 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL },
19030 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
19031 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
19032 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19033 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
19034 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
19035 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
19036 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
19037 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL },
19038 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL },
19039 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL },
19040 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL },
19041 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL },
19042 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL },
19043 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL },
19044 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL },
19045 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
19046 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
19047 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL },
19048 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL },
19049 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19050 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
19051 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
19052 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
19053 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
19054 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19055 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL },
19056 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL },
19057 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
19058 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL },
19059 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL },
19060 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19061 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL },
19062 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
19063 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
19064 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
19065 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
19066 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL },
19067 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
19068 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL },
19069 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
19070 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
19071 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL },
19072 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL },
19073 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
19074 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
19075 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL },
19076 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL },
19077 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL },
19078 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
19079 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
19080 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL },
19081 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19082 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
19083 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19084 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL },
19085 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL },
19086 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL },
19087 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19088 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL },
19089 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19090 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL },
19091 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL },
19092 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL },
19093 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19094 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19095 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19096 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
19097 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
19098 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19099 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
19100 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
19101 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19102 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL },
19103 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL },
19104 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL },
19105 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL },
19106 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19107 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19108 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19109 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19110 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19111 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL },
19112 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19113 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL },
19114 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19115 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL },
19116 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19117 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19118 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
19119 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19120 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
19121 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL },
19122 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL },
19123 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL },
19124 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL },
19125 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL },
19126 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
19127 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL },
19128 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL },
19129 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL },
19130 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL },
19131 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
19132 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL },
19133 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19134 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19135 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
19136 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
19137 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
19138 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19139 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
19140 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19141 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19142 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19143 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19144 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19145 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL },
19146 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19147 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19148 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
19149 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19150 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL },
19151 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL },
19152 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL },
19153 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL },
19154 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL },
19155 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL },
19156 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL },
19157 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL },
19158 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19159 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
19160 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
19161 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL },
19162 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19163 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
19164 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19165 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19166 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
19167 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL },
19168 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19169 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
19170 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
19171 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
19172 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
19173 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
19174 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
19175 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
19176 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
19177 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
19178 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19179 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19180 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19181 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19182 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19183 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
19184 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
19185 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19186 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
19187 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
19188 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
19189 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
19190 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
19191 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19192 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL },
19193 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19194 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL },
19195 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL },
19196 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL },
19197 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL },
19198 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
19199 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL },
19200 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL },
19201 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL },
19202 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL },
19203 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL },
19204 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL },
19205 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL },
19206 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL },
19207 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL },
19208 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL },
19209 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL },
19210 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL },
19211 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL },
19212 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL },
19213 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL },
19214 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
19215 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL },
19216 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL },
19217 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL },
19218 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
19219 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
19220 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL },
19221 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL },
19222 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL },
19223 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
19224 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL },
19225 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL },
19226 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL },
19227 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL },
19228 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL },
19229 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL },
19230 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
19231 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
19232 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
19233 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
19234 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL },
19235 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
19236 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
19237 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
19238 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL },
19239 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19240 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
19241 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
19242 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL },
19243 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL },
19244 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL },
19245 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL },
19246 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL },
19247 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL },
19248 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
19249 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
19250 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL },
19251 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL },
19252 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
19253 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
19254 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL },
19255 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
19256 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
19257 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL },
19258 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
19259 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL },
19260 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL },
19261 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL },
19262 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL },
19263 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19264 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL },
19265 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19266 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19267 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL },
19268 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19269 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL },
19270 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
19271 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
19272 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL },
19273 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL },
19274 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL },
19275 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL },
19276 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL },
19277 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL },
19278 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL },
19279 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL },
19280 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
19281 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL },
19282 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL },
19283 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
19284 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19285 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19286 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19287 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19288 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
19289 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19290 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
19291 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19292 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
19293 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL },
19294 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL },
19295 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
19296 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL },
19297 { NULL, NULL, 0, NULL }
d55e5bfc
RD
19298};
19299
19300
19301/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19302
19303static void *_p_wxControlTo_p_wxWindow(void *x) {
19304 return (void *)((wxWindow *) ((wxControl *) x));
19305}
19306static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19307 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19308}
19309static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19310 return (void *)((wxWindow *) ((wxMenuBar *) x));
19311}
19312static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19313 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19314}
19315static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19316 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19317}
19318static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19319 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19320}
19321static void *_p_wxPenTo_p_wxObject(void *x) {
19322 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19323}
19324static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19325 return (void *)((wxObject *) ((wxRegionIterator *) x));
19326}
19327static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19328 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19329}
19330static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19331 return (void *)((wxObject *) ((wxSizerItem *) x));
19332}
19333static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19334 return (void *)((wxObject *) ((wxColourDatabase *) x));
19335}
19336static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19337 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19338}
19339static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19340 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19341}
19342static void *_p_wxIconTo_p_wxObject(void *x) {
19343 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19344}
19345static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19346 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19347}
19348static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19349 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19350}
19351static void *_p_wxSizerTo_p_wxObject(void *x) {
19352 return (void *)((wxObject *) ((wxSizer *) x));
19353}
19354static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19355 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19356}
19357static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19358 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19359}
19360static void *_p_wxPenListTo_p_wxObject(void *x) {
19361 return (void *)((wxObject *) ((wxPenList *) x));
19362}
19363static void *_p_wxEventTo_p_wxObject(void *x) {
19364 return (void *)((wxObject *) ((wxEvent *) x));
19365}
19366static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19367 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19368}
19369static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19370 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19371}
19372static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19373 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19374}
19375static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19376 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19377}
19378static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19379 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19380}
19381static void *_p_wxDCTo_p_wxObject(void *x) {
19382 return (void *)((wxObject *) ((wxDC *) x));
19383}
19384static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19385 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19386}
19387static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19388 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19389}
19390static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19391 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19392}
19393static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19394 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19395}
19396static void *_p_wxControlTo_p_wxObject(void *x) {
19397 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19398}
19399static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19400 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19401}
19402static void *_p_wxClientDCTo_p_wxObject(void *x) {
19403 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19404}
19405static void *_p_wxFSFileTo_p_wxObject(void *x) {
19406 return (void *)((wxObject *) ((wxFSFile *) x));
19407}
19408static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19409 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19410}
19411static void *_p_wxRegionTo_p_wxObject(void *x) {
19412 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19413}
19414static void *_p_wxPySizerTo_p_wxObject(void *x) {
19415 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19416}
19417static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19418 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19419}
19420static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19421 return (void *)((wxObject *) ((wxGDIObject *) x));
19422}
19423static void *_p_wxEffectsTo_p_wxObject(void *x) {
19424 return (void *)((wxObject *) ((wxEffects *) x));
19425}
19426static void *_p_wxPyEventTo_p_wxObject(void *x) {
19427 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19428}
19429static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19430 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19431}
19432static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19433 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19434}
19435static void *_p_wxShowEventTo_p_wxObject(void *x) {
19436 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19437}
19438static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19439 return (void *)((wxObject *) ((wxMenuItem *) x));
19440}
19441static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19442 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19443}
19444static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19445 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19446}
19447static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19448 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19449}
19450static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19451 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19452}
19453static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19454 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19455}
19456static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19457 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19458}
19459static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19460 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19461}
19462static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19463 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19464}
19465static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19466 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19467}
19468static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19469 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19470}
19471static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19472 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19473}
19474static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19475 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19476}
19477static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19478 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19479}
19480static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19481 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19482}
19483static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19484 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19485}
19486static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19487 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19488}
19489static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19490 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19491}
19492static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19493 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19494}
19495static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19496 return (void *)((wxObject *) ((wxImageHandler *) x));
19497}
19498static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19499 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19500}
19501static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19502 return (void *)((wxObject *) ((wxEvtHandler *) x));
19503}
19504static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19505 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19506}
19507static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19508 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19509}
19510static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19511 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19512}
19513static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19514 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19515}
19516static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19517 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19518}
19519static void *_p_wxImageTo_p_wxObject(void *x) {
19520 return (void *)((wxObject *) ((wxImage *) x));
19521}
19522static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19523 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19524}
19525static void *_p_wxPaletteTo_p_wxObject(void *x) {
19526 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19527}
19528static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19529 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19530}
19531static void *_p_wxImageListTo_p_wxObject(void *x) {
19532 return (void *)((wxObject *) ((wxImageList *) x));
19533}
19534static void *_p_wxCursorTo_p_wxObject(void *x) {
19535 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19536}
19537static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19538 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19539}
19540static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19541 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19542}
19543static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19544 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19545}
19546static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19547 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19548}
19549static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19550 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19551}
19552static void *_p_wxWindowTo_p_wxObject(void *x) {
19553 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19554}
19555static void *_p_wxMenuTo_p_wxObject(void *x) {
19556 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19557}
19558static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19559 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19560}
19561static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19562 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19563}
19564static void *_p_wxBrushListTo_p_wxObject(void *x) {
19565 return (void *)((wxObject *) ((wxBrushList *) x));
19566}
d55e5bfc
RD
19567static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19568 return (void *)((wxObject *) ((wxFileSystem *) x));
19569}
19570static void *_p_wxBitmapTo_p_wxObject(void *x) {
19571 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19572}
19573static void *_p_wxMaskTo_p_wxObject(void *x) {
19574 return (void *)((wxObject *) ((wxMask *) x));
19575}
19576static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19577 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19578}
19579static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19580 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19581}
19582static void *_p_wxPyAppTo_p_wxObject(void *x) {
19583 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19584}
19585static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19586 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19587}
19588static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19589 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19590}
19591static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19592 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19593}
19594static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19595 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19596}
19597static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19598 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19599}
19600static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19601 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19602}
19603static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19604 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19605}
19606static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19607 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19608}
19609static void *_p_wxFontTo_p_wxObject(void *x) {
19610 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19611}
19612static void *_p_wxBrushTo_p_wxObject(void *x) {
19613 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19614}
19615static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19616 return (void *)((wxObject *) ((wxMetaFile *) x));
19617}
19618static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19619 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19620}
19621static void *_p_wxColourTo_p_wxObject(void *x) {
19622 return (void *)((wxObject *) ((wxColour *) x));
19623}
19624static void *_p_wxFontListTo_p_wxObject(void *x) {
19625 return (void *)((wxObject *) ((wxFontList *) x));
19626}
19627static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19628 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19629}
19630static void *_p_wxValidatorTo_p_wxObject(void *x) {
19631 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19632}
19633static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19634 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19635}
19636static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19637 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19638}
19639static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19640 return (void *)((wxDC *) ((wxScreenDC *) x));
19641}
19642static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19643 return (void *)((wxDC *) ((wxMirrorDC *) x));
19644}
19645static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19646 return (void *)((wxDC *) ((wxMemoryDC *) x));
19647}
19648static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19649 return (void *)((wxDC *) ((wxWindowDC *) x));
19650}
19651static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19652 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19653}
19654static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19655 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19656}
19657static void *_p_wxClientDCTo_p_wxDC(void *x) {
19658 return (void *)((wxDC *) ((wxClientDC *) x));
19659}
19660static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19661 return (void *)((wxDC *) ((wxPaintDC *) x));
19662}
19663static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19664 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19665}
19666static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19667 return (void *)((wxDC *) ((wxPrinterDC *) x));
19668}
d55e5bfc
RD
19669static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19670 return (void *)((wxGDIObject *) ((wxIcon *) x));
19671}
19672static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19673 return (void *)((wxGDIObject *) ((wxPalette *) x));
19674}
19675static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19676 return (void *)((wxGDIObject *) ((wxPen *) x));
19677}
19678static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19679 return (void *)((wxGDIObject *) ((wxFont *) x));
19680}
19681static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19682 return (void *)((wxGDIObject *) ((wxCursor *) x));
19683}
19684static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19685 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19686}
19687static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19688 return (void *)((wxGDIObject *) ((wxRegion *) x));
19689}
19690static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19691 return (void *)((wxGDIObject *) ((wxBrush *) x));
19692}
d55e5bfc
RD
19693static 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}};
19694static 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}};
19695static 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}};
19696static 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}};
19697static 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}};
19698static 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}};
19699static 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}};
19700static 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}};
19701static 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}};
19702static 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}};
19703static 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}};
19704static 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}};
19705static 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}};
19706static 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}};
19707static 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}};
19708static 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}};
19709static 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}};
19710static 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}};
19711static 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}};
19712static 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}};
19713static 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}};
19714static 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 19715static 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
19716static 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}};
19717static 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}};
19718static 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}};
19719static 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}};
19720static 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}};
19721static 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}};
19722static 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}};
19723static 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}};
19724static 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}};
19725static 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}};
19726static 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}};
19727static 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}};
19728static 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 19729static 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
19730static 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}};
19731static 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}};
19732static 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 19733static 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 19734static 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
19735static 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}};
19736static 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}};
19737static 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}};
19738static 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 19739static 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
19740static 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}};
19741static 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}};
19742static 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
19743static 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}};
19744static 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}};
19745static 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}};
19746static 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}};
19747static 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}};
19748
19749static swig_type_info *swig_types_initial[] = {
19750_swigt__p_wxPostScriptDC,
19751_swigt__p_wxBrush,
19752_swigt__p_wxColour,
19753_swigt__p_wxDC,
19754_swigt__p_wxMirrorDC,
19755_swigt__p_byte,
19756_swigt__p_wxPyFontEnumerator,
19757_swigt__p_char,
19758_swigt__p_wxIconLocation,
19759_swigt__p_wxImage,
19760_swigt__p_wxMetaFileDC,
19761_swigt__p_wxMask,
19762_swigt__p_wxSize,
19763_swigt__p_wxFont,
19764_swigt__p_wxWindow,
19765_swigt__p_double,
19766_swigt__p_wxMemoryDC,
19767_swigt__p_wxFontMapper,
19768_swigt__p_wxEffects,
19769_swigt__p_wxNativeEncodingInfo,
19770_swigt__p_wxPalette,
19771_swigt__p_wxBitmap,
19772_swigt__p_wxObject,
19773_swigt__p_wxRegionIterator,
19774_swigt__p_wxRect,
19775_swigt__p_wxString,
19776_swigt__p_wxPrinterDC,
19777_swigt__p_wxIconBundle,
19778_swigt__p_wxPoint,
19779_swigt__p_wxDash,
19780_swigt__p_wxScreenDC,
19781_swigt__p_wxCursor,
19782_swigt__p_wxClientDC,
19783_swigt__p_wxBufferedDC,
19784_swigt__p_wxImageList,
19785_swigt__p_unsigned_char,
19786_swigt__p_wxGDIObject,
19787_swigt__p_wxIcon,
19788_swigt__p_wxLocale,
19789_swigt__p_wxRegion,
d55e5bfc 19790_swigt__p_wxLanguageInfo,
d6c14a4c 19791_swigt__p_wxConfigBase,
d55e5bfc
RD
19792_swigt__p_wxWindowDC,
19793_swigt__p_wxPrintData,
19794_swigt__p_wxBrushList,
19795_swigt__p_wxFontList,
19796_swigt__p_wxPen,
19797_swigt__p_wxBufferedPaintDC,
19798_swigt__p_wxPaintDC,
19799_swigt__p_wxPenList,
d55e5bfc
RD
19800_swigt__p_int,
19801_swigt__p_wxMetaFile,
19802_swigt__p_wxNativeFontInfo,
19803_swigt__p_wxEncodingConverter,
19804_swigt__p_wxColourDatabase,
198050
19806};
19807
19808
19809/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19810
19811static swig_const_info swig_const_table[] = {
c370783e 19812{0, 0, 0, 0.0, 0, 0}};
d55e5bfc
RD
19813
19814#ifdef __cplusplus
19815}
19816#endif
19817
19818#ifdef __cplusplus
19819extern "C"
19820#endif
19821SWIGEXPORT(void) SWIG_init(void) {
19822 static PyObject *SWIG_globals = 0;
19823 static int typeinit = 0;
19824 PyObject *m, *d;
19825 int i;
19826 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19827 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19828 d = PyModule_GetDict(m);
19829
19830 if (!typeinit) {
19831 for (i = 0; swig_types_initial[i]; i++) {
19832 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19833 }
19834 typeinit = 1;
19835 }
19836 SWIG_InstallConstants(d,swig_const_table);
19837
c370783e
RD
19838 PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion));
19839 PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion));
19840 PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion));
19841 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT));
19842 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE));
19843 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN));
19844 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT));
19845 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS));
19846 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN));
19847 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE));
19848 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX));
19849 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN));
19850 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL));
19851 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC));
19852 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT));
19853 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX));
19854 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL));
19855 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT));
19856 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD));
19857 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX));
19858 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT));
19859 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC));
19860 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT));
19861 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT));
19862 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD));
19863 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED));
19864 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED));
19865 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED));
19866 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH));
19867 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK));
19868 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM));
19869 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT));
19870 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1));
19871 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2));
19872 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3));
19873 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4));
19874 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5));
19875 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6));
19876 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7));
19877 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8));
19878 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9));
19879 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10));
19880 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11));
19881 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12));
19882 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13));
19883 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14));
19884 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15));
19885 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX));
19886 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8));
19887 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U));
19888 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE));
19889 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN));
19890 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437));
19891 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850));
19892 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852));
19893 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855));
19894 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866));
19895 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874));
19896 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932));
19897 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936));
19898 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949));
19899 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950));
19900 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250));
19901 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251));
19902 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252));
19903 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253));
19904 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254));
19905 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255));
19906 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256));
19907 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257));
19908 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX));
19909 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7));
19910 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8));
19911 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP));
19912 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE));
19913 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE));
19914 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE));
19915 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE));
19916 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN));
19917 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE));
19918 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD));
19919 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN));
19920 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC));
19921 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW));
19922 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK));
19923 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC));
19924 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI));
19925 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI));
19926 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI));
19927 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA));
19928 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI));
19929 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL));
19930 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU));
19931 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA));
19932 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM));
19933 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE));
19934 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE));
19935 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER));
19936 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI));
19937 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN));
19938 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN));
19939 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN));
19940 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP));
19941 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN));
19942 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN));
19943 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC));
19944 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR));
19945 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE));
19946 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT));
19947 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL));
19948 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS));
19949 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH));
19950 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN));
19951 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC));
19952 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN));
19953 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC));
19954 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC));
19955 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD));
19956 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN));
19957 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX));
19958 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX));
19959 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16));
19960 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32));
19961 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE));
19962 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312));
19963 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5));
19964 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS));
d55e5bfc
RD
19965
19966 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19967
c370783e
RD
19968 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT));
19969 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN));
19970 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN));
19971 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR));
19972 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS));
19973 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN));
19974 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC));
19975 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC));
19976 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA));
19977 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN));
19978 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT));
19979 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ));
19980 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN));
19981 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT));
19982 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON));
19983 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA));
19984 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO));
19985 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN));
19986 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR));
19987 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19988 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN));
19989 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA));
19990 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA));
19991 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE));
19992 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN));
19993 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN));
19994 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE));
19995 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA));
19996 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI));
19997 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC));
19998 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN));
19999 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR));
20000 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE));
20001 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN));
20002 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI));
20003 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI));
20004 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI));
20005 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA));
20006 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON));
20007 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN));
20008 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE));
20009 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN));
20010 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN));
20011 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE));
20012 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
20013 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL));
20014 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG));
20015 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU));
20016 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE));
20017 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN));
20018 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN));
20019 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN));
20020 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH));
20021 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH));
20022 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH));
20023 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN));
20024 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH));
20025 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK));
20026 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US));
20027 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
20028 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE));
20029 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20030 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA));
20031 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20032 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK));
20033 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE));
20034 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA));
20035 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20036 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20037 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20038 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20039 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20040 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO));
20041 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN));
20042 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE));
20043 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI));
20044 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI));
20045 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH));
20046 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH));
20047 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN));
20048 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN));
20049 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20050 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO));
20051 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS));
20052 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN));
20053 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN));
20054 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN));
20055 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN));
20056 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20057 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM));
20058 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20059 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20060 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS));
20061 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK));
20062 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC));
20063 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI));
20064 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI));
20065 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA));
20066 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW));
20067 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI));
20068 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN));
20069 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC));
20070 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN));
20071 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA));
20072 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE));
20073 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT));
20074 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK));
20075 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH));
20076 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN));
20077 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS));
20078 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE));
20079 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE));
20080 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA));
20081 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI));
20082 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA));
20083 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH));
20084 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK));
20085 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA));
20086 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ));
20087 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI));
20088 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI));
20089 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN));
20090 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH));
20091 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN));
20092 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN));
20093 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN));
20094 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA));
20095 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN));
20096 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN));
20097 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY));
20098 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY));
20099 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM));
20100 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20101 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA));
20102 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE));
20103 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI));
20104 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI));
20105 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI));
20106 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN));
20107 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN));
20108 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU));
20109 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI));
20110 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA));
20111 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20112 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20113 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN));
20114 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA));
20115 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO));
20116 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO));
20117 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH));
20118 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE));
20119 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20120 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI));
20121 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA));
20122 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE));
20123 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN));
20124 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN));
20125 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20126 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN));
20127 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO));
20128 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT));
20129 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC));
20130 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN));
20131 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20132 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN));
20133 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN));
20134 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO));
20135 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA));
20136 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA));
20137 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI));
20138 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE));
20139 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI));
20140 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK));
20141 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN));
20142 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI));
20143 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH));
20144 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA));
20145 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA));
20146 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE));
20147 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA));
20148 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20149 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20150 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR));
20151 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20152 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA));
20153 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS));
20154 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN));
20155 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN));
20156 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA));
20157 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA));
20158 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY));
20159 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU));
20160 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20161 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY));
20162 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US));
20163 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA));
20164 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE));
20165 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI));
20166 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH));
20167 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND));
20168 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG));
20169 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK));
20170 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL));
20171 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR));
20172 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU));
20173 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI));
20174 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN));
20175 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA));
20176 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA));
20177 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA));
20178 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH));
20179 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN));
20180 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI));
20181 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR));
20182 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN));
20183 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU));
20184 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA));
20185 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN));
20186 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK));
20187 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC));
20188 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN));
20189 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE));
20190 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK));
20191 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH));
20192 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF));
20193 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA));
20194 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH));
20195 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA));
20196 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG));
20197 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU));
20198 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED));
20199 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER));
20200 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE));
20201 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY));
20202 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX));
20203 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP));
20204 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT));
20205 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT));
20206 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING));
20207 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT));
20208 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE));
20209 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT));
20210 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX));
20211 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS));
20212 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2));
20213 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC));
20214 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL));
20215 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT));
20216 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED));
20217 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED));
20218 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL));
20219 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL));
20220 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE));
d55e5bfc
RD
20221 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20222 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20223 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20224 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20225 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20226 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20227 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20228 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20229 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20230 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20231 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20232 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20233 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20234 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20235 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20236 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20237 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20238 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20239 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20240 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20241 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20242 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20243 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20244 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20245 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20246 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20247 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20248 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20249 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20250 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20251 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20252 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20253 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20254 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20255 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20256 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20257 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20258 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20259 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20260 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20261 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20262 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20263 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20264 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20265 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20266 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20267 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20268
20269 // Work around a chicken/egg problem in drawlist.cpp
20270 wxPyDrawList_SetAPIPtr();
20271
20272}
20273