]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/gdi_wrap.cpp
embedded sample compiles again
[wxWidgets.git] / wxPython / src / msw / gdi_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
83448d71 3 * Version 1.3.22
d14a1e28
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
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
46#define SWIG_TypeQuery SWIG_Python_TypeQuery
47#define SWIG_TypeClientData SWIG_Python_TypeClientData
9fd4be55
RD
48#define SWIG_PackData SWIG_Python_PackData
49#define SWIG_UnpackData SWIG_Python_UnpackData
50
d14a1e28
RD
51
52/***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62#include <string.h>
63
f0983263
RD
64#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65# if defined(_MSC_VER) || defined(__GNUC__)
66# if defined(STATIC_LINKED)
67# define SWIGEXPORT(a) a
68# define SWIGIMPORT(a) extern a
69# else
70# define SWIGEXPORT(a) __declspec(dllexport) a
71# define SWIGIMPORT(a) extern a
72# endif
73# else
74# if defined(__BORLANDC__)
75# define SWIGEXPORT(a) a _export
76# define SWIGIMPORT(a) a _export
77# else
78# define SWIGEXPORT(a) a
79# define SWIGIMPORT(a) a
80# endif
81# endif
d14a1e28 82#else
f0983263
RD
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
d14a1e28
RD
85#endif
86
87#ifdef SWIG_GLOBAL
f0983263 88# define SWIGRUNTIME(a) SWIGEXPORT(a)
d14a1e28 89#else
f0983263 90# define SWIGRUNTIME(a) static a
d14a1e28
RD
91#endif
92
d14a1e28
RD
93#ifdef __cplusplus
94extern "C" {
95#endif
96
97typedef void *(*swig_converter_func)(void *);
98typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100typedef struct swig_type_info {
f0983263 101 const char *name;
d14a1e28
RD
102 swig_converter_func converter;
103 const char *str;
f0983263 104 void *clientdata;
d14a1e28
RD
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108} swig_type_info;
109
110
111SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
f0983263
RD
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
d14a1e28
RD
120
121
122#ifdef __cplusplus
123}
124#endif
125
126/***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
d14a1e28
RD
136#include "Python.h"
137
138#ifdef __cplusplus
139extern "C" {
140#endif
141
142#define SWIG_PY_INT 1
143#define SWIG_PY_FLOAT 2
144#define SWIG_PY_STRING 3
145#define SWIG_PY_POINTER 4
146#define SWIG_PY_BINARY 5
147
148/* Flags for pointer conversion */
149
150#define SWIG_POINTER_EXCEPTION 0x1
151#define SWIG_POINTER_DISOWN 0x2
152
153/* Exception handling in wrappers */
154#define SWIG_fail goto fail
155
156/* Constant information structure */
157typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164} swig_const_info;
165
d14a1e28
RD
166/* Common SWIG API */
167#define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169#define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171#define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
83448d71 173
d14a1e28
RD
174/* Python-specific SWIG API */
175#define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177#define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
d14a1e28
RD
181#define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183#define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
8edf1c75 186typedef double (*py_objasdbl_conv)(PyObject *obj);
d14a1e28 187
f0983263
RD
188SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
d14a1e28 196
d14a1e28
RD
197
198/* Contract support */
199
423f194a 200#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
d14a1e28 201
d14a1e28
RD
202#ifdef __cplusplus
203}
204#endif
205
206
d14a1e28
RD
207/* -------- TYPES TABLE (BEGIN) -------- */
208
209#define SWIGTYPE_p_wxPostScriptDC swig_types[0]
423f194a
RD
210#define SWIGTYPE_p_wxBrush swig_types[1]
211#define SWIGTYPE_p_wxColour swig_types[2]
212#define SWIGTYPE_p_wxDC swig_types[3]
213#define SWIGTYPE_p_wxMirrorDC swig_types[4]
214#define SWIGTYPE_p_byte swig_types[5]
215#define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
8edf1c75
RD
216#define SWIGTYPE_p_char swig_types[7]
217#define SWIGTYPE_p_wxIconLocation swig_types[8]
218#define SWIGTYPE_p_wxImage swig_types[9]
219#define SWIGTYPE_p_wxMetaFileDC swig_types[10]
220#define SWIGTYPE_p_wxMask swig_types[11]
221#define SWIGTYPE_p_wxFont swig_types[12]
222#define SWIGTYPE_p_wxWindow swig_types[13]
223#define SWIGTYPE_p_wxSize swig_types[14]
224#define SWIGTYPE_p_double swig_types[15]
225#define SWIGTYPE_p_wxMemoryDC swig_types[16]
226#define SWIGTYPE_p_wxFontMapper swig_types[17]
227#define SWIGTYPE_p_wxEffects swig_types[18]
228#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
229#define SWIGTYPE_p_wxPalette swig_types[20]
230#define SWIGTYPE_p_wxBitmap swig_types[21]
231#define SWIGTYPE_p_wxObject swig_types[22]
232#define SWIGTYPE_p_wxRegionIterator swig_types[23]
233#define SWIGTYPE_p_wxRect swig_types[24]
234#define SWIGTYPE_p_wxString swig_types[25]
235#define SWIGTYPE_p_wxPrinterDC swig_types[26]
236#define SWIGTYPE_p_wxIconBundle swig_types[27]
237#define SWIGTYPE_p_wxPoint swig_types[28]
238#define SWIGTYPE_p_wxDash swig_types[29]
239#define SWIGTYPE_p_wxScreenDC swig_types[30]
240#define SWIGTYPE_p_wxCursor swig_types[31]
241#define SWIGTYPE_p_wxClientDC swig_types[32]
242#define SWIGTYPE_p_wxBufferedDC swig_types[33]
243#define SWIGTYPE_p_wxImageList swig_types[34]
244#define SWIGTYPE_p_unsigned_char swig_types[35]
245#define SWIGTYPE_p_wxGDIObject swig_types[36]
423f194a 246#define SWIGTYPE_p_wxIcon swig_types[37]
8edf1c75
RD
247#define SWIGTYPE_p_wxLocale swig_types[38]
248#define SWIGTYPE_p_wxRegion swig_types[39]
249#define SWIGTYPE_p_wxLanguageInfo swig_types[40]
250#define SWIGTYPE_p_wxConfigBase swig_types[41]
251#define SWIGTYPE_p_wxWindowDC swig_types[42]
252#define SWIGTYPE_p_wxPrintData swig_types[43]
253#define SWIGTYPE_p_wxBrushList swig_types[44]
254#define SWIGTYPE_p_wxFontList swig_types[45]
255#define SWIGTYPE_p_wxPen swig_types[46]
256#define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
257#define SWIGTYPE_p_wxPaintDC swig_types[48]
258#define SWIGTYPE_p_wxPenList swig_types[49]
259#define SWIGTYPE_p_wxPyPen swig_types[50]
260#define SWIGTYPE_p_int swig_types[51]
261#define SWIGTYPE_p_wxMetaFile swig_types[52]
262#define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
263#define SWIGTYPE_p_wxEncodingConverter swig_types[54]
264#define SWIGTYPE_p_wxColourDatabase swig_types[55]
265static swig_type_info *swig_types[57];
d14a1e28
RD
266
267/* -------- TYPES TABLE (END) -------- */
268
269
270/*-----------------------------------------------
271 @(target):= _gdi.so
272 ------------------------------------------------*/
273#define SWIG_init init_gdi
274
275#define SWIG_name "_gdi"
276
2f4c0a16 277/* Auxiliar swig macros */
8edf1c75 278
8edf1c75 279#ifdef __cplusplus
2f4c0a16 280#define SWIGSTATICINLINE(a) static inline a
8edf1c75 281#define SWIGSTATIC(a) static a
2f4c0a16
RD
282#define swig_new_array(type, size) (new type[(size)])
283#define swig_delete_array(cptr) delete[] cptr
284#define swig_const_cast(type,a) const_cast<type>(a)
285#define swig_static_cast(type,a) static_cast<type>(a)
286#define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
8edf1c75 287
8edf1c75 288#ifdef HAVE_NUMERIC_CAST
2f4c0a16 289#define swig_numeric_cast(type,a) numeric_cast<type>(a)
8edf1c75 290#else
2f4c0a16 291#define swig_numeric_cast(type,a) static_cast<type>(a)
8edf1c75
RD
292#endif
293
2f4c0a16
RD
294#else /* C case */
295
296#define SWIGSTATICINLINE(a) static a
297#define SWIGSTATIC(a) static a
298#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
299#define swig_delete_array(cptr) free((char*)cptr)
300#define swig_const_cast(type,a) (type)(a)
301#define swig_static_cast(type,a) (type)(a)
302#define swig_reinterpret_cast(type,a) (type)(a)
303#define swig_numeric_cast(type,a) (type)(a)
304
305#endif /* __cplusplus */
8edf1c75
RD
306
307
2f4c0a16
RD
308#define SWIG_FromSignedChar PyInt_FromLong
309#define SWIG_FromUnsignedChar PyInt_FromLong
310#define SWIG_FromShort PyInt_FromLong
311#define SWIG_FromUnsignedShort PyInt_FromLong
312#define SWIG_FromInt PyInt_FromLong
313#define SWIG_FromLong PyInt_FromLong
314#define SWIG_FromFloat PyFloat_FromDouble
315#define SWIG_FromDouble PyFloat_FromDouble
316#define SWIG_FromFloat PyFloat_FromDouble
317#define SWIG_FromDouble PyFloat_FromDouble
8edf1c75
RD
318
319
d14a1e28
RD
320#include "wx/wxPython/wxPython.h"
321#include "wx/wxPython/pyclasses.h"
322
d14a1e28 323
d03fd34d 324 static const wxString wxPyEmptyString(wxEmptyString);
8edf1c75 325
2f4c0a16
RD
326SWIGSTATICINLINE(bool)
327SWIG_AsBool(PyObject *obj)
8edf1c75
RD
328{
329 return PyObject_IsTrue(obj) ? true : false;
330}
331
332
2f4c0a16
RD
333SWIGSTATICINLINE(int)
334SWIG_CheckBool(PyObject* obj)
335{
336 SWIG_AsBool(obj);
337 if (PyErr_Occurred()) {
338 PyErr_Clear();
339 return 0;
340 } else {
341 return 1;
342 }
343}
344
345
346#include <limits.h>
347
348
349SWIGSTATICINLINE(unsigned long)
350SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
351 unsigned long max_value)
352{
353 if (!PyErr_Occurred()) {
354 if (value > max_value) {
355 PyObject *err =
356 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
357 value, type, max_value);
358 PyErr_SetObject(PyExc_OverflowError, err);
359 Py_DECREF(err);
360 }
361 }
362 return value;
363}
364
365
69223c70
RD
366SWIGSTATICINLINE(long)
367SWIG_AsLong(PyObject * obj)
368{
369 if (PyNumber_Check(obj))
370 return PyInt_AsLong(obj);
371 else {
372 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
373 obj->ob_type->tp_name);
374 PyErr_SetObject(PyExc_TypeError, errmsg);
375 Py_DECREF(errmsg);
376 return 0;
377 }
378}
379
380
2f4c0a16
RD
381SWIGSTATICINLINE(unsigned long)
382SWIG_AsUnsignedLong(PyObject * obj)
383{
384 if (PyLong_Check(obj)) {
385 return PyLong_AsUnsignedLong(obj);
386 } else {
69223c70 387 long i = SWIG_AsLong(obj);
2f4c0a16 388 if ( !PyErr_Occurred() && (i < 0)) {
69223c70 389 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
2f4c0a16
RD
390 }
391 return i;
392 }
393}
394
395
396SWIGSTATICINLINE(unsigned char)
397SWIG_AsUnsignedChar(PyObject *obj)
8edf1c75 398{
2f4c0a16
RD
399 return swig_numeric_cast(unsigned char,
400 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
401 "unsigned char", UCHAR_MAX));
402}
403
404
405SWIGSTATICINLINE(int)
406SWIG_CheckUnsignedChar(PyObject* obj)
407{
408 SWIG_AsUnsignedChar(obj);
409 if (PyErr_Occurred()) {
410 PyErr_Clear();
411 return 0;
412 } else {
413 return 1;
414 }
415}
416
417
418SWIGSTATICINLINE(int)
419SWIG_CheckUnsignedLong(PyObject* obj)
420{
421 SWIG_AsUnsignedLong(obj);
422 if (PyErr_Occurred()) {
423 PyErr_Clear();
424 return 0;
425 } else {
426 return 1;
427 }
8edf1c75
RD
428}
429
d14a1e28
RD
430PyObject *wxColour_Get(wxColour *self){
431 PyObject* rv = PyTuple_New(3);
432 int red = -1;
433 int green = -1;
434 int blue = -1;
435 if (self->Ok()) {
436 red = self->Red();
437 green = self->Green();
438 blue = self->Blue();
439 }
440 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
441 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
442 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
443 return rv;
444 }
328fcd84
RD
445unsigned long wxColour_GetRGB(wxColour *self){
446 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
447 }
448
2f4c0a16
RD
449SWIGSTATICINLINE(PyObject* )
450SWIG_FromUnsignedLong(unsigned long value)
451{
452 return (value > LONG_MAX) ?
453 PyLong_FromUnsignedLong(value)
454 : PyInt_FromLong(swig_numeric_cast(long,value));
455}
456
457
458SWIGSTATICINLINE(long)
459SWIG_CheckLongInRange(long value, const char* type,
460 long min_value, long max_value)
461{
462 if (!PyErr_Occurred()) {
463 if (value < min_value) {
464 PyObject *err =
465 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
466 value, type, min_value);
467
468 PyErr_SetObject(PyExc_OverflowError, err);
469 Py_DECREF(err);
470 } else if (value > max_value) {
471 PyObject *err =
472 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
473 value, type, max_value);
474 PyErr_SetObject(PyExc_OverflowError, err);
475 Py_DECREF(err);
476 }
477 }
478 return value;
479}
480
481
2f4c0a16
RD
482#if INT_MAX != LONG_MAX
483SWIGSTATICINLINE(int)
484SWIG_AsInt(PyObject *obj)
8edf1c75 485{
2f4c0a16
RD
486 return swig_numeric_cast(int,
487 SWIG_CheckLongInRange(SWIG_AsLong(obj),
488 "int", INT_MIN, INT_MAX));
489}
490#else
491#define SWIG_AsInt SWIG_AsLong
492#endif
493
494
495SWIGSTATICINLINE(int)
496SWIG_CheckInt(PyObject* obj)
497{
498 SWIG_AsInt(obj);
499 if (PyErr_Occurred()) {
500 PyErr_Clear();
501 return 0;
502 } else {
503 return 1;
504 }
8edf1c75
RD
505}
506
507
d14a1e28
RD
508static PyObject* t_output_helper(PyObject* target, PyObject* o) {
509 PyObject* o2;
510 PyObject* o3;
511
512 if (!target) {
513 target = o;
514 } else if (target == Py_None) {
515 Py_DECREF(Py_None);
516 target = o;
517 } else {
518 if (!PyTuple_Check(target)) {
519 o2 = target;
520 target = PyTuple_New(1);
521 PyTuple_SetItem(target, 0, o2);
522 }
523 o3 = PyTuple_New(1);
524 PyTuple_SetItem(o3, 0, o);
525
526 o2 = target;
527 target = PySequence_Concat(o2, o3);
528 Py_DECREF(o2);
529 Py_DECREF(o3);
530 }
531 return target;
532}
533
534PyObject *wxPen_GetDashes(wxPen *self){
535 wxDash* dashes;
536 int count = self->GetDashes(&dashes);
4f89f6a3 537 bool blocked = wxPyBeginBlockThreads();
d14a1e28
RD
538 PyObject* retval = PyList_New(0);
539 for (int x=0; x<count; x++)
540 PyList_Append(retval, PyInt_FromLong(dashes[x]));
4f89f6a3 541 wxPyEndBlockThreads(blocked);
d14a1e28
RD
542 return retval;
543 }
328fcd84
RD
544bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
545bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
d14a1e28
RD
546
547wxPyPen::~wxPyPen()
548{
549 if (m_dash)
550 delete [] m_dash;
551}
552
553void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
554{
555 if (m_dash)
556 delete [] m_dash;
557 m_dash = new wxDash[nb_dashes];
558 for (int i=0; i<nb_dashes; i++) {
559 m_dash[i] = dash[i];
560 }
561 wxPen::SetDashes(nb_dashes, m_dash);
562}
563
564
565#include <wx/image.h>
566
567 static char** ConvertListOfStrings(PyObject* listOfStrings) {
568 char** cArray = NULL;
569 int count;
570
571 if (!PyList_Check(listOfStrings)) {
572 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
573 return NULL;
574 }
575 count = PyList_Size(listOfStrings);
576 cArray = new char*[count];
577
578 for(int x=0; x<count; x++) {
579 // TODO: Need some validation and error checking here
580 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
581 }
582 return cArray;
583 }
584
585
586wxBitmap *new_wxBitmap(PyObject *listOfStrings){
587 char** cArray = NULL;
588 wxBitmap* bmp;
589
590 cArray = ConvertListOfStrings(listOfStrings);
591 if (! cArray)
592 return NULL;
593 bmp = new wxBitmap(cArray);
594 delete [] cArray;
595 return bmp;
596 }
597wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
598 char* buf;
599 int length;
600 PyString_AsStringAndSize(bits, &buf, &length);
601 return new wxBitmap(buf, width, height, depth);
602 }
8edf1c75 603
2f4c0a16
RD
604SWIGSTATICINLINE(int)
605SWIG_CheckLong(PyObject* obj)
8edf1c75 606{
2f4c0a16
RD
607 SWIG_AsLong(obj);
608 if (PyErr_Occurred()) {
609 PyErr_Clear();
610 return 0;
611 } else {
612 return 1;
613 }
8edf1c75
RD
614}
615
2f4c0a16 616void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d14a1e28
RD
617void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
618 wxMask *mask = new wxMask(*self, colour);
619 self->SetMask(mask);
620 }
fe763115
RD
621bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
622bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
0ffb2aa6
RD
623wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
624 if ( !colour.Ok() )
625 return new wxMask(bitmap, *wxBLACK);
626 else
627 return new wxMask(bitmap, colour);
628 }
d14a1e28
RD
629
630#include <wx/iconbndl.h>
631
632wxIcon *new_wxIcon(wxBitmap const &bmp){
633 wxIcon* icon = new wxIcon();
634 icon->CopyFromBitmap(bmp);
635 return icon;
636 }
637wxIcon *new_wxIcon(PyObject *listOfStrings){
638 char** cArray = NULL;
639 wxIcon* icon;
640
641 cArray = ConvertListOfStrings(listOfStrings);
642 if (! cArray)
643 return NULL;
644 icon = new wxIcon(cArray);
645 delete [] cArray;
646 return icon;
647 }
2f4c0a16 648void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d14a1e28
RD
649wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
650
651 return new wxIconLocation(*filename, num);
652
653
654
655 }
656void wxIconLocation_SetIndex(wxIconLocation *self,int num){
657
658 self->SetIndex(num);
659
660
661
662 }
663int wxIconLocation_GetIndex(wxIconLocation *self){
664
665 return self->GetIndex();
666
667
668
669 }
2f4c0a16
RD
670wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
671#ifdef __WXGTK__
672 wxCHECK_MSG(False, NULL,
673 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
674#else
675 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
676#endif
d14a1e28 677 }
2f4c0a16 678void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d14a1e28
RD
679
680
681void wxRegionIterator_Next(wxRegionIterator *self){
682 (*self) ++;
683 }
684bool wxRegionIterator___nonzero__(wxRegionIterator *self){
685 return self->operator bool();
686 }
687
688#include <wx/fontutil.h>
689#include <wx/fontmap.h>
690#include <wx/fontenum.h>
691
692wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
693 return self->ToString();
694 }
695
696 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
cbd72d4f 697 { wxPyRaiseNotImplemented(); return NULL; }
d14a1e28
RD
698
699 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
cbd72d4f 700 { wxPyRaiseNotImplemented(); return False; }
d14a1e28
RD
701
702PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
703 wxFontEncoding alt_enc;
704 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
705 return PyInt_FromLong(alt_enc);
706 else {
707 Py_INCREF(Py_None);
708 return Py_None;
709 }
710 }
711wxFont *new_wxFont(wxString const &info){
712 wxNativeFontInfo nfi;
713 nfi.FromString(info);
714 return new wxFont(nfi);
715 }
716wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
717 return wxFont::New(pointSize, family, flags, face, encoding);
718 }
328fcd84
RD
719bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
720bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
d14a1e28
RD
721
722class wxPyFontEnumerator : public wxFontEnumerator {
723public:
724 wxPyFontEnumerator() {}
725 ~wxPyFontEnumerator() {}
726
727 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
728 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
729
730 PYPRIVATE;
731};
732
733IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
734IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
735
736
737PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
738 wxArrayString* arr = self->GetEncodings();
739 return wxArrayString2PyList_helper(*arr);
740 }
741PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
742 wxArrayString* arr = self->GetFacenames();
743 return wxArrayString2PyList_helper(*arr);
744 }
745
746
747
748#include "wx/wxPython/pydrawxxx.h"
749
423f194a 750wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
d14a1e28
RD
751 wxColour col;
752 self->GetPixel(x, y, &col);
753 return col;
754 }
755wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
756 wxColour col;
757 self->GetPixel(pt, &col);
758 return col;
759 }
8edf1c75 760
2f4c0a16
RD
761SWIGSTATICINLINE(double)
762SWIG_AsDouble(PyObject *obj)
8edf1c75 763{
69223c70
RD
764 if (PyNumber_Check(obj))
765 return PyFloat_AsDouble(obj);
766 else {
767 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
768 obj->ob_type->tp_name);
769 PyErr_SetObject(PyExc_TypeError, errmsg);
770 Py_DECREF(errmsg);
771 return 0;
772 }
2f4c0a16
RD
773}
774
775
776SWIGSTATICINLINE(int)
777SWIG_CheckDouble(PyObject* obj)
778{
779 SWIG_AsDouble(obj);
780 if (PyErr_Occurred()) {
781 PyErr_Clear();
782 return 0;
783 } else {
784 return 1;
785 }
8edf1c75
RD
786}
787
d14a1e28
RD
788wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
789 wxRect rv;
790 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
791 return rv;
792 }
793wxRect wxDC_GetClippingRect(wxDC *self){
794 wxRect rect;
795 self->GetClippingBox(rect);
796 return rect;
797 }
db914595
RD
798wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
799 wxArrayInt widths;
800 self->GetPartialTextExtents(text, widths);
801 return widths;
802 }
d14a1e28
RD
803PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
804 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
805 }
806PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
807 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
808 }
809PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
810 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
811 }
812PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
813 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
814 }
815PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
816 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
817 }
818PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
819 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
820 }
821
822static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
823 *x1 = dc->MinX();
824 *y1 = dc->MinY();
825 *x2 = dc->MaxX();
826 *y2 = dc->MaxY();
827}
828
829
328fcd84 830//-=-=-=-=-=-=-=-=-=-=-
2f4c0a16
RD
831
832#if 1
833// Use the standard wxBufferedDC
328fcd84 834#include <wx/dcbuffer.h>
328fcd84 835
2f4c0a16 836#else
328fcd84 837
2f4c0a16 838// Or, temporarily put a set of classes here similar to the old buffered DC
328fcd84
RD
839// classes until the real ones can be fixed to work "correctly" again.
840
841class wxBufferedDC : public wxMemoryDC
842{
843private:
844 wxDC *m_dc;
845 wxBitmap m_buffer;
846
847public:
848
849 wxBufferedDC() : m_dc( 0 ) {}
850
851 wxBufferedDC( wxDC *dc, const wxBitmap &buffer )
852 : m_dc( dc ), m_buffer( buffer )
853 {
854 SelectObject( m_buffer );
855 }
856
857 wxBufferedDC( wxDC *dc, const wxSize &area )
858 : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() )
859 {
860 SelectObject( m_buffer );
861 }
862
863 ~wxBufferedDC() {
864 if( m_dc != 0 )
865 UnMask();
866 }
867
868
869 void Init( wxDC *dc, const wxBitmap &buffer ) {
870 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
871 _T("wxBufferedDC already initialised") );
872 m_dc = dc;
873 m_buffer = buffer;
874 SelectObject( m_buffer );
875 }
876
877 void Init( wxDC *dc, const wxSize &area ) {
878 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
879 _T("wxBufferedDC already initialised") );
880 m_dc = dc;
881 m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() );
882 SelectObject( m_buffer );
883 }
884
885 void UnMask() {
886 wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") );
887 m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 );
888 m_dc = 0;
889 }
890};
891
892
893class wxBufferedPaintDC : public wxBufferedDC
894{
895private:
896 wxPaintDC m_paintdc;
897
898public:
899 wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap )
900 : m_paintdc( window )
901 {
902 window->PrepareDC( m_paintdc );
903
904 if( buffer != wxNullBitmap )
905 Init( &m_paintdc, buffer );
906 else
907 Init( &m_paintdc, window->GetClientSize() );
908 }
909
910 ~wxBufferedPaintDC() {
911 UnMask();
912 }
913};
914
915#endif
916//-=-=-=-=-=-=-=-=-=-=-
917
918
d14a1e28
RD
919#include <wx/dcps.h>
920
921
922#include <wx/metafile.h>
923
924
925
926void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
927 self->AddColour(name, wxColour(red, green, blue));
928 }
929
d14a1e28
RD
930#include <wx/effects.h>
931
932#ifdef __cplusplus
933extern "C" {
934#endif
935static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
936 PyObject *resultobj;
937 wxGDIObject *result;
938 char *kwnames[] = {
939 NULL
940 };
941
942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
943 {
944 PyThreadState* __tstate = wxPyBeginAllowThreads();
945 result = (wxGDIObject *)new wxGDIObject();
946
947 wxPyEndAllowThreads(__tstate);
948 if (PyErr_Occurred()) SWIG_fail;
949 }
2f4c0a16 950 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
d14a1e28
RD
951 return resultobj;
952 fail:
953 return NULL;
954}
955
956
957static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
958 PyObject *resultobj;
959 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
960 PyObject * obj0 = 0 ;
961 char *kwnames[] = {
962 (char *) "self", NULL
963 };
964
965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
2f4c0a16
RD
966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
968 {
969 PyThreadState* __tstate = wxPyBeginAllowThreads();
970 delete arg1;
971
972 wxPyEndAllowThreads(__tstate);
973 if (PyErr_Occurred()) SWIG_fail;
974 }
975 Py_INCREF(Py_None); resultobj = Py_None;
976 return resultobj;
977 fail:
978 return NULL;
979}
980
981
982static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
983 PyObject *resultobj;
984 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
985 bool result;
986 PyObject * obj0 = 0 ;
987 char *kwnames[] = {
988 (char *) "self", NULL
989 };
990
991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
2f4c0a16
RD
992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
994 {
995 PyThreadState* __tstate = wxPyBeginAllowThreads();
996 result = (bool)(arg1)->GetVisible();
997
998 wxPyEndAllowThreads(__tstate);
999 if (PyErr_Occurred()) SWIG_fail;
1000 }
4f89f6a3
RD
1001 {
1002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1003 }
d14a1e28
RD
1004 return resultobj;
1005 fail:
1006 return NULL;
1007}
1008
1009
1010static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1011 PyObject *resultobj;
1012 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1013 bool arg2 ;
1014 PyObject * obj0 = 0 ;
1015 PyObject * obj1 = 0 ;
1016 char *kwnames[] = {
1017 (char *) "self",(char *) "visible", NULL
1018 };
1019
1020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1023 arg2 = (bool) SWIG_AsBool(obj1);
1024 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1025 {
1026 PyThreadState* __tstate = wxPyBeginAllowThreads();
1027 (arg1)->SetVisible(arg2);
1028
1029 wxPyEndAllowThreads(__tstate);
1030 if (PyErr_Occurred()) SWIG_fail;
1031 }
1032 Py_INCREF(Py_None); resultobj = Py_None;
1033 return resultobj;
1034 fail:
1035 return NULL;
1036}
1037
1038
1039static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1040 PyObject *resultobj;
1041 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1042 bool result;
1043 PyObject * obj0 = 0 ;
1044 char *kwnames[] = {
1045 (char *) "self", NULL
1046 };
1047
1048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1051 {
1052 PyThreadState* __tstate = wxPyBeginAllowThreads();
1053 result = (bool)(arg1)->IsNull();
1054
1055 wxPyEndAllowThreads(__tstate);
1056 if (PyErr_Occurred()) SWIG_fail;
1057 }
4f89f6a3
RD
1058 {
1059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1060 }
d14a1e28
RD
1061 return resultobj;
1062 fail:
1063 return NULL;
1064}
1065
1066
1067static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1068 PyObject *obj;
1069 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1070 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1071 Py_INCREF(obj);
1072 return Py_BuildValue((char *)"");
1073}
1074static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1075 PyObject *resultobj;
1076 unsigned char arg1 = (unsigned char) 0 ;
1077 unsigned char arg2 = (unsigned char) 0 ;
1078 unsigned char arg3 = (unsigned char) 0 ;
1079 wxColour *result;
1080 PyObject * obj0 = 0 ;
1081 PyObject * obj1 = 0 ;
1082 PyObject * obj2 = 0 ;
1083 char *kwnames[] = {
1084 (char *) "red",(char *) "green",(char *) "blue", NULL
1085 };
1086
1087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1088 if (obj0) {
2f4c0a16
RD
1089 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1090 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1091 }
1092 if (obj1) {
2f4c0a16
RD
1093 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1094 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1095 }
1096 if (obj2) {
2f4c0a16
RD
1097 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1098 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1099 }
1100 {
1101 PyThreadState* __tstate = wxPyBeginAllowThreads();
1102 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1103
1104 wxPyEndAllowThreads(__tstate);
1105 if (PyErr_Occurred()) SWIG_fail;
1106 }
2f4c0a16 1107 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1108 return resultobj;
1109 fail:
1110 return NULL;
1111}
1112
1113
d14a1e28
RD
1114static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1115 PyObject *resultobj;
1116 wxString *arg1 = 0 ;
1117 wxColour *result;
423f194a 1118 bool temp1 = False ;
d14a1e28
RD
1119 PyObject * obj0 = 0 ;
1120 char *kwnames[] = {
1121 (char *) "colorName", NULL
1122 };
1123
1124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1125 {
1126 arg1 = wxString_in_helper(obj0);
1127 if (arg1 == NULL) SWIG_fail;
423f194a 1128 temp1 = True;
d14a1e28
RD
1129 }
1130 {
1131 PyThreadState* __tstate = wxPyBeginAllowThreads();
1132 result = (wxColour *)new wxColour((wxString const &)*arg1);
1133
1134 wxPyEndAllowThreads(__tstate);
1135 if (PyErr_Occurred()) SWIG_fail;
1136 }
2f4c0a16 1137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1138 {
1139 if (temp1)
1140 delete arg1;
1141 }
1142 return resultobj;
1143 fail:
1144 {
1145 if (temp1)
1146 delete arg1;
1147 }
1148 return NULL;
1149}
1150
1151
1152static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1153 PyObject *resultobj;
1154 unsigned long arg1 ;
1155 wxColour *result;
1156 PyObject * obj0 = 0 ;
1157 char *kwnames[] = {
1158 (char *) "colRGB", NULL
1159 };
1160
1161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1162 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1163 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1164 {
1165 PyThreadState* __tstate = wxPyBeginAllowThreads();
1166 result = (wxColour *)new wxColour(arg1);
1167
1168 wxPyEndAllowThreads(__tstate);
1169 if (PyErr_Occurred()) SWIG_fail;
1170 }
2f4c0a16 1171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1172 return resultobj;
1173 fail:
1174 return NULL;
1175}
1176
1177
328fcd84
RD
1178static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1179 PyObject *resultobj;
1180 wxColour *arg1 = (wxColour *) 0 ;
1181 PyObject * obj0 = 0 ;
1182 char *kwnames[] = {
1183 (char *) "self", NULL
1184 };
1185
1186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
328fcd84
RD
1189 {
1190 PyThreadState* __tstate = wxPyBeginAllowThreads();
1191 delete arg1;
1192
1193 wxPyEndAllowThreads(__tstate);
1194 if (PyErr_Occurred()) SWIG_fail;
1195 }
1196 Py_INCREF(Py_None); resultobj = Py_None;
1197 return resultobj;
1198 fail:
1199 return NULL;
1200}
1201
1202
d14a1e28
RD
1203static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1204 PyObject *resultobj;
1205 wxColour *arg1 = (wxColour *) 0 ;
1206 unsigned char result;
1207 PyObject * obj0 = 0 ;
1208 char *kwnames[] = {
1209 (char *) "self", NULL
1210 };
1211
1212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1215 {
1216 PyThreadState* __tstate = wxPyBeginAllowThreads();
1217 result = (unsigned char)(arg1)->Red();
1218
1219 wxPyEndAllowThreads(__tstate);
1220 if (PyErr_Occurred()) SWIG_fail;
1221 }
2f4c0a16 1222 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1223 return resultobj;
1224 fail:
1225 return NULL;
1226}
1227
1228
1229static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1230 PyObject *resultobj;
1231 wxColour *arg1 = (wxColour *) 0 ;
1232 unsigned char result;
1233 PyObject * obj0 = 0 ;
1234 char *kwnames[] = {
1235 (char *) "self", NULL
1236 };
1237
1238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1241 {
1242 PyThreadState* __tstate = wxPyBeginAllowThreads();
1243 result = (unsigned char)(arg1)->Green();
1244
1245 wxPyEndAllowThreads(__tstate);
1246 if (PyErr_Occurred()) SWIG_fail;
1247 }
2f4c0a16 1248 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1249 return resultobj;
1250 fail:
1251 return NULL;
1252}
1253
1254
1255static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1256 PyObject *resultobj;
1257 wxColour *arg1 = (wxColour *) 0 ;
1258 unsigned char result;
1259 PyObject * obj0 = 0 ;
1260 char *kwnames[] = {
1261 (char *) "self", NULL
1262 };
1263
1264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1267 {
1268 PyThreadState* __tstate = wxPyBeginAllowThreads();
1269 result = (unsigned char)(arg1)->Blue();
1270
1271 wxPyEndAllowThreads(__tstate);
1272 if (PyErr_Occurred()) SWIG_fail;
1273 }
2f4c0a16 1274 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1275 return resultobj;
1276 fail:
1277 return NULL;
1278}
1279
1280
1281static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1282 PyObject *resultobj;
1283 wxColour *arg1 = (wxColour *) 0 ;
1284 bool result;
1285 PyObject * obj0 = 0 ;
1286 char *kwnames[] = {
1287 (char *) "self", NULL
1288 };
1289
1290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1293 {
1294 PyThreadState* __tstate = wxPyBeginAllowThreads();
1295 result = (bool)(arg1)->Ok();
1296
1297 wxPyEndAllowThreads(__tstate);
1298 if (PyErr_Occurred()) SWIG_fail;
1299 }
4f89f6a3
RD
1300 {
1301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1302 }
d14a1e28
RD
1303 return resultobj;
1304 fail:
1305 return NULL;
1306}
1307
1308
1309static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1310 PyObject *resultobj;
1311 wxColour *arg1 = (wxColour *) 0 ;
1312 unsigned char arg2 ;
1313 unsigned char arg3 ;
1314 unsigned char arg4 ;
1315 PyObject * obj0 = 0 ;
1316 PyObject * obj1 = 0 ;
1317 PyObject * obj2 = 0 ;
1318 PyObject * obj3 = 0 ;
1319 char *kwnames[] = {
1320 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1321 };
1322
1323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
1324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1326 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1327 if (PyErr_Occurred()) SWIG_fail;
1328 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1329 if (PyErr_Occurred()) SWIG_fail;
1330 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1331 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1332 {
1333 PyThreadState* __tstate = wxPyBeginAllowThreads();
1334 (arg1)->Set(arg2,arg3,arg4);
1335
1336 wxPyEndAllowThreads(__tstate);
1337 if (PyErr_Occurred()) SWIG_fail;
1338 }
1339 Py_INCREF(Py_None); resultobj = Py_None;
1340 return resultobj;
1341 fail:
1342 return NULL;
1343}
1344
1345
9fd4be55 1346static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1347 PyObject *resultobj;
1348 wxColour *arg1 = (wxColour *) 0 ;
1349 unsigned long arg2 ;
1350 PyObject * obj0 = 0 ;
1351 PyObject * obj1 = 0 ;
1352 char *kwnames[] = {
1353 (char *) "self",(char *) "colRGB", NULL
1354 };
1355
9fd4be55 1356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1359 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1360 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1361 {
1362 PyThreadState* __tstate = wxPyBeginAllowThreads();
1363 (arg1)->Set(arg2);
1364
1365 wxPyEndAllowThreads(__tstate);
1366 if (PyErr_Occurred()) SWIG_fail;
1367 }
1368 Py_INCREF(Py_None); resultobj = Py_None;
1369 return resultobj;
1370 fail:
1371 return NULL;
1372}
1373
1374
328fcd84
RD
1375static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1376 PyObject *resultobj;
1377 wxColour *arg1 = (wxColour *) 0 ;
1378 wxString *arg2 = 0 ;
1379 bool temp2 = False ;
1380 PyObject * obj0 = 0 ;
1381 PyObject * obj1 = 0 ;
1382 char *kwnames[] = {
1383 (char *) "self",(char *) "colourName", NULL
1384 };
1385
1386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
328fcd84
RD
1389 {
1390 arg2 = wxString_in_helper(obj1);
1391 if (arg2 == NULL) SWIG_fail;
1392 temp2 = True;
1393 }
1394 {
1395 PyThreadState* __tstate = wxPyBeginAllowThreads();
1396 (arg1)->InitFromName((wxString const &)*arg2);
1397
1398 wxPyEndAllowThreads(__tstate);
1399 if (PyErr_Occurred()) SWIG_fail;
1400 }
1401 Py_INCREF(Py_None); resultobj = Py_None;
1402 {
1403 if (temp2)
1404 delete arg2;
1405 }
1406 return resultobj;
1407 fail:
1408 {
1409 if (temp2)
1410 delete arg2;
1411 }
1412 return NULL;
1413}
1414
1415
1416static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1417 PyObject *resultobj;
1418 wxColour *arg1 = (wxColour *) 0 ;
1419 long result;
1420 PyObject * obj0 = 0 ;
1421 char *kwnames[] = {
1422 (char *) "self", NULL
1423 };
1424
1425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
328fcd84
RD
1428 {
1429 PyThreadState* __tstate = wxPyBeginAllowThreads();
1430 result = (long)((wxColour const *)arg1)->GetPixel();
1431
1432 wxPyEndAllowThreads(__tstate);
1433 if (PyErr_Occurred()) SWIG_fail;
1434 }
2f4c0a16 1435 resultobj = SWIG_FromLong((long)result);
328fcd84
RD
1436 return resultobj;
1437 fail:
1438 return NULL;
1439}
1440
1441
d14a1e28
RD
1442static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1443 PyObject *resultobj;
1444 wxColour *arg1 = (wxColour *) 0 ;
1445 wxColour *arg2 = 0 ;
1446 bool result;
1447 wxColour temp2 ;
1448 PyObject * obj0 = 0 ;
1449 PyObject * obj1 = 0 ;
1450 char *kwnames[] = {
1451 (char *) "self",(char *) "colour", NULL
1452 };
1453
1454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1457 {
1458 arg2 = &temp2;
1459 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1460 }
1461 {
1462 PyThreadState* __tstate = wxPyBeginAllowThreads();
1463 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1464
1465 wxPyEndAllowThreads(__tstate);
1466 if (PyErr_Occurred()) SWIG_fail;
1467 }
4f89f6a3
RD
1468 {
1469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1470 }
d14a1e28
RD
1471 return resultobj;
1472 fail:
1473 return NULL;
1474}
1475
1476
1477static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1478 PyObject *resultobj;
1479 wxColour *arg1 = (wxColour *) 0 ;
1480 wxColour *arg2 = 0 ;
1481 bool result;
1482 wxColour temp2 ;
1483 PyObject * obj0 = 0 ;
1484 PyObject * obj1 = 0 ;
1485 char *kwnames[] = {
1486 (char *) "self",(char *) "colour", NULL
1487 };
1488
1489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1492 {
1493 arg2 = &temp2;
1494 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1495 }
1496 {
1497 PyThreadState* __tstate = wxPyBeginAllowThreads();
1498 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1499
1500 wxPyEndAllowThreads(__tstate);
1501 if (PyErr_Occurred()) SWIG_fail;
1502 }
4f89f6a3
RD
1503 {
1504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1505 }
d14a1e28
RD
1506 return resultobj;
1507 fail:
1508 return NULL;
1509}
1510
1511
328fcd84 1512static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
9fd4be55
RD
1513 PyObject *resultobj;
1514 wxColour *arg1 = (wxColour *) 0 ;
328fcd84 1515 PyObject *result;
9fd4be55 1516 PyObject * obj0 = 0 ;
9fd4be55 1517 char *kwnames[] = {
328fcd84 1518 (char *) "self", NULL
9fd4be55
RD
1519 };
1520
328fcd84 1521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9fd4be55
RD
1524 {
1525 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 1526 result = (PyObject *)wxColour_Get(arg1);
9fd4be55
RD
1527
1528 wxPyEndAllowThreads(__tstate);
1529 if (PyErr_Occurred()) SWIG_fail;
1530 }
328fcd84 1531 resultobj = result;
9fd4be55
RD
1532 return resultobj;
1533 fail:
9fd4be55
RD
1534 return NULL;
1535}
1536
1537
328fcd84 1538static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1539 PyObject *resultobj;
1540 wxColour *arg1 = (wxColour *) 0 ;
328fcd84 1541 unsigned long result;
d14a1e28
RD
1542 PyObject * obj0 = 0 ;
1543 char *kwnames[] = {
1544 (char *) "self", NULL
1545 };
1546
328fcd84 1547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1550 {
1551 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 1552 result = (unsigned long)wxColour_GetRGB(arg1);
d14a1e28
RD
1553
1554 wxPyEndAllowThreads(__tstate);
1555 if (PyErr_Occurred()) SWIG_fail;
1556 }
2f4c0a16 1557 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
1558 return resultobj;
1559 fail:
1560 return NULL;
1561}
1562
1563
1564static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1565 PyObject *obj;
1566 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1567 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1568 Py_INCREF(obj);
1569 return Py_BuildValue((char *)"");
1570}
1571static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1572 PyObject *resultobj;
1573 int arg1 ;
1574 unsigned char *arg2 = (unsigned char *) 0 ;
1575 unsigned char *arg3 = (unsigned char *) 0 ;
1576 unsigned char *arg4 = (unsigned char *) 0 ;
1577 wxPalette *result;
8edf1c75 1578 PyObject * obj0 = 0 ;
d14a1e28
RD
1579 PyObject * obj1 = 0 ;
1580 PyObject * obj2 = 0 ;
1581 PyObject * obj3 = 0 ;
1582 char *kwnames[] = {
1583 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1584 };
1585
8edf1c75 1586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
1587 arg1 = (int) SWIG_AsInt(obj0);
1588 if (PyErr_Occurred()) SWIG_fail;
1589 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1591 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1593 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1595 {
1596 PyThreadState* __tstate = wxPyBeginAllowThreads();
1597 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1598
1599 wxPyEndAllowThreads(__tstate);
1600 if (PyErr_Occurred()) SWIG_fail;
1601 }
2f4c0a16 1602 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
d14a1e28
RD
1603 return resultobj;
1604 fail:
1605 return NULL;
1606}
1607
1608
1609static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1610 PyObject *resultobj;
1611 wxPalette *arg1 = (wxPalette *) 0 ;
1612 PyObject * obj0 = 0 ;
1613 char *kwnames[] = {
1614 (char *) "self", NULL
1615 };
1616
1617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1620 {
1621 PyThreadState* __tstate = wxPyBeginAllowThreads();
1622 delete arg1;
1623
1624 wxPyEndAllowThreads(__tstate);
1625 if (PyErr_Occurred()) SWIG_fail;
1626 }
1627 Py_INCREF(Py_None); resultobj = Py_None;
1628 return resultobj;
1629 fail:
1630 return NULL;
1631}
1632
1633
1634static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1635 PyObject *resultobj;
1636 wxPalette *arg1 = (wxPalette *) 0 ;
1637 byte arg2 ;
1638 byte arg3 ;
1639 byte arg4 ;
1640 int result;
1641 PyObject * obj0 = 0 ;
1642 PyObject * obj1 = 0 ;
1643 PyObject * obj2 = 0 ;
1644 PyObject * obj3 = 0 ;
1645 char *kwnames[] = {
1646 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1647 };
1648
1649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
1650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1652 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1653 if (PyErr_Occurred()) SWIG_fail;
1654 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1655 if (PyErr_Occurred()) SWIG_fail;
1656 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1657 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1658 {
1659 PyThreadState* __tstate = wxPyBeginAllowThreads();
1660 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1661
1662 wxPyEndAllowThreads(__tstate);
1663 if (PyErr_Occurred()) SWIG_fail;
1664 }
2f4c0a16 1665 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1666 return resultobj;
1667 fail:
1668 return NULL;
1669}
1670
1671
1672static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1673 PyObject *resultobj;
1674 wxPalette *arg1 = (wxPalette *) 0 ;
1675 int arg2 ;
1676 byte *arg3 = (byte *) 0 ;
1677 byte *arg4 = (byte *) 0 ;
1678 byte *arg5 = (byte *) 0 ;
1679 bool result;
1680 byte temp3 ;
1681 byte temp4 ;
1682 byte temp5 ;
1683 PyObject * obj0 = 0 ;
8edf1c75 1684 PyObject * obj1 = 0 ;
d14a1e28
RD
1685 char *kwnames[] = {
1686 (char *) "self",(char *) "pixel", NULL
1687 };
1688
1689 arg3 = &temp3;
1690 arg4 = &temp4;
1691 arg5 = &temp5;
8edf1c75 1692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1695 arg2 = (int) SWIG_AsInt(obj1);
1696 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1697 {
1698 PyThreadState* __tstate = wxPyBeginAllowThreads();
1699 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1700
1701 wxPyEndAllowThreads(__tstate);
1702 if (PyErr_Occurred()) SWIG_fail;
1703 }
4f89f6a3
RD
1704 {
1705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1706 }
d14a1e28
RD
1707 {
1708 PyObject *o = PyInt_FromLong((long) (*arg3));
1709 resultobj = t_output_helper(resultobj,o);
1710 }
1711 {
1712 PyObject *o = PyInt_FromLong((long) (*arg4));
1713 resultobj = t_output_helper(resultobj,o);
1714 }
1715 {
1716 PyObject *o = PyInt_FromLong((long) (*arg5));
1717 resultobj = t_output_helper(resultobj,o);
1718 }
1719 return resultobj;
1720 fail:
1721 return NULL;
1722}
1723
1724
1725static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1726 PyObject *resultobj;
1727 wxPalette *arg1 = (wxPalette *) 0 ;
1728 bool result;
1729 PyObject * obj0 = 0 ;
1730 char *kwnames[] = {
1731 (char *) "self", NULL
1732 };
1733
1734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1737 {
1738 PyThreadState* __tstate = wxPyBeginAllowThreads();
1739 result = (bool)(arg1)->Ok();
1740
1741 wxPyEndAllowThreads(__tstate);
1742 if (PyErr_Occurred()) SWIG_fail;
1743 }
4f89f6a3
RD
1744 {
1745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1746 }
d14a1e28
RD
1747 return resultobj;
1748 fail:
1749 return NULL;
1750}
1751
1752
1753static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1754 PyObject *obj;
1755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1756 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1757 Py_INCREF(obj);
1758 return Py_BuildValue((char *)"");
1759}
1760static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1761 PyObject *resultobj;
1762 wxColour *arg1 = 0 ;
1763 int arg2 = (int) 1 ;
1764 int arg3 = (int) wxSOLID ;
1765 wxPen *result;
1766 wxColour temp1 ;
1767 PyObject * obj0 = 0 ;
8edf1c75
RD
1768 PyObject * obj1 = 0 ;
1769 PyObject * obj2 = 0 ;
d14a1e28
RD
1770 char *kwnames[] = {
1771 (char *) "colour",(char *) "width",(char *) "style", NULL
1772 };
1773
8edf1c75 1774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
1775 {
1776 arg1 = &temp1;
1777 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1778 }
8edf1c75 1779 if (obj1) {
2f4c0a16
RD
1780 arg2 = (int) SWIG_AsInt(obj1);
1781 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
1782 }
1783 if (obj2) {
2f4c0a16
RD
1784 arg3 = (int) SWIG_AsInt(obj2);
1785 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 1786 }
d14a1e28
RD
1787 {
1788 PyThreadState* __tstate = wxPyBeginAllowThreads();
1789 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1790
1791 wxPyEndAllowThreads(__tstate);
1792 if (PyErr_Occurred()) SWIG_fail;
1793 }
2f4c0a16 1794 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
d14a1e28
RD
1795 return resultobj;
1796 fail:
1797 return NULL;
1798}
1799
1800
1801static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1802 PyObject *resultobj;
1803 wxPen *arg1 = (wxPen *) 0 ;
1804 PyObject * obj0 = 0 ;
1805 char *kwnames[] = {
1806 (char *) "self", NULL
1807 };
1808
1809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1812 {
1813 PyThreadState* __tstate = wxPyBeginAllowThreads();
1814 delete arg1;
1815
1816 wxPyEndAllowThreads(__tstate);
1817 if (PyErr_Occurred()) SWIG_fail;
1818 }
1819 Py_INCREF(Py_None); resultobj = Py_None;
1820 return resultobj;
1821 fail:
1822 return NULL;
1823}
1824
1825
1826static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1827 PyObject *resultobj;
1828 wxPen *arg1 = (wxPen *) 0 ;
1829 int result;
1830 PyObject * obj0 = 0 ;
1831 char *kwnames[] = {
1832 (char *) "self", NULL
1833 };
1834
1835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1838 {
1839 PyThreadState* __tstate = wxPyBeginAllowThreads();
1840 result = (int)(arg1)->GetCap();
1841
1842 wxPyEndAllowThreads(__tstate);
1843 if (PyErr_Occurred()) SWIG_fail;
1844 }
2f4c0a16 1845 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1846 return resultobj;
1847 fail:
1848 return NULL;
1849}
1850
1851
1852static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1853 PyObject *resultobj;
1854 wxPen *arg1 = (wxPen *) 0 ;
1855 wxColour result;
1856 PyObject * obj0 = 0 ;
1857 char *kwnames[] = {
1858 (char *) "self", NULL
1859 };
1860
1861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1864 {
1865 PyThreadState* __tstate = wxPyBeginAllowThreads();
1866 result = (arg1)->GetColour();
1867
1868 wxPyEndAllowThreads(__tstate);
1869 if (PyErr_Occurred()) SWIG_fail;
1870 }
1871 {
1872 wxColour * resultptr;
1873 resultptr = new wxColour((wxColour &) result);
2f4c0a16 1874 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1875 }
1876 return resultobj;
1877 fail:
1878 return NULL;
1879}
1880
1881
1882static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1883 PyObject *resultobj;
1884 wxPen *arg1 = (wxPen *) 0 ;
1885 int result;
1886 PyObject * obj0 = 0 ;
1887 char *kwnames[] = {
1888 (char *) "self", NULL
1889 };
1890
1891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1894 {
1895 PyThreadState* __tstate = wxPyBeginAllowThreads();
1896 result = (int)(arg1)->GetJoin();
1897
1898 wxPyEndAllowThreads(__tstate);
1899 if (PyErr_Occurred()) SWIG_fail;
1900 }
2f4c0a16 1901 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1902 return resultobj;
1903 fail:
1904 return NULL;
1905}
1906
1907
1908static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1909 PyObject *resultobj;
1910 wxPen *arg1 = (wxPen *) 0 ;
1911 int result;
1912 PyObject * obj0 = 0 ;
1913 char *kwnames[] = {
1914 (char *) "self", NULL
1915 };
1916
1917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1920 {
1921 PyThreadState* __tstate = wxPyBeginAllowThreads();
1922 result = (int)(arg1)->GetStyle();
1923
1924 wxPyEndAllowThreads(__tstate);
1925 if (PyErr_Occurred()) SWIG_fail;
1926 }
2f4c0a16 1927 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1928 return resultobj;
1929 fail:
1930 return NULL;
1931}
1932
1933
1934static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1935 PyObject *resultobj;
1936 wxPen *arg1 = (wxPen *) 0 ;
1937 int result;
1938 PyObject * obj0 = 0 ;
1939 char *kwnames[] = {
1940 (char *) "self", NULL
1941 };
1942
1943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1946 {
1947 PyThreadState* __tstate = wxPyBeginAllowThreads();
1948 result = (int)(arg1)->GetWidth();
1949
1950 wxPyEndAllowThreads(__tstate);
1951 if (PyErr_Occurred()) SWIG_fail;
1952 }
2f4c0a16 1953 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1954 return resultobj;
1955 fail:
1956 return NULL;
1957}
1958
1959
1960static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1961 PyObject *resultobj;
1962 wxPen *arg1 = (wxPen *) 0 ;
1963 bool result;
1964 PyObject * obj0 = 0 ;
1965 char *kwnames[] = {
1966 (char *) "self", NULL
1967 };
1968
1969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1972 {
1973 PyThreadState* __tstate = wxPyBeginAllowThreads();
1974 result = (bool)(arg1)->Ok();
1975
1976 wxPyEndAllowThreads(__tstate);
1977 if (PyErr_Occurred()) SWIG_fail;
1978 }
4f89f6a3
RD
1979 {
1980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1981 }
d14a1e28
RD
1982 return resultobj;
1983 fail:
1984 return NULL;
1985}
1986
1987
1988static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1989 PyObject *resultobj;
1990 wxPen *arg1 = (wxPen *) 0 ;
1991 int arg2 ;
1992 PyObject * obj0 = 0 ;
8edf1c75 1993 PyObject * obj1 = 0 ;
d14a1e28
RD
1994 char *kwnames[] = {
1995 (char *) "self",(char *) "cap_style", NULL
1996 };
1997
8edf1c75 1998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2001 arg2 = (int) SWIG_AsInt(obj1);
2002 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2003 {
2004 PyThreadState* __tstate = wxPyBeginAllowThreads();
2005 (arg1)->SetCap(arg2);
2006
2007 wxPyEndAllowThreads(__tstate);
2008 if (PyErr_Occurred()) SWIG_fail;
2009 }
2010 Py_INCREF(Py_None); resultobj = Py_None;
2011 return resultobj;
2012 fail:
2013 return NULL;
2014}
2015
2016
2017static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2018 PyObject *resultobj;
2019 wxPen *arg1 = (wxPen *) 0 ;
2020 wxColour *arg2 = 0 ;
2021 wxColour temp2 ;
2022 PyObject * obj0 = 0 ;
2023 PyObject * obj1 = 0 ;
2024 char *kwnames[] = {
2025 (char *) "self",(char *) "colour", NULL
2026 };
2027
2028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2031 {
2032 arg2 = &temp2;
2033 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2034 }
2035 {
2036 PyThreadState* __tstate = wxPyBeginAllowThreads();
2037 (arg1)->SetColour(*arg2);
2038
2039 wxPyEndAllowThreads(__tstate);
2040 if (PyErr_Occurred()) SWIG_fail;
2041 }
2042 Py_INCREF(Py_None); resultobj = Py_None;
2043 return resultobj;
2044 fail:
2045 return NULL;
2046}
2047
2048
2049static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2050 PyObject *resultobj;
2051 wxPen *arg1 = (wxPen *) 0 ;
2052 int arg2 ;
2053 PyObject * obj0 = 0 ;
8edf1c75 2054 PyObject * obj1 = 0 ;
d14a1e28
RD
2055 char *kwnames[] = {
2056 (char *) "self",(char *) "join_style", NULL
2057 };
2058
8edf1c75 2059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2062 arg2 = (int) SWIG_AsInt(obj1);
2063 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2064 {
2065 PyThreadState* __tstate = wxPyBeginAllowThreads();
2066 (arg1)->SetJoin(arg2);
2067
2068 wxPyEndAllowThreads(__tstate);
2069 if (PyErr_Occurred()) SWIG_fail;
2070 }
2071 Py_INCREF(Py_None); resultobj = Py_None;
2072 return resultobj;
2073 fail:
2074 return NULL;
2075}
2076
2077
2078static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2079 PyObject *resultobj;
2080 wxPen *arg1 = (wxPen *) 0 ;
2081 int arg2 ;
2082 PyObject * obj0 = 0 ;
8edf1c75 2083 PyObject * obj1 = 0 ;
d14a1e28
RD
2084 char *kwnames[] = {
2085 (char *) "self",(char *) "style", NULL
2086 };
2087
8edf1c75 2088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2091 arg2 = (int) SWIG_AsInt(obj1);
2092 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2093 {
2094 PyThreadState* __tstate = wxPyBeginAllowThreads();
2095 (arg1)->SetStyle(arg2);
2096
2097 wxPyEndAllowThreads(__tstate);
2098 if (PyErr_Occurred()) SWIG_fail;
2099 }
2100 Py_INCREF(Py_None); resultobj = Py_None;
2101 return resultobj;
2102 fail:
2103 return NULL;
2104}
2105
2106
2107static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2108 PyObject *resultobj;
2109 wxPen *arg1 = (wxPen *) 0 ;
2110 int arg2 ;
2111 PyObject * obj0 = 0 ;
8edf1c75 2112 PyObject * obj1 = 0 ;
d14a1e28
RD
2113 char *kwnames[] = {
2114 (char *) "self",(char *) "width", NULL
2115 };
2116
8edf1c75 2117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2120 arg2 = (int) SWIG_AsInt(obj1);
2121 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2122 {
2123 PyThreadState* __tstate = wxPyBeginAllowThreads();
2124 (arg1)->SetWidth(arg2);
2125
2126 wxPyEndAllowThreads(__tstate);
2127 if (PyErr_Occurred()) SWIG_fail;
2128 }
2129 Py_INCREF(Py_None); resultobj = Py_None;
2130 return resultobj;
2131 fail:
2132 return NULL;
2133}
2134
2135
2136static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2137 PyObject *resultobj;
2138 wxPen *arg1 = (wxPen *) 0 ;
2139 int arg2 ;
2140 wxDash *arg3 = (wxDash *) 0 ;
2141 PyObject * obj0 = 0 ;
2142 PyObject * obj1 = 0 ;
2143 char *kwnames[] = {
2144 (char *) "self",(char *) "dashes", NULL
2145 };
2146
2147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2150 {
2151 arg2 = PyList_Size(obj1);
2152 arg3 = (wxDash*)byte_LIST_helper(obj1);
2153 if (arg3 == NULL) SWIG_fail;
2154 }
2155 {
2156 PyThreadState* __tstate = wxPyBeginAllowThreads();
2157 (arg1)->SetDashes(arg2,arg3);
2158
2159 wxPyEndAllowThreads(__tstate);
2160 if (PyErr_Occurred()) SWIG_fail;
2161 }
2162 Py_INCREF(Py_None); resultobj = Py_None;
2163 {
2164 if (arg3) delete [] arg3;
2165 }
2166 return resultobj;
2167 fail:
2168 {
2169 if (arg3) delete [] arg3;
2170 }
2171 return NULL;
2172}
2173
2174
2175static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2176 PyObject *resultobj;
2177 wxPen *arg1 = (wxPen *) 0 ;
2178 PyObject *result;
2179 PyObject * obj0 = 0 ;
2180 char *kwnames[] = {
2181 (char *) "self", NULL
2182 };
2183
2184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2187 {
2188 PyThreadState* __tstate = wxPyBeginAllowThreads();
2189 result = (PyObject *)wxPen_GetDashes(arg1);
2190
2191 wxPyEndAllowThreads(__tstate);
2192 if (PyErr_Occurred()) SWIG_fail;
2193 }
2194 resultobj = result;
2195 return resultobj;
2196 fail:
2197 return NULL;
2198}
2199
2200
db914595
RD
2201static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2202 PyObject *resultobj;
2203 wxPen *arg1 = (wxPen *) 0 ;
328fcd84 2204 wxPen *arg2 = (wxPen *) 0 ;
db914595
RD
2205 bool result;
2206 PyObject * obj0 = 0 ;
2207 PyObject * obj1 = 0 ;
2208 char *kwnames[] = {
328fcd84 2209 (char *) "self",(char *) "other", NULL
db914595
RD
2210 };
2211
2212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2215 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
328fcd84
RD
2217 {
2218 PyThreadState* __tstate = wxPyBeginAllowThreads();
2219 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2220
2221 wxPyEndAllowThreads(__tstate);
2222 if (PyErr_Occurred()) SWIG_fail;
db914595 2223 }
4f89f6a3
RD
2224 {
2225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2226 }
328fcd84
RD
2227 return resultobj;
2228 fail:
2229 return NULL;
2230}
2231
2232
2233static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2234 PyObject *resultobj;
2235 wxPen *arg1 = (wxPen *) 0 ;
2236 wxPen *arg2 = (wxPen *) 0 ;
2237 bool result;
2238 PyObject * obj0 = 0 ;
2239 PyObject * obj1 = 0 ;
2240 char *kwnames[] = {
2241 (char *) "self",(char *) "other", NULL
2242 };
2243
2244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2247 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
db914595
RD
2249 {
2250 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 2251 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
db914595
RD
2252
2253 wxPyEndAllowThreads(__tstate);
2254 if (PyErr_Occurred()) SWIG_fail;
2255 }
4f89f6a3
RD
2256 {
2257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2258 }
db914595
RD
2259 return resultobj;
2260 fail:
2261 return NULL;
2262}
2263
2264
9fd4be55
RD
2265static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2266 PyObject *resultobj;
2267 wxPen *arg1 = (wxPen *) 0 ;
2268 int result;
2269 PyObject * obj0 = 0 ;
2270 char *kwnames[] = {
2271 (char *) "self", NULL
2272 };
2273
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9fd4be55
RD
2277 {
2278 PyThreadState* __tstate = wxPyBeginAllowThreads();
2279 result = (int)((wxPen const *)arg1)->GetDashCount();
2280
2281 wxPyEndAllowThreads(__tstate);
2282 if (PyErr_Occurred()) SWIG_fail;
2283 }
2f4c0a16 2284 resultobj = SWIG_FromInt((int)result);
9fd4be55
RD
2285 return resultobj;
2286 fail:
2287 return NULL;
2288}
2289
2290
d14a1e28
RD
2291static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2292 PyObject *resultobj;
2293 wxPen *arg1 = (wxPen *) 0 ;
2294 wxBitmap *result;
2295 PyObject * obj0 = 0 ;
2296 char *kwnames[] = {
2297 (char *) "self", NULL
2298 };
2299
2300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2303 {
2304 PyThreadState* __tstate = wxPyBeginAllowThreads();
2305 result = (wxBitmap *)(arg1)->GetStipple();
2306
2307 wxPyEndAllowThreads(__tstate);
2308 if (PyErr_Occurred()) SWIG_fail;
2309 }
2f4c0a16 2310 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
d14a1e28
RD
2311 return resultobj;
2312 fail:
2313 return NULL;
2314}
2315
2316
2317static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2318 PyObject *resultobj;
2319 wxPen *arg1 = (wxPen *) 0 ;
2320 wxBitmap *arg2 = 0 ;
2321 PyObject * obj0 = 0 ;
2322 PyObject * obj1 = 0 ;
2323 char *kwnames[] = {
2324 (char *) "self",(char *) "stipple", NULL
2325 };
2326
2327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2330 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2331 SWIG_POINTER_EXCEPTION | 0)) == -1)
2332 SWIG_fail;
d14a1e28 2333 if (arg2 == NULL) {
2f4c0a16
RD
2334 PyErr_SetString(PyExc_TypeError,"null reference");
2335 SWIG_fail;
d14a1e28
RD
2336 }
2337 {
2338 PyThreadState* __tstate = wxPyBeginAllowThreads();
2339 (arg1)->SetStipple(*arg2);
2340
2341 wxPyEndAllowThreads(__tstate);
2342 if (PyErr_Occurred()) SWIG_fail;
2343 }
2344 Py_INCREF(Py_None); resultobj = Py_None;
2345 return resultobj;
2346 fail:
2347 return NULL;
2348}
2349
2350
2351static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2352 PyObject *obj;
2353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2354 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2355 Py_INCREF(obj);
2356 return Py_BuildValue((char *)"");
2357}
2358static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2359 PyObject *resultobj;
2360 wxColour *arg1 = 0 ;
2361 int arg2 = (int) 1 ;
2362 int arg3 = (int) wxSOLID ;
2363 wxPyPen *result;
2364 wxColour temp1 ;
2365 PyObject * obj0 = 0 ;
8edf1c75
RD
2366 PyObject * obj1 = 0 ;
2367 PyObject * obj2 = 0 ;
d14a1e28
RD
2368 char *kwnames[] = {
2369 (char *) "colour",(char *) "width",(char *) "style", NULL
2370 };
2371
8edf1c75 2372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
2373 {
2374 arg1 = &temp1;
2375 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2376 }
8edf1c75 2377 if (obj1) {
2f4c0a16
RD
2378 arg2 = (int) SWIG_AsInt(obj1);
2379 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
2380 }
2381 if (obj2) {
2f4c0a16
RD
2382 arg3 = (int) SWIG_AsInt(obj2);
2383 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2384 }
d14a1e28
RD
2385 {
2386 PyThreadState* __tstate = wxPyBeginAllowThreads();
2387 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2388
2389 wxPyEndAllowThreads(__tstate);
2390 if (PyErr_Occurred()) SWIG_fail;
2391 }
2f4c0a16 2392 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
d14a1e28
RD
2393 return resultobj;
2394 fail:
2395 return NULL;
2396}
2397
2398
2399static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2400 PyObject *resultobj;
2401 wxPyPen *arg1 = (wxPyPen *) 0 ;
2402 PyObject * obj0 = 0 ;
2403 char *kwnames[] = {
2404 (char *) "self", NULL
2405 };
2406
2407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2410 {
2411 PyThreadState* __tstate = wxPyBeginAllowThreads();
2412 delete arg1;
2413
2414 wxPyEndAllowThreads(__tstate);
2415 if (PyErr_Occurred()) SWIG_fail;
2416 }
2417 Py_INCREF(Py_None); resultobj = Py_None;
2418 return resultobj;
2419 fail:
2420 return NULL;
2421}
2422
2423
2424static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2425 PyObject *resultobj;
2426 wxPyPen *arg1 = (wxPyPen *) 0 ;
2427 int arg2 ;
2428 wxDash *arg3 = (wxDash *) 0 ;
2429 PyObject * obj0 = 0 ;
2430 PyObject * obj1 = 0 ;
2431 char *kwnames[] = {
2432 (char *) "self",(char *) "dashes", NULL
2433 };
2434
2435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2438 {
2439 arg2 = PyList_Size(obj1);
2440 arg3 = (wxDash*)byte_LIST_helper(obj1);
2441 if (arg3 == NULL) SWIG_fail;
2442 }
2443 {
2444 PyThreadState* __tstate = wxPyBeginAllowThreads();
2445 (arg1)->SetDashes(arg2,arg3);
2446
2447 wxPyEndAllowThreads(__tstate);
2448 if (PyErr_Occurred()) SWIG_fail;
2449 }
2450 Py_INCREF(Py_None); resultobj = Py_None;
2451 {
2452 if (arg3) delete [] arg3;
2453 }
2454 return resultobj;
2455 fail:
2456 {
2457 if (arg3) delete [] arg3;
2458 }
2459 return NULL;
2460}
2461
2462
2463static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2464 PyObject *obj;
2465 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2466 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2467 Py_INCREF(obj);
2468 return Py_BuildValue((char *)"");
2469}
2470static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2471 PyObject *resultobj;
2472 wxColour *arg1 = 0 ;
2473 int arg2 = (int) wxSOLID ;
2474 wxBrush *result;
2475 wxColour temp1 ;
2476 PyObject * obj0 = 0 ;
8edf1c75 2477 PyObject * obj1 = 0 ;
d14a1e28
RD
2478 char *kwnames[] = {
2479 (char *) "colour",(char *) "style", NULL
2480 };
2481
8edf1c75 2482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2483 {
2484 arg1 = &temp1;
2485 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2486 }
8edf1c75 2487 if (obj1) {
2f4c0a16
RD
2488 arg2 = (int) SWIG_AsInt(obj1);
2489 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2490 }
d14a1e28
RD
2491 {
2492 PyThreadState* __tstate = wxPyBeginAllowThreads();
2493 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2494
2495 wxPyEndAllowThreads(__tstate);
2496 if (PyErr_Occurred()) SWIG_fail;
2497 }
2f4c0a16 2498 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
d14a1e28
RD
2499 return resultobj;
2500 fail:
2501 return NULL;
2502}
2503
2504
2505static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2506 PyObject *resultobj;
2507 wxBrush *arg1 = (wxBrush *) 0 ;
2508 PyObject * obj0 = 0 ;
2509 char *kwnames[] = {
2510 (char *) "self", NULL
2511 };
2512
2513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2516 {
2517 PyThreadState* __tstate = wxPyBeginAllowThreads();
2518 delete arg1;
2519
2520 wxPyEndAllowThreads(__tstate);
2521 if (PyErr_Occurred()) SWIG_fail;
2522 }
2523 Py_INCREF(Py_None); resultobj = Py_None;
2524 return resultobj;
2525 fail:
2526 return NULL;
2527}
2528
2529
2530static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2531 PyObject *resultobj;
2532 wxBrush *arg1 = (wxBrush *) 0 ;
2533 wxColour *arg2 = 0 ;
2534 wxColour temp2 ;
2535 PyObject * obj0 = 0 ;
2536 PyObject * obj1 = 0 ;
2537 char *kwnames[] = {
2538 (char *) "self",(char *) "col", NULL
2539 };
2540
2541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2544 {
2545 arg2 = &temp2;
2546 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2547 }
2548 {
2549 PyThreadState* __tstate = wxPyBeginAllowThreads();
2550 (arg1)->SetColour((wxColour const &)*arg2);
2551
2552 wxPyEndAllowThreads(__tstate);
2553 if (PyErr_Occurred()) SWIG_fail;
2554 }
2555 Py_INCREF(Py_None); resultobj = Py_None;
2556 return resultobj;
2557 fail:
2558 return NULL;
2559}
2560
2561
2562static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2563 PyObject *resultobj;
2564 wxBrush *arg1 = (wxBrush *) 0 ;
2565 int arg2 ;
2566 PyObject * obj0 = 0 ;
8edf1c75 2567 PyObject * obj1 = 0 ;
d14a1e28
RD
2568 char *kwnames[] = {
2569 (char *) "self",(char *) "style", NULL
2570 };
2571
8edf1c75 2572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2575 arg2 = (int) SWIG_AsInt(obj1);
2576 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2577 {
2578 PyThreadState* __tstate = wxPyBeginAllowThreads();
2579 (arg1)->SetStyle(arg2);
2580
2581 wxPyEndAllowThreads(__tstate);
2582 if (PyErr_Occurred()) SWIG_fail;
2583 }
2584 Py_INCREF(Py_None); resultobj = Py_None;
2585 return resultobj;
2586 fail:
2587 return NULL;
2588}
2589
2590
2591static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2592 PyObject *resultobj;
2593 wxBrush *arg1 = (wxBrush *) 0 ;
2594 wxBitmap *arg2 = 0 ;
2595 PyObject * obj0 = 0 ;
2596 PyObject * obj1 = 0 ;
2597 char *kwnames[] = {
2598 (char *) "self",(char *) "stipple", NULL
2599 };
2600
2601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2604 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2605 SWIG_POINTER_EXCEPTION | 0)) == -1)
2606 SWIG_fail;
d14a1e28 2607 if (arg2 == NULL) {
2f4c0a16
RD
2608 PyErr_SetString(PyExc_TypeError,"null reference");
2609 SWIG_fail;
d14a1e28
RD
2610 }
2611 {
2612 PyThreadState* __tstate = wxPyBeginAllowThreads();
2613 (arg1)->SetStipple((wxBitmap const &)*arg2);
2614
2615 wxPyEndAllowThreads(__tstate);
2616 if (PyErr_Occurred()) SWIG_fail;
2617 }
2618 Py_INCREF(Py_None); resultobj = Py_None;
2619 return resultobj;
2620 fail:
2621 return NULL;
2622}
2623
2624
2625static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2626 PyObject *resultobj;
2627 wxBrush *arg1 = (wxBrush *) 0 ;
2628 wxColour result;
2629 PyObject * obj0 = 0 ;
2630 char *kwnames[] = {
2631 (char *) "self", NULL
2632 };
2633
2634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2637 {
2638 PyThreadState* __tstate = wxPyBeginAllowThreads();
2639 result = ((wxBrush const *)arg1)->GetColour();
2640
2641 wxPyEndAllowThreads(__tstate);
2642 if (PyErr_Occurred()) SWIG_fail;
2643 }
2644 {
2645 wxColour * resultptr;
2646 resultptr = new wxColour((wxColour &) result);
2f4c0a16 2647 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
2648 }
2649 return resultobj;
2650 fail:
2651 return NULL;
2652}
2653
2654
2655static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2656 PyObject *resultobj;
2657 wxBrush *arg1 = (wxBrush *) 0 ;
2658 int result;
2659 PyObject * obj0 = 0 ;
2660 char *kwnames[] = {
2661 (char *) "self", NULL
2662 };
2663
2664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2667 {
2668 PyThreadState* __tstate = wxPyBeginAllowThreads();
2669 result = (int)((wxBrush const *)arg1)->GetStyle();
2670
2671 wxPyEndAllowThreads(__tstate);
2672 if (PyErr_Occurred()) SWIG_fail;
2673 }
2f4c0a16 2674 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
2675 return resultobj;
2676 fail:
2677 return NULL;
2678}
2679
2680
2681static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2682 PyObject *resultobj;
2683 wxBrush *arg1 = (wxBrush *) 0 ;
2684 wxBitmap *result;
2685 PyObject * obj0 = 0 ;
2686 char *kwnames[] = {
2687 (char *) "self", NULL
2688 };
2689
2690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2693 {
2694 PyThreadState* __tstate = wxPyBeginAllowThreads();
2695 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2696
2697 wxPyEndAllowThreads(__tstate);
2698 if (PyErr_Occurred()) SWIG_fail;
2699 }
2f4c0a16 2700 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
d14a1e28
RD
2701 return resultobj;
2702 fail:
2703 return NULL;
2704}
2705
2706
2707static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2708 PyObject *resultobj;
2709 wxBrush *arg1 = (wxBrush *) 0 ;
2710 bool result;
2711 PyObject * obj0 = 0 ;
2712 char *kwnames[] = {
2713 (char *) "self", NULL
2714 };
2715
2716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2719 {
2720 PyThreadState* __tstate = wxPyBeginAllowThreads();
2721 result = (bool)(arg1)->Ok();
2722
2723 wxPyEndAllowThreads(__tstate);
2724 if (PyErr_Occurred()) SWIG_fail;
2725 }
4f89f6a3
RD
2726 {
2727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2728 }
d14a1e28
RD
2729 return resultobj;
2730 fail:
2731 return NULL;
2732}
2733
2734
2735static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2736 PyObject *obj;
2737 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2738 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2739 Py_INCREF(obj);
2740 return Py_BuildValue((char *)"");
2741}
2742static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2743 PyObject *resultobj;
2744 wxString *arg1 = 0 ;
2745 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2746 wxBitmap *result;
423f194a 2747 bool temp1 = False ;
d14a1e28 2748 PyObject * obj0 = 0 ;
8edf1c75 2749 PyObject * obj1 = 0 ;
d14a1e28
RD
2750 char *kwnames[] = {
2751 (char *) "name",(char *) "type", NULL
2752 };
2753
8edf1c75 2754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2755 {
2756 arg1 = wxString_in_helper(obj0);
2757 if (arg1 == NULL) SWIG_fail;
423f194a 2758 temp1 = True;
d14a1e28 2759 }
8edf1c75 2760 if (obj1) {
2f4c0a16
RD
2761 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2762 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2763 }
d14a1e28
RD
2764 {
2765 PyThreadState* __tstate = wxPyBeginAllowThreads();
2766 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2767
2768 wxPyEndAllowThreads(__tstate);
2769 if (PyErr_Occurred()) SWIG_fail;
2770 }
2f4c0a16 2771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2772 {
2773 if (temp1)
2774 delete arg1;
2775 }
2776 return resultobj;
2777 fail:
2778 {
2779 if (temp1)
2780 delete arg1;
2781 }
2782 return NULL;
2783}
2784
2785
2786static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2787 PyObject *resultobj;
2788 wxBitmap *arg1 = (wxBitmap *) 0 ;
2789 PyObject * obj0 = 0 ;
2790 char *kwnames[] = {
2791 (char *) "self", NULL
2792 };
2793
2794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2797 {
2798 PyThreadState* __tstate = wxPyBeginAllowThreads();
2799 delete arg1;
2800
2801 wxPyEndAllowThreads(__tstate);
2802 if (PyErr_Occurred()) SWIG_fail;
2803 }
2804 Py_INCREF(Py_None); resultobj = Py_None;
2805 return resultobj;
2806 fail:
2807 return NULL;
2808}
2809
2810
2811static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2812 PyObject *resultobj;
2813 int arg1 ;
2814 int arg2 ;
2815 int arg3 = (int) -1 ;
2816 wxBitmap *result;
8edf1c75
RD
2817 PyObject * obj0 = 0 ;
2818 PyObject * obj1 = 0 ;
2819 PyObject * obj2 = 0 ;
d14a1e28
RD
2820 char *kwnames[] = {
2821 (char *) "width",(char *) "height",(char *) "depth", NULL
2822 };
2823
8edf1c75 2824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
2825 arg1 = (int) SWIG_AsInt(obj0);
2826 if (PyErr_Occurred()) SWIG_fail;
2827 arg2 = (int) SWIG_AsInt(obj1);
2828 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2829 if (obj2) {
2f4c0a16
RD
2830 arg3 = (int) SWIG_AsInt(obj2);
2831 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2832 }
d14a1e28
RD
2833 {
2834 PyThreadState* __tstate = wxPyBeginAllowThreads();
2835 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2836
2837 wxPyEndAllowThreads(__tstate);
2838 if (PyErr_Occurred()) SWIG_fail;
2839 }
2f4c0a16 2840 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2841 return resultobj;
2842 fail:
2843 return NULL;
2844}
2845
2846
2847static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2848 PyObject *resultobj;
2849 wxIcon *arg1 = 0 ;
2850 wxBitmap *result;
2851 PyObject * obj0 = 0 ;
2852 char *kwnames[] = {
2853 (char *) "icon", NULL
2854 };
2855
2856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2858 SWIG_POINTER_EXCEPTION | 0)) == -1)
2859 SWIG_fail;
d14a1e28 2860 if (arg1 == NULL) {
2f4c0a16
RD
2861 PyErr_SetString(PyExc_TypeError,"null reference");
2862 SWIG_fail;
d14a1e28
RD
2863 }
2864 {
2865 PyThreadState* __tstate = wxPyBeginAllowThreads();
2866 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2867
2868 wxPyEndAllowThreads(__tstate);
2869 if (PyErr_Occurred()) SWIG_fail;
2870 }
2f4c0a16 2871 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2872 return resultobj;
2873 fail:
2874 return NULL;
2875}
2876
2877
2878static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2879 PyObject *resultobj;
2880 wxImage *arg1 = 0 ;
2881 int arg2 = (int) -1 ;
2882 wxBitmap *result;
2883 PyObject * obj0 = 0 ;
8edf1c75 2884 PyObject * obj1 = 0 ;
d14a1e28
RD
2885 char *kwnames[] = {
2886 (char *) "image",(char *) "depth", NULL
2887 };
2888
8edf1c75 2889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2891 SWIG_POINTER_EXCEPTION | 0)) == -1)
2892 SWIG_fail;
d14a1e28 2893 if (arg1 == NULL) {
2f4c0a16
RD
2894 PyErr_SetString(PyExc_TypeError,"null reference");
2895 SWIG_fail;
d14a1e28 2896 }
8edf1c75 2897 if (obj1) {
2f4c0a16
RD
2898 arg2 = (int) SWIG_AsInt(obj1);
2899 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2900 }
d14a1e28
RD
2901 {
2902 PyThreadState* __tstate = wxPyBeginAllowThreads();
2903 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2904
2905 wxPyEndAllowThreads(__tstate);
2906 if (PyErr_Occurred()) SWIG_fail;
2907 }
2f4c0a16 2908 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2909 return resultobj;
2910 fail:
2911 return NULL;
2912}
2913
2914
2915static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2916 PyObject *resultobj;
2917 PyObject *arg1 = (PyObject *) 0 ;
2918 wxBitmap *result;
2919 PyObject * obj0 = 0 ;
2920 char *kwnames[] = {
2921 (char *) "listOfStrings", NULL
2922 };
2923
2924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2925 arg1 = obj0;
2926 {
2927 PyThreadState* __tstate = wxPyBeginAllowThreads();
2928 result = (wxBitmap *)new_wxBitmap(arg1);
2929
2930 wxPyEndAllowThreads(__tstate);
2931 if (PyErr_Occurred()) SWIG_fail;
2932 }
2f4c0a16 2933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2934 return resultobj;
2935 fail:
2936 return NULL;
2937}
2938
2939
2940static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2941 PyObject *resultobj;
2942 PyObject *arg1 = (PyObject *) 0 ;
2943 int arg2 ;
2944 int arg3 ;
2945 int arg4 = (int) 1 ;
2946 wxBitmap *result;
2947 PyObject * obj0 = 0 ;
8edf1c75
RD
2948 PyObject * obj1 = 0 ;
2949 PyObject * obj2 = 0 ;
2950 PyObject * obj3 = 0 ;
d14a1e28
RD
2951 char *kwnames[] = {
2952 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2953 };
2954
8edf1c75 2955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 2956 arg1 = obj0;
2f4c0a16
RD
2957 arg2 = (int) SWIG_AsInt(obj1);
2958 if (PyErr_Occurred()) SWIG_fail;
2959 arg3 = (int) SWIG_AsInt(obj2);
2960 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2961 if (obj3) {
2f4c0a16
RD
2962 arg4 = (int) SWIG_AsInt(obj3);
2963 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2964 }
d14a1e28
RD
2965 {
2966 PyThreadState* __tstate = wxPyBeginAllowThreads();
2967 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2968
2969 wxPyEndAllowThreads(__tstate);
2970 if (PyErr_Occurred()) SWIG_fail;
2971 }
2f4c0a16 2972 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2973 return resultobj;
2974 fail:
2975 return NULL;
2976}
2977
2978
2979static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2980 PyObject *resultobj;
2981 wxBitmap *arg1 = (wxBitmap *) 0 ;
2982 wxPalette *arg2 = 0 ;
2983 PyObject * obj0 = 0 ;
2984 PyObject * obj1 = 0 ;
2985 char *kwnames[] = {
2986 (char *) "self",(char *) "palette", NULL
2987 };
2988
2989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2992 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
2993 SWIG_POINTER_EXCEPTION | 0)) == -1)
2994 SWIG_fail;
d14a1e28 2995 if (arg2 == NULL) {
2f4c0a16
RD
2996 PyErr_SetString(PyExc_TypeError,"null reference");
2997 SWIG_fail;
d14a1e28
RD
2998 }
2999 {
3000 PyThreadState* __tstate = wxPyBeginAllowThreads();
3001 (arg1)->SetPalette(*arg2);
3002
3003 wxPyEndAllowThreads(__tstate);
3004 if (PyErr_Occurred()) SWIG_fail;
3005 }
3006 Py_INCREF(Py_None); resultobj = Py_None;
3007 return resultobj;
3008 fail:
3009 return NULL;
3010}
3011
3012
3013static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3014 PyObject *resultobj;
3015 wxBitmap *arg1 = (wxBitmap *) 0 ;
3016 long result;
3017 PyObject * obj0 = 0 ;
3018 char *kwnames[] = {
3019 (char *) "self", NULL
3020 };
3021
3022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3025 {
3026 PyThreadState* __tstate = wxPyBeginAllowThreads();
3027 result = (long)(arg1)->GetHandle();
3028
3029 wxPyEndAllowThreads(__tstate);
3030 if (PyErr_Occurred()) SWIG_fail;
3031 }
2f4c0a16 3032 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
3033 return resultobj;
3034 fail:
3035 return NULL;
3036}
3037
3038
3039static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3040 PyObject *resultobj;
3041 wxBitmap *arg1 = (wxBitmap *) 0 ;
3042 long arg2 ;
3043 PyObject * obj0 = 0 ;
8edf1c75 3044 PyObject * obj1 = 0 ;
d14a1e28
RD
3045 char *kwnames[] = {
3046 (char *) "self",(char *) "handle", NULL
3047 };
3048
8edf1c75 3049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3052 arg2 = (long) SWIG_AsLong(obj1);
3053 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3054 {
3055 PyThreadState* __tstate = wxPyBeginAllowThreads();
2f4c0a16 3056 wxBitmap_SetHandle(arg1,arg2);
d14a1e28
RD
3057
3058 wxPyEndAllowThreads(__tstate);
3059 if (PyErr_Occurred()) SWIG_fail;
3060 }
3061 Py_INCREF(Py_None); resultobj = Py_None;
3062 return resultobj;
3063 fail:
3064 return NULL;
3065}
3066
3067
3068static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3069 PyObject *resultobj;
3070 wxBitmap *arg1 = (wxBitmap *) 0 ;
3071 bool result;
3072 PyObject * obj0 = 0 ;
3073 char *kwnames[] = {
3074 (char *) "self", NULL
3075 };
3076
3077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3080 {
3081 PyThreadState* __tstate = wxPyBeginAllowThreads();
3082 result = (bool)(arg1)->Ok();
3083
3084 wxPyEndAllowThreads(__tstate);
3085 if (PyErr_Occurred()) SWIG_fail;
3086 }
4f89f6a3
RD
3087 {
3088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3089 }
d14a1e28
RD
3090 return resultobj;
3091 fail:
3092 return NULL;
3093}
3094
3095
3096static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3097 PyObject *resultobj;
3098 wxBitmap *arg1 = (wxBitmap *) 0 ;
3099 int result;
3100 PyObject * obj0 = 0 ;
3101 char *kwnames[] = {
3102 (char *) "self", NULL
3103 };
3104
3105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3108 {
3109 PyThreadState* __tstate = wxPyBeginAllowThreads();
3110 result = (int)(arg1)->GetWidth();
3111
3112 wxPyEndAllowThreads(__tstate);
3113 if (PyErr_Occurred()) SWIG_fail;
3114 }
2f4c0a16 3115 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3116 return resultobj;
3117 fail:
3118 return NULL;
3119}
3120
3121
3122static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3123 PyObject *resultobj;
3124 wxBitmap *arg1 = (wxBitmap *) 0 ;
3125 int result;
3126 PyObject * obj0 = 0 ;
3127 char *kwnames[] = {
3128 (char *) "self", NULL
3129 };
3130
3131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3134 {
3135 PyThreadState* __tstate = wxPyBeginAllowThreads();
3136 result = (int)(arg1)->GetHeight();
3137
3138 wxPyEndAllowThreads(__tstate);
3139 if (PyErr_Occurred()) SWIG_fail;
3140 }
2f4c0a16 3141 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3142 return resultobj;
3143 fail:
3144 return NULL;
3145}
3146
3147
3148static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3149 PyObject *resultobj;
3150 wxBitmap *arg1 = (wxBitmap *) 0 ;
3151 int result;
3152 PyObject * obj0 = 0 ;
3153 char *kwnames[] = {
3154 (char *) "self", NULL
3155 };
3156
3157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3160 {
3161 PyThreadState* __tstate = wxPyBeginAllowThreads();
3162 result = (int)(arg1)->GetDepth();
3163
3164 wxPyEndAllowThreads(__tstate);
3165 if (PyErr_Occurred()) SWIG_fail;
3166 }
2f4c0a16 3167 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3168 return resultobj;
3169 fail:
3170 return NULL;
3171}
3172
3173
3174static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3175 PyObject *resultobj;
3176 wxBitmap *arg1 = (wxBitmap *) 0 ;
3177 SwigValueWrapper< wxImage > result;
3178 PyObject * obj0 = 0 ;
3179 char *kwnames[] = {
3180 (char *) "self", NULL
3181 };
3182
3183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3186 {
3187 PyThreadState* __tstate = wxPyBeginAllowThreads();
3188 result = ((wxBitmap const *)arg1)->ConvertToImage();
3189
3190 wxPyEndAllowThreads(__tstate);
3191 if (PyErr_Occurred()) SWIG_fail;
3192 }
3193 {
3194 wxImage * resultptr;
3195 resultptr = new wxImage((wxImage &) result);
2f4c0a16 3196 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
d14a1e28
RD
3197 }
3198 return resultobj;
3199 fail:
3200 return NULL;
3201}
3202
3203
3204static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3205 PyObject *resultobj;
3206 wxBitmap *arg1 = (wxBitmap *) 0 ;
3207 wxMask *result;
3208 PyObject * obj0 = 0 ;
3209 char *kwnames[] = {
3210 (char *) "self", NULL
3211 };
3212
3213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3216 {
3217 PyThreadState* __tstate = wxPyBeginAllowThreads();
3218 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3219
3220 wxPyEndAllowThreads(__tstate);
3221 if (PyErr_Occurred()) SWIG_fail;
3222 }
2f4c0a16 3223 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
d14a1e28
RD
3224 return resultobj;
3225 fail:
3226 return NULL;
3227}
3228
3229
3230static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3231 PyObject *resultobj;
3232 wxBitmap *arg1 = (wxBitmap *) 0 ;
3233 wxMask *arg2 = (wxMask *) 0 ;
3234 PyObject * obj0 = 0 ;
3235 PyObject * obj1 = 0 ;
3236 char *kwnames[] = {
3237 (char *) "self",(char *) "mask", NULL
3238 };
3239
3240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3243 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3245 {
3246 PyThreadState* __tstate = wxPyBeginAllowThreads();
3247 (arg1)->SetMask(arg2);
3248
3249 wxPyEndAllowThreads(__tstate);
3250 if (PyErr_Occurred()) SWIG_fail;
3251 }
3252 Py_INCREF(Py_None); resultobj = Py_None;
3253 return resultobj;
3254 fail:
3255 return NULL;
3256}
3257
3258
3259static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3260 PyObject *resultobj;
3261 wxBitmap *arg1 = (wxBitmap *) 0 ;
3262 wxColour *arg2 = 0 ;
3263 wxColour temp2 ;
3264 PyObject * obj0 = 0 ;
3265 PyObject * obj1 = 0 ;
3266 char *kwnames[] = {
3267 (char *) "self",(char *) "colour", NULL
3268 };
3269
3270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3273 {
3274 arg2 = &temp2;
3275 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3276 }
3277 {
3278 PyThreadState* __tstate = wxPyBeginAllowThreads();
3279 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3280
3281 wxPyEndAllowThreads(__tstate);
3282 if (PyErr_Occurred()) SWIG_fail;
3283 }
3284 Py_INCREF(Py_None); resultobj = Py_None;
3285 return resultobj;
3286 fail:
3287 return NULL;
3288}
3289
3290
3291static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3292 PyObject *resultobj;
3293 wxBitmap *arg1 = (wxBitmap *) 0 ;
3294 wxRect *arg2 = 0 ;
3295 SwigValueWrapper< wxBitmap > result;
3296 wxRect temp2 ;
3297 PyObject * obj0 = 0 ;
3298 PyObject * obj1 = 0 ;
3299 char *kwnames[] = {
3300 (char *) "self",(char *) "rect", NULL
3301 };
3302
3303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3306 {
3307 arg2 = &temp2;
3308 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3309 }
3310 {
3311 PyThreadState* __tstate = wxPyBeginAllowThreads();
3312 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3313
3314 wxPyEndAllowThreads(__tstate);
3315 if (PyErr_Occurred()) SWIG_fail;
3316 }
3317 {
3318 wxBitmap * resultptr;
3319 resultptr = new wxBitmap((wxBitmap &) result);
2f4c0a16 3320 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
3321 }
3322 return resultobj;
3323 fail:
3324 return NULL;
3325}
3326
3327
3328static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3329 PyObject *resultobj;
3330 wxBitmap *arg1 = (wxBitmap *) 0 ;
3331 wxString *arg2 = 0 ;
3332 int arg3 ;
3333 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3334 bool result;
423f194a 3335 bool temp2 = False ;
d14a1e28
RD
3336 PyObject * obj0 = 0 ;
3337 PyObject * obj1 = 0 ;
8edf1c75 3338 PyObject * obj2 = 0 ;
d14a1e28
RD
3339 PyObject * obj3 = 0 ;
3340 char *kwnames[] = {
3341 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3342 };
3343
8edf1c75 3344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
3345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3347 {
3348 arg2 = wxString_in_helper(obj1);
3349 if (arg2 == NULL) SWIG_fail;
423f194a 3350 temp2 = True;
d14a1e28 3351 }
2f4c0a16
RD
3352 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3353 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3354 if (obj3) {
2f4c0a16
RD
3355 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3357 }
3358 {
3359 PyThreadState* __tstate = wxPyBeginAllowThreads();
3360 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3361
3362 wxPyEndAllowThreads(__tstate);
3363 if (PyErr_Occurred()) SWIG_fail;
3364 }
4f89f6a3
RD
3365 {
3366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3367 }
d14a1e28
RD
3368 {
3369 if (temp2)
3370 delete arg2;
3371 }
3372 return resultobj;
3373 fail:
3374 {
3375 if (temp2)
3376 delete arg2;
3377 }
3378 return NULL;
3379}
3380
3381
3382static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3383 PyObject *resultobj;
3384 wxBitmap *arg1 = (wxBitmap *) 0 ;
3385 wxString *arg2 = 0 ;
3386 int arg3 ;
3387 bool result;
423f194a 3388 bool temp2 = False ;
d14a1e28
RD
3389 PyObject * obj0 = 0 ;
3390 PyObject * obj1 = 0 ;
8edf1c75 3391 PyObject * obj2 = 0 ;
d14a1e28
RD
3392 char *kwnames[] = {
3393 (char *) "self",(char *) "name",(char *) "type", NULL
3394 };
3395
8edf1c75 3396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
3397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3399 {
3400 arg2 = wxString_in_helper(obj1);
3401 if (arg2 == NULL) SWIG_fail;
423f194a 3402 temp2 = True;
d14a1e28 3403 }
2f4c0a16
RD
3404 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3405 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3406 {
3407 PyThreadState* __tstate = wxPyBeginAllowThreads();
3408 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3409
3410 wxPyEndAllowThreads(__tstate);
3411 if (PyErr_Occurred()) SWIG_fail;
3412 }
4f89f6a3
RD
3413 {
3414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3415 }
d14a1e28
RD
3416 {
3417 if (temp2)
3418 delete arg2;
3419 }
3420 return resultobj;
3421 fail:
3422 {
3423 if (temp2)
3424 delete arg2;
3425 }
3426 return NULL;
3427}
3428
3429
3430static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3431 PyObject *resultobj;
3432 wxBitmap *arg1 = (wxBitmap *) 0 ;
3433 wxIcon *arg2 = 0 ;
3434 bool result;
3435 PyObject * obj0 = 0 ;
3436 PyObject * obj1 = 0 ;
3437 char *kwnames[] = {
3438 (char *) "self",(char *) "icon", NULL
3439 };
3440
3441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3444 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3445 SWIG_POINTER_EXCEPTION | 0)) == -1)
3446 SWIG_fail;
d14a1e28 3447 if (arg2 == NULL) {
2f4c0a16
RD
3448 PyErr_SetString(PyExc_TypeError,"null reference");
3449 SWIG_fail;
d14a1e28
RD
3450 }
3451 {
3452 PyThreadState* __tstate = wxPyBeginAllowThreads();
3453 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3454
3455 wxPyEndAllowThreads(__tstate);
3456 if (PyErr_Occurred()) SWIG_fail;
3457 }
4f89f6a3
RD
3458 {
3459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3460 }
d14a1e28
RD
3461 return resultobj;
3462 fail:
3463 return NULL;
3464}
3465
3466
3467static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3468 PyObject *resultobj;
3469 wxBitmap *arg1 = (wxBitmap *) 0 ;
3470 int arg2 ;
3471 PyObject * obj0 = 0 ;
8edf1c75 3472 PyObject * obj1 = 0 ;
d14a1e28
RD
3473 char *kwnames[] = {
3474 (char *) "self",(char *) "height", NULL
3475 };
3476
8edf1c75 3477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3480 arg2 = (int) SWIG_AsInt(obj1);
3481 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3482 {
3483 PyThreadState* __tstate = wxPyBeginAllowThreads();
3484 (arg1)->SetHeight(arg2);
3485
3486 wxPyEndAllowThreads(__tstate);
3487 if (PyErr_Occurred()) SWIG_fail;
3488 }
3489 Py_INCREF(Py_None); resultobj = Py_None;
3490 return resultobj;
3491 fail:
3492 return NULL;
3493}
3494
3495
3496static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3497 PyObject *resultobj;
3498 wxBitmap *arg1 = (wxBitmap *) 0 ;
3499 int arg2 ;
3500 PyObject * obj0 = 0 ;
8edf1c75 3501 PyObject * obj1 = 0 ;
d14a1e28
RD
3502 char *kwnames[] = {
3503 (char *) "self",(char *) "width", NULL
3504 };
3505
8edf1c75 3506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3509 arg2 = (int) SWIG_AsInt(obj1);
3510 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3511 {
3512 PyThreadState* __tstate = wxPyBeginAllowThreads();
3513 (arg1)->SetWidth(arg2);
3514
3515 wxPyEndAllowThreads(__tstate);
3516 if (PyErr_Occurred()) SWIG_fail;
3517 }
3518 Py_INCREF(Py_None); resultobj = Py_None;
3519 return resultobj;
3520 fail:
3521 return NULL;
3522}
3523
3524
3525static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3526 PyObject *resultobj;
3527 wxBitmap *arg1 = (wxBitmap *) 0 ;
3528 int arg2 ;
3529 PyObject * obj0 = 0 ;
8edf1c75 3530 PyObject * obj1 = 0 ;
d14a1e28
RD
3531 char *kwnames[] = {
3532 (char *) "self",(char *) "depth", NULL
3533 };
3534
8edf1c75 3535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3538 arg2 = (int) SWIG_AsInt(obj1);
3539 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3540 {
3541 PyThreadState* __tstate = wxPyBeginAllowThreads();
3542 (arg1)->SetDepth(arg2);
3543
3544 wxPyEndAllowThreads(__tstate);
3545 if (PyErr_Occurred()) SWIG_fail;
3546 }
3547 Py_INCREF(Py_None); resultobj = Py_None;
3548 return resultobj;
3549 fail:
3550 return NULL;
3551}
3552
3553
3554static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3555 PyObject *resultobj;
3556 wxBitmap *arg1 = (wxBitmap *) 0 ;
3557 wxCursor *arg2 = 0 ;
3558 bool result;
3559 PyObject * obj0 = 0 ;
3560 PyObject * obj1 = 0 ;
3561 char *kwnames[] = {
3562 (char *) "self",(char *) "cursor", NULL
3563 };
3564
3565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3568 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
3569 SWIG_POINTER_EXCEPTION | 0)) == -1)
3570 SWIG_fail;
d14a1e28 3571 if (arg2 == NULL) {
2f4c0a16
RD
3572 PyErr_SetString(PyExc_TypeError,"null reference");
3573 SWIG_fail;
d14a1e28
RD
3574 }
3575 {
3576 PyThreadState* __tstate = wxPyBeginAllowThreads();
3577 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3578
3579 wxPyEndAllowThreads(__tstate);
3580 if (PyErr_Occurred()) SWIG_fail;
3581 }
4f89f6a3
RD
3582 {
3583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3584 }
d14a1e28
RD
3585 return resultobj;
3586 fail:
3587 return NULL;
3588}
3589
3590
3591static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3592 PyObject *resultobj;
3593 wxBitmap *arg1 = (wxBitmap *) 0 ;
3594 int result;
3595 PyObject * obj0 = 0 ;
3596 char *kwnames[] = {
3597 (char *) "self", NULL
3598 };
3599
3600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
3605 result = (int)(arg1)->GetQuality();
3606
3607 wxPyEndAllowThreads(__tstate);
3608 if (PyErr_Occurred()) SWIG_fail;
3609 }
2f4c0a16 3610 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3611 return resultobj;
3612 fail:
3613 return NULL;
3614}
3615
3616
3617static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3618 PyObject *resultobj;
3619 wxBitmap *arg1 = (wxBitmap *) 0 ;
3620 int arg2 ;
3621 PyObject * obj0 = 0 ;
8edf1c75 3622 PyObject * obj1 = 0 ;
d14a1e28
RD
3623 char *kwnames[] = {
3624 (char *) "self",(char *) "q", NULL
3625 };
3626
8edf1c75 3627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3630 arg2 = (int) SWIG_AsInt(obj1);
3631 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
3632 {
3633 PyThreadState* __tstate = wxPyBeginAllowThreads();
3634 (arg1)->SetQuality(arg2);
d14a1e28
RD
3635
3636 wxPyEndAllowThreads(__tstate);
3637 if (PyErr_Occurred()) SWIG_fail;
3638 }
3639 Py_INCREF(Py_None); resultobj = Py_None;
3640 return resultobj;
3641 fail:
3642 return NULL;
3643}
3644
3645
fe763115
RD
3646static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3647 PyObject *resultobj;
3648 wxBitmap *arg1 = (wxBitmap *) 0 ;
3649 wxBitmap *arg2 = (wxBitmap *) 0 ;
3650 bool result;
3651 PyObject * obj0 = 0 ;
3652 PyObject * obj1 = 0 ;
3653 char *kwnames[] = {
3654 (char *) "self",(char *) "other", NULL
3655 };
3656
3657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3660 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3662 {
3663 PyThreadState* __tstate = wxPyBeginAllowThreads();
3664 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3665
3666 wxPyEndAllowThreads(__tstate);
3667 if (PyErr_Occurred()) SWIG_fail;
3668 }
4f89f6a3
RD
3669 {
3670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3671 }
fe763115
RD
3672 return resultobj;
3673 fail:
3674 return NULL;
3675}
3676
3677
3678static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3679 PyObject *resultobj;
3680 wxBitmap *arg1 = (wxBitmap *) 0 ;
3681 wxBitmap *arg2 = (wxBitmap *) 0 ;
3682 bool result;
3683 PyObject * obj0 = 0 ;
3684 PyObject * obj1 = 0 ;
3685 char *kwnames[] = {
3686 (char *) "self",(char *) "other", NULL
3687 };
3688
3689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3692 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3694 {
3695 PyThreadState* __tstate = wxPyBeginAllowThreads();
3696 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3697
3698 wxPyEndAllowThreads(__tstate);
3699 if (PyErr_Occurred()) SWIG_fail;
3700 }
4f89f6a3
RD
3701 {
3702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3703 }
fe763115
RD
3704 return resultobj;
3705 fail:
3706 return NULL;
3707}
3708
3709
d14a1e28
RD
3710static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3711 PyObject *obj;
3712 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3713 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3714 Py_INCREF(obj);
3715 return Py_BuildValue((char *)"");
3716}
3717static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3718 PyObject *resultobj;
3719 wxBitmap *arg1 = 0 ;
0ffb2aa6
RD
3720 wxColour const &arg2_defvalue = wxNullColour ;
3721 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
d14a1e28
RD
3722 wxMask *result;
3723 wxColour temp2 ;
3724 PyObject * obj0 = 0 ;
3725 PyObject * obj1 = 0 ;
3726 char *kwnames[] = {
3727 (char *) "bitmap",(char *) "colour", NULL
3728 };
3729
0ffb2aa6 3730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3732 SWIG_POINTER_EXCEPTION | 0)) == -1)
3733 SWIG_fail;
d14a1e28 3734 if (arg1 == NULL) {
2f4c0a16
RD
3735 PyErr_SetString(PyExc_TypeError,"null reference");
3736 SWIG_fail;
d14a1e28 3737 }
0ffb2aa6
RD
3738 if (obj1) {
3739 {
3740 arg2 = &temp2;
3741 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3742 }
d14a1e28
RD
3743 }
3744 {
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
0ffb2aa6 3746 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
d14a1e28
RD
3747
3748 wxPyEndAllowThreads(__tstate);
3749 if (PyErr_Occurred()) SWIG_fail;
3750 }
2f4c0a16 3751 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
d14a1e28
RD
3752 return resultobj;
3753 fail:
3754 return NULL;
3755}
3756
3757
3758static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3759 PyObject *obj;
3760 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3761 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3762 Py_INCREF(obj);
3763 return Py_BuildValue((char *)"");
3764}
3765static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3766 PyObject *resultobj;
3767 wxString *arg1 = 0 ;
eb9b6107 3768 int arg2 ;
d14a1e28
RD
3769 int arg3 = (int) -1 ;
3770 int arg4 = (int) -1 ;
3771 wxIcon *result;
423f194a 3772 bool temp1 = False ;
d14a1e28 3773 PyObject * obj0 = 0 ;
8edf1c75
RD
3774 PyObject * obj1 = 0 ;
3775 PyObject * obj2 = 0 ;
3776 PyObject * obj3 = 0 ;
d14a1e28 3777 char *kwnames[] = {
eb9b6107 3778 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
d14a1e28
RD
3779 };
3780
8edf1c75 3781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
3782 {
3783 arg1 = wxString_in_helper(obj0);
3784 if (arg1 == NULL) SWIG_fail;
423f194a 3785 temp1 = True;
d14a1e28 3786 }
2f4c0a16
RD
3787 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3788 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 3789 if (obj2) {
2f4c0a16
RD
3790 arg3 = (int) SWIG_AsInt(obj2);
3791 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
3792 }
3793 if (obj3) {
2f4c0a16
RD
3794 arg4 = (int) SWIG_AsInt(obj3);
3795 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 3796 }
d14a1e28
RD
3797 {
3798 PyThreadState* __tstate = wxPyBeginAllowThreads();
eb9b6107 3799 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
d14a1e28
RD
3800
3801 wxPyEndAllowThreads(__tstate);
3802 if (PyErr_Occurred()) SWIG_fail;
3803 }
2f4c0a16 3804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3805 {
3806 if (temp1)
3807 delete arg1;
3808 }
3809 return resultobj;
3810 fail:
3811 {
3812 if (temp1)
3813 delete arg1;
3814 }
3815 return NULL;
3816}
3817
3818
3819static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3820 PyObject *resultobj;
3821 wxIcon *arg1 = (wxIcon *) 0 ;
3822 PyObject * obj0 = 0 ;
3823 char *kwnames[] = {
3824 (char *) "self", NULL
3825 };
3826
3827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3830 {
3831 PyThreadState* __tstate = wxPyBeginAllowThreads();
3832 delete arg1;
3833
3834 wxPyEndAllowThreads(__tstate);
3835 if (PyErr_Occurred()) SWIG_fail;
3836 }
3837 Py_INCREF(Py_None); resultobj = Py_None;
3838 return resultobj;
3839 fail:
3840 return NULL;
3841}
3842
3843
3844static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3845 PyObject *resultobj;
3846 wxIcon *result;
3847 char *kwnames[] = {
3848 NULL
3849 };
3850
3851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3852 {
3853 PyThreadState* __tstate = wxPyBeginAllowThreads();
3854 result = (wxIcon *)new wxIcon();
3855
3856 wxPyEndAllowThreads(__tstate);
3857 if (PyErr_Occurred()) SWIG_fail;
3858 }
2f4c0a16 3859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3860 return resultobj;
3861 fail:
3862 return NULL;
3863}
3864
3865
3866static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3867 PyObject *resultobj;
3868 wxIconLocation *arg1 = 0 ;
3869 wxIcon *result;
3870 PyObject * obj0 = 0 ;
3871 char *kwnames[] = {
3872 (char *) "loc", NULL
3873 };
3874
3875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3877 SWIG_POINTER_EXCEPTION | 0)) == -1)
3878 SWIG_fail;
d14a1e28 3879 if (arg1 == NULL) {
2f4c0a16
RD
3880 PyErr_SetString(PyExc_TypeError,"null reference");
3881 SWIG_fail;
d14a1e28
RD
3882 }
3883 {
3884 PyThreadState* __tstate = wxPyBeginAllowThreads();
3885 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3886
3887 wxPyEndAllowThreads(__tstate);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 }
2f4c0a16 3890 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3891 return resultobj;
3892 fail:
3893 return NULL;
3894}
3895
3896
3897static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3898 PyObject *resultobj;
3899 wxBitmap *arg1 = 0 ;
3900 wxIcon *result;
3901 PyObject * obj0 = 0 ;
3902 char *kwnames[] = {
3903 (char *) "bmp", NULL
3904 };
3905
3906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3908 SWIG_POINTER_EXCEPTION | 0)) == -1)
3909 SWIG_fail;
d14a1e28 3910 if (arg1 == NULL) {
2f4c0a16
RD
3911 PyErr_SetString(PyExc_TypeError,"null reference");
3912 SWIG_fail;
d14a1e28
RD
3913 }
3914 {
3915 PyThreadState* __tstate = wxPyBeginAllowThreads();
3916 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3917
3918 wxPyEndAllowThreads(__tstate);
3919 if (PyErr_Occurred()) SWIG_fail;
3920 }
2f4c0a16 3921 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3922 return resultobj;
3923 fail:
3924 return NULL;
3925}
3926
3927
3928static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3929 PyObject *resultobj;
3930 PyObject *arg1 = (PyObject *) 0 ;
3931 wxIcon *result;
3932 PyObject * obj0 = 0 ;
3933 char *kwnames[] = {
3934 (char *) "listOfStrings", NULL
3935 };
3936
3937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3938 arg1 = obj0;
3939 {
3940 PyThreadState* __tstate = wxPyBeginAllowThreads();
3941 result = (wxIcon *)new_wxIcon(arg1);
3942
3943 wxPyEndAllowThreads(__tstate);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
2f4c0a16 3946 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3947 return resultobj;
3948 fail:
3949 return NULL;
3950}
3951
3952
3953static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3954 PyObject *resultobj;
3955 wxIcon *arg1 = (wxIcon *) 0 ;
3956 wxString *arg2 = 0 ;
eb9b6107 3957 int arg3 ;
d14a1e28 3958 bool result;
423f194a 3959 bool temp2 = False ;
d14a1e28
RD
3960 PyObject * obj0 = 0 ;
3961 PyObject * obj1 = 0 ;
8edf1c75 3962 PyObject * obj2 = 0 ;
d14a1e28 3963 char *kwnames[] = {
eb9b6107 3964 (char *) "self",(char *) "name",(char *) "type", NULL
d14a1e28
RD
3965 };
3966
8edf1c75 3967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
3968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3970 {
3971 arg2 = wxString_in_helper(obj1);
3972 if (arg2 == NULL) SWIG_fail;
423f194a 3973 temp2 = True;
d14a1e28 3974 }
2f4c0a16
RD
3975 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3976 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3977 {
3978 PyThreadState* __tstate = wxPyBeginAllowThreads();
eb9b6107 3979 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
d14a1e28
RD
3980
3981 wxPyEndAllowThreads(__tstate);
3982 if (PyErr_Occurred()) SWIG_fail;
3983 }
4f89f6a3
RD
3984 {
3985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3986 }
d14a1e28
RD
3987 {
3988 if (temp2)
3989 delete arg2;
3990 }
3991 return resultobj;
3992 fail:
3993 {
3994 if (temp2)
3995 delete arg2;
3996 }
3997 return NULL;
3998}
3999
4000
4001static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4002 PyObject *resultobj;
4003 wxIcon *arg1 = (wxIcon *) 0 ;
4004 long result;
4005 PyObject * obj0 = 0 ;
4006 char *kwnames[] = {
4007 (char *) "self", NULL
4008 };
4009
4010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4013 {
4014 PyThreadState* __tstate = wxPyBeginAllowThreads();
4015 result = (long)(arg1)->GetHandle();
4016
4017 wxPyEndAllowThreads(__tstate);
4018 if (PyErr_Occurred()) SWIG_fail;
4019 }
2f4c0a16 4020 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
4021 return resultobj;
4022 fail:
4023 return NULL;
4024}
4025
4026
4027static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4028 PyObject *resultobj;
4029 wxIcon *arg1 = (wxIcon *) 0 ;
4030 long arg2 ;
4031 PyObject * obj0 = 0 ;
8edf1c75 4032 PyObject * obj1 = 0 ;
d14a1e28
RD
4033 char *kwnames[] = {
4034 (char *) "self",(char *) "handle", NULL
4035 };
4036
8edf1c75 4037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4040 arg2 = (long) SWIG_AsLong(obj1);
4041 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4042 {
4043 PyThreadState* __tstate = wxPyBeginAllowThreads();
2f4c0a16 4044 wxIcon_SetHandle(arg1,arg2);
d14a1e28
RD
4045
4046 wxPyEndAllowThreads(__tstate);
4047 if (PyErr_Occurred()) SWIG_fail;
4048 }
4049 Py_INCREF(Py_None); resultobj = Py_None;
4050 return resultobj;
4051 fail:
4052 return NULL;
4053}
4054
4055
4056static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4057 PyObject *resultobj;
4058 wxIcon *arg1 = (wxIcon *) 0 ;
4059 bool result;
4060 PyObject * obj0 = 0 ;
4061 char *kwnames[] = {
4062 (char *) "self", NULL
4063 };
4064
4065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4068 {
4069 PyThreadState* __tstate = wxPyBeginAllowThreads();
4070 result = (bool)(arg1)->Ok();
4071
4072 wxPyEndAllowThreads(__tstate);
4073 if (PyErr_Occurred()) SWIG_fail;
4074 }
4f89f6a3
RD
4075 {
4076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4077 }
d14a1e28
RD
4078 return resultobj;
4079 fail:
4080 return NULL;
4081}
4082
4083
4084static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4085 PyObject *resultobj;
4086 wxIcon *arg1 = (wxIcon *) 0 ;
4087 int result;
4088 PyObject * obj0 = 0 ;
4089 char *kwnames[] = {
4090 (char *) "self", NULL
4091 };
4092
4093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4096 {
4097 PyThreadState* __tstate = wxPyBeginAllowThreads();
4098 result = (int)(arg1)->GetWidth();
4099
4100 wxPyEndAllowThreads(__tstate);
4101 if (PyErr_Occurred()) SWIG_fail;
4102 }
2f4c0a16 4103 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4104 return resultobj;
4105 fail:
4106 return NULL;
4107}
4108
4109
4110static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4111 PyObject *resultobj;
4112 wxIcon *arg1 = (wxIcon *) 0 ;
4113 int result;
4114 PyObject * obj0 = 0 ;
4115 char *kwnames[] = {
4116 (char *) "self", NULL
4117 };
4118
4119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4122 {
4123 PyThreadState* __tstate = wxPyBeginAllowThreads();
4124 result = (int)(arg1)->GetHeight();
4125
4126 wxPyEndAllowThreads(__tstate);
4127 if (PyErr_Occurred()) SWIG_fail;
4128 }
2f4c0a16 4129 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4130 return resultobj;
4131 fail:
4132 return NULL;
4133}
4134
4135
4136static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4137 PyObject *resultobj;
4138 wxIcon *arg1 = (wxIcon *) 0 ;
4139 int result;
4140 PyObject * obj0 = 0 ;
4141 char *kwnames[] = {
4142 (char *) "self", NULL
4143 };
4144
4145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4148 {
4149 PyThreadState* __tstate = wxPyBeginAllowThreads();
4150 result = (int)(arg1)->GetDepth();
4151
4152 wxPyEndAllowThreads(__tstate);
4153 if (PyErr_Occurred()) SWIG_fail;
4154 }
2f4c0a16 4155 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4156 return resultobj;
4157 fail:
4158 return NULL;
4159}
4160
4161
4162static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4163 PyObject *resultobj;
4164 wxIcon *arg1 = (wxIcon *) 0 ;
4165 int arg2 ;
4166 PyObject * obj0 = 0 ;
8edf1c75 4167 PyObject * obj1 = 0 ;
d14a1e28
RD
4168 char *kwnames[] = {
4169 (char *) "self",(char *) "w", NULL
4170 };
4171
8edf1c75 4172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4175 arg2 = (int) SWIG_AsInt(obj1);
4176 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4177 {
4178 PyThreadState* __tstate = wxPyBeginAllowThreads();
4179 (arg1)->SetWidth(arg2);
4180
4181 wxPyEndAllowThreads(__tstate);
4182 if (PyErr_Occurred()) SWIG_fail;
4183 }
4184 Py_INCREF(Py_None); resultobj = Py_None;
4185 return resultobj;
4186 fail:
4187 return NULL;
4188}
4189
4190
4191static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4192 PyObject *resultobj;
4193 wxIcon *arg1 = (wxIcon *) 0 ;
4194 int arg2 ;
4195 PyObject * obj0 = 0 ;
8edf1c75 4196 PyObject * obj1 = 0 ;
d14a1e28
RD
4197 char *kwnames[] = {
4198 (char *) "self",(char *) "h", NULL
4199 };
4200
8edf1c75 4201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4204 arg2 = (int) SWIG_AsInt(obj1);
4205 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4206 {
4207 PyThreadState* __tstate = wxPyBeginAllowThreads();
4208 (arg1)->SetHeight(arg2);
4209
4210 wxPyEndAllowThreads(__tstate);
4211 if (PyErr_Occurred()) SWIG_fail;
4212 }
4213 Py_INCREF(Py_None); resultobj = Py_None;
4214 return resultobj;
4215 fail:
4216 return NULL;
4217}
4218
4219
4220static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4221 PyObject *resultobj;
4222 wxIcon *arg1 = (wxIcon *) 0 ;
4223 int arg2 ;
4224 PyObject * obj0 = 0 ;
8edf1c75 4225 PyObject * obj1 = 0 ;
d14a1e28
RD
4226 char *kwnames[] = {
4227 (char *) "self",(char *) "d", NULL
4228 };
4229
8edf1c75 4230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4233 arg2 = (int) SWIG_AsInt(obj1);
4234 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4235 {
4236 PyThreadState* __tstate = wxPyBeginAllowThreads();
4237 (arg1)->SetDepth(arg2);
4238
4239 wxPyEndAllowThreads(__tstate);
4240 if (PyErr_Occurred()) SWIG_fail;
4241 }
4242 Py_INCREF(Py_None); resultobj = Py_None;
4243 return resultobj;
4244 fail:
4245 return NULL;
4246}
4247
4248
4249static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4250 PyObject *resultobj;
4251 wxIcon *arg1 = (wxIcon *) 0 ;
4252 wxSize *arg2 = 0 ;
4253 wxSize temp2 ;
4254 PyObject * obj0 = 0 ;
4255 PyObject * obj1 = 0 ;
4256 char *kwnames[] = {
4257 (char *) "self",(char *) "size", NULL
4258 };
4259
4260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4263 {
4264 arg2 = &temp2;
4265 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4266 }
4267 {
4268 PyThreadState* __tstate = wxPyBeginAllowThreads();
4269 (arg1)->SetSize((wxSize const &)*arg2);
4270
4271 wxPyEndAllowThreads(__tstate);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 }
4274 Py_INCREF(Py_None); resultobj = Py_None;
4275 return resultobj;
4276 fail:
4277 return NULL;
4278}
4279
4280
4281static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4282 PyObject *resultobj;
4283 wxIcon *arg1 = (wxIcon *) 0 ;
4284 wxBitmap *arg2 = 0 ;
4285 PyObject * obj0 = 0 ;
4286 PyObject * obj1 = 0 ;
4287 char *kwnames[] = {
4288 (char *) "self",(char *) "bmp", NULL
4289 };
4290
4291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4294 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4295 SWIG_POINTER_EXCEPTION | 0)) == -1)
4296 SWIG_fail;
d14a1e28 4297 if (arg2 == NULL) {
2f4c0a16
RD
4298 PyErr_SetString(PyExc_TypeError,"null reference");
4299 SWIG_fail;
d14a1e28
RD
4300 }
4301 {
4302 PyThreadState* __tstate = wxPyBeginAllowThreads();
4303 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4304
4305 wxPyEndAllowThreads(__tstate);
4306 if (PyErr_Occurred()) SWIG_fail;
4307 }
4308 Py_INCREF(Py_None); resultobj = Py_None;
4309 return resultobj;
4310 fail:
4311 return NULL;
4312}
4313
4314
4315static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4316 PyObject *obj;
4317 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4318 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4319 Py_INCREF(obj);
4320 return Py_BuildValue((char *)"");
4321}
4322static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4323 PyObject *resultobj;
4324 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4325 int arg2 = (int) 0 ;
4326 wxIconLocation *result;
f775c30d 4327 bool temp1 = False ;
d14a1e28 4328 PyObject * obj0 = 0 ;
8edf1c75 4329 PyObject * obj1 = 0 ;
d14a1e28
RD
4330 char *kwnames[] = {
4331 (char *) "filename",(char *) "num", NULL
4332 };
4333
8edf1c75 4334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 4335 if (obj0) {
f775c30d
RD
4336 {
4337 arg1 = wxString_in_helper(obj0);
4338 if (arg1 == NULL) SWIG_fail;
4339 temp1 = True;
4340 }
d14a1e28 4341 }
8edf1c75 4342 if (obj1) {
2f4c0a16
RD
4343 arg2 = (int) SWIG_AsInt(obj1);
4344 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 4345 }
d14a1e28
RD
4346 {
4347 PyThreadState* __tstate = wxPyBeginAllowThreads();
4348 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4349
4350 wxPyEndAllowThreads(__tstate);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
2f4c0a16 4353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
f775c30d
RD
4354 {
4355 if (temp1)
4356 delete arg1;
4357 }
d14a1e28
RD
4358 return resultobj;
4359 fail:
f775c30d
RD
4360 {
4361 if (temp1)
4362 delete arg1;
4363 }
d14a1e28
RD
4364 return NULL;
4365}
4366
4367
4368static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4369 PyObject *resultobj;
4370 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4371 PyObject * obj0 = 0 ;
4372 char *kwnames[] = {
4373 (char *) "self", NULL
4374 };
4375
4376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4379 {
4380 PyThreadState* __tstate = wxPyBeginAllowThreads();
4381 delete arg1;
4382
4383 wxPyEndAllowThreads(__tstate);
4384 if (PyErr_Occurred()) SWIG_fail;
4385 }
4386 Py_INCREF(Py_None); resultobj = Py_None;
4387 return resultobj;
4388 fail:
4389 return NULL;
4390}
4391
4392
4393static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4394 PyObject *resultobj;
4395 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4396 bool result;
4397 PyObject * obj0 = 0 ;
4398 char *kwnames[] = {
4399 (char *) "self", NULL
4400 };
4401
4402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4405 {
4406 PyThreadState* __tstate = wxPyBeginAllowThreads();
4407 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4408
4409 wxPyEndAllowThreads(__tstate);
4410 if (PyErr_Occurred()) SWIG_fail;
4411 }
4f89f6a3
RD
4412 {
4413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4414 }
d14a1e28
RD
4415 return resultobj;
4416 fail:
4417 return NULL;
4418}
4419
4420
4421static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4422 PyObject *resultobj;
4423 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4424 wxString *arg2 = 0 ;
423f194a 4425 bool temp2 = False ;
d14a1e28
RD
4426 PyObject * obj0 = 0 ;
4427 PyObject * obj1 = 0 ;
4428 char *kwnames[] = {
4429 (char *) "self",(char *) "filename", NULL
4430 };
4431
4432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4435 {
4436 arg2 = wxString_in_helper(obj1);
4437 if (arg2 == NULL) SWIG_fail;
423f194a 4438 temp2 = True;
d14a1e28
RD
4439 }
4440 {
4441 PyThreadState* __tstate = wxPyBeginAllowThreads();
4442 (arg1)->SetFileName((wxString const &)*arg2);
4443
4444 wxPyEndAllowThreads(__tstate);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 }
4447 Py_INCREF(Py_None); resultobj = Py_None;
4448 {
4449 if (temp2)
4450 delete arg2;
4451 }
4452 return resultobj;
4453 fail:
4454 {
4455 if (temp2)
4456 delete arg2;
4457 }
4458 return NULL;
4459}
4460
4461
4462static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4463 PyObject *resultobj;
4464 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4465 wxString *result;
4466 PyObject * obj0 = 0 ;
4467 char *kwnames[] = {
4468 (char *) "self", NULL
4469 };
4470
4471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4474 {
4475 PyThreadState* __tstate = wxPyBeginAllowThreads();
4476 {
4477 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4478 result = (wxString *) &_result_ref;
4479 }
4480
4481 wxPyEndAllowThreads(__tstate);
4482 if (PyErr_Occurred()) SWIG_fail;
4483 }
f0983263
RD
4484 {
4485#if wxUSE_UNICODE
4486 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4487#else
4488 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4489#endif
4490 }
d14a1e28
RD
4491 return resultobj;
4492 fail:
4493 return NULL;
4494}
4495
4496
4497static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4498 PyObject *resultobj;
4499 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4500 int arg2 ;
4501 PyObject * obj0 = 0 ;
8edf1c75 4502 PyObject * obj1 = 0 ;
d14a1e28
RD
4503 char *kwnames[] = {
4504 (char *) "self",(char *) "num", NULL
4505 };
4506
8edf1c75 4507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4510 arg2 = (int) SWIG_AsInt(obj1);
4511 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4512 {
4513 PyThreadState* __tstate = wxPyBeginAllowThreads();
4514 wxIconLocation_SetIndex(arg1,arg2);
4515
4516 wxPyEndAllowThreads(__tstate);
4517 if (PyErr_Occurred()) SWIG_fail;
4518 }
4519 Py_INCREF(Py_None); resultobj = Py_None;
4520 return resultobj;
4521 fail:
4522 return NULL;
4523}
4524
4525
4526static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4527 PyObject *resultobj;
4528 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4529 int result;
4530 PyObject * obj0 = 0 ;
4531 char *kwnames[] = {
4532 (char *) "self", NULL
4533 };
4534
4535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4538 {
4539 PyThreadState* __tstate = wxPyBeginAllowThreads();
4540 result = (int)wxIconLocation_GetIndex(arg1);
4541
4542 wxPyEndAllowThreads(__tstate);
4543 if (PyErr_Occurred()) SWIG_fail;
4544 }
2f4c0a16 4545 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4546 return resultobj;
4547 fail:
4548 return NULL;
4549}
4550
4551
4552static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4553 PyObject *obj;
4554 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4555 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4556 Py_INCREF(obj);
4557 return Py_BuildValue((char *)"");
4558}
4559static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4560 PyObject *resultobj;
4561 wxIconBundle *result;
4562 char *kwnames[] = {
4563 NULL
4564 };
4565
4566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4567 {
4568 PyThreadState* __tstate = wxPyBeginAllowThreads();
4569 result = (wxIconBundle *)new wxIconBundle();
4570
4571 wxPyEndAllowThreads(__tstate);
4572 if (PyErr_Occurred()) SWIG_fail;
4573 }
2f4c0a16 4574 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4575 return resultobj;
4576 fail:
4577 return NULL;
4578}
4579
4580
4581static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4582 PyObject *resultobj;
4583 wxString *arg1 = 0 ;
4584 long arg2 ;
4585 wxIconBundle *result;
423f194a 4586 bool temp1 = False ;
d14a1e28 4587 PyObject * obj0 = 0 ;
8edf1c75 4588 PyObject * obj1 = 0 ;
d14a1e28
RD
4589 char *kwnames[] = {
4590 (char *) "file",(char *) "type", NULL
4591 };
4592
8edf1c75 4593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
4594 {
4595 arg1 = wxString_in_helper(obj0);
4596 if (arg1 == NULL) SWIG_fail;
423f194a 4597 temp1 = True;
d14a1e28 4598 }
2f4c0a16
RD
4599 arg2 = (long) SWIG_AsLong(obj1);
4600 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4601 {
4602 PyThreadState* __tstate = wxPyBeginAllowThreads();
4603 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4604
4605 wxPyEndAllowThreads(__tstate);
4606 if (PyErr_Occurred()) SWIG_fail;
4607 }
2f4c0a16 4608 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4609 {
4610 if (temp1)
4611 delete arg1;
4612 }
4613 return resultobj;
4614 fail:
4615 {
4616 if (temp1)
4617 delete arg1;
4618 }
4619 return NULL;
4620}
4621
4622
4623static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4624 PyObject *resultobj;
4625 wxIcon *arg1 = 0 ;
4626 wxIconBundle *result;
4627 PyObject * obj0 = 0 ;
4628 char *kwnames[] = {
4629 (char *) "icon", NULL
4630 };
4631
4632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4634 SWIG_POINTER_EXCEPTION | 0)) == -1)
4635 SWIG_fail;
d14a1e28 4636 if (arg1 == NULL) {
2f4c0a16
RD
4637 PyErr_SetString(PyExc_TypeError,"null reference");
4638 SWIG_fail;
d14a1e28
RD
4639 }
4640 {
4641 PyThreadState* __tstate = wxPyBeginAllowThreads();
4642 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4643
4644 wxPyEndAllowThreads(__tstate);
4645 if (PyErr_Occurred()) SWIG_fail;
4646 }
2f4c0a16 4647 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4648 return resultobj;
4649 fail:
4650 return NULL;
4651}
4652
4653
4654static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4655 PyObject *resultobj;
4656 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4657 PyObject * obj0 = 0 ;
4658 char *kwnames[] = {
4659 (char *) "self", NULL
4660 };
4661
4662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4665 {
4666 PyThreadState* __tstate = wxPyBeginAllowThreads();
4667 delete arg1;
4668
4669 wxPyEndAllowThreads(__tstate);
4670 if (PyErr_Occurred()) SWIG_fail;
4671 }
4672 Py_INCREF(Py_None); resultobj = Py_None;
4673 return resultobj;
4674 fail:
4675 return NULL;
4676}
4677
4678
4679static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4680 PyObject *resultobj;
4681 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4682 wxIcon *arg2 = 0 ;
4683 PyObject * obj0 = 0 ;
4684 PyObject * obj1 = 0 ;
4685 char *kwnames[] = {
4686 (char *) "self",(char *) "icon", NULL
4687 };
4688
4689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4692 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4693 SWIG_POINTER_EXCEPTION | 0)) == -1)
4694 SWIG_fail;
d14a1e28 4695 if (arg2 == NULL) {
2f4c0a16
RD
4696 PyErr_SetString(PyExc_TypeError,"null reference");
4697 SWIG_fail;
d14a1e28
RD
4698 }
4699 {
4700 PyThreadState* __tstate = wxPyBeginAllowThreads();
4701 (arg1)->AddIcon((wxIcon const &)*arg2);
4702
4703 wxPyEndAllowThreads(__tstate);
4704 if (PyErr_Occurred()) SWIG_fail;
4705 }
4706 Py_INCREF(Py_None); resultobj = Py_None;
4707 return resultobj;
4708 fail:
4709 return NULL;
4710}
4711
4712
4713static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4714 PyObject *resultobj;
4715 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4716 wxString *arg2 = 0 ;
4717 long arg3 ;
423f194a 4718 bool temp2 = False ;
d14a1e28
RD
4719 PyObject * obj0 = 0 ;
4720 PyObject * obj1 = 0 ;
8edf1c75 4721 PyObject * obj2 = 0 ;
d14a1e28
RD
4722 char *kwnames[] = {
4723 (char *) "self",(char *) "file",(char *) "type", NULL
4724 };
4725
8edf1c75 4726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
4727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4729 {
4730 arg2 = wxString_in_helper(obj1);
4731 if (arg2 == NULL) SWIG_fail;
423f194a 4732 temp2 = True;
d14a1e28 4733 }
2f4c0a16
RD
4734 arg3 = (long) SWIG_AsLong(obj2);
4735 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4736 {
4737 PyThreadState* __tstate = wxPyBeginAllowThreads();
4738 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4739
4740 wxPyEndAllowThreads(__tstate);
4741 if (PyErr_Occurred()) SWIG_fail;
4742 }
4743 Py_INCREF(Py_None); resultobj = Py_None;
4744 {
4745 if (temp2)
4746 delete arg2;
4747 }
4748 return resultobj;
4749 fail:
4750 {
4751 if (temp2)
4752 delete arg2;
4753 }
4754 return NULL;
4755}
4756
4757
4758static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4759 PyObject *resultobj;
4760 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4761 wxSize *arg2 = 0 ;
4762 wxIcon *result;
4763 wxSize temp2 ;
4764 PyObject * obj0 = 0 ;
4765 PyObject * obj1 = 0 ;
4766 char *kwnames[] = {
4767 (char *) "self",(char *) "size", NULL
4768 };
4769
4770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4773 {
4774 arg2 = &temp2;
4775 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4776 }
4777 {
4778 PyThreadState* __tstate = wxPyBeginAllowThreads();
4779 {
4780 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4781 result = (wxIcon *) &_result_ref;
4782 }
4783
4784 wxPyEndAllowThreads(__tstate);
4785 if (PyErr_Occurred()) SWIG_fail;
4786 }
fe763115
RD
4787 {
4788 wxIcon* resultptr = new wxIcon(*result);
4789 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4790 }
d14a1e28
RD
4791 return resultobj;
4792 fail:
4793 return NULL;
4794}
4795
4796
4797static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4798 PyObject *obj;
4799 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4800 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4801 Py_INCREF(obj);
4802 return Py_BuildValue((char *)"");
4803}
4804static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4805 PyObject *resultobj;
4806 wxString *arg1 = (wxString *) 0 ;
4807 long arg2 ;
4808 int arg3 = (int) 0 ;
4809 int arg4 = (int) 0 ;
4810 wxCursor *result;
f775c30d 4811 bool temp1 = False ;
d14a1e28 4812 PyObject * obj0 = 0 ;
8edf1c75
RD
4813 PyObject * obj1 = 0 ;
4814 PyObject * obj2 = 0 ;
4815 PyObject * obj3 = 0 ;
d14a1e28 4816 char *kwnames[] = {
2f4c0a16 4817 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
d14a1e28
RD
4818 };
4819
8edf1c75 4820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
f775c30d
RD
4821 {
4822 arg1 = wxString_in_helper(obj0);
4823 if (arg1 == NULL) SWIG_fail;
4824 temp1 = True;
4825 }
2f4c0a16
RD
4826 arg2 = (long) SWIG_AsLong(obj1);
4827 if (PyErr_Occurred()) SWIG_fail;
4828 if (obj2) {
4829 arg3 = (int) SWIG_AsInt(obj2);
8edf1c75
RD
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
8edf1c75 4832 if (obj3) {
2f4c0a16
RD
4833 arg4 = (int) SWIG_AsInt(obj3);
4834 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 4835 }
d14a1e28
RD
4836 {
4837 PyThreadState* __tstate = wxPyBeginAllowThreads();
4838 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4839
4840 wxPyEndAllowThreads(__tstate);
4841 if (PyErr_Occurred()) SWIG_fail;
4842 }
2f4c0a16 4843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
f775c30d
RD
4844 {
4845 if (temp1)
4846 delete arg1;
4847 }
d14a1e28
RD
4848 return resultobj;
4849 fail:
f775c30d
RD
4850 {
4851 if (temp1)
4852 delete arg1;
4853 }
d14a1e28
RD
4854 return NULL;
4855}
4856
4857
4858static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4859 PyObject *resultobj;
4860 wxCursor *arg1 = (wxCursor *) 0 ;
4861 PyObject * obj0 = 0 ;
4862 char *kwnames[] = {
4863 (char *) "self", NULL
4864 };
4865
4866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4869 {
4870 PyThreadState* __tstate = wxPyBeginAllowThreads();
4871 delete arg1;
4872
4873 wxPyEndAllowThreads(__tstate);
4874 if (PyErr_Occurred()) SWIG_fail;
4875 }
4876 Py_INCREF(Py_None); resultobj = Py_None;
4877 return resultobj;
4878 fail:
4879 return NULL;
4880}
4881
4882
4883static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4884 PyObject *resultobj;
4885 int arg1 ;
4886 wxCursor *result;
8edf1c75 4887 PyObject * obj0 = 0 ;
d14a1e28
RD
4888 char *kwnames[] = {
4889 (char *) "id", NULL
4890 };
4891
8edf1c75 4892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4893 arg1 = (int) SWIG_AsInt(obj0);
4894 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4895 {
4896 PyThreadState* __tstate = wxPyBeginAllowThreads();
4897 result = (wxCursor *)new wxCursor(arg1);
4898
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
2f4c0a16 4902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d14a1e28
RD
4903 return resultobj;
4904 fail:
4905 return NULL;
4906}
4907
4908
4909static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4910 PyObject *resultobj;
4911 wxImage *arg1 = 0 ;
4912 wxCursor *result;
4913 PyObject * obj0 = 0 ;
4914 char *kwnames[] = {
4915 (char *) "image", NULL
4916 };
4917
4918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4920 SWIG_POINTER_EXCEPTION | 0)) == -1)
4921 SWIG_fail;
d14a1e28 4922 if (arg1 == NULL) {
2f4c0a16
RD
4923 PyErr_SetString(PyExc_TypeError,"null reference");
4924 SWIG_fail;
d14a1e28
RD
4925 }
4926 {
4927 PyThreadState* __tstate = wxPyBeginAllowThreads();
4928 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4929
4930 wxPyEndAllowThreads(__tstate);
4931 if (PyErr_Occurred()) SWIG_fail;
4932 }
2f4c0a16 4933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d14a1e28
RD
4934 return resultobj;
4935 fail:
4936 return NULL;
4937}
4938
4939
4940static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4941 PyObject *resultobj;
4942 wxCursor *arg1 = (wxCursor *) 0 ;
4943 long result;
4944 PyObject * obj0 = 0 ;
4945 char *kwnames[] = {
4946 (char *) "self", NULL
4947 };
4948
4949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 result = (long)(arg1)->GetHandle();
4955
4956 wxPyEndAllowThreads(__tstate);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 }
2f4c0a16 4959 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
4960 return resultobj;
4961 fail:
4962 return NULL;
4963}
4964
4965
4966static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4967 PyObject *resultobj;
4968 wxCursor *arg1 = (wxCursor *) 0 ;
4969 long arg2 ;
4970 PyObject * obj0 = 0 ;
8edf1c75 4971 PyObject * obj1 = 0 ;
d14a1e28
RD
4972 char *kwnames[] = {
4973 (char *) "self",(char *) "handle", NULL
4974 };
4975
8edf1c75 4976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4979 arg2 = (long) SWIG_AsLong(obj1);
4980 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4981 {
4982 PyThreadState* __tstate = wxPyBeginAllowThreads();
2f4c0a16 4983 wxCursor_SetHandle(arg1,arg2);
d14a1e28
RD
4984
4985 wxPyEndAllowThreads(__tstate);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 }
4988 Py_INCREF(Py_None); resultobj = Py_None;
4989 return resultobj;
4990 fail:
4991 return NULL;
4992}
4993
4994
4995static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4996 PyObject *resultobj;
4997 wxCursor *arg1 = (wxCursor *) 0 ;
4998 bool result;
4999 PyObject * obj0 = 0 ;
5000 char *kwnames[] = {
5001 (char *) "self", NULL
5002 };
5003
5004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
5005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5007 {
5008 PyThreadState* __tstate = wxPyBeginAllowThreads();
5009 result = (bool)(arg1)->Ok();
5010
5011 wxPyEndAllowThreads(__tstate);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 }
4f89f6a3
RD
5014 {
5015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5016 }
d14a1e28
RD
5017 return resultobj;
5018 fail:
5019 return NULL;
5020}
5021
5022
5023static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5024 PyObject *resultobj;
5025 wxCursor *arg1 = (wxCursor *) 0 ;
5026 int result;
5027 PyObject * obj0 = 0 ;
5028 char *kwnames[] = {
5029 (char *) "self", NULL
5030 };
5031
5032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
5033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5035 {
5036 PyThreadState* __tstate = wxPyBeginAllowThreads();
5037 result = (int)(arg1)->GetWidth();
5038
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
2f4c0a16 5042 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5043 return resultobj;
5044 fail:
5045 return NULL;
5046}
5047
5048
5049static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5050 PyObject *resultobj;
5051 wxCursor *arg1 = (wxCursor *) 0 ;
5052 int result;
5053 PyObject * obj0 = 0 ;
5054 char *kwnames[] = {
5055 (char *) "self", NULL
5056 };
5057
5058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
5059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5061 {
5062 PyThreadState* __tstate = wxPyBeginAllowThreads();
5063 result = (int)(arg1)->GetHeight();
5064
5065 wxPyEndAllowThreads(__tstate);
5066 if (PyErr_Occurred()) SWIG_fail;
5067 }
2f4c0a16 5068 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5069 return resultobj;
5070 fail:
5071 return NULL;
5072}
5073
5074
5075static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5076 PyObject *resultobj;
5077 wxCursor *arg1 = (wxCursor *) 0 ;
5078 int result;
5079 PyObject * obj0 = 0 ;
5080 char *kwnames[] = {
5081 (char *) "self", NULL
5082 };
5083
5084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
5085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5087 {
5088 PyThreadState* __tstate = wxPyBeginAllowThreads();
5089 result = (int)(arg1)->GetDepth();
5090
5091 wxPyEndAllowThreads(__tstate);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 }
2f4c0a16 5094 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5095 return resultobj;
5096 fail:
5097 return NULL;
5098}
5099
5100
5101static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5102 PyObject *resultobj;
5103 wxCursor *arg1 = (wxCursor *) 0 ;
5104 int arg2 ;
5105 PyObject * obj0 = 0 ;
8edf1c75 5106 PyObject * obj1 = 0 ;
d14a1e28
RD
5107 char *kwnames[] = {
5108 (char *) "self",(char *) "w", NULL
5109 };
5110
8edf1c75 5111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5114 arg2 = (int) SWIG_AsInt(obj1);
5115 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5116 {
5117 PyThreadState* __tstate = wxPyBeginAllowThreads();
5118 (arg1)->SetWidth(arg2);
5119
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 Py_INCREF(Py_None); resultobj = Py_None;
5124 return resultobj;
5125 fail:
5126 return NULL;
5127}
5128
5129
5130static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5131 PyObject *resultobj;
5132 wxCursor *arg1 = (wxCursor *) 0 ;
5133 int arg2 ;
5134 PyObject * obj0 = 0 ;
8edf1c75 5135 PyObject * obj1 = 0 ;
d14a1e28
RD
5136 char *kwnames[] = {
5137 (char *) "self",(char *) "h", NULL
5138 };
5139
8edf1c75 5140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5143 arg2 = (int) SWIG_AsInt(obj1);
5144 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5145 {
5146 PyThreadState* __tstate = wxPyBeginAllowThreads();
5147 (arg1)->SetHeight(arg2);
5148
5149 wxPyEndAllowThreads(__tstate);
5150 if (PyErr_Occurred()) SWIG_fail;
5151 }
5152 Py_INCREF(Py_None); resultobj = Py_None;
5153 return resultobj;
5154 fail:
5155 return NULL;
5156}
5157
5158
5159static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5160 PyObject *resultobj;
5161 wxCursor *arg1 = (wxCursor *) 0 ;
5162 int arg2 ;
5163 PyObject * obj0 = 0 ;
8edf1c75 5164 PyObject * obj1 = 0 ;
d14a1e28
RD
5165 char *kwnames[] = {
5166 (char *) "self",(char *) "d", NULL
5167 };
5168
8edf1c75 5169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5172 arg2 = (int) SWIG_AsInt(obj1);
5173 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5174 {
5175 PyThreadState* __tstate = wxPyBeginAllowThreads();
5176 (arg1)->SetDepth(arg2);
5177
5178 wxPyEndAllowThreads(__tstate);
5179 if (PyErr_Occurred()) SWIG_fail;
5180 }
5181 Py_INCREF(Py_None); resultobj = Py_None;
5182 return resultobj;
5183 fail:
5184 return NULL;
5185}
5186
5187
5188static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5189 PyObject *resultobj;
5190 wxCursor *arg1 = (wxCursor *) 0 ;
5191 wxSize *arg2 = 0 ;
5192 wxSize temp2 ;
5193 PyObject * obj0 = 0 ;
5194 PyObject * obj1 = 0 ;
5195 char *kwnames[] = {
5196 (char *) "self",(char *) "size", NULL
5197 };
5198
5199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5202 {
5203 arg2 = &temp2;
5204 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5205 }
5206 {
5207 PyThreadState* __tstate = wxPyBeginAllowThreads();
5208 (arg1)->SetSize((wxSize const &)*arg2);
5209
5210 wxPyEndAllowThreads(__tstate);
5211 if (PyErr_Occurred()) SWIG_fail;
5212 }
5213 Py_INCREF(Py_None); resultobj = Py_None;
5214 return resultobj;
5215 fail:
5216 return NULL;
5217}
5218
5219
5220static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
5221 PyObject *obj;
5222 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5223 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
5224 Py_INCREF(obj);
5225 return Py_BuildValue((char *)"");
5226}
5227static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5228 PyObject *resultobj;
423f194a
RD
5229 int arg1 = (int) 0 ;
5230 int arg2 = (int) 0 ;
5231 int arg3 = (int) 0 ;
5232 int arg4 = (int) 0 ;
d14a1e28 5233 wxRegion *result;
8edf1c75
RD
5234 PyObject * obj0 = 0 ;
5235 PyObject * obj1 = 0 ;
5236 PyObject * obj2 = 0 ;
5237 PyObject * obj3 = 0 ;
d14a1e28
RD
5238 char *kwnames[] = {
5239 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5240 };
5241
8edf1c75
RD
5242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5243 if (obj0) {
2f4c0a16
RD
5244 arg1 = (int) SWIG_AsInt(obj0);
5245 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
5246 }
5247 if (obj1) {
2f4c0a16
RD
5248 arg2 = (int) SWIG_AsInt(obj1);
5249 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
5250 }
5251 if (obj2) {
2f4c0a16
RD
5252 arg3 = (int) SWIG_AsInt(obj2);
5253 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
5254 }
5255 if (obj3) {
2f4c0a16
RD
5256 arg4 = (int) SWIG_AsInt(obj3);
5257 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 5258 }
d14a1e28
RD
5259 {
5260 PyThreadState* __tstate = wxPyBeginAllowThreads();
5261 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
5262
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
2f4c0a16 5266 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
5267 return resultobj;
5268 fail:
5269 return NULL;
5270}
5271
5272
5273static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5274 PyObject *resultobj;
5275 wxBitmap *arg1 = 0 ;
5276 wxColour const &arg2_defvalue = wxNullColour ;
5277 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5278 int arg3 = (int) 0 ;
5279 wxRegion *result;
5280 wxColour temp2 ;
5281 PyObject * obj0 = 0 ;
5282 PyObject * obj1 = 0 ;
8edf1c75 5283 PyObject * obj2 = 0 ;
d14a1e28
RD
5284 char *kwnames[] = {
5285 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5286 };
5287
8edf1c75 5288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
5289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5290 SWIG_POINTER_EXCEPTION | 0)) == -1)
5291 SWIG_fail;
d14a1e28 5292 if (arg1 == NULL) {
2f4c0a16
RD
5293 PyErr_SetString(PyExc_TypeError,"null reference");
5294 SWIG_fail;
d14a1e28
RD
5295 }
5296 if (obj1) {
5297 {
5298 arg2 = &temp2;
5299 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5300 }
5301 }
8edf1c75 5302 if (obj2) {
2f4c0a16
RD
5303 arg3 = (int) SWIG_AsInt(obj2);
5304 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 5305 }
d14a1e28
RD
5306 {
5307 PyThreadState* __tstate = wxPyBeginAllowThreads();
5308 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
5309
5310 wxPyEndAllowThreads(__tstate);
5311 if (PyErr_Occurred()) SWIG_fail;
5312 }
2f4c0a16 5313 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
5314 return resultobj;
5315 fail:
5316 return NULL;
5317}
5318
5319
5320static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
5321 PyObject *resultobj;
5322 int arg1 ;
5323 wxPoint *arg2 = (wxPoint *) 0 ;
5324 int arg3 = (int) wxWINDING_RULE ;
5325 wxRegion *result;
5326 PyObject * obj0 = 0 ;
8edf1c75 5327 PyObject * obj1 = 0 ;
d14a1e28
RD
5328 char *kwnames[] = {
5329 (char *) "points",(char *) "fillStyle", NULL
5330 };
5331
8edf1c75 5332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
5333 {
5334 arg2 = wxPoint_LIST_helper(obj0, &arg1);
5335 if (arg2 == NULL) SWIG_fail;
5336 }
8edf1c75 5337 if (obj1) {
2f4c0a16
RD
5338 arg3 = (int) SWIG_AsInt(obj1);
5339 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 5340 }
d14a1e28
RD
5341 {
5342 PyThreadState* __tstate = wxPyBeginAllowThreads();
5343 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
5344
5345 wxPyEndAllowThreads(__tstate);
5346 if (PyErr_Occurred()) SWIG_fail;
5347 }
2f4c0a16 5348 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
5349 {
5350 if (arg2) delete [] arg2;
5351 }
5352 return resultobj;
5353 fail:
5354 {
5355 if (arg2) delete [] arg2;
5356 }
5357 return NULL;
5358}
5359
5360
5361static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5362 PyObject *resultobj;
5363 wxRegion *arg1 = (wxRegion *) 0 ;
5364 PyObject * obj0 = 0 ;
5365 char *kwnames[] = {
5366 (char *) "self", NULL
5367 };
5368
5369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
2f4c0a16
RD
5370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5372 {
5373 PyThreadState* __tstate = wxPyBeginAllowThreads();
5374 delete arg1;
5375
5376 wxPyEndAllowThreads(__tstate);
5377 if (PyErr_Occurred()) SWIG_fail;
5378 }
5379 Py_INCREF(Py_None); resultobj = Py_None;
5380 return resultobj;
5381 fail:
5382 return NULL;
5383}
5384
5385
5386static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5387 PyObject *resultobj;
5388 wxRegion *arg1 = (wxRegion *) 0 ;
5389 PyObject * obj0 = 0 ;
5390 char *kwnames[] = {
5391 (char *) "self", NULL
5392 };
5393
5394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
2f4c0a16
RD
5395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5397 {
5398 PyThreadState* __tstate = wxPyBeginAllowThreads();
5399 (arg1)->Clear();
5400
5401 wxPyEndAllowThreads(__tstate);
5402 if (PyErr_Occurred()) SWIG_fail;
5403 }
5404 Py_INCREF(Py_None); resultobj = Py_None;
5405 return resultobj;
5406 fail:
5407 return NULL;
5408}
5409
5410
5411static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5412 PyObject *resultobj;
5413 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
5414 int arg2 ;
5415 int arg3 ;
d14a1e28
RD
5416 bool result;
5417 PyObject * obj0 = 0 ;
8edf1c75
RD
5418 PyObject * obj1 = 0 ;
5419 PyObject * obj2 = 0 ;
d14a1e28
RD
5420 char *kwnames[] = {
5421 (char *) "self",(char *) "x",(char *) "y", NULL
5422 };
5423
8edf1c75 5424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
5425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5427 arg2 = (int) SWIG_AsInt(obj1);
5428 if (PyErr_Occurred()) SWIG_fail;
5429 arg3 = (int) SWIG_AsInt(obj2);
5430 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5431 {
5432 PyThreadState* __tstate = wxPyBeginAllowThreads();
5433 result = (bool)(arg1)->Offset(arg2,arg3);
5434
5435 wxPyEndAllowThreads(__tstate);
5436 if (PyErr_Occurred()) SWIG_fail;
5437 }
4f89f6a3
RD
5438 {
5439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5440 }
d14a1e28
RD
5441 return resultobj;
5442 fail:
5443 return NULL;
5444}
5445
5446
5447static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5448 PyObject *resultobj;
5449 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
5450 int arg2 ;
5451 int arg3 ;
d14a1e28
RD
5452 int result;
5453 PyObject * obj0 = 0 ;
8edf1c75
RD
5454 PyObject * obj1 = 0 ;
5455 PyObject * obj2 = 0 ;
d14a1e28
RD
5456 char *kwnames[] = {
5457 (char *) "self",(char *) "x",(char *) "y", NULL
5458 };
5459
8edf1c75 5460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
5461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5463 arg2 = (int) SWIG_AsInt(obj1);
5464 if (PyErr_Occurred()) SWIG_fail;
5465 arg3 = (int) SWIG_AsInt(obj2);
5466 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5467 {
5468 PyThreadState* __tstate = wxPyBeginAllowThreads();
5469 result = (int)(arg1)->Contains(arg2,arg3);
5470
5471 wxPyEndAllowThreads(__tstate);
5472 if (PyErr_Occurred()) SWIG_fail;
5473 }
2f4c0a16 5474 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5475 return resultobj;
5476 fail:
5477 return NULL;
5478}
5479
5480
5481static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5482 PyObject *resultobj;
5483 wxRegion *arg1 = (wxRegion *) 0 ;
5484 wxPoint *arg2 = 0 ;
5485 int result;
5486 wxPoint temp2 ;
5487 PyObject * obj0 = 0 ;
5488 PyObject * obj1 = 0 ;
5489 char *kwnames[] = {
5490 (char *) "self",(char *) "pt", NULL
5491 };
5492
5493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5496 {
5497 arg2 = &temp2;
5498 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5499 }
5500 {
5501 PyThreadState* __tstate = wxPyBeginAllowThreads();
5502 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5503
5504 wxPyEndAllowThreads(__tstate);
5505 if (PyErr_Occurred()) SWIG_fail;
5506 }
2f4c0a16 5507 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5508 return resultobj;
5509 fail:
5510 return NULL;
5511}
5512
5513
5514static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5515 PyObject *resultobj;
5516 wxRegion *arg1 = (wxRegion *) 0 ;
5517 wxRect *arg2 = 0 ;
5518 int result;
5519 wxRect temp2 ;
5520 PyObject * obj0 = 0 ;
5521 PyObject * obj1 = 0 ;
5522 char *kwnames[] = {
5523 (char *) "self",(char *) "rect", NULL
5524 };
5525
5526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5529 {
5530 arg2 = &temp2;
5531 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5532 }
5533 {
5534 PyThreadState* __tstate = wxPyBeginAllowThreads();
5535 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5536
5537 wxPyEndAllowThreads(__tstate);
5538 if (PyErr_Occurred()) SWIG_fail;
5539 }
2f4c0a16 5540 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5541 return resultobj;
5542 fail:
5543 return NULL;
5544}
5545
5546
5547static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5548 PyObject *resultobj;
5549 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
5550 int arg2 ;
5551 int arg3 ;
5552 int arg4 ;
5553 int arg5 ;
d14a1e28
RD
5554 int result;
5555 PyObject * obj0 = 0 ;
8edf1c75
RD
5556 PyObject * obj1 = 0 ;
5557 PyObject * obj2 = 0 ;
5558 PyObject * obj3 = 0 ;
5559 PyObject * obj4 = 0 ;
d14a1e28
RD
5560 char *kwnames[] = {
5561 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5562 };
5563
8edf1c75 5564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
5565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5567 arg2 = (int) SWIG_AsInt(obj1);
5568 if (PyErr_Occurred()) SWIG_fail;
5569 arg3 = (int) SWIG_AsInt(obj2);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 arg4 = (int) SWIG_AsInt(obj3);
5572 if (PyErr_Occurred()) SWIG_fail;
5573 arg5 = (int) SWIG_AsInt(obj4);
5574 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5575 {
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5578
5579 wxPyEndAllowThreads(__tstate);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 }
2f4c0a16 5582 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5583 return resultobj;
5584 fail:
5585 return NULL;
5586}
5587
5588
5589static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5590 PyObject *resultobj;
5591 wxRegion *arg1 = (wxRegion *) 0 ;
5592 wxRect result;
5593 PyObject * obj0 = 0 ;
5594 char *kwnames[] = {
5595 (char *) "self", NULL
5596 };
5597
5598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
2f4c0a16
RD
5599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5601 {
5602 PyThreadState* __tstate = wxPyBeginAllowThreads();
5603 result = (arg1)->GetBox();
5604
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 {
5609 wxRect * resultptr;
5610 resultptr = new wxRect((wxRect &) result);
2f4c0a16 5611 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
5612 }
5613 return resultobj;
5614 fail:
5615 return NULL;
5616}
5617
5618
5619static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5620 PyObject *resultobj;
5621 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
5622 int arg2 ;
5623 int arg3 ;
5624 int arg4 ;
5625 int arg5 ;
d14a1e28
RD
5626 bool result;
5627 PyObject * obj0 = 0 ;
8edf1c75
RD
5628 PyObject * obj1 = 0 ;
5629 PyObject * obj2 = 0 ;
5630 PyObject * obj3 = 0 ;
5631 PyObject * obj4 = 0 ;
d14a1e28
RD
5632 char *kwnames[] = {
5633 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5634 };
5635
8edf1c75 5636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
5637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5639 arg2 = (int) SWIG_AsInt(obj1);
5640 if (PyErr_Occurred()) SWIG_fail;
5641 arg3 = (int) SWIG_AsInt(obj2);
5642 if (PyErr_Occurred()) SWIG_fail;
5643 arg4 = (int) SWIG_AsInt(obj3);
5644 if (PyErr_Occurred()) SWIG_fail;
5645 arg5 = (int) SWIG_AsInt(obj4);
5646 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5647 {
5648 PyThreadState* __tstate = wxPyBeginAllowThreads();
5649 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5650
5651 wxPyEndAllowThreads(__tstate);
5652 if (PyErr_Occurred()) SWIG_fail;
5653 }
4f89f6a3
RD
5654 {
5655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5656 }
d14a1e28
RD
5657 return resultobj;
5658 fail:
5659 return NULL;
5660}
5661
5662
5663static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5664 PyObject *resultobj;
5665 wxRegion *arg1 = (wxRegion *) 0 ;
5666 wxRect *arg2 = 0 ;
5667 bool result;
5668 wxRect temp2 ;
5669 PyObject * obj0 = 0 ;
5670 PyObject * obj1 = 0 ;
5671 char *kwnames[] = {
5672 (char *) "self",(char *) "rect", NULL
5673 };
5674
5675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5678 {
5679 arg2 = &temp2;
5680 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5681 }
5682 {
5683 PyThreadState* __tstate = wxPyBeginAllowThreads();
5684 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5685
5686 wxPyEndAllowThreads(__tstate);
5687 if (PyErr_Occurred()) SWIG_fail;
5688 }
4f89f6a3
RD
5689 {
5690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5691 }
d14a1e28
RD
5692 return resultobj;
5693 fail:
5694 return NULL;
5695}
5696
5697
5698static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5699 PyObject *resultobj;
5700 wxRegion *arg1 = (wxRegion *) 0 ;
5701 wxRegion *arg2 = 0 ;
5702 bool result;
5703 PyObject * obj0 = 0 ;
5704 PyObject * obj1 = 0 ;
5705 char *kwnames[] = {
5706 (char *) "self",(char *) "region", NULL
5707 };
5708
5709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5712 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5713 SWIG_POINTER_EXCEPTION | 0)) == -1)
5714 SWIG_fail;
d14a1e28 5715 if (arg2 == NULL) {
2f4c0a16
RD
5716 PyErr_SetString(PyExc_TypeError,"null reference");
5717 SWIG_fail;
d14a1e28
RD
5718 }
5719 {
5720 PyThreadState* __tstate = wxPyBeginAllowThreads();
5721 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5722
5723 wxPyEndAllowThreads(__tstate);
5724 if (PyErr_Occurred()) SWIG_fail;
5725 }
4f89f6a3
RD
5726 {
5727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5728 }
d14a1e28
RD
5729 return resultobj;
5730 fail:
5731 return NULL;
5732}
5733
5734
5735static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5736 PyObject *resultobj;
5737 wxRegion *arg1 = (wxRegion *) 0 ;
5738 bool result;
5739 PyObject * obj0 = 0 ;
5740 char *kwnames[] = {
5741 (char *) "self", NULL
5742 };
5743
5744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
2f4c0a16
RD
5745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5747 {
5748 PyThreadState* __tstate = wxPyBeginAllowThreads();
5749 result = (bool)(arg1)->IsEmpty();
5750
5751 wxPyEndAllowThreads(__tstate);
5752 if (PyErr_Occurred()) SWIG_fail;
5753 }
4f89f6a3
RD
5754 {
5755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5756 }
d14a1e28
RD
5757 return resultobj;
5758 fail:
5759 return NULL;
5760}
5761
5762
5763static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj;
5765 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
5766 int arg2 ;
5767 int arg3 ;
5768 int arg4 ;
5769 int arg5 ;
d14a1e28
RD
5770 bool result;
5771 PyObject * obj0 = 0 ;
8edf1c75
RD
5772 PyObject * obj1 = 0 ;
5773 PyObject * obj2 = 0 ;
5774 PyObject * obj3 = 0 ;
5775 PyObject * obj4 = 0 ;
d14a1e28
RD
5776 char *kwnames[] = {
5777 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5778 };
5779
8edf1c75 5780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
5781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5783 arg2 = (int) SWIG_AsInt(obj1);
5784 if (PyErr_Occurred()) SWIG_fail;
5785 arg3 = (int) SWIG_AsInt(obj2);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 arg4 = (int) SWIG_AsInt(obj3);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 arg5 = (int) SWIG_AsInt(obj4);
5790 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5791 {
5792 PyThreadState* __tstate = wxPyBeginAllowThreads();
5793 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5794
5795 wxPyEndAllowThreads(__tstate);
5796 if (PyErr_Occurred()) SWIG_fail;
5797 }
4f89f6a3
RD
5798 {
5799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5800 }
d14a1e28
RD
5801 return resultobj;
5802 fail:
5803 return NULL;
5804}
5805
5806
5807static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5808 PyObject *resultobj;
5809 wxRegion *arg1 = (wxRegion *) 0 ;
5810 wxRect *arg2 = 0 ;
5811 bool result;
5812 wxRect temp2 ;
5813 PyObject * obj0 = 0 ;
5814 PyObject * obj1 = 0 ;
5815 char *kwnames[] = {
5816 (char *) "self",(char *) "rect", NULL
5817 };
5818
5819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5822 {
5823 arg2 = &temp2;
5824 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5825 }
5826 {
5827 PyThreadState* __tstate = wxPyBeginAllowThreads();
5828 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5829
5830 wxPyEndAllowThreads(__tstate);
5831 if (PyErr_Occurred()) SWIG_fail;
5832 }
4f89f6a3
RD
5833 {
5834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5835 }
d14a1e28
RD
5836 return resultobj;
5837 fail:
5838 return NULL;
5839}
5840
5841
5842static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5843 PyObject *resultobj;
5844 wxRegion *arg1 = (wxRegion *) 0 ;
5845 wxRegion *arg2 = 0 ;
5846 bool result;
5847 PyObject * obj0 = 0 ;
5848 PyObject * obj1 = 0 ;
5849 char *kwnames[] = {
5850 (char *) "self",(char *) "region", NULL
5851 };
5852
5853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5856 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5857 SWIG_POINTER_EXCEPTION | 0)) == -1)
5858 SWIG_fail;
d14a1e28 5859 if (arg2 == NULL) {
2f4c0a16
RD
5860 PyErr_SetString(PyExc_TypeError,"null reference");
5861 SWIG_fail;
d14a1e28
RD
5862 }
5863 {
5864 PyThreadState* __tstate = wxPyBeginAllowThreads();
5865 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5866
5867 wxPyEndAllowThreads(__tstate);
5868 if (PyErr_Occurred()) SWIG_fail;
5869 }
4f89f6a3
RD
5870 {
5871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5872 }
d14a1e28
RD
5873 return resultobj;
5874 fail:
5875 return NULL;
5876}
5877
5878
5879static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5880 PyObject *resultobj;
5881 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
5882 int arg2 ;
5883 int arg3 ;
5884 int arg4 ;
5885 int arg5 ;
d14a1e28
RD
5886 bool result;
5887 PyObject * obj0 = 0 ;
8edf1c75
RD
5888 PyObject * obj1 = 0 ;
5889 PyObject * obj2 = 0 ;
5890 PyObject * obj3 = 0 ;
5891 PyObject * obj4 = 0 ;
d14a1e28
RD
5892 char *kwnames[] = {
5893 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5894 };
5895
8edf1c75 5896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
5897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5899 arg2 = (int) SWIG_AsInt(obj1);
5900 if (PyErr_Occurred()) SWIG_fail;
5901 arg3 = (int) SWIG_AsInt(obj2);
5902 if (PyErr_Occurred()) SWIG_fail;
5903 arg4 = (int) SWIG_AsInt(obj3);
5904 if (PyErr_Occurred()) SWIG_fail;
5905 arg5 = (int) SWIG_AsInt(obj4);
5906 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5907 {
5908 PyThreadState* __tstate = wxPyBeginAllowThreads();
5909 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5910
5911 wxPyEndAllowThreads(__tstate);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
4f89f6a3
RD
5914 {
5915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5916 }
d14a1e28
RD
5917 return resultobj;
5918 fail:
5919 return NULL;
5920}
5921
5922
5923static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5924 PyObject *resultobj;
5925 wxRegion *arg1 = (wxRegion *) 0 ;
5926 wxRect *arg2 = 0 ;
5927 bool result;
5928 wxRect temp2 ;
5929 PyObject * obj0 = 0 ;
5930 PyObject * obj1 = 0 ;
5931 char *kwnames[] = {
5932 (char *) "self",(char *) "rect", NULL
5933 };
5934
5935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5938 {
5939 arg2 = &temp2;
5940 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5941 }
5942 {
5943 PyThreadState* __tstate = wxPyBeginAllowThreads();
5944 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5945
5946 wxPyEndAllowThreads(__tstate);
5947 if (PyErr_Occurred()) SWIG_fail;
5948 }
4f89f6a3
RD
5949 {
5950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5951 }
d14a1e28
RD
5952 return resultobj;
5953 fail:
5954 return NULL;
5955}
5956
5957
5958static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5959 PyObject *resultobj;
5960 wxRegion *arg1 = (wxRegion *) 0 ;
5961 wxRegion *arg2 = 0 ;
5962 bool result;
5963 PyObject * obj0 = 0 ;
5964 PyObject * obj1 = 0 ;
5965 char *kwnames[] = {
5966 (char *) "self",(char *) "region", NULL
5967 };
5968
5969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5972 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5973 SWIG_POINTER_EXCEPTION | 0)) == -1)
5974 SWIG_fail;
d14a1e28 5975 if (arg2 == NULL) {
2f4c0a16
RD
5976 PyErr_SetString(PyExc_TypeError,"null reference");
5977 SWIG_fail;
d14a1e28
RD
5978 }
5979 {
5980 PyThreadState* __tstate = wxPyBeginAllowThreads();
5981 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5982
5983 wxPyEndAllowThreads(__tstate);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
4f89f6a3
RD
5986 {
5987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5988 }
d14a1e28
RD
5989 return resultobj;
5990 fail:
5991 return NULL;
5992}
5993
5994
5995static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5996 PyObject *resultobj;
5997 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
5998 int arg2 ;
5999 int arg3 ;
6000 int arg4 ;
6001 int arg5 ;
d14a1e28
RD
6002 bool result;
6003 PyObject * obj0 = 0 ;
8edf1c75
RD
6004 PyObject * obj1 = 0 ;
6005 PyObject * obj2 = 0 ;
6006 PyObject * obj3 = 0 ;
6007 PyObject * obj4 = 0 ;
d14a1e28
RD
6008 char *kwnames[] = {
6009 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6010 };
6011
8edf1c75 6012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
6013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6015 arg2 = (int) SWIG_AsInt(obj1);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 arg3 = (int) SWIG_AsInt(obj2);
6018 if (PyErr_Occurred()) SWIG_fail;
6019 arg4 = (int) SWIG_AsInt(obj3);
6020 if (PyErr_Occurred()) SWIG_fail;
6021 arg5 = (int) SWIG_AsInt(obj4);
6022 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6023 {
6024 PyThreadState* __tstate = wxPyBeginAllowThreads();
6025 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
6026
6027 wxPyEndAllowThreads(__tstate);
6028 if (PyErr_Occurred()) SWIG_fail;
6029 }
4f89f6a3
RD
6030 {
6031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6032 }
d14a1e28
RD
6033 return resultobj;
6034 fail:
6035 return NULL;
6036}
6037
6038
6039static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6040 PyObject *resultobj;
6041 wxRegion *arg1 = (wxRegion *) 0 ;
6042 wxRect *arg2 = 0 ;
6043 bool result;
6044 wxRect temp2 ;
6045 PyObject * obj0 = 0 ;
6046 PyObject * obj1 = 0 ;
6047 char *kwnames[] = {
6048 (char *) "self",(char *) "rect", NULL
6049 };
6050
6051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6054 {
6055 arg2 = &temp2;
6056 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6057 }
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
6061
6062 wxPyEndAllowThreads(__tstate);
6063 if (PyErr_Occurred()) SWIG_fail;
6064 }
4f89f6a3
RD
6065 {
6066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6067 }
d14a1e28
RD
6068 return resultobj;
6069 fail:
6070 return NULL;
6071}
6072
6073
6074static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj;
6076 wxRegion *arg1 = (wxRegion *) 0 ;
6077 wxRegion *arg2 = 0 ;
6078 bool result;
6079 PyObject * obj0 = 0 ;
6080 PyObject * obj1 = 0 ;
6081 char *kwnames[] = {
6082 (char *) "self",(char *) "region", NULL
6083 };
6084
6085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6088 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6089 SWIG_POINTER_EXCEPTION | 0)) == -1)
6090 SWIG_fail;
d14a1e28 6091 if (arg2 == NULL) {
2f4c0a16
RD
6092 PyErr_SetString(PyExc_TypeError,"null reference");
6093 SWIG_fail;
d14a1e28
RD
6094 }
6095 {
6096 PyThreadState* __tstate = wxPyBeginAllowThreads();
6097 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
6098
6099 wxPyEndAllowThreads(__tstate);
6100 if (PyErr_Occurred()) SWIG_fail;
6101 }
4f89f6a3
RD
6102 {
6103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6104 }
d14a1e28
RD
6105 return resultobj;
6106 fail:
6107 return NULL;
6108}
6109
6110
6111static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6112 PyObject *resultobj;
6113 wxRegion *arg1 = (wxRegion *) 0 ;
6114 SwigValueWrapper< wxBitmap > result;
6115 PyObject * obj0 = 0 ;
6116 char *kwnames[] = {
6117 (char *) "self", NULL
6118 };
6119
6120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6123 {
6124 PyThreadState* __tstate = wxPyBeginAllowThreads();
6125 result = (arg1)->ConvertToBitmap();
6126
6127 wxPyEndAllowThreads(__tstate);
6128 if (PyErr_Occurred()) SWIG_fail;
6129 }
6130 {
6131 wxBitmap * resultptr;
6132 resultptr = new wxBitmap((wxBitmap &) result);
2f4c0a16 6133 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
6134 }
6135 return resultobj;
6136 fail:
6137 return NULL;
6138}
6139
6140
6141static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6142 PyObject *resultobj;
6143 wxRegion *arg1 = (wxRegion *) 0 ;
6144 wxBitmap *arg2 = 0 ;
6145 wxColour const &arg3_defvalue = wxNullColour ;
6146 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
6147 int arg4 = (int) 0 ;
6148 bool result;
6149 wxColour temp3 ;
6150 PyObject * obj0 = 0 ;
6151 PyObject * obj1 = 0 ;
6152 PyObject * obj2 = 0 ;
8edf1c75 6153 PyObject * obj3 = 0 ;
d14a1e28
RD
6154 char *kwnames[] = {
6155 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6156 };
6157
8edf1c75 6158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
6159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6161 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6162 SWIG_POINTER_EXCEPTION | 0)) == -1)
6163 SWIG_fail;
d14a1e28 6164 if (arg2 == NULL) {
2f4c0a16
RD
6165 PyErr_SetString(PyExc_TypeError,"null reference");
6166 SWIG_fail;
d14a1e28
RD
6167 }
6168 if (obj2) {
6169 {
6170 arg3 = &temp3;
6171 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6172 }
6173 }
8edf1c75 6174 if (obj3) {
2f4c0a16
RD
6175 arg4 = (int) SWIG_AsInt(obj3);
6176 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 6177 }
d14a1e28
RD
6178 {
6179 PyThreadState* __tstate = wxPyBeginAllowThreads();
6180 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
6181
6182 wxPyEndAllowThreads(__tstate);
6183 if (PyErr_Occurred()) SWIG_fail;
6184 }
4f89f6a3
RD
6185 {
6186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6187 }
d14a1e28
RD
6188 return resultobj;
6189 fail:
6190 return NULL;
6191}
6192
6193
6194static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
6195 PyObject *obj;
6196 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6197 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
6198 Py_INCREF(obj);
6199 return Py_BuildValue((char *)"");
6200}
6201static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6202 PyObject *resultobj;
6203 wxRegion *arg1 = 0 ;
6204 wxRegionIterator *result;
6205 PyObject * obj0 = 0 ;
6206 char *kwnames[] = {
6207 (char *) "region", NULL
6208 };
6209
6210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6212 SWIG_POINTER_EXCEPTION | 0)) == -1)
6213 SWIG_fail;
d14a1e28 6214 if (arg1 == NULL) {
2f4c0a16
RD
6215 PyErr_SetString(PyExc_TypeError,"null reference");
6216 SWIG_fail;
d14a1e28
RD
6217 }
6218 {
6219 PyThreadState* __tstate = wxPyBeginAllowThreads();
6220 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
6221
6222 wxPyEndAllowThreads(__tstate);
6223 if (PyErr_Occurred()) SWIG_fail;
6224 }
2f4c0a16 6225 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
d14a1e28
RD
6226 return resultobj;
6227 fail:
6228 return NULL;
6229}
6230
6231
6232static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6233 PyObject *resultobj;
6234 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6235 PyObject * obj0 = 0 ;
6236 char *kwnames[] = {
6237 (char *) "self", NULL
6238 };
6239
6240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6243 {
6244 PyThreadState* __tstate = wxPyBeginAllowThreads();
6245 delete arg1;
6246
6247 wxPyEndAllowThreads(__tstate);
6248 if (PyErr_Occurred()) SWIG_fail;
6249 }
6250 Py_INCREF(Py_None); resultobj = Py_None;
6251 return resultobj;
6252 fail:
6253 return NULL;
6254}
6255
6256
6257static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
6258 PyObject *resultobj;
6259 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 6260 int result;
d14a1e28
RD
6261 PyObject * obj0 = 0 ;
6262 char *kwnames[] = {
6263 (char *) "self", NULL
6264 };
6265
6266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6269 {
6270 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 6271 result = (int)(arg1)->GetX();
d14a1e28
RD
6272
6273 wxPyEndAllowThreads(__tstate);
6274 if (PyErr_Occurred()) SWIG_fail;
6275 }
2f4c0a16 6276 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6277 return resultobj;
6278 fail:
6279 return NULL;
6280}
6281
6282
6283static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
6284 PyObject *resultobj;
6285 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 6286 int result;
d14a1e28
RD
6287 PyObject * obj0 = 0 ;
6288 char *kwnames[] = {
6289 (char *) "self", NULL
6290 };
6291
6292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6295 {
6296 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 6297 result = (int)(arg1)->GetY();
d14a1e28
RD
6298
6299 wxPyEndAllowThreads(__tstate);
6300 if (PyErr_Occurred()) SWIG_fail;
6301 }
2f4c0a16 6302 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6303 return resultobj;
6304 fail:
6305 return NULL;
6306}
6307
6308
6309static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
6310 PyObject *resultobj;
6311 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 6312 int result;
d14a1e28
RD
6313 PyObject * obj0 = 0 ;
6314 char *kwnames[] = {
6315 (char *) "self", NULL
6316 };
6317
6318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6321 {
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 6323 result = (int)(arg1)->GetW();
d14a1e28
RD
6324
6325 wxPyEndAllowThreads(__tstate);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
2f4c0a16 6328 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6329 return resultobj;
6330 fail:
6331 return NULL;
6332}
6333
6334
6335static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6336 PyObject *resultobj;
6337 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 6338 int result;
d14a1e28
RD
6339 PyObject * obj0 = 0 ;
6340 char *kwnames[] = {
6341 (char *) "self", NULL
6342 };
6343
6344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6347 {
6348 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 6349 result = (int)(arg1)->GetWidth();
d14a1e28
RD
6350
6351 wxPyEndAllowThreads(__tstate);
6352 if (PyErr_Occurred()) SWIG_fail;
6353 }
2f4c0a16 6354 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6355 return resultobj;
6356 fail:
6357 return NULL;
6358}
6359
6360
6361static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
6362 PyObject *resultobj;
6363 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 6364 int result;
d14a1e28
RD
6365 PyObject * obj0 = 0 ;
6366 char *kwnames[] = {
6367 (char *) "self", NULL
6368 };
6369
6370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6373 {
6374 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 6375 result = (int)(arg1)->GetH();
d14a1e28
RD
6376
6377 wxPyEndAllowThreads(__tstate);
6378 if (PyErr_Occurred()) SWIG_fail;
6379 }
2f4c0a16 6380 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6381 return resultobj;
6382 fail:
6383 return NULL;
6384}
6385
6386
6387static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6388 PyObject *resultobj;
6389 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 6390 int result;
d14a1e28
RD
6391 PyObject * obj0 = 0 ;
6392 char *kwnames[] = {
6393 (char *) "self", NULL
6394 };
6395
6396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6399 {
6400 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 6401 result = (int)(arg1)->GetHeight();
d14a1e28
RD
6402
6403 wxPyEndAllowThreads(__tstate);
6404 if (PyErr_Occurred()) SWIG_fail;
6405 }
2f4c0a16 6406 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6407 return resultobj;
6408 fail:
6409 return NULL;
6410}
6411
6412
6413static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6414 PyObject *resultobj;
6415 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6416 wxRect result;
6417 PyObject * obj0 = 0 ;
6418 char *kwnames[] = {
6419 (char *) "self", NULL
6420 };
6421
6422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6425 {
6426 PyThreadState* __tstate = wxPyBeginAllowThreads();
6427 result = (arg1)->GetRect();
6428
6429 wxPyEndAllowThreads(__tstate);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 {
6433 wxRect * resultptr;
6434 resultptr = new wxRect((wxRect &) result);
2f4c0a16 6435 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
6436 }
6437 return resultobj;
6438 fail:
6439 return NULL;
6440}
6441
6442
6443static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6444 PyObject *resultobj;
6445 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6446 bool result;
6447 PyObject * obj0 = 0 ;
6448 char *kwnames[] = {
6449 (char *) "self", NULL
6450 };
6451
6452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6455 {
6456 PyThreadState* __tstate = wxPyBeginAllowThreads();
6457 result = (bool)(arg1)->HaveRects();
6458
6459 wxPyEndAllowThreads(__tstate);
6460 if (PyErr_Occurred()) SWIG_fail;
6461 }
4f89f6a3
RD
6462 {
6463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6464 }
d14a1e28
RD
6465 return resultobj;
6466 fail:
6467 return NULL;
6468}
6469
6470
6471static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6472 PyObject *resultobj;
6473 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6474 PyObject * obj0 = 0 ;
6475 char *kwnames[] = {
6476 (char *) "self", NULL
6477 };
6478
6479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6482 {
6483 PyThreadState* __tstate = wxPyBeginAllowThreads();
6484 (arg1)->Reset();
6485
6486 wxPyEndAllowThreads(__tstate);
6487 if (PyErr_Occurred()) SWIG_fail;
6488 }
6489 Py_INCREF(Py_None); resultobj = Py_None;
6490 return resultobj;
6491 fail:
6492 return NULL;
6493}
6494
6495
6496static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6497 PyObject *resultobj;
6498 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6499 PyObject * obj0 = 0 ;
6500 char *kwnames[] = {
6501 (char *) "self", NULL
6502 };
6503
6504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6507 {
6508 PyThreadState* __tstate = wxPyBeginAllowThreads();
6509 wxRegionIterator_Next(arg1);
6510
6511 wxPyEndAllowThreads(__tstate);
6512 if (PyErr_Occurred()) SWIG_fail;
6513 }
6514 Py_INCREF(Py_None); resultobj = Py_None;
6515 return resultobj;
6516 fail:
6517 return NULL;
6518}
6519
6520
6521static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6522 PyObject *resultobj;
6523 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6524 bool result;
6525 PyObject * obj0 = 0 ;
6526 char *kwnames[] = {
6527 (char *) "self", NULL
6528 };
6529
6530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6533 {
6534 PyThreadState* __tstate = wxPyBeginAllowThreads();
6535 result = (bool)wxRegionIterator___nonzero__(arg1);
6536
6537 wxPyEndAllowThreads(__tstate);
6538 if (PyErr_Occurred()) SWIG_fail;
6539 }
4f89f6a3
RD
6540 {
6541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6542 }
d14a1e28
RD
6543 return resultobj;
6544 fail:
6545 return NULL;
6546}
6547
6548
6549static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6550 PyObject *obj;
6551 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6552 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6553 Py_INCREF(obj);
6554 return Py_BuildValue((char *)"");
6555}
6556static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6557 PyObject *resultobj;
6558 wxNativeFontInfo *result;
6559 char *kwnames[] = {
6560 NULL
6561 };
6562
6563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6564 {
6565 PyThreadState* __tstate = wxPyBeginAllowThreads();
6566 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6567
6568 wxPyEndAllowThreads(__tstate);
6569 if (PyErr_Occurred()) SWIG_fail;
6570 }
2f4c0a16 6571 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
d14a1e28
RD
6572 return resultobj;
6573 fail:
6574 return NULL;
6575}
6576
6577
6578static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6579 PyObject *resultobj;
6580 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6581 PyObject * obj0 = 0 ;
6582 char *kwnames[] = {
6583 (char *) "self", NULL
6584 };
6585
6586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6589 {
6590 PyThreadState* __tstate = wxPyBeginAllowThreads();
6591 delete arg1;
6592
6593 wxPyEndAllowThreads(__tstate);
6594 if (PyErr_Occurred()) SWIG_fail;
6595 }
6596 Py_INCREF(Py_None); resultobj = Py_None;
6597 return resultobj;
6598 fail:
6599 return NULL;
6600}
6601
6602
6603static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6604 PyObject *resultobj;
6605 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6606 PyObject * obj0 = 0 ;
6607 char *kwnames[] = {
6608 (char *) "self", NULL
6609 };
6610
6611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6614 {
6615 PyThreadState* __tstate = wxPyBeginAllowThreads();
6616 (arg1)->Init();
6617
6618 wxPyEndAllowThreads(__tstate);
6619 if (PyErr_Occurred()) SWIG_fail;
6620 }
6621 Py_INCREF(Py_None); resultobj = Py_None;
6622 return resultobj;
6623 fail:
6624 return NULL;
6625}
6626
6627
6628static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6629 PyObject *resultobj;
6630 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6631 wxFont *arg2 = 0 ;
6632 PyObject * obj0 = 0 ;
6633 PyObject * obj1 = 0 ;
6634 char *kwnames[] = {
6635 (char *) "self",(char *) "font", NULL
6636 };
6637
6638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6641 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6642 SWIG_POINTER_EXCEPTION | 0)) == -1)
6643 SWIG_fail;
d14a1e28 6644 if (arg2 == NULL) {
2f4c0a16
RD
6645 PyErr_SetString(PyExc_TypeError,"null reference");
6646 SWIG_fail;
d14a1e28
RD
6647 }
6648 {
6649 PyThreadState* __tstate = wxPyBeginAllowThreads();
6650 (arg1)->InitFromFont((wxFont const &)*arg2);
6651
6652 wxPyEndAllowThreads(__tstate);
6653 if (PyErr_Occurred()) SWIG_fail;
6654 }
6655 Py_INCREF(Py_None); resultobj = Py_None;
6656 return resultobj;
6657 fail:
6658 return NULL;
6659}
6660
6661
6662static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6663 PyObject *resultobj;
6664 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6665 int result;
6666 PyObject * obj0 = 0 ;
6667 char *kwnames[] = {
6668 (char *) "self", NULL
6669 };
6670
6671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6674 {
6675 PyThreadState* __tstate = wxPyBeginAllowThreads();
6676 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6677
6678 wxPyEndAllowThreads(__tstate);
6679 if (PyErr_Occurred()) SWIG_fail;
6680 }
2f4c0a16 6681 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6682 return resultobj;
6683 fail:
6684 return NULL;
6685}
6686
6687
6688static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6689 PyObject *resultobj;
6690 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6691 int result;
6692 PyObject * obj0 = 0 ;
6693 char *kwnames[] = {
6694 (char *) "self", NULL
6695 };
6696
6697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6700 {
6701 PyThreadState* __tstate = wxPyBeginAllowThreads();
6702 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6703
6704 wxPyEndAllowThreads(__tstate);
6705 if (PyErr_Occurred()) SWIG_fail;
6706 }
2f4c0a16 6707 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6708 return resultobj;
6709 fail:
6710 return NULL;
6711}
6712
6713
6714static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6715 PyObject *resultobj;
6716 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6717 int result;
6718 PyObject * obj0 = 0 ;
6719 char *kwnames[] = {
6720 (char *) "self", NULL
6721 };
6722
6723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6726 {
6727 PyThreadState* __tstate = wxPyBeginAllowThreads();
6728 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6729
6730 wxPyEndAllowThreads(__tstate);
6731 if (PyErr_Occurred()) SWIG_fail;
6732 }
2f4c0a16 6733 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6734 return resultobj;
6735 fail:
6736 return NULL;
6737}
6738
6739
6740static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6741 PyObject *resultobj;
6742 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6743 bool result;
6744 PyObject * obj0 = 0 ;
6745 char *kwnames[] = {
6746 (char *) "self", NULL
6747 };
6748
6749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6752 {
6753 PyThreadState* __tstate = wxPyBeginAllowThreads();
6754 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6755
6756 wxPyEndAllowThreads(__tstate);
6757 if (PyErr_Occurred()) SWIG_fail;
6758 }
4f89f6a3
RD
6759 {
6760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6761 }
d14a1e28
RD
6762 return resultobj;
6763 fail:
6764 return NULL;
6765}
6766
6767
6768static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6769 PyObject *resultobj;
6770 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6771 wxString result;
6772 PyObject * obj0 = 0 ;
6773 char *kwnames[] = {
6774 (char *) "self", NULL
6775 };
6776
6777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6780 {
6781 PyThreadState* __tstate = wxPyBeginAllowThreads();
6782 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6783
6784 wxPyEndAllowThreads(__tstate);
6785 if (PyErr_Occurred()) SWIG_fail;
6786 }
6787 {
6788#if wxUSE_UNICODE
6789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6790#else
6791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6792#endif
6793 }
6794 return resultobj;
6795 fail:
6796 return NULL;
6797}
6798
6799
6800static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6801 PyObject *resultobj;
6802 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6803 int result;
6804 PyObject * obj0 = 0 ;
6805 char *kwnames[] = {
6806 (char *) "self", NULL
6807 };
6808
6809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6812 {
6813 PyThreadState* __tstate = wxPyBeginAllowThreads();
6814 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6815
6816 wxPyEndAllowThreads(__tstate);
6817 if (PyErr_Occurred()) SWIG_fail;
6818 }
2f4c0a16 6819 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6820 return resultobj;
6821 fail:
6822 return NULL;
6823}
6824
6825
6826static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6827 PyObject *resultobj;
6828 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6829 int result;
6830 PyObject * obj0 = 0 ;
6831 char *kwnames[] = {
6832 (char *) "self", NULL
6833 };
6834
6835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6838 {
6839 PyThreadState* __tstate = wxPyBeginAllowThreads();
6840 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6841
6842 wxPyEndAllowThreads(__tstate);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
2f4c0a16 6845 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6846 return resultobj;
6847 fail:
6848 return NULL;
6849}
6850
6851
6852static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6853 PyObject *resultobj;
6854 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6855 int arg2 ;
6856 PyObject * obj0 = 0 ;
8edf1c75 6857 PyObject * obj1 = 0 ;
d14a1e28
RD
6858 char *kwnames[] = {
6859 (char *) "self",(char *) "pointsize", NULL
6860 };
6861
8edf1c75 6862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6865 arg2 = (int) SWIG_AsInt(obj1);
6866 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
6867 {
6868 PyThreadState* __tstate = wxPyBeginAllowThreads();
6869 (arg1)->SetPointSize(arg2);
d14a1e28
RD
6870
6871 wxPyEndAllowThreads(__tstate);
6872 if (PyErr_Occurred()) SWIG_fail;
6873 }
6874 Py_INCREF(Py_None); resultobj = Py_None;
6875 return resultobj;
6876 fail:
6877 return NULL;
6878}
6879
6880
6881static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6882 PyObject *resultobj;
6883 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6884 int arg2 ;
6885 PyObject * obj0 = 0 ;
8edf1c75 6886 PyObject * obj1 = 0 ;
d14a1e28
RD
6887 char *kwnames[] = {
6888 (char *) "self",(char *) "style", NULL
6889 };
6890
8edf1c75 6891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6894 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6895 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6896 {
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 (arg1)->SetStyle((wxFontStyle )arg2);
6899
6900 wxPyEndAllowThreads(__tstate);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 }
6903 Py_INCREF(Py_None); resultobj = Py_None;
6904 return resultobj;
6905 fail:
6906 return NULL;
6907}
6908
6909
6910static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6911 PyObject *resultobj;
6912 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6913 int arg2 ;
6914 PyObject * obj0 = 0 ;
8edf1c75 6915 PyObject * obj1 = 0 ;
d14a1e28
RD
6916 char *kwnames[] = {
6917 (char *) "self",(char *) "weight", NULL
6918 };
6919
8edf1c75 6920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6923 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6924 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6925 {
6926 PyThreadState* __tstate = wxPyBeginAllowThreads();
6927 (arg1)->SetWeight((wxFontWeight )arg2);
6928
6929 wxPyEndAllowThreads(__tstate);
6930 if (PyErr_Occurred()) SWIG_fail;
6931 }
6932 Py_INCREF(Py_None); resultobj = Py_None;
6933 return resultobj;
6934 fail:
6935 return NULL;
6936}
6937
6938
6939static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6940 PyObject *resultobj;
6941 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6942 bool arg2 ;
6943 PyObject * obj0 = 0 ;
6944 PyObject * obj1 = 0 ;
6945 char *kwnames[] = {
6946 (char *) "self",(char *) "underlined", NULL
6947 };
6948
6949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6952 arg2 = (bool) SWIG_AsBool(obj1);
6953 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6954 {
6955 PyThreadState* __tstate = wxPyBeginAllowThreads();
6956 (arg1)->SetUnderlined(arg2);
6957
6958 wxPyEndAllowThreads(__tstate);
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 Py_INCREF(Py_None); resultobj = Py_None;
6962 return resultobj;
6963 fail:
6964 return NULL;
6965}
6966
6967
6968static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6969 PyObject *resultobj;
6970 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6971 wxString arg2 ;
d14a1e28
RD
6972 PyObject * obj0 = 0 ;
6973 PyObject * obj1 = 0 ;
6974 char *kwnames[] = {
6975 (char *) "self",(char *) "facename", NULL
6976 };
6977
6978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
423f194a
RD
6981 {
6982 wxString* sptr = wxString_in_helper(obj1);
6983 if (sptr == NULL) SWIG_fail;
6984 arg2 = *sptr;
6985 delete sptr;
6986 }
d14a1e28
RD
6987 {
6988 PyThreadState* __tstate = wxPyBeginAllowThreads();
6989 (arg1)->SetFaceName(arg2);
6990
6991 wxPyEndAllowThreads(__tstate);
6992 if (PyErr_Occurred()) SWIG_fail;
6993 }
6994 Py_INCREF(Py_None); resultobj = Py_None;
6995 return resultobj;
6996 fail:
6997 return NULL;
6998}
6999
7000
7001static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7002 PyObject *resultobj;
7003 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7004 int arg2 ;
7005 PyObject * obj0 = 0 ;
8edf1c75 7006 PyObject * obj1 = 0 ;
d14a1e28
RD
7007 char *kwnames[] = {
7008 (char *) "self",(char *) "family", NULL
7009 };
7010
8edf1c75 7011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7014 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7015 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7016 {
7017 PyThreadState* __tstate = wxPyBeginAllowThreads();
7018 (arg1)->SetFamily((wxFontFamily )arg2);
7019
7020 wxPyEndAllowThreads(__tstate);
7021 if (PyErr_Occurred()) SWIG_fail;
7022 }
7023 Py_INCREF(Py_None); resultobj = Py_None;
7024 return resultobj;
7025 fail:
7026 return NULL;
7027}
7028
7029
7030static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7031 PyObject *resultobj;
7032 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7033 int arg2 ;
7034 PyObject * obj0 = 0 ;
8edf1c75 7035 PyObject * obj1 = 0 ;
d14a1e28
RD
7036 char *kwnames[] = {
7037 (char *) "self",(char *) "encoding", NULL
7038 };
7039
8edf1c75 7040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7043 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7044 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7045 {
7046 PyThreadState* __tstate = wxPyBeginAllowThreads();
7047 (arg1)->SetEncoding((wxFontEncoding )arg2);
7048
7049 wxPyEndAllowThreads(__tstate);
7050 if (PyErr_Occurred()) SWIG_fail;
7051 }
7052 Py_INCREF(Py_None); resultobj = Py_None;
7053 return resultobj;
7054 fail:
7055 return NULL;
7056}
7057
7058
7059static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7060 PyObject *resultobj;
7061 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7062 wxString *arg2 = 0 ;
7063 bool result;
423f194a 7064 bool temp2 = False ;
d14a1e28
RD
7065 PyObject * obj0 = 0 ;
7066 PyObject * obj1 = 0 ;
7067 char *kwnames[] = {
7068 (char *) "self",(char *) "s", NULL
7069 };
7070
7071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7074 {
7075 arg2 = wxString_in_helper(obj1);
7076 if (arg2 == NULL) SWIG_fail;
423f194a 7077 temp2 = True;
d14a1e28
RD
7078 }
7079 {
7080 PyThreadState* __tstate = wxPyBeginAllowThreads();
7081 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7082
7083 wxPyEndAllowThreads(__tstate);
7084 if (PyErr_Occurred()) SWIG_fail;
7085 }
4f89f6a3
RD
7086 {
7087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7088 }
d14a1e28
RD
7089 {
7090 if (temp2)
7091 delete arg2;
7092 }
7093 return resultobj;
7094 fail:
7095 {
7096 if (temp2)
7097 delete arg2;
7098 }
7099 return NULL;
7100}
7101
7102
7103static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7104 PyObject *resultobj;
7105 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7106 wxString result;
7107 PyObject * obj0 = 0 ;
7108 char *kwnames[] = {
7109 (char *) "self", NULL
7110 };
7111
7112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7115 {
7116 PyThreadState* __tstate = wxPyBeginAllowThreads();
7117 result = ((wxNativeFontInfo const *)arg1)->ToString();
7118
7119 wxPyEndAllowThreads(__tstate);
7120 if (PyErr_Occurred()) SWIG_fail;
7121 }
7122 {
7123#if wxUSE_UNICODE
7124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7125#else
7126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7127#endif
7128 }
7129 return resultobj;
7130 fail:
7131 return NULL;
7132}
7133
7134
7135static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
7136 PyObject *resultobj;
7137 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7138 wxString result;
7139 PyObject * obj0 = 0 ;
7140 char *kwnames[] = {
7141 (char *) "self", NULL
7142 };
7143
7144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7147 {
7148 PyThreadState* __tstate = wxPyBeginAllowThreads();
7149 result = wxNativeFontInfo___str__(arg1);
7150
7151 wxPyEndAllowThreads(__tstate);
7152 if (PyErr_Occurred()) SWIG_fail;
7153 }
7154 {
7155#if wxUSE_UNICODE
7156 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7157#else
7158 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7159#endif
7160 }
7161 return resultobj;
7162 fail:
7163 return NULL;
7164}
7165
7166
7167static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7168 PyObject *resultobj;
7169 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7170 wxString *arg2 = 0 ;
7171 bool result;
423f194a 7172 bool temp2 = False ;
d14a1e28
RD
7173 PyObject * obj0 = 0 ;
7174 PyObject * obj1 = 0 ;
7175 char *kwnames[] = {
7176 (char *) "self",(char *) "s", NULL
7177 };
7178
7179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7182 {
7183 arg2 = wxString_in_helper(obj1);
7184 if (arg2 == NULL) SWIG_fail;
423f194a 7185 temp2 = True;
d14a1e28
RD
7186 }
7187 {
7188 PyThreadState* __tstate = wxPyBeginAllowThreads();
7189 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
7190
7191 wxPyEndAllowThreads(__tstate);
7192 if (PyErr_Occurred()) SWIG_fail;
7193 }
4f89f6a3
RD
7194 {
7195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7196 }
d14a1e28
RD
7197 {
7198 if (temp2)
7199 delete arg2;
7200 }
7201 return resultobj;
7202 fail:
7203 {
7204 if (temp2)
7205 delete arg2;
7206 }
7207 return NULL;
7208}
7209
7210
7211static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7212 PyObject *resultobj;
7213 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7214 wxString result;
7215 PyObject * obj0 = 0 ;
7216 char *kwnames[] = {
7217 (char *) "self", NULL
7218 };
7219
7220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7223 {
7224 PyThreadState* __tstate = wxPyBeginAllowThreads();
7225 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
7226
7227 wxPyEndAllowThreads(__tstate);
7228 if (PyErr_Occurred()) SWIG_fail;
7229 }
7230 {
7231#if wxUSE_UNICODE
7232 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7233#else
7234 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7235#endif
7236 }
7237 return resultobj;
7238 fail:
7239 return NULL;
7240}
7241
7242
7243static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
7244 PyObject *obj;
7245 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7246 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
7247 Py_INCREF(obj);
7248 return Py_BuildValue((char *)"");
7249}
7250static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7251 PyObject *resultobj;
7252 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
d03fd34d 7253 wxString *arg2 = (wxString *) 0 ;
f775c30d 7254 bool temp2 = False ;
d14a1e28
RD
7255 PyObject * obj0 = 0 ;
7256 PyObject * obj1 = 0 ;
7257 char *kwnames[] = {
7258 (char *) "self",(char *) "facename", NULL
7259 };
7260
7261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
f775c30d
RD
7264 {
7265 arg2 = wxString_in_helper(obj1);
7266 if (arg2 == NULL) SWIG_fail;
7267 temp2 = True;
7268 }
d03fd34d 7269 if (arg1) (arg1)->facename = *arg2;
d14a1e28
RD
7270
7271 Py_INCREF(Py_None); resultobj = Py_None;
f775c30d
RD
7272 {
7273 if (temp2)
7274 delete arg2;
7275 }
d14a1e28
RD
7276 return resultobj;
7277 fail:
f775c30d
RD
7278 {
7279 if (temp2)
7280 delete arg2;
7281 }
d14a1e28
RD
7282 return NULL;
7283}
7284
7285
7286static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7287 PyObject *resultobj;
7288 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
d03fd34d 7289 wxString *result;
d14a1e28
RD
7290 PyObject * obj0 = 0 ;
7291 char *kwnames[] = {
7292 (char *) "self", NULL
7293 };
7294
7295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d03fd34d 7298 result = (wxString *)& ((arg1)->facename);
d14a1e28
RD
7299
7300 {
7301#if wxUSE_UNICODE
d03fd34d 7302 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 7303#else
d03fd34d 7304 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
7305#endif
7306 }
7307 return resultobj;
7308 fail:
7309 return NULL;
7310}
7311
7312
7313static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7314 PyObject *resultobj;
7315 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7316 int arg2 ;
7317 PyObject * obj0 = 0 ;
8edf1c75 7318 PyObject * obj1 = 0 ;
d14a1e28
RD
7319 char *kwnames[] = {
7320 (char *) "self",(char *) "encoding", NULL
7321 };
7322
8edf1c75 7323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7326 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7327 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7328 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
7329
7330 Py_INCREF(Py_None); resultobj = Py_None;
7331 return resultobj;
7332 fail:
7333 return NULL;
7334}
7335
7336
7337static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7338 PyObject *resultobj;
7339 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7340 int result;
7341 PyObject * obj0 = 0 ;
7342 char *kwnames[] = {
7343 (char *) "self", NULL
7344 };
7345
7346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7349 result = (int) ((arg1)->encoding);
7350
2f4c0a16 7351 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7352 return resultobj;
7353 fail:
7354 return NULL;
7355}
7356
7357
7358static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7359 PyObject *resultobj;
7360 wxNativeEncodingInfo *result;
7361 char *kwnames[] = {
7362 NULL
7363 };
7364
7365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7366 {
7367 PyThreadState* __tstate = wxPyBeginAllowThreads();
7368 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7369
7370 wxPyEndAllowThreads(__tstate);
7371 if (PyErr_Occurred()) SWIG_fail;
7372 }
2f4c0a16 7373 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
d14a1e28
RD
7374 return resultobj;
7375 fail:
7376 return NULL;
7377}
7378
7379
7380static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7381 PyObject *resultobj;
7382 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7383 PyObject * obj0 = 0 ;
7384 char *kwnames[] = {
7385 (char *) "self", NULL
7386 };
7387
7388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7391 {
7392 PyThreadState* __tstate = wxPyBeginAllowThreads();
7393 delete arg1;
7394
7395 wxPyEndAllowThreads(__tstate);
7396 if (PyErr_Occurred()) SWIG_fail;
7397 }
7398 Py_INCREF(Py_None); resultobj = Py_None;
7399 return resultobj;
7400 fail:
7401 return NULL;
7402}
7403
7404
7405static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7406 PyObject *resultobj;
7407 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7408 wxString *arg2 = 0 ;
7409 bool result;
423f194a 7410 bool temp2 = False ;
d14a1e28
RD
7411 PyObject * obj0 = 0 ;
7412 PyObject * obj1 = 0 ;
7413 char *kwnames[] = {
7414 (char *) "self",(char *) "s", NULL
7415 };
7416
7417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7420 {
7421 arg2 = wxString_in_helper(obj1);
7422 if (arg2 == NULL) SWIG_fail;
423f194a 7423 temp2 = True;
d14a1e28
RD
7424 }
7425 {
7426 PyThreadState* __tstate = wxPyBeginAllowThreads();
7427 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7428
7429 wxPyEndAllowThreads(__tstate);
7430 if (PyErr_Occurred()) SWIG_fail;
7431 }
4f89f6a3
RD
7432 {
7433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7434 }
d14a1e28
RD
7435 {
7436 if (temp2)
7437 delete arg2;
7438 }
7439 return resultobj;
7440 fail:
7441 {
7442 if (temp2)
7443 delete arg2;
7444 }
7445 return NULL;
7446}
7447
7448
7449static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7450 PyObject *resultobj;
7451 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7452 wxString result;
7453 PyObject * obj0 = 0 ;
7454 char *kwnames[] = {
7455 (char *) "self", NULL
7456 };
7457
7458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7461 {
7462 PyThreadState* __tstate = wxPyBeginAllowThreads();
7463 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7464
7465 wxPyEndAllowThreads(__tstate);
7466 if (PyErr_Occurred()) SWIG_fail;
7467 }
7468 {
7469#if wxUSE_UNICODE
7470 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7471#else
7472 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7473#endif
7474 }
7475 return resultobj;
7476 fail:
7477 return NULL;
7478}
7479
7480
7481static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7482 PyObject *obj;
7483 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7484 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7485 Py_INCREF(obj);
7486 return Py_BuildValue((char *)"");
7487}
7488static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7489 PyObject *resultobj;
7490 int arg1 ;
7491 wxNativeEncodingInfo *result;
8edf1c75 7492 PyObject * obj0 = 0 ;
d14a1e28
RD
7493 char *kwnames[] = {
7494 (char *) "encoding", NULL
7495 };
7496
8edf1c75 7497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7498 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7499 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7500 {
7501 PyThreadState* __tstate = wxPyBeginAllowThreads();
7502 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7503
7504 wxPyEndAllowThreads(__tstate);
7505 if (PyErr_Occurred()) SWIG_fail;
7506 }
2f4c0a16 7507 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
d14a1e28
RD
7508 return resultobj;
7509 fail:
7510 return NULL;
7511}
7512
7513
7514static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7515 PyObject *resultobj;
7516 wxNativeEncodingInfo *arg1 = 0 ;
7517 bool result;
7518 PyObject * obj0 = 0 ;
7519 char *kwnames[] = {
7520 (char *) "info", NULL
7521 };
7522
7523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7525 SWIG_POINTER_EXCEPTION | 0)) == -1)
7526 SWIG_fail;
d14a1e28 7527 if (arg1 == NULL) {
2f4c0a16
RD
7528 PyErr_SetString(PyExc_TypeError,"null reference");
7529 SWIG_fail;
d14a1e28
RD
7530 }
7531 {
7532 PyThreadState* __tstate = wxPyBeginAllowThreads();
7533 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7534
7535 wxPyEndAllowThreads(__tstate);
7536 if (PyErr_Occurred()) SWIG_fail;
7537 }
4f89f6a3
RD
7538 {
7539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7540 }
d14a1e28
RD
7541 return resultobj;
7542 fail:
7543 return NULL;
7544}
7545
7546
7547static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7548 PyObject *resultobj;
7549 wxFontMapper *result;
7550 char *kwnames[] = {
7551 NULL
7552 };
7553
7554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7555 {
7556 PyThreadState* __tstate = wxPyBeginAllowThreads();
7557 result = (wxFontMapper *)new wxFontMapper();
7558
7559 wxPyEndAllowThreads(__tstate);
7560 if (PyErr_Occurred()) SWIG_fail;
7561 }
2f4c0a16 7562 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
d14a1e28
RD
7563 return resultobj;
7564 fail:
7565 return NULL;
7566}
7567
7568
7569static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7570 PyObject *resultobj;
7571 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7572 PyObject * obj0 = 0 ;
7573 char *kwnames[] = {
7574 (char *) "self", NULL
7575 };
7576
7577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7580 {
7581 PyThreadState* __tstate = wxPyBeginAllowThreads();
7582 delete arg1;
7583
7584 wxPyEndAllowThreads(__tstate);
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 Py_INCREF(Py_None); resultobj = Py_None;
7588 return resultobj;
7589 fail:
7590 return NULL;
7591}
7592
7593
7594static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7595 PyObject *resultobj;
7596 wxFontMapper *result;
7597 char *kwnames[] = {
7598 NULL
7599 };
7600
7601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7602 {
7603 PyThreadState* __tstate = wxPyBeginAllowThreads();
7604 result = (wxFontMapper *)wxFontMapper::Get();
7605
7606 wxPyEndAllowThreads(__tstate);
7607 if (PyErr_Occurred()) SWIG_fail;
7608 }
2f4c0a16 7609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
d14a1e28
RD
7610 return resultobj;
7611 fail:
7612 return NULL;
7613}
7614
7615
7616static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7617 PyObject *resultobj;
7618 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7619 wxFontMapper *result;
7620 PyObject * obj0 = 0 ;
7621 char *kwnames[] = {
7622 (char *) "mapper", NULL
7623 };
7624
7625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7628 {
7629 PyThreadState* __tstate = wxPyBeginAllowThreads();
7630 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7631
7632 wxPyEndAllowThreads(__tstate);
7633 if (PyErr_Occurred()) SWIG_fail;
7634 }
2f4c0a16 7635 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
d14a1e28
RD
7636 return resultobj;
7637 fail:
7638 return NULL;
7639}
7640
7641
7642static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7643 PyObject *resultobj;
7644 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7645 wxString *arg2 = 0 ;
423f194a 7646 bool arg3 = (bool) True ;
d14a1e28 7647 int result;
423f194a 7648 bool temp2 = False ;
d14a1e28
RD
7649 PyObject * obj0 = 0 ;
7650 PyObject * obj1 = 0 ;
7651 PyObject * obj2 = 0 ;
7652 char *kwnames[] = {
7653 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7654 };
7655
7656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
7657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7659 {
7660 arg2 = wxString_in_helper(obj1);
7661 if (arg2 == NULL) SWIG_fail;
423f194a 7662 temp2 = True;
d14a1e28
RD
7663 }
7664 if (obj2) {
2f4c0a16
RD
7665 arg3 = (bool) SWIG_AsBool(obj2);
7666 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7667 }
7668 {
7669 PyThreadState* __tstate = wxPyBeginAllowThreads();
7670 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7671
7672 wxPyEndAllowThreads(__tstate);
7673 if (PyErr_Occurred()) SWIG_fail;
7674 }
2f4c0a16 7675 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7676 {
7677 if (temp2)
7678 delete arg2;
7679 }
7680 return resultobj;
7681 fail:
7682 {
7683 if (temp2)
7684 delete arg2;
7685 }
7686 return NULL;
7687}
7688
7689
7690static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7691 PyObject *resultobj;
7692 size_t result;
7693 char *kwnames[] = {
7694 NULL
7695 };
7696
7697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7698 {
7699 PyThreadState* __tstate = wxPyBeginAllowThreads();
7700 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7701
7702 wxPyEndAllowThreads(__tstate);
7703 if (PyErr_Occurred()) SWIG_fail;
7704 }
2f4c0a16 7705 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
7706 return resultobj;
7707 fail:
7708 return NULL;
7709}
7710
7711
7712static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7713 PyObject *resultobj;
7714 size_t arg1 ;
7715 int result;
7716 PyObject * obj0 = 0 ;
7717 char *kwnames[] = {
7718 (char *) "n", NULL
7719 };
7720
7721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7722 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7723 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7724 {
7725 PyThreadState* __tstate = wxPyBeginAllowThreads();
7726 result = (int)wxFontMapper::GetEncoding(arg1);
7727
7728 wxPyEndAllowThreads(__tstate);
7729 if (PyErr_Occurred()) SWIG_fail;
7730 }
2f4c0a16 7731 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7732 return resultobj;
7733 fail:
7734 return NULL;
7735}
7736
7737
7738static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7739 PyObject *resultobj;
7740 int arg1 ;
7741 wxString result;
8edf1c75 7742 PyObject * obj0 = 0 ;
d14a1e28
RD
7743 char *kwnames[] = {
7744 (char *) "encoding", NULL
7745 };
7746
8edf1c75 7747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7748 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7749 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7750 {
7751 PyThreadState* __tstate = wxPyBeginAllowThreads();
7752 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7753
7754 wxPyEndAllowThreads(__tstate);
7755 if (PyErr_Occurred()) SWIG_fail;
7756 }
7757 {
7758#if wxUSE_UNICODE
7759 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7760#else
7761 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7762#endif
7763 }
7764 return resultobj;
7765 fail:
7766 return NULL;
7767}
7768
7769
7770static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7771 PyObject *resultobj;
7772 int arg1 ;
7773 wxString result;
8edf1c75 7774 PyObject * obj0 = 0 ;
d14a1e28
RD
7775 char *kwnames[] = {
7776 (char *) "encoding", NULL
7777 };
7778
8edf1c75 7779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7780 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7781 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7782 {
7783 PyThreadState* __tstate = wxPyBeginAllowThreads();
7784 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7785
7786 wxPyEndAllowThreads(__tstate);
7787 if (PyErr_Occurred()) SWIG_fail;
7788 }
7789 {
7790#if wxUSE_UNICODE
7791 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7792#else
7793 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7794#endif
7795 }
7796 return resultobj;
7797 fail:
7798 return NULL;
7799}
7800
7801
7802static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7803 PyObject *resultobj;
7804 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7805 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7806 PyObject * obj0 = 0 ;
7807 PyObject * obj1 = 0 ;
7808 char *kwnames[] = {
7809 (char *) "self",(char *) "config", NULL
7810 };
7811
7812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7815 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7817 {
7818 PyThreadState* __tstate = wxPyBeginAllowThreads();
7819 (arg1)->SetConfig(arg2);
7820
7821 wxPyEndAllowThreads(__tstate);
7822 if (PyErr_Occurred()) SWIG_fail;
7823 }
7824 Py_INCREF(Py_None); resultobj = Py_None;
7825 return resultobj;
7826 fail:
7827 return NULL;
7828}
7829
7830
7831static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7832 PyObject *resultobj;
7833 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7834 wxString *arg2 = 0 ;
423f194a 7835 bool temp2 = False ;
d14a1e28
RD
7836 PyObject * obj0 = 0 ;
7837 PyObject * obj1 = 0 ;
7838 char *kwnames[] = {
7839 (char *) "self",(char *) "prefix", NULL
7840 };
7841
7842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7845 {
7846 arg2 = wxString_in_helper(obj1);
7847 if (arg2 == NULL) SWIG_fail;
423f194a 7848 temp2 = True;
d14a1e28
RD
7849 }
7850 {
7851 PyThreadState* __tstate = wxPyBeginAllowThreads();
7852 (arg1)->SetConfigPath((wxString const &)*arg2);
7853
7854 wxPyEndAllowThreads(__tstate);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 Py_INCREF(Py_None); resultobj = Py_None;
7858 {
7859 if (temp2)
7860 delete arg2;
7861 }
7862 return resultobj;
7863 fail:
7864 {
7865 if (temp2)
7866 delete arg2;
7867 }
7868 return NULL;
7869}
7870
7871
7872static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7873 PyObject *resultobj;
7874 wxString result;
7875 char *kwnames[] = {
7876 NULL
7877 };
7878
7879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7880 {
7881 PyThreadState* __tstate = wxPyBeginAllowThreads();
7882 result = wxFontMapper::GetDefaultConfigPath();
7883
7884 wxPyEndAllowThreads(__tstate);
7885 if (PyErr_Occurred()) SWIG_fail;
7886 }
7887 {
7888#if wxUSE_UNICODE
7889 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7890#else
7891 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7892#endif
7893 }
7894 return resultobj;
7895 fail:
7896 return NULL;
7897}
7898
7899
7900static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7901 PyObject *resultobj;
7902 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7903 int arg2 ;
7904 wxString const &arg3_defvalue = wxPyEmptyString ;
7905 wxString *arg3 = (wxString *) &arg3_defvalue ;
423f194a 7906 bool arg4 = (bool) True ;
d14a1e28 7907 PyObject *result;
423f194a 7908 bool temp3 = False ;
d14a1e28 7909 PyObject * obj0 = 0 ;
8edf1c75 7910 PyObject * obj1 = 0 ;
d14a1e28
RD
7911 PyObject * obj2 = 0 ;
7912 PyObject * obj3 = 0 ;
7913 char *kwnames[] = {
7914 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7915 };
7916
8edf1c75 7917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
7918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7920 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7921 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7922 if (obj2) {
7923 {
7924 arg3 = wxString_in_helper(obj2);
7925 if (arg3 == NULL) SWIG_fail;
423f194a 7926 temp3 = True;
d14a1e28
RD
7927 }
7928 }
7929 if (obj3) {
2f4c0a16
RD
7930 arg4 = (bool) SWIG_AsBool(obj3);
7931 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7932 }
7933 {
7934 PyThreadState* __tstate = wxPyBeginAllowThreads();
7935 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7936
7937 wxPyEndAllowThreads(__tstate);
7938 if (PyErr_Occurred()) SWIG_fail;
7939 }
7940 resultobj = result;
7941 {
7942 if (temp3)
7943 delete arg3;
7944 }
7945 return resultobj;
7946 fail:
7947 {
7948 if (temp3)
7949 delete arg3;
7950 }
7951 return NULL;
7952}
7953
7954
7955static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7956 PyObject *resultobj;
7957 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7958 int arg2 ;
7959 wxString const &arg3_defvalue = wxPyEmptyString ;
7960 wxString *arg3 = (wxString *) &arg3_defvalue ;
7961 bool result;
423f194a 7962 bool temp3 = False ;
d14a1e28 7963 PyObject * obj0 = 0 ;
8edf1c75 7964 PyObject * obj1 = 0 ;
d14a1e28
RD
7965 PyObject * obj2 = 0 ;
7966 char *kwnames[] = {
7967 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7968 };
7969
8edf1c75 7970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
7971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7973 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7974 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7975 if (obj2) {
7976 {
7977 arg3 = wxString_in_helper(obj2);
7978 if (arg3 == NULL) SWIG_fail;
423f194a 7979 temp3 = True;
d14a1e28
RD
7980 }
7981 }
7982 {
7983 PyThreadState* __tstate = wxPyBeginAllowThreads();
7984 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7985
7986 wxPyEndAllowThreads(__tstate);
7987 if (PyErr_Occurred()) SWIG_fail;
7988 }
4f89f6a3
RD
7989 {
7990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7991 }
d14a1e28
RD
7992 {
7993 if (temp3)
7994 delete arg3;
7995 }
7996 return resultobj;
7997 fail:
7998 {
7999 if (temp3)
8000 delete arg3;
8001 }
8002 return NULL;
8003}
8004
8005
8006static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
8007 PyObject *resultobj;
8008 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8009 wxWindow *arg2 = (wxWindow *) 0 ;
8010 PyObject * obj0 = 0 ;
8011 PyObject * obj1 = 0 ;
8012 char *kwnames[] = {
8013 (char *) "self",(char *) "parent", NULL
8014 };
8015
8016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8019 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8021 {
8022 PyThreadState* __tstate = wxPyBeginAllowThreads();
8023 (arg1)->SetDialogParent(arg2);
8024
8025 wxPyEndAllowThreads(__tstate);
8026 if (PyErr_Occurred()) SWIG_fail;
8027 }
8028 Py_INCREF(Py_None); resultobj = Py_None;
8029 return resultobj;
8030 fail:
8031 return NULL;
8032}
8033
8034
8035static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
8036 PyObject *resultobj;
8037 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8038 wxString *arg2 = 0 ;
423f194a 8039 bool temp2 = False ;
d14a1e28
RD
8040 PyObject * obj0 = 0 ;
8041 PyObject * obj1 = 0 ;
8042 char *kwnames[] = {
8043 (char *) "self",(char *) "title", NULL
8044 };
8045
8046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8049 {
8050 arg2 = wxString_in_helper(obj1);
8051 if (arg2 == NULL) SWIG_fail;
423f194a 8052 temp2 = True;
d14a1e28
RD
8053 }
8054 {
8055 PyThreadState* __tstate = wxPyBeginAllowThreads();
8056 (arg1)->SetDialogTitle((wxString const &)*arg2);
8057
8058 wxPyEndAllowThreads(__tstate);
8059 if (PyErr_Occurred()) SWIG_fail;
8060 }
8061 Py_INCREF(Py_None); resultobj = Py_None;
8062 {
8063 if (temp2)
8064 delete arg2;
8065 }
8066 return resultobj;
8067 fail:
8068 {
8069 if (temp2)
8070 delete arg2;
8071 }
8072 return NULL;
8073}
8074
8075
8076static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
8077 PyObject *obj;
8078 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8079 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
8080 Py_INCREF(obj);
8081 return Py_BuildValue((char *)"");
8082}
8083static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8084 PyObject *resultobj;
8085 int arg1 ;
8086 int arg2 ;
8087 int arg3 ;
8088 int arg4 ;
423f194a 8089 bool arg5 = (bool) False ;
d14a1e28
RD
8090 wxString const &arg6_defvalue = wxPyEmptyString ;
8091 wxString *arg6 = (wxString *) &arg6_defvalue ;
8092 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8093 wxFont *result;
423f194a 8094 bool temp6 = False ;
8edf1c75
RD
8095 PyObject * obj0 = 0 ;
8096 PyObject * obj1 = 0 ;
8097 PyObject * obj2 = 0 ;
8098 PyObject * obj3 = 0 ;
d14a1e28
RD
8099 PyObject * obj4 = 0 ;
8100 PyObject * obj5 = 0 ;
8edf1c75 8101 PyObject * obj6 = 0 ;
d14a1e28
RD
8102 char *kwnames[] = {
8103 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
8104 };
8105
8edf1c75 8106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
2f4c0a16
RD
8107 arg1 = (int) SWIG_AsInt(obj0);
8108 if (PyErr_Occurred()) SWIG_fail;
8109 arg2 = (int) SWIG_AsInt(obj1);
8110 if (PyErr_Occurred()) SWIG_fail;
8111 arg3 = (int) SWIG_AsInt(obj2);
8112 if (PyErr_Occurred()) SWIG_fail;
8113 arg4 = (int) SWIG_AsInt(obj3);
8114 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 8115 if (obj4) {
2f4c0a16
RD
8116 arg5 = (bool) SWIG_AsBool(obj4);
8117 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8118 }
8119 if (obj5) {
8120 {
8121 arg6 = wxString_in_helper(obj5);
8122 if (arg6 == NULL) SWIG_fail;
423f194a 8123 temp6 = True;
d14a1e28
RD
8124 }
8125 }
8edf1c75 8126 if (obj6) {
2f4c0a16
RD
8127 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
8128 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 8129 }
d14a1e28
RD
8130 {
8131 PyThreadState* __tstate = wxPyBeginAllowThreads();
8132 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8133
8134 wxPyEndAllowThreads(__tstate);
8135 if (PyErr_Occurred()) SWIG_fail;
8136 }
2f4c0a16 8137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
8138 {
8139 if (temp6)
8140 delete arg6;
8141 }
8142 return resultobj;
8143 fail:
8144 {
8145 if (temp6)
8146 delete arg6;
8147 }
8148 return NULL;
8149}
8150
8151
8152static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8153 PyObject *resultobj;
8154 wxFont *arg1 = (wxFont *) 0 ;
8155 PyObject * obj0 = 0 ;
8156 char *kwnames[] = {
8157 (char *) "self", NULL
8158 };
8159
8160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8163 {
8164 PyThreadState* __tstate = wxPyBeginAllowThreads();
8165 delete arg1;
8166
8167 wxPyEndAllowThreads(__tstate);
8168 if (PyErr_Occurred()) SWIG_fail;
8169 }
8170 Py_INCREF(Py_None); resultobj = Py_None;
8171 return resultobj;
8172 fail:
8173 return NULL;
8174}
8175
8176
8177static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8178 PyObject *resultobj;
8179 wxNativeFontInfo *arg1 = 0 ;
8180 wxFont *result;
8181 PyObject * obj0 = 0 ;
8182 char *kwnames[] = {
8183 (char *) "info", NULL
8184 };
8185
8186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
8188 SWIG_POINTER_EXCEPTION | 0)) == -1)
8189 SWIG_fail;
d14a1e28 8190 if (arg1 == NULL) {
2f4c0a16
RD
8191 PyErr_SetString(PyExc_TypeError,"null reference");
8192 SWIG_fail;
d14a1e28
RD
8193 }
8194 {
8195 PyThreadState* __tstate = wxPyBeginAllowThreads();
8196 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
8197
8198 wxPyEndAllowThreads(__tstate);
8199 if (PyErr_Occurred()) SWIG_fail;
8200 }
2f4c0a16 8201 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
8202 return resultobj;
8203 fail:
8204 return NULL;
8205}
8206
8207
8208static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
8209 PyObject *resultobj;
8210 wxString *arg1 = 0 ;
8211 wxFont *result;
423f194a 8212 bool temp1 = False ;
d14a1e28
RD
8213 PyObject * obj0 = 0 ;
8214 char *kwnames[] = {
8215 (char *) "info", NULL
8216 };
8217
8218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
8219 {
8220 arg1 = wxString_in_helper(obj0);
8221 if (arg1 == NULL) SWIG_fail;
423f194a 8222 temp1 = True;
d14a1e28
RD
8223 }
8224 {
8225 PyThreadState* __tstate = wxPyBeginAllowThreads();
8226 result = (wxFont *)new_wxFont((wxString const &)*arg1);
8227
8228 wxPyEndAllowThreads(__tstate);
8229 if (PyErr_Occurred()) SWIG_fail;
8230 }
2f4c0a16 8231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
8232 {
8233 if (temp1)
8234 delete arg1;
8235 }
8236 return resultobj;
8237 fail:
8238 {
8239 if (temp1)
8240 delete arg1;
8241 }
8242 return NULL;
8243}
8244
8245
8246static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
8247 PyObject *resultobj;
8248 int arg1 ;
8249 int arg2 ;
8250 int arg3 = (int) wxFONTFLAG_DEFAULT ;
8251 wxString const &arg4_defvalue = wxPyEmptyString ;
8252 wxString *arg4 = (wxString *) &arg4_defvalue ;
8253 int arg5 = (int) wxFONTENCODING_DEFAULT ;
8254 wxFont *result;
423f194a 8255 bool temp4 = False ;
8edf1c75
RD
8256 PyObject * obj0 = 0 ;
8257 PyObject * obj1 = 0 ;
8258 PyObject * obj2 = 0 ;
d14a1e28 8259 PyObject * obj3 = 0 ;
8edf1c75 8260 PyObject * obj4 = 0 ;
d14a1e28
RD
8261 char *kwnames[] = {
8262 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
8263 };
8264
8edf1c75 8265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
8266 arg1 = (int) SWIG_AsInt(obj0);
8267 if (PyErr_Occurred()) SWIG_fail;
8268 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
8269 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 8270 if (obj2) {
2f4c0a16
RD
8271 arg3 = (int) SWIG_AsInt(obj2);
8272 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 8273 }
d14a1e28
RD
8274 if (obj3) {
8275 {
8276 arg4 = wxString_in_helper(obj3);
8277 if (arg4 == NULL) SWIG_fail;
423f194a 8278 temp4 = True;
d14a1e28
RD
8279 }
8280 }
8edf1c75 8281 if (obj4) {
2f4c0a16
RD
8282 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
8283 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 8284 }
d14a1e28
RD
8285 {
8286 PyThreadState* __tstate = wxPyBeginAllowThreads();
8287 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8288
8289 wxPyEndAllowThreads(__tstate);
8290 if (PyErr_Occurred()) SWIG_fail;
8291 }
2f4c0a16 8292 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
8293 {
8294 if (temp4)
8295 delete arg4;
8296 }
8297 return resultobj;
8298 fail:
8299 {
8300 if (temp4)
8301 delete arg4;
8302 }
8303 return NULL;
8304}
8305
8306
8307static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8308 PyObject *resultobj;
8309 wxFont *arg1 = (wxFont *) 0 ;
8310 bool result;
8311 PyObject * obj0 = 0 ;
8312 char *kwnames[] = {
8313 (char *) "self", NULL
8314 };
8315
8316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8319 {
8320 PyThreadState* __tstate = wxPyBeginAllowThreads();
8321 result = (bool)((wxFont const *)arg1)->Ok();
8322
8323 wxPyEndAllowThreads(__tstate);
8324 if (PyErr_Occurred()) SWIG_fail;
8325 }
4f89f6a3
RD
8326 {
8327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8328 }
d14a1e28
RD
8329 return resultobj;
8330 fail:
8331 return NULL;
8332}
8333
8334
8335static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
8336 PyObject *resultobj;
8337 wxFont *arg1 = (wxFont *) 0 ;
328fcd84 8338 wxFont *arg2 = (wxFont *) 0 ;
d14a1e28
RD
8339 bool result;
8340 PyObject * obj0 = 0 ;
8341 PyObject * obj1 = 0 ;
8342 char *kwnames[] = {
328fcd84 8343 (char *) "self",(char *) "other", NULL
d14a1e28
RD
8344 };
8345
8346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8351 {
8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 8353 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
d14a1e28
RD
8354
8355 wxPyEndAllowThreads(__tstate);
8356 if (PyErr_Occurred()) SWIG_fail;
8357 }
4f89f6a3
RD
8358 {
8359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8360 }
d14a1e28
RD
8361 return resultobj;
8362 fail:
8363 return NULL;
8364}
8365
8366
8367static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
8368 PyObject *resultobj;
8369 wxFont *arg1 = (wxFont *) 0 ;
328fcd84 8370 wxFont *arg2 = (wxFont *) 0 ;
d14a1e28
RD
8371 bool result;
8372 PyObject * obj0 = 0 ;
8373 PyObject * obj1 = 0 ;
8374 char *kwnames[] = {
328fcd84 8375 (char *) "self",(char *) "other", NULL
d14a1e28
RD
8376 };
8377
8378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8381 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8383 {
8384 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 8385 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
d14a1e28
RD
8386
8387 wxPyEndAllowThreads(__tstate);
8388 if (PyErr_Occurred()) SWIG_fail;
8389 }
4f89f6a3
RD
8390 {
8391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8392 }
d14a1e28
RD
8393 return resultobj;
8394 fail:
8395 return NULL;
8396}
8397
8398
8399static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8400 PyObject *resultobj;
8401 wxFont *arg1 = (wxFont *) 0 ;
8402 int result;
8403 PyObject * obj0 = 0 ;
8404 char *kwnames[] = {
8405 (char *) "self", NULL
8406 };
8407
8408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8411 {
8412 PyThreadState* __tstate = wxPyBeginAllowThreads();
8413 result = (int)((wxFont const *)arg1)->GetPointSize();
8414
8415 wxPyEndAllowThreads(__tstate);
8416 if (PyErr_Occurred()) SWIG_fail;
8417 }
2f4c0a16 8418 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8419 return resultobj;
8420 fail:
8421 return NULL;
8422}
8423
8424
8425static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8426 PyObject *resultobj;
8427 wxFont *arg1 = (wxFont *) 0 ;
8428 int result;
8429 PyObject * obj0 = 0 ;
8430 char *kwnames[] = {
8431 (char *) "self", NULL
8432 };
8433
8434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8437 {
8438 PyThreadState* __tstate = wxPyBeginAllowThreads();
8439 result = (int)((wxFont const *)arg1)->GetFamily();
8440
8441 wxPyEndAllowThreads(__tstate);
8442 if (PyErr_Occurred()) SWIG_fail;
8443 }
2f4c0a16 8444 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8445 return resultobj;
8446 fail:
8447 return NULL;
8448}
8449
8450
8451static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8452 PyObject *resultobj;
8453 wxFont *arg1 = (wxFont *) 0 ;
8454 int result;
8455 PyObject * obj0 = 0 ;
8456 char *kwnames[] = {
8457 (char *) "self", NULL
8458 };
8459
8460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8463 {
8464 PyThreadState* __tstate = wxPyBeginAllowThreads();
8465 result = (int)((wxFont const *)arg1)->GetStyle();
8466
8467 wxPyEndAllowThreads(__tstate);
8468 if (PyErr_Occurred()) SWIG_fail;
8469 }
2f4c0a16 8470 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8471 return resultobj;
8472 fail:
8473 return NULL;
8474}
8475
8476
8477static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8478 PyObject *resultobj;
8479 wxFont *arg1 = (wxFont *) 0 ;
8480 int result;
8481 PyObject * obj0 = 0 ;
8482 char *kwnames[] = {
8483 (char *) "self", NULL
8484 };
8485
8486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8489 {
8490 PyThreadState* __tstate = wxPyBeginAllowThreads();
8491 result = (int)((wxFont const *)arg1)->GetWeight();
8492
8493 wxPyEndAllowThreads(__tstate);
8494 if (PyErr_Occurred()) SWIG_fail;
8495 }
2f4c0a16 8496 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8497 return resultobj;
8498 fail:
8499 return NULL;
8500}
8501
8502
8503static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8504 PyObject *resultobj;
8505 wxFont *arg1 = (wxFont *) 0 ;
8506 bool result;
8507 PyObject * obj0 = 0 ;
8508 char *kwnames[] = {
8509 (char *) "self", NULL
8510 };
8511
8512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8515 {
8516 PyThreadState* __tstate = wxPyBeginAllowThreads();
8517 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8518
8519 wxPyEndAllowThreads(__tstate);
8520 if (PyErr_Occurred()) SWIG_fail;
8521 }
4f89f6a3
RD
8522 {
8523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8524 }
d14a1e28
RD
8525 return resultobj;
8526 fail:
8527 return NULL;
8528}
8529
8530
8531static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8532 PyObject *resultobj;
8533 wxFont *arg1 = (wxFont *) 0 ;
8534 wxString result;
8535 PyObject * obj0 = 0 ;
8536 char *kwnames[] = {
8537 (char *) "self", NULL
8538 };
8539
8540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8543 {
8544 PyThreadState* __tstate = wxPyBeginAllowThreads();
8545 result = ((wxFont const *)arg1)->GetFaceName();
8546
8547 wxPyEndAllowThreads(__tstate);
8548 if (PyErr_Occurred()) SWIG_fail;
8549 }
8550 {
8551#if wxUSE_UNICODE
8552 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8553#else
8554 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8555#endif
8556 }
8557 return resultobj;
8558 fail:
8559 return NULL;
8560}
8561
8562
8563static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8564 PyObject *resultobj;
8565 wxFont *arg1 = (wxFont *) 0 ;
8566 int result;
8567 PyObject * obj0 = 0 ;
8568 char *kwnames[] = {
8569 (char *) "self", NULL
8570 };
8571
8572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8575 {
8576 PyThreadState* __tstate = wxPyBeginAllowThreads();
8577 result = (int)((wxFont const *)arg1)->GetEncoding();
8578
8579 wxPyEndAllowThreads(__tstate);
8580 if (PyErr_Occurred()) SWIG_fail;
8581 }
2f4c0a16 8582 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8583 return resultobj;
8584 fail:
8585 return NULL;
8586}
8587
8588
8589static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8590 PyObject *resultobj;
8591 wxFont *arg1 = (wxFont *) 0 ;
8592 wxNativeFontInfo *result;
8593 PyObject * obj0 = 0 ;
8594 char *kwnames[] = {
8595 (char *) "self", NULL
8596 };
8597
8598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8601 {
8602 PyThreadState* __tstate = wxPyBeginAllowThreads();
8603 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8604
8605 wxPyEndAllowThreads(__tstate);
8606 if (PyErr_Occurred()) SWIG_fail;
8607 }
2f4c0a16 8608 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
d14a1e28
RD
8609 return resultobj;
8610 fail:
8611 return NULL;
8612}
8613
8614
8615static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8616 PyObject *resultobj;
8617 wxFont *arg1 = (wxFont *) 0 ;
8618 bool result;
8619 PyObject * obj0 = 0 ;
8620 char *kwnames[] = {
8621 (char *) "self", NULL
8622 };
8623
8624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8627 {
8628 PyThreadState* __tstate = wxPyBeginAllowThreads();
8629 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8630
8631 wxPyEndAllowThreads(__tstate);
8632 if (PyErr_Occurred()) SWIG_fail;
8633 }
4f89f6a3
RD
8634 {
8635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8636 }
d14a1e28
RD
8637 return resultobj;
8638 fail:
8639 return NULL;
8640}
8641
8642
8643static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8644 PyObject *resultobj;
8645 wxFont *arg1 = (wxFont *) 0 ;
8646 wxString result;
8647 PyObject * obj0 = 0 ;
8648 char *kwnames[] = {
8649 (char *) "self", NULL
8650 };
8651
8652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8655 {
8656 PyThreadState* __tstate = wxPyBeginAllowThreads();
8657 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8658
8659 wxPyEndAllowThreads(__tstate);
8660 if (PyErr_Occurred()) SWIG_fail;
8661 }
8662 {
8663#if wxUSE_UNICODE
8664 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8665#else
8666 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8667#endif
8668 }
8669 return resultobj;
8670 fail:
8671 return NULL;
8672}
8673
8674
8675static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8676 PyObject *resultobj;
8677 wxFont *arg1 = (wxFont *) 0 ;
8678 wxString result;
8679 PyObject * obj0 = 0 ;
8680 char *kwnames[] = {
8681 (char *) "self", NULL
8682 };
8683
8684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8687 {
8688 PyThreadState* __tstate = wxPyBeginAllowThreads();
8689 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8690
8691 wxPyEndAllowThreads(__tstate);
8692 if (PyErr_Occurred()) SWIG_fail;
8693 }
8694 {
8695#if wxUSE_UNICODE
8696 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8697#else
8698 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8699#endif
8700 }
8701 return resultobj;
8702 fail:
8703 return NULL;
8704}
8705
8706
8707static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8708 PyObject *resultobj;
8709 wxFont *arg1 = (wxFont *) 0 ;
8710 int arg2 ;
8711 PyObject * obj0 = 0 ;
8edf1c75 8712 PyObject * obj1 = 0 ;
d14a1e28
RD
8713 char *kwnames[] = {
8714 (char *) "self",(char *) "pointSize", NULL
8715 };
8716
8edf1c75 8717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8720 arg2 = (int) SWIG_AsInt(obj1);
8721 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8722 {
8723 PyThreadState* __tstate = wxPyBeginAllowThreads();
8724 (arg1)->SetPointSize(arg2);
8725
8726 wxPyEndAllowThreads(__tstate);
8727 if (PyErr_Occurred()) SWIG_fail;
8728 }
8729 Py_INCREF(Py_None); resultobj = Py_None;
8730 return resultobj;
8731 fail:
8732 return NULL;
8733}
8734
8735
8736static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8737 PyObject *resultobj;
8738 wxFont *arg1 = (wxFont *) 0 ;
8739 int arg2 ;
8740 PyObject * obj0 = 0 ;
8edf1c75 8741 PyObject * obj1 = 0 ;
d14a1e28
RD
8742 char *kwnames[] = {
8743 (char *) "self",(char *) "family", NULL
8744 };
8745
8edf1c75 8746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8749 arg2 = (int) SWIG_AsInt(obj1);
8750 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8751 {
8752 PyThreadState* __tstate = wxPyBeginAllowThreads();
8753 (arg1)->SetFamily(arg2);
8754
8755 wxPyEndAllowThreads(__tstate);
8756 if (PyErr_Occurred()) SWIG_fail;
8757 }
8758 Py_INCREF(Py_None); resultobj = Py_None;
8759 return resultobj;
8760 fail:
8761 return NULL;
8762}
8763
8764
8765static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8766 PyObject *resultobj;
8767 wxFont *arg1 = (wxFont *) 0 ;
8768 int arg2 ;
8769 PyObject * obj0 = 0 ;
8edf1c75 8770 PyObject * obj1 = 0 ;
d14a1e28
RD
8771 char *kwnames[] = {
8772 (char *) "self",(char *) "style", NULL
8773 };
8774
8edf1c75 8775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8778 arg2 = (int) SWIG_AsInt(obj1);
8779 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8780 {
8781 PyThreadState* __tstate = wxPyBeginAllowThreads();
8782 (arg1)->SetStyle(arg2);
8783
8784 wxPyEndAllowThreads(__tstate);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 Py_INCREF(Py_None); resultobj = Py_None;
8788 return resultobj;
8789 fail:
8790 return NULL;
8791}
8792
8793
8794static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8795 PyObject *resultobj;
8796 wxFont *arg1 = (wxFont *) 0 ;
8797 int arg2 ;
8798 PyObject * obj0 = 0 ;
8edf1c75 8799 PyObject * obj1 = 0 ;
d14a1e28
RD
8800 char *kwnames[] = {
8801 (char *) "self",(char *) "weight", NULL
8802 };
8803
8edf1c75 8804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8807 arg2 = (int) SWIG_AsInt(obj1);
8808 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8809 {
8810 PyThreadState* __tstate = wxPyBeginAllowThreads();
8811 (arg1)->SetWeight(arg2);
8812
8813 wxPyEndAllowThreads(__tstate);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 }
8816 Py_INCREF(Py_None); resultobj = Py_None;
8817 return resultobj;
8818 fail:
8819 return NULL;
8820}
8821
8822
8823static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8824 PyObject *resultobj;
8825 wxFont *arg1 = (wxFont *) 0 ;
8826 wxString *arg2 = 0 ;
423f194a 8827 bool temp2 = False ;
d14a1e28
RD
8828 PyObject * obj0 = 0 ;
8829 PyObject * obj1 = 0 ;
8830 char *kwnames[] = {
8831 (char *) "self",(char *) "faceName", NULL
8832 };
8833
8834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8837 {
8838 arg2 = wxString_in_helper(obj1);
8839 if (arg2 == NULL) SWIG_fail;
423f194a 8840 temp2 = True;
d14a1e28
RD
8841 }
8842 {
8843 PyThreadState* __tstate = wxPyBeginAllowThreads();
8844 (arg1)->SetFaceName((wxString const &)*arg2);
8845
8846 wxPyEndAllowThreads(__tstate);
8847 if (PyErr_Occurred()) SWIG_fail;
8848 }
8849 Py_INCREF(Py_None); resultobj = Py_None;
8850 {
8851 if (temp2)
8852 delete arg2;
8853 }
8854 return resultobj;
8855 fail:
8856 {
8857 if (temp2)
8858 delete arg2;
8859 }
8860 return NULL;
8861}
8862
8863
8864static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8865 PyObject *resultobj;
8866 wxFont *arg1 = (wxFont *) 0 ;
8867 bool arg2 ;
8868 PyObject * obj0 = 0 ;
8869 PyObject * obj1 = 0 ;
8870 char *kwnames[] = {
8871 (char *) "self",(char *) "underlined", NULL
8872 };
8873
8874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8877 arg2 = (bool) SWIG_AsBool(obj1);
8878 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8879 {
8880 PyThreadState* __tstate = wxPyBeginAllowThreads();
8881 (arg1)->SetUnderlined(arg2);
8882
8883 wxPyEndAllowThreads(__tstate);
8884 if (PyErr_Occurred()) SWIG_fail;
8885 }
8886 Py_INCREF(Py_None); resultobj = Py_None;
8887 return resultobj;
8888 fail:
8889 return NULL;
8890}
8891
8892
8893static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8894 PyObject *resultobj;
8895 wxFont *arg1 = (wxFont *) 0 ;
8896 int arg2 ;
8897 PyObject * obj0 = 0 ;
8edf1c75 8898 PyObject * obj1 = 0 ;
d14a1e28
RD
8899 char *kwnames[] = {
8900 (char *) "self",(char *) "encoding", NULL
8901 };
8902
8edf1c75 8903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8906 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8907 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8908 {
8909 PyThreadState* __tstate = wxPyBeginAllowThreads();
8910 (arg1)->SetEncoding((wxFontEncoding )arg2);
8911
8912 wxPyEndAllowThreads(__tstate);
8913 if (PyErr_Occurred()) SWIG_fail;
8914 }
8915 Py_INCREF(Py_None); resultobj = Py_None;
8916 return resultobj;
8917 fail:
8918 return NULL;
8919}
8920
8921
8922static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8923 PyObject *resultobj;
8924 wxFont *arg1 = (wxFont *) 0 ;
8925 wxNativeFontInfo *arg2 = 0 ;
8926 PyObject * obj0 = 0 ;
8927 PyObject * obj1 = 0 ;
8928 char *kwnames[] = {
8929 (char *) "self",(char *) "info", NULL
8930 };
8931
8932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8935 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8936 SWIG_POINTER_EXCEPTION | 0)) == -1)
8937 SWIG_fail;
d14a1e28 8938 if (arg2 == NULL) {
2f4c0a16
RD
8939 PyErr_SetString(PyExc_TypeError,"null reference");
8940 SWIG_fail;
d14a1e28
RD
8941 }
8942 {
8943 PyThreadState* __tstate = wxPyBeginAllowThreads();
8944 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8945
8946 wxPyEndAllowThreads(__tstate);
8947 if (PyErr_Occurred()) SWIG_fail;
8948 }
8949 Py_INCREF(Py_None); resultobj = Py_None;
8950 return resultobj;
8951 fail:
8952 return NULL;
8953}
8954
8955
8956static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8957 PyObject *resultobj;
8958 wxFont *arg1 = (wxFont *) 0 ;
8959 wxString *arg2 = 0 ;
423f194a 8960 bool temp2 = False ;
d14a1e28
RD
8961 PyObject * obj0 = 0 ;
8962 PyObject * obj1 = 0 ;
8963 char *kwnames[] = {
8964 (char *) "self",(char *) "info", NULL
8965 };
8966
8967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8970 {
8971 arg2 = wxString_in_helper(obj1);
8972 if (arg2 == NULL) SWIG_fail;
423f194a 8973 temp2 = True;
d14a1e28
RD
8974 }
8975 {
8976 PyThreadState* __tstate = wxPyBeginAllowThreads();
8977 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8978
8979 wxPyEndAllowThreads(__tstate);
8980 if (PyErr_Occurred()) SWIG_fail;
8981 }
8982 Py_INCREF(Py_None); resultobj = Py_None;
8983 {
8984 if (temp2)
8985 delete arg2;
8986 }
8987 return resultobj;
8988 fail:
8989 {
8990 if (temp2)
8991 delete arg2;
8992 }
8993 return NULL;
8994}
8995
8996
8997static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj;
8999 wxFont *arg1 = (wxFont *) 0 ;
9000 wxString *arg2 = 0 ;
423f194a 9001 bool temp2 = False ;
d14a1e28
RD
9002 PyObject * obj0 = 0 ;
9003 PyObject * obj1 = 0 ;
9004 char *kwnames[] = {
9005 (char *) "self",(char *) "info", NULL
9006 };
9007
9008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
9009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9011 {
9012 arg2 = wxString_in_helper(obj1);
9013 if (arg2 == NULL) SWIG_fail;
423f194a 9014 temp2 = True;
d14a1e28
RD
9015 }
9016 {
9017 PyThreadState* __tstate = wxPyBeginAllowThreads();
9018 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
9019
9020 wxPyEndAllowThreads(__tstate);
9021 if (PyErr_Occurred()) SWIG_fail;
9022 }
9023 Py_INCREF(Py_None); resultobj = Py_None;
9024 {
9025 if (temp2)
9026 delete arg2;
9027 }
9028 return resultobj;
9029 fail:
9030 {
9031 if (temp2)
9032 delete arg2;
9033 }
9034 return NULL;
9035}
9036
9037
9038static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
9039 PyObject *resultobj;
9040 wxFont *arg1 = (wxFont *) 0 ;
9041 wxString result;
9042 PyObject * obj0 = 0 ;
9043 char *kwnames[] = {
9044 (char *) "self", NULL
9045 };
9046
9047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9050 {
9051 PyThreadState* __tstate = wxPyBeginAllowThreads();
9052 result = ((wxFont const *)arg1)->GetFamilyString();
9053
9054 wxPyEndAllowThreads(__tstate);
9055 if (PyErr_Occurred()) SWIG_fail;
9056 }
9057 {
9058#if wxUSE_UNICODE
9059 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9060#else
9061 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9062#endif
9063 }
9064 return resultobj;
9065 fail:
9066 return NULL;
9067}
9068
9069
9070static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
9071 PyObject *resultobj;
9072 wxFont *arg1 = (wxFont *) 0 ;
9073 wxString result;
9074 PyObject * obj0 = 0 ;
9075 char *kwnames[] = {
9076 (char *) "self", NULL
9077 };
9078
9079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9082 {
9083 PyThreadState* __tstate = wxPyBeginAllowThreads();
9084 result = ((wxFont const *)arg1)->GetStyleString();
9085
9086 wxPyEndAllowThreads(__tstate);
9087 if (PyErr_Occurred()) SWIG_fail;
9088 }
9089 {
9090#if wxUSE_UNICODE
9091 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9092#else
9093 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9094#endif
9095 }
9096 return resultobj;
9097 fail:
9098 return NULL;
9099}
9100
9101
9102static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
9103 PyObject *resultobj;
9104 wxFont *arg1 = (wxFont *) 0 ;
9105 wxString result;
9106 PyObject * obj0 = 0 ;
9107 char *kwnames[] = {
9108 (char *) "self", NULL
9109 };
9110
9111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9114 {
9115 PyThreadState* __tstate = wxPyBeginAllowThreads();
9116 result = ((wxFont const *)arg1)->GetWeightString();
9117
9118 wxPyEndAllowThreads(__tstate);
9119 if (PyErr_Occurred()) SWIG_fail;
9120 }
9121 {
9122#if wxUSE_UNICODE
9123 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9124#else
9125 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9126#endif
9127 }
9128 return resultobj;
9129 fail:
9130 return NULL;
9131}
9132
9133
9134static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9135 PyObject *resultobj;
9136 wxFont *arg1 = (wxFont *) 0 ;
423f194a 9137 bool arg2 = (bool) True ;
d14a1e28
RD
9138 PyObject * obj0 = 0 ;
9139 PyObject * obj1 = 0 ;
9140 char *kwnames[] = {
9141 (char *) "self",(char *) "no", NULL
9142 };
9143
9144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
9145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 9147 if (obj1) {
2f4c0a16
RD
9148 arg2 = (bool) SWIG_AsBool(obj1);
9149 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9150 }
9151 {
9152 PyThreadState* __tstate = wxPyBeginAllowThreads();
9153 (arg1)->SetNoAntiAliasing(arg2);
9154
9155 wxPyEndAllowThreads(__tstate);
9156 if (PyErr_Occurred()) SWIG_fail;
9157 }
9158 Py_INCREF(Py_None); resultobj = Py_None;
9159 return resultobj;
9160 fail:
9161 return NULL;
9162}
9163
9164
9165static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9166 PyObject *resultobj;
9167 wxFont *arg1 = (wxFont *) 0 ;
9168 bool result;
9169 PyObject * obj0 = 0 ;
9170 char *kwnames[] = {
9171 (char *) "self", NULL
9172 };
9173
9174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9177 {
9178 PyThreadState* __tstate = wxPyBeginAllowThreads();
9179 result = (bool)(arg1)->GetNoAntiAliasing();
9180
9181 wxPyEndAllowThreads(__tstate);
9182 if (PyErr_Occurred()) SWIG_fail;
9183 }
4f89f6a3
RD
9184 {
9185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9186 }
d14a1e28
RD
9187 return resultobj;
9188 fail:
9189 return NULL;
9190}
9191
9192
9193static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9194 PyObject *resultobj;
9195 int result;
9196 char *kwnames[] = {
9197 NULL
9198 };
9199
9200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9201 {
9202 PyThreadState* __tstate = wxPyBeginAllowThreads();
9203 result = (int)wxFont::GetDefaultEncoding();
9204
9205 wxPyEndAllowThreads(__tstate);
9206 if (PyErr_Occurred()) SWIG_fail;
9207 }
2f4c0a16 9208 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9209 return resultobj;
9210 fail:
9211 return NULL;
9212}
9213
9214
9215static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9216 PyObject *resultobj;
9217 int arg1 ;
8edf1c75 9218 PyObject * obj0 = 0 ;
d14a1e28
RD
9219 char *kwnames[] = {
9220 (char *) "encoding", NULL
9221 };
9222
8edf1c75 9223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9224 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
9225 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9226 {
9227 PyThreadState* __tstate = wxPyBeginAllowThreads();
9228 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9229
9230 wxPyEndAllowThreads(__tstate);
9231 if (PyErr_Occurred()) SWIG_fail;
9232 }
9233 Py_INCREF(Py_None); resultobj = Py_None;
9234 return resultobj;
9235 fail:
9236 return NULL;
9237}
9238
9239
9240static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
9241 PyObject *obj;
9242 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9243 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9244 Py_INCREF(obj);
9245 return Py_BuildValue((char *)"");
9246}
9247static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9248 PyObject *resultobj;
9249 wxPyFontEnumerator *result;
9250 char *kwnames[] = {
9251 NULL
9252 };
9253
9254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9255 {
9256 PyThreadState* __tstate = wxPyBeginAllowThreads();
9257 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9258
9259 wxPyEndAllowThreads(__tstate);
9260 if (PyErr_Occurred()) SWIG_fail;
9261 }
2f4c0a16 9262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
d14a1e28
RD
9263 return resultobj;
9264 fail:
9265 return NULL;
9266}
9267
9268
9269static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9270 PyObject *resultobj;
9271 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9272 PyObject * obj0 = 0 ;
9273 char *kwnames[] = {
9274 (char *) "self", NULL
9275 };
9276
9277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9280 {
9281 PyThreadState* __tstate = wxPyBeginAllowThreads();
9282 delete arg1;
9283
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 Py_INCREF(Py_None); resultobj = Py_None;
9288 return resultobj;
9289 fail:
9290 return NULL;
9291}
9292
9293
9294static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9295 PyObject *resultobj;
9296 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9297 PyObject *arg2 = (PyObject *) 0 ;
9298 PyObject *arg3 = (PyObject *) 0 ;
9299 bool arg4 ;
9300 PyObject * obj0 = 0 ;
9301 PyObject * obj1 = 0 ;
9302 PyObject * obj2 = 0 ;
9303 PyObject * obj3 = 0 ;
9304 char *kwnames[] = {
9305 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9306 };
9307
9308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
9309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9311 arg2 = obj1;
9312 arg3 = obj2;
2f4c0a16
RD
9313 arg4 = (bool) SWIG_AsBool(obj3);
9314 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9318
9319 wxPyEndAllowThreads(__tstate);
9320 if (PyErr_Occurred()) SWIG_fail;
9321 }
9322 Py_INCREF(Py_None); resultobj = Py_None;
9323 return resultobj;
9324 fail:
9325 return NULL;
9326}
9327
9328
9329static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9330 PyObject *resultobj;
9331 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9332 int arg2 = (int) wxFONTENCODING_SYSTEM ;
423f194a 9333 bool arg3 = (bool) False ;
d14a1e28
RD
9334 bool result;
9335 PyObject * obj0 = 0 ;
8edf1c75 9336 PyObject * obj1 = 0 ;
d14a1e28
RD
9337 PyObject * obj2 = 0 ;
9338 char *kwnames[] = {
9339 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9340 };
9341
8edf1c75 9342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
9343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75 9345 if (obj1) {
2f4c0a16
RD
9346 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9347 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 9348 }
d14a1e28 9349 if (obj2) {
2f4c0a16
RD
9350 arg3 = (bool) SWIG_AsBool(obj2);
9351 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9352 }
9353 {
9354 PyThreadState* __tstate = wxPyBeginAllowThreads();
9355 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9356
9357 wxPyEndAllowThreads(__tstate);
9358 if (PyErr_Occurred()) SWIG_fail;
9359 }
4f89f6a3
RD
9360 {
9361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9362 }
d14a1e28
RD
9363 return resultobj;
9364 fail:
9365 return NULL;
9366}
9367
9368
9369static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9370 PyObject *resultobj;
9371 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9372 wxString const &arg2_defvalue = wxPyEmptyString ;
9373 wxString *arg2 = (wxString *) &arg2_defvalue ;
9374 bool result;
423f194a 9375 bool temp2 = False ;
d14a1e28
RD
9376 PyObject * obj0 = 0 ;
9377 PyObject * obj1 = 0 ;
9378 char *kwnames[] = {
9379 (char *) "self",(char *) "facename", NULL
9380 };
9381
9382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
9383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9385 if (obj1) {
9386 {
9387 arg2 = wxString_in_helper(obj1);
9388 if (arg2 == NULL) SWIG_fail;
423f194a 9389 temp2 = True;
d14a1e28
RD
9390 }
9391 }
9392 {
9393 PyThreadState* __tstate = wxPyBeginAllowThreads();
9394 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9395
9396 wxPyEndAllowThreads(__tstate);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 }
4f89f6a3
RD
9399 {
9400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9401 }
d14a1e28
RD
9402 {
9403 if (temp2)
9404 delete arg2;
9405 }
9406 return resultobj;
9407 fail:
9408 {
9409 if (temp2)
9410 delete arg2;
9411 }
9412 return NULL;
9413}
9414
9415
9416static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9417 PyObject *resultobj;
9418 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9419 PyObject *result;
9420 PyObject * obj0 = 0 ;
9421 char *kwnames[] = {
9422 (char *) "self", NULL
9423 };
9424
9425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9428 {
9429 PyThreadState* __tstate = wxPyBeginAllowThreads();
9430 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9431
9432 wxPyEndAllowThreads(__tstate);
9433 if (PyErr_Occurred()) SWIG_fail;
9434 }
9435 resultobj = result;
9436 return resultobj;
9437 fail:
9438 return NULL;
9439}
9440
9441
9442static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9443 PyObject *resultobj;
9444 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9445 PyObject *result;
9446 PyObject * obj0 = 0 ;
9447 char *kwnames[] = {
9448 (char *) "self", NULL
9449 };
9450
9451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9454 {
9455 PyThreadState* __tstate = wxPyBeginAllowThreads();
9456 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9457
9458 wxPyEndAllowThreads(__tstate);
9459 if (PyErr_Occurred()) SWIG_fail;
9460 }
9461 resultobj = result;
9462 return resultobj;
9463 fail:
9464 return NULL;
9465}
9466
9467
9468static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9469 PyObject *obj;
9470 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9471 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9472 Py_INCREF(obj);
9473 return Py_BuildValue((char *)"");
9474}
9475static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9476 PyObject *resultobj;
9477 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9478 int arg2 ;
9479 PyObject * obj0 = 0 ;
8edf1c75 9480 PyObject * obj1 = 0 ;
d14a1e28
RD
9481 char *kwnames[] = {
9482 (char *) "self",(char *) "Language", NULL
9483 };
9484
8edf1c75 9485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
9486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9488 arg2 = (int) SWIG_AsInt(obj1);
9489 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9490 if (arg1) (arg1)->Language = arg2;
9491
9492 Py_INCREF(Py_None); resultobj = Py_None;
9493 return resultobj;
9494 fail:
9495 return NULL;
9496}
9497
9498
9499static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9500 PyObject *resultobj;
9501 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9502 int result;
9503 PyObject * obj0 = 0 ;
9504 char *kwnames[] = {
9505 (char *) "self", NULL
9506 };
9507
9508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9511 result = (int) ((arg1)->Language);
9512
2f4c0a16 9513 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9514 return resultobj;
9515 fail:
9516 return NULL;
9517}
9518
9519
9520static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9521 PyObject *resultobj;
9522 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
d03fd34d 9523 wxString *arg2 = (wxString *) 0 ;
f775c30d 9524 bool temp2 = False ;
d14a1e28
RD
9525 PyObject * obj0 = 0 ;
9526 PyObject * obj1 = 0 ;
9527 char *kwnames[] = {
9528 (char *) "self",(char *) "CanonicalName", NULL
9529 };
9530
9531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
9532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
f775c30d
RD
9534 {
9535 arg2 = wxString_in_helper(obj1);
9536 if (arg2 == NULL) SWIG_fail;
9537 temp2 = True;
9538 }
d03fd34d 9539 if (arg1) (arg1)->CanonicalName = *arg2;
d14a1e28
RD
9540
9541 Py_INCREF(Py_None); resultobj = Py_None;
f775c30d
RD
9542 {
9543 if (temp2)
9544 delete arg2;
9545 }
d14a1e28
RD
9546 return resultobj;
9547 fail:
f775c30d
RD
9548 {
9549 if (temp2)
9550 delete arg2;
9551 }
d14a1e28
RD
9552 return NULL;
9553}
9554
9555
9556static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9557 PyObject *resultobj;
9558 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
d03fd34d 9559 wxString *result;
d14a1e28
RD
9560 PyObject * obj0 = 0 ;
9561 char *kwnames[] = {
9562 (char *) "self", NULL
9563 };
9564
9565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d03fd34d 9568 result = (wxString *)& ((arg1)->CanonicalName);
d14a1e28
RD
9569
9570 {
9571#if wxUSE_UNICODE
d03fd34d 9572 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 9573#else
d03fd34d 9574 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
9575#endif
9576 }
9577 return resultobj;
9578 fail:
9579 return NULL;
9580}
9581
9582
9583static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9584 PyObject *resultobj;
9585 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
d03fd34d 9586 wxString *arg2 = (wxString *) 0 ;
f775c30d 9587 bool temp2 = False ;
d14a1e28
RD
9588 PyObject * obj0 = 0 ;
9589 PyObject * obj1 = 0 ;
9590 char *kwnames[] = {
9591 (char *) "self",(char *) "Description", NULL
9592 };
9593
9594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
9595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
f775c30d
RD
9597 {
9598 arg2 = wxString_in_helper(obj1);
9599 if (arg2 == NULL) SWIG_fail;
9600 temp2 = True;
9601 }
d03fd34d 9602 if (arg1) (arg1)->Description = *arg2;
d14a1e28
RD
9603
9604 Py_INCREF(Py_None); resultobj = Py_None;
f775c30d
RD
9605 {
9606 if (temp2)
9607 delete arg2;
9608 }
d14a1e28
RD
9609 return resultobj;
9610 fail:
f775c30d
RD
9611 {
9612 if (temp2)
9613 delete arg2;
9614 }
d14a1e28
RD
9615 return NULL;
9616}
9617
9618
9619static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9620 PyObject *resultobj;
9621 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
d03fd34d 9622 wxString *result;
d14a1e28
RD
9623 PyObject * obj0 = 0 ;
9624 char *kwnames[] = {
9625 (char *) "self", NULL
9626 };
9627
9628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d03fd34d 9631 result = (wxString *)& ((arg1)->Description);
d14a1e28
RD
9632
9633 {
9634#if wxUSE_UNICODE
d03fd34d 9635 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 9636#else
d03fd34d 9637 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
9638#endif
9639 }
9640 return resultobj;
9641 fail:
9642 return NULL;
9643}
9644
9645
9646static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9647 PyObject *obj;
9648 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9649 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9650 Py_INCREF(obj);
9651 return Py_BuildValue((char *)"");
9652}
9653static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9654 PyObject *resultobj;
9655 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9656 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9657 wxLocale *result;
8edf1c75
RD
9658 PyObject * obj0 = 0 ;
9659 PyObject * obj1 = 0 ;
d14a1e28
RD
9660 char *kwnames[] = {
9661 (char *) "language",(char *) "flags", NULL
9662 };
9663
8edf1c75
RD
9664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9665 if (obj0) {
2f4c0a16
RD
9666 arg1 = (int) SWIG_AsInt(obj0);
9667 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
9668 }
9669 if (obj1) {
2f4c0a16
RD
9670 arg2 = (int) SWIG_AsInt(obj1);
9671 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 9672 }
d14a1e28
RD
9673 {
9674 PyThreadState* __tstate = wxPyBeginAllowThreads();
9675 result = (wxLocale *)new wxLocale(arg1,arg2);
9676
9677 wxPyEndAllowThreads(__tstate);
9678 if (PyErr_Occurred()) SWIG_fail;
9679 }
2f4c0a16 9680 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
d14a1e28
RD
9681 return resultobj;
9682 fail:
9683 return NULL;
9684}
9685
9686
9687static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9688 PyObject *resultobj;
9689 wxLocale *arg1 = (wxLocale *) 0 ;
9690 PyObject * obj0 = 0 ;
9691 char *kwnames[] = {
9692 (char *) "self", NULL
9693 };
9694
9695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 delete arg1;
9701
9702 wxPyEndAllowThreads(__tstate);
9703 if (PyErr_Occurred()) SWIG_fail;
9704 }
9705 Py_INCREF(Py_None); resultobj = Py_None;
9706 return resultobj;
9707 fail:
9708 return NULL;
9709}
9710
9711
9712static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9713 PyObject *resultobj;
9714 wxLocale *arg1 = (wxLocale *) 0 ;
9715 wxString *arg2 = 0 ;
9716 wxString const &arg3_defvalue = wxPyEmptyString ;
9717 wxString *arg3 = (wxString *) &arg3_defvalue ;
9718 wxString const &arg4_defvalue = wxPyEmptyString ;
9719 wxString *arg4 = (wxString *) &arg4_defvalue ;
423f194a
RD
9720 bool arg5 = (bool) True ;
9721 bool arg6 = (bool) False ;
d14a1e28 9722 bool result;
423f194a
RD
9723 bool temp2 = False ;
9724 bool temp3 = False ;
9725 bool temp4 = False ;
d14a1e28
RD
9726 PyObject * obj0 = 0 ;
9727 PyObject * obj1 = 0 ;
9728 PyObject * obj2 = 0 ;
9729 PyObject * obj3 = 0 ;
9730 PyObject * obj4 = 0 ;
9731 PyObject * obj5 = 0 ;
9732 char *kwnames[] = {
9733 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9734 };
9735
9736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
2f4c0a16
RD
9737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9739 {
9740 arg2 = wxString_in_helper(obj1);
9741 if (arg2 == NULL) SWIG_fail;
423f194a 9742 temp2 = True;
d14a1e28
RD
9743 }
9744 if (obj2) {
9745 {
9746 arg3 = wxString_in_helper(obj2);
9747 if (arg3 == NULL) SWIG_fail;
423f194a 9748 temp3 = True;
d14a1e28
RD
9749 }
9750 }
9751 if (obj3) {
9752 {
9753 arg4 = wxString_in_helper(obj3);
9754 if (arg4 == NULL) SWIG_fail;
423f194a 9755 temp4 = True;
d14a1e28
RD
9756 }
9757 }
9758 if (obj4) {
2f4c0a16
RD
9759 arg5 = (bool) SWIG_AsBool(obj4);
9760 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9761 }
9762 if (obj5) {
2f4c0a16
RD
9763 arg6 = (bool) SWIG_AsBool(obj5);
9764 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9765 }
9766 {
9767 PyThreadState* __tstate = wxPyBeginAllowThreads();
9768 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9769
9770 wxPyEndAllowThreads(__tstate);
9771 if (PyErr_Occurred()) SWIG_fail;
9772 }
4f89f6a3
RD
9773 {
9774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9775 }
d14a1e28
RD
9776 {
9777 if (temp2)
9778 delete arg2;
9779 }
9780 {
9781 if (temp3)
9782 delete arg3;
9783 }
9784 {
9785 if (temp4)
9786 delete arg4;
9787 }
9788 return resultobj;
9789 fail:
9790 {
9791 if (temp2)
9792 delete arg2;
9793 }
9794 {
9795 if (temp3)
9796 delete arg3;
9797 }
9798 {
9799 if (temp4)
9800 delete arg4;
9801 }
9802 return NULL;
9803}
9804
9805
9806static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9807 PyObject *resultobj;
9808 wxLocale *arg1 = (wxLocale *) 0 ;
9809 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9810 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9811 bool result;
9812 PyObject * obj0 = 0 ;
8edf1c75
RD
9813 PyObject * obj1 = 0 ;
9814 PyObject * obj2 = 0 ;
d14a1e28
RD
9815 char *kwnames[] = {
9816 (char *) "self",(char *) "language",(char *) "flags", NULL
9817 };
9818
8edf1c75 9819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
9820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75 9822 if (obj1) {
2f4c0a16
RD
9823 arg2 = (int) SWIG_AsInt(obj1);
9824 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
9825 }
9826 if (obj2) {
2f4c0a16
RD
9827 arg3 = (int) SWIG_AsInt(obj2);
9828 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 9829 }
d14a1e28
RD
9830 {
9831 PyThreadState* __tstate = wxPyBeginAllowThreads();
9832 result = (bool)(arg1)->Init(arg2,arg3);
9833
9834 wxPyEndAllowThreads(__tstate);
9835 if (PyErr_Occurred()) SWIG_fail;
9836 }
4f89f6a3
RD
9837 {
9838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9839 }
d14a1e28
RD
9840 return resultobj;
9841 fail:
9842 return NULL;
9843}
9844
9845
9846static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9847 PyObject *resultobj;
9848 int result;
9849 char *kwnames[] = {
9850 NULL
9851 };
9852
9853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9854 {
9855 PyThreadState* __tstate = wxPyBeginAllowThreads();
9856 result = (int)wxLocale::GetSystemLanguage();
9857
9858 wxPyEndAllowThreads(__tstate);
9859 if (PyErr_Occurred()) SWIG_fail;
9860 }
2f4c0a16 9861 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9862 return resultobj;
9863 fail:
9864 return NULL;
9865}
9866
9867
9868static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9869 PyObject *resultobj;
9870 int result;
9871 char *kwnames[] = {
9872 NULL
9873 };
9874
9875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9876 {
9877 PyThreadState* __tstate = wxPyBeginAllowThreads();
9878 result = (int)wxLocale::GetSystemEncoding();
9879
9880 wxPyEndAllowThreads(__tstate);
9881 if (PyErr_Occurred()) SWIG_fail;
9882 }
2f4c0a16 9883 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9884 return resultobj;
9885 fail:
9886 return NULL;
9887}
9888
9889
9890static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9891 PyObject *resultobj;
9892 wxString result;
9893 char *kwnames[] = {
9894 NULL
9895 };
9896
9897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9898 {
9899 PyThreadState* __tstate = wxPyBeginAllowThreads();
9900 result = wxLocale::GetSystemEncodingName();
9901
9902 wxPyEndAllowThreads(__tstate);
9903 if (PyErr_Occurred()) SWIG_fail;
9904 }
9905 {
9906#if wxUSE_UNICODE
9907 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9908#else
9909 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9910#endif
9911 }
9912 return resultobj;
9913 fail:
9914 return NULL;
9915}
9916
9917
9918static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9919 PyObject *resultobj;
9920 wxLocale *arg1 = (wxLocale *) 0 ;
9921 bool result;
9922 PyObject * obj0 = 0 ;
9923 char *kwnames[] = {
9924 (char *) "self", NULL
9925 };
9926
9927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9930 {
9931 PyThreadState* __tstate = wxPyBeginAllowThreads();
9932 result = (bool)((wxLocale const *)arg1)->IsOk();
9933
9934 wxPyEndAllowThreads(__tstate);
9935 if (PyErr_Occurred()) SWIG_fail;
9936 }
4f89f6a3
RD
9937 {
9938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9939 }
d14a1e28
RD
9940 return resultobj;
9941 fail:
9942 return NULL;
9943}
9944
9945
9946static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9947 PyObject *resultobj;
9948 wxLocale *arg1 = (wxLocale *) 0 ;
9949 wxString result;
9950 PyObject * obj0 = 0 ;
9951 char *kwnames[] = {
9952 (char *) "self", NULL
9953 };
9954
9955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9958 {
9959 PyThreadState* __tstate = wxPyBeginAllowThreads();
9960 result = ((wxLocale const *)arg1)->GetLocale();
9961
9962 wxPyEndAllowThreads(__tstate);
9963 if (PyErr_Occurred()) SWIG_fail;
9964 }
9965 {
9966#if wxUSE_UNICODE
9967 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9968#else
9969 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9970#endif
9971 }
9972 return resultobj;
9973 fail:
9974 return NULL;
9975}
9976
9977
9978static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9979 PyObject *resultobj;
9980 wxLocale *arg1 = (wxLocale *) 0 ;
9981 int result;
9982 PyObject * obj0 = 0 ;
9983 char *kwnames[] = {
9984 (char *) "self", NULL
9985 };
9986
9987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9990 {
9991 PyThreadState* __tstate = wxPyBeginAllowThreads();
9992 result = (int)((wxLocale const *)arg1)->GetLanguage();
9993
9994 wxPyEndAllowThreads(__tstate);
9995 if (PyErr_Occurred()) SWIG_fail;
9996 }
2f4c0a16 9997 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9998 return resultobj;
9999 fail:
10000 return NULL;
10001}
10002
10003
10004static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
10005 PyObject *resultobj;
10006 wxLocale *arg1 = (wxLocale *) 0 ;
10007 wxString result;
10008 PyObject * obj0 = 0 ;
10009 char *kwnames[] = {
10010 (char *) "self", NULL
10011 };
10012
10013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10016 {
10017 PyThreadState* __tstate = wxPyBeginAllowThreads();
10018 result = ((wxLocale const *)arg1)->GetSysName();
10019
10020 wxPyEndAllowThreads(__tstate);
10021 if (PyErr_Occurred()) SWIG_fail;
10022 }
10023 {
10024#if wxUSE_UNICODE
10025 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10026#else
10027 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10028#endif
10029 }
10030 return resultobj;
10031 fail:
10032 return NULL;
10033}
10034
10035
10036static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
10037 PyObject *resultobj;
10038 wxLocale *arg1 = (wxLocale *) 0 ;
10039 wxString result;
10040 PyObject * obj0 = 0 ;
10041 char *kwnames[] = {
10042 (char *) "self", NULL
10043 };
10044
10045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10048 {
10049 PyThreadState* __tstate = wxPyBeginAllowThreads();
10050 result = ((wxLocale const *)arg1)->GetCanonicalName();
10051
10052 wxPyEndAllowThreads(__tstate);
10053 if (PyErr_Occurred()) SWIG_fail;
10054 }
10055 {
10056#if wxUSE_UNICODE
10057 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10058#else
10059 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10060#endif
10061 }
10062 return resultobj;
10063 fail:
10064 return NULL;
10065}
10066
10067
10068static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
10069 PyObject *resultobj;
10070 wxString *arg1 = 0 ;
423f194a 10071 bool temp1 = False ;
d14a1e28
RD
10072 PyObject * obj0 = 0 ;
10073 char *kwnames[] = {
10074 (char *) "prefix", NULL
10075 };
10076
10077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
10078 {
10079 arg1 = wxString_in_helper(obj0);
10080 if (arg1 == NULL) SWIG_fail;
423f194a 10081 temp1 = True;
d14a1e28
RD
10082 }
10083 {
10084 PyThreadState* __tstate = wxPyBeginAllowThreads();
10085 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
10086
10087 wxPyEndAllowThreads(__tstate);
10088 if (PyErr_Occurred()) SWIG_fail;
10089 }
10090 Py_INCREF(Py_None); resultobj = Py_None;
10091 {
10092 if (temp1)
10093 delete arg1;
10094 }
10095 return resultobj;
10096 fail:
10097 {
10098 if (temp1)
10099 delete arg1;
10100 }
10101 return NULL;
10102}
10103
10104
10105static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
10106 PyObject *resultobj;
10107 wxLocale *arg1 = (wxLocale *) 0 ;
10108 wxString *arg2 = 0 ;
10109 bool result;
423f194a 10110 bool temp2 = False ;
d14a1e28
RD
10111 PyObject * obj0 = 0 ;
10112 PyObject * obj1 = 0 ;
10113 char *kwnames[] = {
10114 (char *) "self",(char *) "szDomain", NULL
10115 };
10116
10117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
10118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10120 {
10121 arg2 = wxString_in_helper(obj1);
10122 if (arg2 == NULL) SWIG_fail;
423f194a 10123 temp2 = True;
d14a1e28
RD
10124 }
10125 {
10126 PyThreadState* __tstate = wxPyBeginAllowThreads();
10127 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10128
10129 wxPyEndAllowThreads(__tstate);
10130 if (PyErr_Occurred()) SWIG_fail;
10131 }
4f89f6a3
RD
10132 {
10133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10134 }
d14a1e28
RD
10135 {
10136 if (temp2)
10137 delete arg2;
10138 }
10139 return resultobj;
10140 fail:
10141 {
10142 if (temp2)
10143 delete arg2;
10144 }
10145 return NULL;
10146}
10147
10148
10149static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
10150 PyObject *resultobj;
10151 wxLocale *arg1 = (wxLocale *) 0 ;
10152 wxString *arg2 = 0 ;
10153 bool result;
423f194a 10154 bool temp2 = False ;
d14a1e28
RD
10155 PyObject * obj0 = 0 ;
10156 PyObject * obj1 = 0 ;
10157 char *kwnames[] = {
10158 (char *) "self",(char *) "szDomain", NULL
10159 };
10160
10161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
10162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10164 {
10165 arg2 = wxString_in_helper(obj1);
10166 if (arg2 == NULL) SWIG_fail;
423f194a 10167 temp2 = True;
d14a1e28
RD
10168 }
10169 {
10170 PyThreadState* __tstate = wxPyBeginAllowThreads();
10171 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10172
10173 wxPyEndAllowThreads(__tstate);
10174 if (PyErr_Occurred()) SWIG_fail;
10175 }
4f89f6a3
RD
10176 {
10177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10178 }
d14a1e28
RD
10179 {
10180 if (temp2)
10181 delete arg2;
10182 }
10183 return resultobj;
10184 fail:
10185 {
10186 if (temp2)
10187 delete arg2;
10188 }
10189 return NULL;
10190}
10191
10192
10193static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10194 PyObject *resultobj;
10195 int arg1 ;
10196 wxLanguageInfo *result;
8edf1c75 10197 PyObject * obj0 = 0 ;
d14a1e28
RD
10198 char *kwnames[] = {
10199 (char *) "lang", NULL
10200 };
10201
8edf1c75 10202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10203 arg1 = (int) SWIG_AsInt(obj0);
10204 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10205 {
10206 PyThreadState* __tstate = wxPyBeginAllowThreads();
10207 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10208
10209 wxPyEndAllowThreads(__tstate);
10210 if (PyErr_Occurred()) SWIG_fail;
10211 }
2f4c0a16 10212 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
d14a1e28
RD
10213 return resultobj;
10214 fail:
10215 return NULL;
10216}
10217
10218
10219static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
10220 PyObject *resultobj;
10221 int arg1 ;
10222 wxString result;
8edf1c75 10223 PyObject * obj0 = 0 ;
d14a1e28
RD
10224 char *kwnames[] = {
10225 (char *) "lang", NULL
10226 };
10227
8edf1c75 10228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10229 arg1 = (int) SWIG_AsInt(obj0);
10230 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10231 {
10232 PyThreadState* __tstate = wxPyBeginAllowThreads();
10233 result = wxLocale::GetLanguageName(arg1);
10234
10235 wxPyEndAllowThreads(__tstate);
10236 if (PyErr_Occurred()) SWIG_fail;
10237 }
10238 {
10239#if wxUSE_UNICODE
10240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10241#else
10242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10243#endif
10244 }
10245 return resultobj;
10246 fail:
10247 return NULL;
10248}
10249
10250
10251static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10252 PyObject *resultobj;
10253 wxString *arg1 = 0 ;
10254 wxLanguageInfo *result;
423f194a 10255 bool temp1 = False ;
d14a1e28
RD
10256 PyObject * obj0 = 0 ;
10257 char *kwnames[] = {
10258 (char *) "locale", NULL
10259 };
10260
10261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10262 {
10263 arg1 = wxString_in_helper(obj0);
10264 if (arg1 == NULL) SWIG_fail;
423f194a 10265 temp1 = True;
d14a1e28
RD
10266 }
10267 {
10268 PyThreadState* __tstate = wxPyBeginAllowThreads();
10269 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10270
10271 wxPyEndAllowThreads(__tstate);
10272 if (PyErr_Occurred()) SWIG_fail;
10273 }
2f4c0a16 10274 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
d14a1e28
RD
10275 {
10276 if (temp1)
10277 delete arg1;
10278 }
10279 return resultobj;
10280 fail:
10281 {
10282 if (temp1)
10283 delete arg1;
10284 }
10285 return NULL;
10286}
10287
10288
10289static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10290 PyObject *resultobj;
10291 wxLanguageInfo *arg1 = 0 ;
10292 PyObject * obj0 = 0 ;
10293 char *kwnames[] = {
10294 (char *) "info", NULL
10295 };
10296
10297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10299 SWIG_POINTER_EXCEPTION | 0)) == -1)
10300 SWIG_fail;
d14a1e28 10301 if (arg1 == NULL) {
2f4c0a16
RD
10302 PyErr_SetString(PyExc_TypeError,"null reference");
10303 SWIG_fail;
d14a1e28
RD
10304 }
10305 {
10306 PyThreadState* __tstate = wxPyBeginAllowThreads();
10307 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10308
10309 wxPyEndAllowThreads(__tstate);
10310 if (PyErr_Occurred()) SWIG_fail;
10311 }
10312 Py_INCREF(Py_None); resultobj = Py_None;
10313 return resultobj;
10314 fail:
10315 return NULL;
10316}
10317
10318
10319static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
10320 PyObject *resultobj;
10321 wxLocale *arg1 = (wxLocale *) 0 ;
10322 wxString *arg2 = 0 ;
10323 wxString const &arg3_defvalue = wxPyEmptyString ;
10324 wxString *arg3 = (wxString *) &arg3_defvalue ;
10325 wxString result;
423f194a
RD
10326 bool temp2 = False ;
10327 bool temp3 = False ;
d14a1e28
RD
10328 PyObject * obj0 = 0 ;
10329 PyObject * obj1 = 0 ;
10330 PyObject * obj2 = 0 ;
10331 char *kwnames[] = {
10332 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10333 };
10334
10335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
10336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10338 {
10339 arg2 = wxString_in_helper(obj1);
10340 if (arg2 == NULL) SWIG_fail;
423f194a 10341 temp2 = True;
d14a1e28
RD
10342 }
10343 if (obj2) {
10344 {
10345 arg3 = wxString_in_helper(obj2);
10346 if (arg3 == NULL) SWIG_fail;
423f194a 10347 temp3 = True;
d14a1e28
RD
10348 }
10349 }
10350 {
10351 PyThreadState* __tstate = wxPyBeginAllowThreads();
10352 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10353
10354 wxPyEndAllowThreads(__tstate);
10355 if (PyErr_Occurred()) SWIG_fail;
10356 }
10357 {
10358#if wxUSE_UNICODE
10359 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10360#else
10361 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10362#endif
10363 }
10364 {
10365 if (temp2)
10366 delete arg2;
10367 }
10368 {
10369 if (temp3)
10370 delete arg3;
10371 }
10372 return resultobj;
10373 fail:
10374 {
10375 if (temp2)
10376 delete arg2;
10377 }
10378 {
10379 if (temp3)
10380 delete arg3;
10381 }
10382 return NULL;
10383}
10384
10385
10386static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
10387 PyObject *resultobj;
10388 wxLocale *arg1 = (wxLocale *) 0 ;
10389 wxString *result;
10390 PyObject * obj0 = 0 ;
10391 char *kwnames[] = {
10392 (char *) "self", NULL
10393 };
10394
10395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10398 {
10399 PyThreadState* __tstate = wxPyBeginAllowThreads();
10400 {
10401 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10402 result = (wxString *) &_result_ref;
10403 }
10404
10405 wxPyEndAllowThreads(__tstate);
10406 if (PyErr_Occurred()) SWIG_fail;
10407 }
f0983263
RD
10408 {
10409#if wxUSE_UNICODE
10410 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10411#else
10412 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10413#endif
10414 }
d14a1e28
RD
10415 return resultobj;
10416 fail:
10417 return NULL;
10418}
10419
10420
10421static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
10422 PyObject *obj;
10423 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10424 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10425 Py_INCREF(obj);
10426 return Py_BuildValue((char *)"");
10427}
10428static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10429 PyObject *resultobj;
10430 wxLocale *result;
10431 char *kwnames[] = {
10432 NULL
10433 };
10434
10435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10436 {
10437 PyThreadState* __tstate = wxPyBeginAllowThreads();
10438 result = (wxLocale *)wxGetLocale();
10439
10440 wxPyEndAllowThreads(__tstate);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
2f4c0a16 10443 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
d14a1e28
RD
10444 return resultobj;
10445 fail:
10446 return NULL;
10447}
10448
10449
10450static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
10451 PyObject *resultobj;
10452 wxString *arg1 = 0 ;
10453 wxString result;
423f194a 10454 bool temp1 = False ;
d14a1e28
RD
10455 PyObject * obj0 = 0 ;
10456
10457 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10458 {
10459 arg1 = wxString_in_helper(obj0);
10460 if (arg1 == NULL) SWIG_fail;
423f194a 10461 temp1 = True;
d14a1e28
RD
10462 }
10463 {
10464 PyThreadState* __tstate = wxPyBeginAllowThreads();
10465 result = wxGetTranslation((wxString const &)*arg1);
10466
10467 wxPyEndAllowThreads(__tstate);
10468 if (PyErr_Occurred()) SWIG_fail;
10469 }
10470 {
10471#if wxUSE_UNICODE
10472 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10473#else
10474 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10475#endif
10476 }
10477 {
10478 if (temp1)
10479 delete arg1;
10480 }
10481 return resultobj;
10482 fail:
10483 {
10484 if (temp1)
10485 delete arg1;
10486 }
10487 return NULL;
10488}
10489
10490
10491static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10492 PyObject *resultobj;
10493 wxString *arg1 = 0 ;
10494 wxString *arg2 = 0 ;
10495 size_t arg3 ;
10496 wxString result;
423f194a
RD
10497 bool temp1 = False ;
10498 bool temp2 = False ;
d14a1e28
RD
10499 PyObject * obj0 = 0 ;
10500 PyObject * obj1 = 0 ;
10501 PyObject * obj2 = 0 ;
10502
10503 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10504 {
10505 arg1 = wxString_in_helper(obj0);
10506 if (arg1 == NULL) SWIG_fail;
423f194a 10507 temp1 = True;
d14a1e28
RD
10508 }
10509 {
10510 arg2 = wxString_in_helper(obj1);
10511 if (arg2 == NULL) SWIG_fail;
423f194a 10512 temp2 = True;
d14a1e28 10513 }
2f4c0a16
RD
10514 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10515 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10516 {
10517 PyThreadState* __tstate = wxPyBeginAllowThreads();
10518 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10519
10520 wxPyEndAllowThreads(__tstate);
10521 if (PyErr_Occurred()) SWIG_fail;
10522 }
10523 {
10524#if wxUSE_UNICODE
10525 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10526#else
10527 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10528#endif
10529 }
10530 {
10531 if (temp1)
10532 delete arg1;
10533 }
10534 {
10535 if (temp2)
10536 delete arg2;
10537 }
10538 return resultobj;
10539 fail:
10540 {
10541 if (temp1)
10542 delete arg1;
10543 }
10544 {
10545 if (temp2)
10546 delete arg2;
10547 }
10548 return NULL;
10549}
10550
10551
10552static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10553 int argc;
10554 PyObject *argv[4];
10555 int ii;
10556
10557 argc = PyObject_Length(args);
10558 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10559 argv[ii] = PyTuple_GetItem(args,ii);
10560 }
10561 if (argc == 1) {
10562 int _v;
10563 {
4e760a36 10564 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
d14a1e28
RD
10565 }
10566 if (_v) {
10567 return _wrap_GetTranslation__SWIG_0(self,args);
10568 }
10569 }
10570 if (argc == 3) {
10571 int _v;
10572 {
4e760a36 10573 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
d14a1e28
RD
10574 }
10575 if (_v) {
10576 {
4e760a36 10577 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
d14a1e28
RD
10578 }
10579 if (_v) {
2f4c0a16 10580 _v = SWIG_CheckUnsignedLong(argv[2]);
d14a1e28
RD
10581 if (_v) {
10582 return _wrap_GetTranslation__SWIG_1(self,args);
10583 }
10584 }
10585 }
10586 }
10587
10588 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10589 return NULL;
10590}
10591
10592
10593static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10594 PyObject *resultobj;
10595 wxEncodingConverter *result;
10596 char *kwnames[] = {
10597 NULL
10598 };
10599
10600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10601 {
10602 PyThreadState* __tstate = wxPyBeginAllowThreads();
10603 result = (wxEncodingConverter *)new wxEncodingConverter();
10604
10605 wxPyEndAllowThreads(__tstate);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
2f4c0a16 10608 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
d14a1e28
RD
10609 return resultobj;
10610 fail:
10611 return NULL;
10612}
10613
10614
10615static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10616 PyObject *resultobj;
10617 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10618 PyObject * obj0 = 0 ;
10619 char *kwnames[] = {
10620 (char *) "self", NULL
10621 };
10622
10623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10626 {
10627 PyThreadState* __tstate = wxPyBeginAllowThreads();
10628 delete arg1;
10629
10630 wxPyEndAllowThreads(__tstate);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 }
10633 Py_INCREF(Py_None); resultobj = Py_None;
10634 return resultobj;
10635 fail:
10636 return NULL;
10637}
10638
10639
10640static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10641 PyObject *resultobj;
10642 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10643 int arg2 ;
10644 int arg3 ;
10645 int arg4 = (int) wxCONVERT_STRICT ;
10646 bool result;
10647 PyObject * obj0 = 0 ;
8edf1c75
RD
10648 PyObject * obj1 = 0 ;
10649 PyObject * obj2 = 0 ;
10650 PyObject * obj3 = 0 ;
d14a1e28
RD
10651 char *kwnames[] = {
10652 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10653 };
10654
8edf1c75 10655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
10656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10658 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10659 if (PyErr_Occurred()) SWIG_fail;
10660 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10661 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 10662 if (obj3) {
2f4c0a16
RD
10663 arg4 = (int) SWIG_AsInt(obj3);
10664 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 10665 }
d14a1e28
RD
10666 {
10667 PyThreadState* __tstate = wxPyBeginAllowThreads();
10668 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10669
10670 wxPyEndAllowThreads(__tstate);
10671 if (PyErr_Occurred()) SWIG_fail;
10672 }
4f89f6a3
RD
10673 {
10674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10675 }
d14a1e28
RD
10676 return resultobj;
10677 fail:
10678 return NULL;
10679}
10680
10681
10682static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10683 PyObject *resultobj;
10684 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10685 wxString *arg2 = 0 ;
10686 wxString result;
423f194a 10687 bool temp2 = False ;
d14a1e28
RD
10688 PyObject * obj0 = 0 ;
10689 PyObject * obj1 = 0 ;
10690 char *kwnames[] = {
10691 (char *) "self",(char *) "input", NULL
10692 };
10693
10694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
10695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10697 {
10698 arg2 = wxString_in_helper(obj1);
10699 if (arg2 == NULL) SWIG_fail;
423f194a 10700 temp2 = True;
d14a1e28
RD
10701 }
10702 {
10703 PyThreadState* __tstate = wxPyBeginAllowThreads();
10704 result = (arg1)->Convert((wxString const &)*arg2);
10705
10706 wxPyEndAllowThreads(__tstate);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 }
10709 {
10710#if wxUSE_UNICODE
10711 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10712#else
10713 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10714#endif
10715 }
10716 {
10717 if (temp2)
10718 delete arg2;
10719 }
10720 return resultobj;
10721 fail:
10722 {
10723 if (temp2)
10724 delete arg2;
10725 }
10726 return NULL;
10727}
10728
10729
10730static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10731 PyObject *resultobj;
10732 int arg1 ;
10733 int arg2 = (int) wxPLATFORM_CURRENT ;
10734 wxFontEncodingArray result;
8edf1c75
RD
10735 PyObject * obj0 = 0 ;
10736 PyObject * obj1 = 0 ;
d14a1e28
RD
10737 char *kwnames[] = {
10738 (char *) "enc",(char *) "platform", NULL
10739 };
10740
8edf1c75 10741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
10742 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10743 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 10744 if (obj1) {
2f4c0a16
RD
10745 arg2 = (int) SWIG_AsInt(obj1);
10746 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 10747 }
d14a1e28
RD
10748 {
10749 PyThreadState* __tstate = wxPyBeginAllowThreads();
10750 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10751
10752 wxPyEndAllowThreads(__tstate);
10753 if (PyErr_Occurred()) SWIG_fail;
10754 }
10755 {
10756 resultobj = PyList_New(0);
10757 for (size_t i=0; i < (&result)->GetCount(); i++) {
10758 PyObject* number = PyInt_FromLong((&result)->Item(i));
10759 PyList_Append(resultobj, number);
10760 Py_DECREF(number);
10761 }
10762 }
10763 return resultobj;
10764 fail:
10765 return NULL;
10766}
10767
10768
10769static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10770 PyObject *resultobj;
10771 int arg1 ;
10772 wxFontEncodingArray result;
8edf1c75 10773 PyObject * obj0 = 0 ;
d14a1e28
RD
10774 char *kwnames[] = {
10775 (char *) "enc", NULL
10776 };
10777
8edf1c75 10778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10779 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10780 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10781 {
10782 PyThreadState* __tstate = wxPyBeginAllowThreads();
10783 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10784
10785 wxPyEndAllowThreads(__tstate);
10786 if (PyErr_Occurred()) SWIG_fail;
10787 }
10788 {
10789 resultobj = PyList_New(0);
10790 for (size_t i=0; i < (&result)->GetCount(); i++) {
10791 PyObject* number = PyInt_FromLong((&result)->Item(i));
10792 PyList_Append(resultobj, number);
10793 Py_DECREF(number);
10794 }
10795 }
10796 return resultobj;
10797 fail:
10798 return NULL;
10799}
10800
10801
10802static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10803 PyObject *resultobj;
10804 int arg1 ;
10805 int arg2 ;
10806 bool result;
8edf1c75
RD
10807 PyObject * obj0 = 0 ;
10808 PyObject * obj1 = 0 ;
d14a1e28
RD
10809 char *kwnames[] = {
10810 (char *) "encIn",(char *) "encOut", NULL
10811 };
10812
8edf1c75 10813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
10814 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10815 if (PyErr_Occurred()) SWIG_fail;
10816 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10817 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10818 {
10819 PyThreadState* __tstate = wxPyBeginAllowThreads();
10820 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10821
10822 wxPyEndAllowThreads(__tstate);
10823 if (PyErr_Occurred()) SWIG_fail;
10824 }
4f89f6a3
RD
10825 {
10826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10827 }
d14a1e28
RD
10828 return resultobj;
10829 fail:
10830 return NULL;
10831}
10832
10833
10834static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10835 PyObject *obj;
10836 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10837 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10838 Py_INCREF(obj);
10839 return Py_BuildValue((char *)"");
10840}
10841static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10842 PyObject *resultobj;
10843 wxDC *arg1 = (wxDC *) 0 ;
10844 PyObject * obj0 = 0 ;
10845 char *kwnames[] = {
10846 (char *) "self", NULL
10847 };
10848
10849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10852 {
10853 PyThreadState* __tstate = wxPyBeginAllowThreads();
10854 delete arg1;
10855
10856 wxPyEndAllowThreads(__tstate);
10857 if (PyErr_Occurred()) SWIG_fail;
10858 }
10859 Py_INCREF(Py_None); resultobj = Py_None;
10860 return resultobj;
10861 fail:
10862 return NULL;
10863}
10864
10865
10866static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10867 PyObject *resultobj;
10868 wxDC *arg1 = (wxDC *) 0 ;
10869 PyObject * obj0 = 0 ;
10870 char *kwnames[] = {
10871 (char *) "self", NULL
10872 };
10873
10874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10877 {
10878 PyThreadState* __tstate = wxPyBeginAllowThreads();
10879 (arg1)->BeginDrawing();
10880
10881 wxPyEndAllowThreads(__tstate);
10882 if (PyErr_Occurred()) SWIG_fail;
10883 }
10884 Py_INCREF(Py_None); resultobj = Py_None;
10885 return resultobj;
10886 fail:
10887 return NULL;
10888}
10889
10890
10891static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10892 PyObject *resultobj;
10893 wxDC *arg1 = (wxDC *) 0 ;
10894 PyObject * obj0 = 0 ;
10895 char *kwnames[] = {
10896 (char *) "self", NULL
10897 };
10898
10899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10902 {
10903 PyThreadState* __tstate = wxPyBeginAllowThreads();
10904 (arg1)->EndDrawing();
10905
10906 wxPyEndAllowThreads(__tstate);
10907 if (PyErr_Occurred()) SWIG_fail;
10908 }
10909 Py_INCREF(Py_None); resultobj = Py_None;
10910 return resultobj;
10911 fail:
10912 return NULL;
10913}
10914
10915
10916static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10917 PyObject *resultobj;
10918 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
10919 int arg2 ;
10920 int arg3 ;
d14a1e28
RD
10921 wxColour *arg4 = 0 ;
10922 int arg5 = (int) wxFLOOD_SURFACE ;
10923 bool result;
10924 wxColour temp4 ;
10925 PyObject * obj0 = 0 ;
8edf1c75
RD
10926 PyObject * obj1 = 0 ;
10927 PyObject * obj2 = 0 ;
d14a1e28 10928 PyObject * obj3 = 0 ;
8edf1c75 10929 PyObject * obj4 = 0 ;
d14a1e28
RD
10930 char *kwnames[] = {
10931 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10932 };
10933
8edf1c75 10934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
10935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10937 arg2 = (int) SWIG_AsInt(obj1);
10938 if (PyErr_Occurred()) SWIG_fail;
10939 arg3 = (int) SWIG_AsInt(obj2);
10940 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10941 {
10942 arg4 = &temp4;
10943 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10944 }
8edf1c75 10945 if (obj4) {
2f4c0a16
RD
10946 arg5 = (int) SWIG_AsInt(obj4);
10947 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 10948 }
d14a1e28
RD
10949 {
10950 PyThreadState* __tstate = wxPyBeginAllowThreads();
10951 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10952
10953 wxPyEndAllowThreads(__tstate);
10954 if (PyErr_Occurred()) SWIG_fail;
10955 }
4f89f6a3
RD
10956 {
10957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10958 }
d14a1e28
RD
10959 return resultobj;
10960 fail:
10961 return NULL;
10962}
10963
10964
10965static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10966 PyObject *resultobj;
10967 wxDC *arg1 = (wxDC *) 0 ;
10968 wxPoint *arg2 = 0 ;
10969 wxColour *arg3 = 0 ;
10970 int arg4 = (int) wxFLOOD_SURFACE ;
10971 bool result;
10972 wxPoint temp2 ;
10973 wxColour temp3 ;
10974 PyObject * obj0 = 0 ;
10975 PyObject * obj1 = 0 ;
10976 PyObject * obj2 = 0 ;
8edf1c75 10977 PyObject * obj3 = 0 ;
d14a1e28
RD
10978 char *kwnames[] = {
10979 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10980 };
10981
8edf1c75 10982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
10983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10985 {
10986 arg2 = &temp2;
10987 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10988 }
10989 {
10990 arg3 = &temp3;
10991 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10992 }
8edf1c75 10993 if (obj3) {
2f4c0a16
RD
10994 arg4 = (int) SWIG_AsInt(obj3);
10995 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 10996 }
d14a1e28
RD
10997 {
10998 PyThreadState* __tstate = wxPyBeginAllowThreads();
10999 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
11000
11001 wxPyEndAllowThreads(__tstate);
11002 if (PyErr_Occurred()) SWIG_fail;
11003 }
4f89f6a3
RD
11004 {
11005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11006 }
d14a1e28
RD
11007 return resultobj;
11008 fail:
11009 return NULL;
11010}
11011
11012
11013static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11014 PyObject *resultobj;
11015 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11016 int arg2 ;
11017 int arg3 ;
d14a1e28
RD
11018 wxColour result;
11019 PyObject * obj0 = 0 ;
8edf1c75
RD
11020 PyObject * obj1 = 0 ;
11021 PyObject * obj2 = 0 ;
d14a1e28
RD
11022 char *kwnames[] = {
11023 (char *) "self",(char *) "x",(char *) "y", NULL
11024 };
11025
8edf1c75 11026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11029 arg2 = (int) SWIG_AsInt(obj1);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 arg3 = (int) SWIG_AsInt(obj2);
11032 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11033 {
11034 PyThreadState* __tstate = wxPyBeginAllowThreads();
11035 result = wxDC_GetPixelXY(arg1,arg2,arg3);
11036
11037 wxPyEndAllowThreads(__tstate);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 }
11040 {
11041 wxColour * resultptr;
11042 resultptr = new wxColour((wxColour &) result);
2f4c0a16 11043 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
11044 }
11045 return resultobj;
11046 fail:
11047 return NULL;
11048}
11049
11050
11051static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
11052 PyObject *resultobj;
11053 wxDC *arg1 = (wxDC *) 0 ;
11054 wxPoint *arg2 = 0 ;
11055 wxColour result;
11056 wxPoint temp2 ;
11057 PyObject * obj0 = 0 ;
11058 PyObject * obj1 = 0 ;
11059 char *kwnames[] = {
11060 (char *) "self",(char *) "pt", NULL
11061 };
11062
11063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
11064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11066 {
11067 arg2 = &temp2;
11068 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11069 }
11070 {
11071 PyThreadState* __tstate = wxPyBeginAllowThreads();
11072 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
11073
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 {
11078 wxColour * resultptr;
11079 resultptr = new wxColour((wxColour &) result);
2f4c0a16 11080 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
11081 }
11082 return resultobj;
11083 fail:
11084 return NULL;
11085}
11086
11087
11088static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11089 PyObject *resultobj;
11090 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11091 int arg2 ;
11092 int arg3 ;
11093 int arg4 ;
11094 int arg5 ;
d14a1e28 11095 PyObject * obj0 = 0 ;
8edf1c75
RD
11096 PyObject * obj1 = 0 ;
11097 PyObject * obj2 = 0 ;
11098 PyObject * obj3 = 0 ;
11099 PyObject * obj4 = 0 ;
d14a1e28
RD
11100 char *kwnames[] = {
11101 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
11102 };
11103
8edf1c75 11104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
11105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11107 arg2 = (int) SWIG_AsInt(obj1);
11108 if (PyErr_Occurred()) SWIG_fail;
11109 arg3 = (int) SWIG_AsInt(obj2);
11110 if (PyErr_Occurred()) SWIG_fail;
11111 arg4 = (int) SWIG_AsInt(obj3);
11112 if (PyErr_Occurred()) SWIG_fail;
11113 arg5 = (int) SWIG_AsInt(obj4);
11114 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11115 {
11116 PyThreadState* __tstate = wxPyBeginAllowThreads();
11117 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
11118
11119 wxPyEndAllowThreads(__tstate);
11120 if (PyErr_Occurred()) SWIG_fail;
11121 }
11122 Py_INCREF(Py_None); resultobj = Py_None;
11123 return resultobj;
11124 fail:
11125 return NULL;
11126}
11127
11128
11129static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
11130 PyObject *resultobj;
11131 wxDC *arg1 = (wxDC *) 0 ;
11132 wxPoint *arg2 = 0 ;
11133 wxPoint *arg3 = 0 ;
11134 wxPoint temp2 ;
11135 wxPoint temp3 ;
11136 PyObject * obj0 = 0 ;
11137 PyObject * obj1 = 0 ;
11138 PyObject * obj2 = 0 ;
11139 char *kwnames[] = {
11140 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11141 };
11142
11143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11146 {
11147 arg2 = &temp2;
11148 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11149 }
11150 {
11151 arg3 = &temp3;
11152 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11153 }
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11157
11158 wxPyEndAllowThreads(__tstate);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 Py_INCREF(Py_None); resultobj = Py_None;
11162 return resultobj;
11163 fail:
11164 return NULL;
11165}
11166
11167
11168static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11169 PyObject *resultobj;
11170 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11171 int arg2 ;
11172 int arg3 ;
d14a1e28 11173 PyObject * obj0 = 0 ;
8edf1c75
RD
11174 PyObject * obj1 = 0 ;
11175 PyObject * obj2 = 0 ;
d14a1e28
RD
11176 char *kwnames[] = {
11177 (char *) "self",(char *) "x",(char *) "y", NULL
11178 };
11179
8edf1c75 11180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11183 arg2 = (int) SWIG_AsInt(obj1);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 arg3 = (int) SWIG_AsInt(obj2);
11186 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11187 {
11188 PyThreadState* __tstate = wxPyBeginAllowThreads();
11189 (arg1)->CrossHair(arg2,arg3);
11190
11191 wxPyEndAllowThreads(__tstate);
11192 if (PyErr_Occurred()) SWIG_fail;
11193 }
11194 Py_INCREF(Py_None); resultobj = Py_None;
11195 return resultobj;
11196 fail:
11197 return NULL;
11198}
11199
11200
11201static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
11202 PyObject *resultobj;
11203 wxDC *arg1 = (wxDC *) 0 ;
11204 wxPoint *arg2 = 0 ;
11205 wxPoint temp2 ;
11206 PyObject * obj0 = 0 ;
11207 PyObject * obj1 = 0 ;
11208 char *kwnames[] = {
11209 (char *) "self",(char *) "pt", NULL
11210 };
11211
11212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
11213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11215 {
11216 arg2 = &temp2;
11217 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11218 }
11219 {
11220 PyThreadState* __tstate = wxPyBeginAllowThreads();
11221 (arg1)->CrossHair((wxPoint const &)*arg2);
11222
11223 wxPyEndAllowThreads(__tstate);
11224 if (PyErr_Occurred()) SWIG_fail;
11225 }
11226 Py_INCREF(Py_None); resultobj = Py_None;
11227 return resultobj;
11228 fail:
11229 return NULL;
11230}
11231
11232
11233static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11234 PyObject *resultobj;
11235 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11236 int arg2 ;
11237 int arg3 ;
11238 int arg4 ;
11239 int arg5 ;
11240 int arg6 ;
11241 int arg7 ;
d14a1e28 11242 PyObject * obj0 = 0 ;
8edf1c75
RD
11243 PyObject * obj1 = 0 ;
11244 PyObject * obj2 = 0 ;
11245 PyObject * obj3 = 0 ;
11246 PyObject * obj4 = 0 ;
11247 PyObject * obj5 = 0 ;
11248 PyObject * obj6 = 0 ;
d14a1e28
RD
11249 char *kwnames[] = {
11250 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11251 };
11252
8edf1c75 11253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
2f4c0a16
RD
11254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11256 arg2 = (int) SWIG_AsInt(obj1);
11257 if (PyErr_Occurred()) SWIG_fail;
11258 arg3 = (int) SWIG_AsInt(obj2);
11259 if (PyErr_Occurred()) SWIG_fail;
11260 arg4 = (int) SWIG_AsInt(obj3);
11261 if (PyErr_Occurred()) SWIG_fail;
11262 arg5 = (int) SWIG_AsInt(obj4);
11263 if (PyErr_Occurred()) SWIG_fail;
11264 arg6 = (int) SWIG_AsInt(obj5);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 arg7 = (int) SWIG_AsInt(obj6);
11267 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
11268 {
11269 PyThreadState* __tstate = wxPyBeginAllowThreads();
11270 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11271
11272 wxPyEndAllowThreads(__tstate);
11273 if (PyErr_Occurred()) SWIG_fail;
11274 }
11275 Py_INCREF(Py_None); resultobj = Py_None;
11276 return resultobj;
11277 fail:
11278 return NULL;
11279}
d14a1e28
RD
11280
11281
11282static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11283 PyObject *resultobj;
11284 wxDC *arg1 = (wxDC *) 0 ;
11285 wxPoint *arg2 = 0 ;
11286 wxPoint *arg3 = 0 ;
11287 wxPoint *arg4 = 0 ;
11288 wxPoint temp2 ;
11289 wxPoint temp3 ;
11290 wxPoint temp4 ;
11291 PyObject * obj0 = 0 ;
11292 PyObject * obj1 = 0 ;
11293 PyObject * obj2 = 0 ;
11294 PyObject * obj3 = 0 ;
11295 char *kwnames[] = {
11296 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
11297 };
11298
11299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
11300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11302 {
11303 arg2 = &temp2;
11304 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11305 }
11306 {
11307 arg3 = &temp3;
11308 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11309 }
11310 {
11311 arg4 = &temp4;
11312 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11313 }
11314 {
11315 PyThreadState* __tstate = wxPyBeginAllowThreads();
11316 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11317
11318 wxPyEndAllowThreads(__tstate);
11319 if (PyErr_Occurred()) SWIG_fail;
11320 }
11321 Py_INCREF(Py_None); resultobj = Py_None;
11322 return resultobj;
11323 fail:
11324 return NULL;
11325}
11326
11327
11328static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11329 PyObject *resultobj;
11330 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11331 int arg2 ;
11332 int arg3 ;
11333 int arg4 ;
11334 int arg5 ;
d14a1e28 11335 PyObject * obj0 = 0 ;
8edf1c75
RD
11336 PyObject * obj1 = 0 ;
11337 PyObject * obj2 = 0 ;
11338 PyObject * obj3 = 0 ;
11339 PyObject * obj4 = 0 ;
d14a1e28
RD
11340 char *kwnames[] = {
11341 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11342 };
11343
8edf1c75 11344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
11345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11347 arg2 = (int) SWIG_AsInt(obj1);
11348 if (PyErr_Occurred()) SWIG_fail;
11349 arg3 = (int) SWIG_AsInt(obj2);
11350 if (PyErr_Occurred()) SWIG_fail;
11351 arg4 = (int) SWIG_AsInt(obj3);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 arg5 = (int) SWIG_AsInt(obj4);
11354 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11355 {
11356 PyThreadState* __tstate = wxPyBeginAllowThreads();
11357 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11358
11359 wxPyEndAllowThreads(__tstate);
11360 if (PyErr_Occurred()) SWIG_fail;
11361 }
11362 Py_INCREF(Py_None); resultobj = Py_None;
11363 return resultobj;
11364 fail:
11365 return NULL;
11366}
11367
11368
11369static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
11370 PyObject *resultobj;
11371 wxDC *arg1 = (wxDC *) 0 ;
11372 wxRect *arg2 = 0 ;
11373 wxRect temp2 ;
11374 PyObject * obj0 = 0 ;
11375 PyObject * obj1 = 0 ;
11376 char *kwnames[] = {
11377 (char *) "self",(char *) "rect", NULL
11378 };
11379
11380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
11381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11383 {
11384 arg2 = &temp2;
11385 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11386 }
11387 {
11388 PyThreadState* __tstate = wxPyBeginAllowThreads();
11389 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11390
11391 wxPyEndAllowThreads(__tstate);
11392 if (PyErr_Occurred()) SWIG_fail;
11393 }
11394 Py_INCREF(Py_None); resultobj = Py_None;
11395 return resultobj;
11396 fail:
11397 return NULL;
11398}
11399
11400
11401static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11402 PyObject *resultobj;
11403 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11404 int arg2 ;
11405 int arg3 ;
11406 int arg4 ;
11407 int arg5 ;
d14a1e28
RD
11408 double arg6 ;
11409 double arg7 ;
11410 PyObject * obj0 = 0 ;
8edf1c75
RD
11411 PyObject * obj1 = 0 ;
11412 PyObject * obj2 = 0 ;
11413 PyObject * obj3 = 0 ;
11414 PyObject * obj4 = 0 ;
11415 PyObject * obj5 = 0 ;
11416 PyObject * obj6 = 0 ;
d14a1e28
RD
11417 char *kwnames[] = {
11418 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
11419 };
11420
8edf1c75 11421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
2f4c0a16
RD
11422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11424 arg2 = (int) SWIG_AsInt(obj1);
11425 if (PyErr_Occurred()) SWIG_fail;
11426 arg3 = (int) SWIG_AsInt(obj2);
11427 if (PyErr_Occurred()) SWIG_fail;
11428 arg4 = (int) SWIG_AsInt(obj3);
11429 if (PyErr_Occurred()) SWIG_fail;
11430 arg5 = (int) SWIG_AsInt(obj4);
11431 if (PyErr_Occurred()) SWIG_fail;
11432 arg6 = (double) SWIG_AsDouble(obj5);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 arg7 = (double) SWIG_AsDouble(obj6);
11435 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11436 {
11437 PyThreadState* __tstate = wxPyBeginAllowThreads();
11438 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11439
11440 wxPyEndAllowThreads(__tstate);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 Py_INCREF(Py_None); resultobj = Py_None;
11444 return resultobj;
11445 fail:
11446 return NULL;
11447}
11448
11449
11450static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11451 PyObject *resultobj;
11452 wxDC *arg1 = (wxDC *) 0 ;
11453 wxPoint *arg2 = 0 ;
11454 wxSize *arg3 = 0 ;
11455 double arg4 ;
11456 double arg5 ;
11457 wxPoint temp2 ;
11458 wxSize temp3 ;
11459 PyObject * obj0 = 0 ;
11460 PyObject * obj1 = 0 ;
11461 PyObject * obj2 = 0 ;
8edf1c75
RD
11462 PyObject * obj3 = 0 ;
11463 PyObject * obj4 = 0 ;
d14a1e28
RD
11464 char *kwnames[] = {
11465 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11466 };
11467
8edf1c75 11468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
11469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11471 {
11472 arg2 = &temp2;
11473 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11474 }
11475 {
11476 arg3 = &temp3;
11477 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11478 }
2f4c0a16
RD
11479 arg4 = (double) SWIG_AsDouble(obj3);
11480 if (PyErr_Occurred()) SWIG_fail;
11481 arg5 = (double) SWIG_AsDouble(obj4);
11482 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11483 {
11484 PyThreadState* __tstate = wxPyBeginAllowThreads();
11485 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11486
11487 wxPyEndAllowThreads(__tstate);
11488 if (PyErr_Occurred()) SWIG_fail;
11489 }
11490 Py_INCREF(Py_None); resultobj = Py_None;
11491 return resultobj;
11492 fail:
11493 return NULL;
11494}
11495
11496
11497static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11498 PyObject *resultobj;
11499 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11500 int arg2 ;
11501 int arg3 ;
d14a1e28 11502 PyObject * obj0 = 0 ;
8edf1c75
RD
11503 PyObject * obj1 = 0 ;
11504 PyObject * obj2 = 0 ;
d14a1e28
RD
11505 char *kwnames[] = {
11506 (char *) "self",(char *) "x",(char *) "y", NULL
11507 };
11508
8edf1c75 11509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11512 arg2 = (int) SWIG_AsInt(obj1);
11513 if (PyErr_Occurred()) SWIG_fail;
11514 arg3 = (int) SWIG_AsInt(obj2);
11515 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 (arg1)->DrawPoint(arg2,arg3);
11519
11520 wxPyEndAllowThreads(__tstate);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 Py_INCREF(Py_None); resultobj = Py_None;
11524 return resultobj;
11525 fail:
11526 return NULL;
11527}
11528
11529
11530static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11531 PyObject *resultobj;
11532 wxDC *arg1 = (wxDC *) 0 ;
11533 wxPoint *arg2 = 0 ;
11534 wxPoint temp2 ;
11535 PyObject * obj0 = 0 ;
11536 PyObject * obj1 = 0 ;
11537 char *kwnames[] = {
11538 (char *) "self",(char *) "pt", NULL
11539 };
11540
11541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
11542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11544 {
11545 arg2 = &temp2;
11546 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11547 }
11548 {
11549 PyThreadState* __tstate = wxPyBeginAllowThreads();
11550 (arg1)->DrawPoint((wxPoint const &)*arg2);
11551
11552 wxPyEndAllowThreads(__tstate);
11553 if (PyErr_Occurred()) SWIG_fail;
11554 }
11555 Py_INCREF(Py_None); resultobj = Py_None;
11556 return resultobj;
11557 fail:
11558 return NULL;
11559}
11560
11561
11562static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11563 PyObject *resultobj;
11564 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11565 int arg2 ;
11566 int arg3 ;
11567 int arg4 ;
11568 int arg5 ;
d14a1e28 11569 PyObject * obj0 = 0 ;
8edf1c75
RD
11570 PyObject * obj1 = 0 ;
11571 PyObject * obj2 = 0 ;
11572 PyObject * obj3 = 0 ;
11573 PyObject * obj4 = 0 ;
d14a1e28
RD
11574 char *kwnames[] = {
11575 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11576 };
11577
8edf1c75 11578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
11579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11581 arg2 = (int) SWIG_AsInt(obj1);
11582 if (PyErr_Occurred()) SWIG_fail;
11583 arg3 = (int) SWIG_AsInt(obj2);
11584 if (PyErr_Occurred()) SWIG_fail;
11585 arg4 = (int) SWIG_AsInt(obj3);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 arg5 = (int) SWIG_AsInt(obj4);
11588 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11589 {
11590 PyThreadState* __tstate = wxPyBeginAllowThreads();
11591 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11592
11593 wxPyEndAllowThreads(__tstate);
11594 if (PyErr_Occurred()) SWIG_fail;
11595 }
11596 Py_INCREF(Py_None); resultobj = Py_None;
11597 return resultobj;
11598 fail:
11599 return NULL;
11600}
11601
11602
11603static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11604 PyObject *resultobj;
11605 wxDC *arg1 = (wxDC *) 0 ;
11606 wxPoint *arg2 = 0 ;
11607 wxSize *arg3 = 0 ;
11608 wxPoint temp2 ;
11609 wxSize temp3 ;
11610 PyObject * obj0 = 0 ;
11611 PyObject * obj1 = 0 ;
11612 PyObject * obj2 = 0 ;
11613 char *kwnames[] = {
11614 (char *) "self",(char *) "pt",(char *) "sz", NULL
11615 };
11616
11617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11620 {
11621 arg2 = &temp2;
11622 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11623 }
11624 {
11625 arg3 = &temp3;
11626 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11627 }
11628 {
11629 PyThreadState* __tstate = wxPyBeginAllowThreads();
11630 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11631
11632 wxPyEndAllowThreads(__tstate);
11633 if (PyErr_Occurred()) SWIG_fail;
11634 }
11635 Py_INCREF(Py_None); resultobj = Py_None;
11636 return resultobj;
11637 fail:
11638 return NULL;
11639}
11640
11641
11642static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11643 PyObject *resultobj;
11644 wxDC *arg1 = (wxDC *) 0 ;
11645 wxRect *arg2 = 0 ;
11646 wxRect temp2 ;
11647 PyObject * obj0 = 0 ;
11648 PyObject * obj1 = 0 ;
11649 char *kwnames[] = {
11650 (char *) "self",(char *) "rect", NULL
11651 };
11652
11653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
11654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11656 {
11657 arg2 = &temp2;
11658 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11659 }
11660 {
11661 PyThreadState* __tstate = wxPyBeginAllowThreads();
11662 (arg1)->DrawRectangle((wxRect const &)*arg2);
11663
11664 wxPyEndAllowThreads(__tstate);
11665 if (PyErr_Occurred()) SWIG_fail;
11666 }
11667 Py_INCREF(Py_None); resultobj = Py_None;
11668 return resultobj;
11669 fail:
11670 return NULL;
11671}
11672
11673
11674static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11675 PyObject *resultobj;
11676 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11677 int arg2 ;
11678 int arg3 ;
11679 int arg4 ;
11680 int arg5 ;
d14a1e28
RD
11681 double arg6 ;
11682 PyObject * obj0 = 0 ;
8edf1c75
RD
11683 PyObject * obj1 = 0 ;
11684 PyObject * obj2 = 0 ;
11685 PyObject * obj3 = 0 ;
11686 PyObject * obj4 = 0 ;
11687 PyObject * obj5 = 0 ;
d14a1e28
RD
11688 char *kwnames[] = {
11689 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11690 };
11691
8edf1c75 11692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
2f4c0a16
RD
11693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11695 arg2 = (int) SWIG_AsInt(obj1);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 arg3 = (int) SWIG_AsInt(obj2);
11698 if (PyErr_Occurred()) SWIG_fail;
11699 arg4 = (int) SWIG_AsInt(obj3);
11700 if (PyErr_Occurred()) SWIG_fail;
11701 arg5 = (int) SWIG_AsInt(obj4);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 arg6 = (double) SWIG_AsDouble(obj5);
11704 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11705 {
11706 PyThreadState* __tstate = wxPyBeginAllowThreads();
11707 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11708
11709 wxPyEndAllowThreads(__tstate);
11710 if (PyErr_Occurred()) SWIG_fail;
11711 }
11712 Py_INCREF(Py_None); resultobj = Py_None;
11713 return resultobj;
11714 fail:
11715 return NULL;
11716}
11717
11718
11719static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11720 PyObject *resultobj;
11721 wxDC *arg1 = (wxDC *) 0 ;
11722 wxPoint *arg2 = 0 ;
11723 wxSize *arg3 = 0 ;
11724 double arg4 ;
11725 wxPoint temp2 ;
11726 wxSize temp3 ;
11727 PyObject * obj0 = 0 ;
11728 PyObject * obj1 = 0 ;
11729 PyObject * obj2 = 0 ;
8edf1c75 11730 PyObject * obj3 = 0 ;
d14a1e28
RD
11731 char *kwnames[] = {
11732 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11733 };
11734
8edf1c75 11735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
11736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11738 {
11739 arg2 = &temp2;
11740 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11741 }
11742 {
11743 arg3 = &temp3;
11744 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11745 }
2f4c0a16
RD
11746 arg4 = (double) SWIG_AsDouble(obj3);
11747 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11748 {
11749 PyThreadState* __tstate = wxPyBeginAllowThreads();
11750 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11751
11752 wxPyEndAllowThreads(__tstate);
11753 if (PyErr_Occurred()) SWIG_fail;
11754 }
11755 Py_INCREF(Py_None); resultobj = Py_None;
11756 return resultobj;
11757 fail:
11758 return NULL;
11759}
11760
11761
11762static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11763 PyObject *resultobj;
11764 wxDC *arg1 = (wxDC *) 0 ;
11765 wxRect *arg2 = 0 ;
11766 double arg3 ;
11767 wxRect temp2 ;
11768 PyObject * obj0 = 0 ;
11769 PyObject * obj1 = 0 ;
8edf1c75 11770 PyObject * obj2 = 0 ;
d14a1e28
RD
11771 char *kwnames[] = {
11772 (char *) "self",(char *) "r",(char *) "radius", NULL
11773 };
11774
8edf1c75 11775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11778 {
11779 arg2 = &temp2;
11780 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11781 }
2f4c0a16
RD
11782 arg3 = (double) SWIG_AsDouble(obj2);
11783 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11784 {
11785 PyThreadState* __tstate = wxPyBeginAllowThreads();
11786 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11787
11788 wxPyEndAllowThreads(__tstate);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 Py_INCREF(Py_None); resultobj = Py_None;
11792 return resultobj;
11793 fail:
11794 return NULL;
11795}
11796
11797
11798static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11799 PyObject *resultobj;
11800 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11801 int arg2 ;
11802 int arg3 ;
11803 int arg4 ;
d14a1e28 11804 PyObject * obj0 = 0 ;
8edf1c75
RD
11805 PyObject * obj1 = 0 ;
11806 PyObject * obj2 = 0 ;
11807 PyObject * obj3 = 0 ;
d14a1e28
RD
11808 char *kwnames[] = {
11809 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11810 };
11811
8edf1c75 11812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
11813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11815 arg2 = (int) SWIG_AsInt(obj1);
11816 if (PyErr_Occurred()) SWIG_fail;
11817 arg3 = (int) SWIG_AsInt(obj2);
11818 if (PyErr_Occurred()) SWIG_fail;
11819 arg4 = (int) SWIG_AsInt(obj3);
11820 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11821 {
11822 PyThreadState* __tstate = wxPyBeginAllowThreads();
11823 (arg1)->DrawCircle(arg2,arg3,arg4);
11824
11825 wxPyEndAllowThreads(__tstate);
11826 if (PyErr_Occurred()) SWIG_fail;
11827 }
11828 Py_INCREF(Py_None); resultobj = Py_None;
11829 return resultobj;
11830 fail:
11831 return NULL;
11832}
11833
11834
11835static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11836 PyObject *resultobj;
11837 wxDC *arg1 = (wxDC *) 0 ;
11838 wxPoint *arg2 = 0 ;
423f194a 11839 int arg3 ;
d14a1e28
RD
11840 wxPoint temp2 ;
11841 PyObject * obj0 = 0 ;
11842 PyObject * obj1 = 0 ;
8edf1c75 11843 PyObject * obj2 = 0 ;
d14a1e28
RD
11844 char *kwnames[] = {
11845 (char *) "self",(char *) "pt",(char *) "radius", NULL
11846 };
11847
8edf1c75 11848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11851 {
11852 arg2 = &temp2;
11853 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11854 }
2f4c0a16
RD
11855 arg3 = (int) SWIG_AsInt(obj2);
11856 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11857 {
11858 PyThreadState* __tstate = wxPyBeginAllowThreads();
11859 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11860
11861 wxPyEndAllowThreads(__tstate);
11862 if (PyErr_Occurred()) SWIG_fail;
11863 }
11864 Py_INCREF(Py_None); resultobj = Py_None;
11865 return resultobj;
11866 fail:
11867 return NULL;
11868}
11869
11870
11871static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11872 PyObject *resultobj;
11873 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11874 int arg2 ;
11875 int arg3 ;
11876 int arg4 ;
11877 int arg5 ;
d14a1e28 11878 PyObject * obj0 = 0 ;
8edf1c75
RD
11879 PyObject * obj1 = 0 ;
11880 PyObject * obj2 = 0 ;
11881 PyObject * obj3 = 0 ;
11882 PyObject * obj4 = 0 ;
d14a1e28
RD
11883 char *kwnames[] = {
11884 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11885 };
11886
8edf1c75 11887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
11888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11890 arg2 = (int) SWIG_AsInt(obj1);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 arg3 = (int) SWIG_AsInt(obj2);
11893 if (PyErr_Occurred()) SWIG_fail;
11894 arg4 = (int) SWIG_AsInt(obj3);
11895 if (PyErr_Occurred()) SWIG_fail;
11896 arg5 = (int) SWIG_AsInt(obj4);
11897 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11898 {
11899 PyThreadState* __tstate = wxPyBeginAllowThreads();
11900 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11901
11902 wxPyEndAllowThreads(__tstate);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 Py_INCREF(Py_None); resultobj = Py_None;
11906 return resultobj;
11907 fail:
11908 return NULL;
11909}
11910
11911
11912static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11913 PyObject *resultobj;
11914 wxDC *arg1 = (wxDC *) 0 ;
11915 wxPoint *arg2 = 0 ;
11916 wxSize *arg3 = 0 ;
11917 wxPoint temp2 ;
11918 wxSize temp3 ;
11919 PyObject * obj0 = 0 ;
11920 PyObject * obj1 = 0 ;
11921 PyObject * obj2 = 0 ;
11922 char *kwnames[] = {
11923 (char *) "self",(char *) "pt",(char *) "sz", NULL
11924 };
11925
11926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11929 {
11930 arg2 = &temp2;
11931 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11932 }
11933 {
11934 arg3 = &temp3;
11935 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11936 }
11937 {
11938 PyThreadState* __tstate = wxPyBeginAllowThreads();
11939 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11940
11941 wxPyEndAllowThreads(__tstate);
11942 if (PyErr_Occurred()) SWIG_fail;
11943 }
11944 Py_INCREF(Py_None); resultobj = Py_None;
11945 return resultobj;
11946 fail:
11947 return NULL;
11948}
11949
11950
11951static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11952 PyObject *resultobj;
11953 wxDC *arg1 = (wxDC *) 0 ;
11954 wxRect *arg2 = 0 ;
11955 wxRect temp2 ;
11956 PyObject * obj0 = 0 ;
11957 PyObject * obj1 = 0 ;
11958 char *kwnames[] = {
11959 (char *) "self",(char *) "rect", NULL
11960 };
11961
11962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
11963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11965 {
11966 arg2 = &temp2;
11967 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11968 }
11969 {
11970 PyThreadState* __tstate = wxPyBeginAllowThreads();
11971 (arg1)->DrawEllipse((wxRect const &)*arg2);
11972
11973 wxPyEndAllowThreads(__tstate);
11974 if (PyErr_Occurred()) SWIG_fail;
11975 }
11976 Py_INCREF(Py_None); resultobj = Py_None;
11977 return resultobj;
11978 fail:
11979 return NULL;
11980}
11981
11982
11983static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11984 PyObject *resultobj;
11985 wxDC *arg1 = (wxDC *) 0 ;
11986 wxIcon *arg2 = 0 ;
423f194a
RD
11987 int arg3 ;
11988 int arg4 ;
d14a1e28
RD
11989 PyObject * obj0 = 0 ;
11990 PyObject * obj1 = 0 ;
8edf1c75
RD
11991 PyObject * obj2 = 0 ;
11992 PyObject * obj3 = 0 ;
d14a1e28
RD
11993 char *kwnames[] = {
11994 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11995 };
11996
8edf1c75 11997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
11998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12000 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12001 SWIG_POINTER_EXCEPTION | 0)) == -1)
12002 SWIG_fail;
d14a1e28 12003 if (arg2 == NULL) {
2f4c0a16
RD
12004 PyErr_SetString(PyExc_TypeError,"null reference");
12005 SWIG_fail;
8edf1c75 12006 }
2f4c0a16
RD
12007 arg3 = (int) SWIG_AsInt(obj2);
12008 if (PyErr_Occurred()) SWIG_fail;
12009 arg4 = (int) SWIG_AsInt(obj3);
12010 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12011 {
12012 PyThreadState* __tstate = wxPyBeginAllowThreads();
12013 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
12014
12015 wxPyEndAllowThreads(__tstate);
12016 if (PyErr_Occurred()) SWIG_fail;
12017 }
12018 Py_INCREF(Py_None); resultobj = Py_None;
12019 return resultobj;
12020 fail:
12021 return NULL;
12022}
12023
12024
12025static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12026 PyObject *resultobj;
12027 wxDC *arg1 = (wxDC *) 0 ;
12028 wxIcon *arg2 = 0 ;
12029 wxPoint *arg3 = 0 ;
12030 wxPoint temp3 ;
12031 PyObject * obj0 = 0 ;
12032 PyObject * obj1 = 0 ;
12033 PyObject * obj2 = 0 ;
12034 char *kwnames[] = {
12035 (char *) "self",(char *) "icon",(char *) "pt", NULL
12036 };
12037
12038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
12039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12041 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12042 SWIG_POINTER_EXCEPTION | 0)) == -1)
12043 SWIG_fail;
d14a1e28 12044 if (arg2 == NULL) {
2f4c0a16
RD
12045 PyErr_SetString(PyExc_TypeError,"null reference");
12046 SWIG_fail;
d14a1e28
RD
12047 }
12048 {
12049 arg3 = &temp3;
12050 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12051 }
12052 {
12053 PyThreadState* __tstate = wxPyBeginAllowThreads();
12054 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
12055
12056 wxPyEndAllowThreads(__tstate);
12057 if (PyErr_Occurred()) SWIG_fail;
12058 }
12059 Py_INCREF(Py_None); resultobj = Py_None;
12060 return resultobj;
12061 fail:
12062 return NULL;
12063}
12064
12065
12066static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12067 PyObject *resultobj;
12068 wxDC *arg1 = (wxDC *) 0 ;
12069 wxBitmap *arg2 = 0 ;
423f194a
RD
12070 int arg3 ;
12071 int arg4 ;
12072 bool arg5 = (bool) False ;
d14a1e28
RD
12073 PyObject * obj0 = 0 ;
12074 PyObject * obj1 = 0 ;
8edf1c75
RD
12075 PyObject * obj2 = 0 ;
12076 PyObject * obj3 = 0 ;
d14a1e28
RD
12077 PyObject * obj4 = 0 ;
12078 char *kwnames[] = {
12079 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
12080 };
12081
8edf1c75 12082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
12083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12085 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12086 SWIG_POINTER_EXCEPTION | 0)) == -1)
12087 SWIG_fail;
d14a1e28 12088 if (arg2 == NULL) {
2f4c0a16
RD
12089 PyErr_SetString(PyExc_TypeError,"null reference");
12090 SWIG_fail;
8edf1c75 12091 }
2f4c0a16
RD
12092 arg3 = (int) SWIG_AsInt(obj2);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 arg4 = (int) SWIG_AsInt(obj3);
12095 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 12096 if (obj4) {
2f4c0a16
RD
12097 arg5 = (bool) SWIG_AsBool(obj4);
12098 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12099 }
12100 {
12101 PyThreadState* __tstate = wxPyBeginAllowThreads();
12102 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
12103
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 Py_INCREF(Py_None); resultobj = Py_None;
12108 return resultobj;
12109 fail:
12110 return NULL;
12111}
12112
12113
12114static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
12115 PyObject *resultobj;
12116 wxDC *arg1 = (wxDC *) 0 ;
12117 wxBitmap *arg2 = 0 ;
12118 wxPoint *arg3 = 0 ;
423f194a 12119 bool arg4 = (bool) False ;
d14a1e28
RD
12120 wxPoint temp3 ;
12121 PyObject * obj0 = 0 ;
12122 PyObject * obj1 = 0 ;
12123 PyObject * obj2 = 0 ;
12124 PyObject * obj3 = 0 ;
12125 char *kwnames[] = {
12126 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
12127 };
12128
12129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
12130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12132 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12133 SWIG_POINTER_EXCEPTION | 0)) == -1)
12134 SWIG_fail;
d14a1e28 12135 if (arg2 == NULL) {
2f4c0a16
RD
12136 PyErr_SetString(PyExc_TypeError,"null reference");
12137 SWIG_fail;
d14a1e28
RD
12138 }
12139 {
12140 arg3 = &temp3;
12141 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12142 }
12143 if (obj3) {
2f4c0a16
RD
12144 arg4 = (bool) SWIG_AsBool(obj3);
12145 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12146 }
12147 {
12148 PyThreadState* __tstate = wxPyBeginAllowThreads();
12149 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12150
12151 wxPyEndAllowThreads(__tstate);
12152 if (PyErr_Occurred()) SWIG_fail;
12153 }
12154 Py_INCREF(Py_None); resultobj = Py_None;
12155 return resultobj;
12156 fail:
12157 return NULL;
12158}
12159
12160
12161static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12162 PyObject *resultobj;
12163 wxDC *arg1 = (wxDC *) 0 ;
12164 wxString *arg2 = 0 ;
423f194a
RD
12165 int arg3 ;
12166 int arg4 ;
12167 bool temp2 = False ;
d14a1e28
RD
12168 PyObject * obj0 = 0 ;
12169 PyObject * obj1 = 0 ;
8edf1c75
RD
12170 PyObject * obj2 = 0 ;
12171 PyObject * obj3 = 0 ;
d14a1e28
RD
12172 char *kwnames[] = {
12173 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12174 };
12175
8edf1c75 12176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
12177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75 12179 {
2f4c0a16
RD
12180 arg2 = wxString_in_helper(obj1);
12181 if (arg2 == NULL) SWIG_fail;
12182 temp2 = True;
8edf1c75 12183 }
2f4c0a16
RD
12184 arg3 = (int) SWIG_AsInt(obj2);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 arg4 = (int) SWIG_AsInt(obj3);
12187 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12188 {
12189 PyThreadState* __tstate = wxPyBeginAllowThreads();
12190 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12191
12192 wxPyEndAllowThreads(__tstate);
12193 if (PyErr_Occurred()) SWIG_fail;
12194 }
12195 Py_INCREF(Py_None); resultobj = Py_None;
12196 {
12197 if (temp2)
12198 delete arg2;
12199 }
12200 return resultobj;
12201 fail:
12202 {
12203 if (temp2)
12204 delete arg2;
12205 }
12206 return NULL;
12207}
12208
12209
12210static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
12211 PyObject *resultobj;
12212 wxDC *arg1 = (wxDC *) 0 ;
12213 wxString *arg2 = 0 ;
12214 wxPoint *arg3 = 0 ;
423f194a 12215 bool temp2 = False ;
d14a1e28
RD
12216 wxPoint temp3 ;
12217 PyObject * obj0 = 0 ;
12218 PyObject * obj1 = 0 ;
12219 PyObject * obj2 = 0 ;
12220 char *kwnames[] = {
12221 (char *) "self",(char *) "text",(char *) "pt", NULL
12222 };
12223
12224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
12225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12227 {
12228 arg2 = wxString_in_helper(obj1);
12229 if (arg2 == NULL) SWIG_fail;
423f194a 12230 temp2 = True;
d14a1e28
RD
12231 }
12232 {
12233 arg3 = &temp3;
12234 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12235 }
12236 {
12237 PyThreadState* __tstate = wxPyBeginAllowThreads();
12238 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12239
12240 wxPyEndAllowThreads(__tstate);
12241 if (PyErr_Occurred()) SWIG_fail;
12242 }
12243 Py_INCREF(Py_None); resultobj = Py_None;
12244 {
12245 if (temp2)
12246 delete arg2;
12247 }
12248 return resultobj;
12249 fail:
12250 {
12251 if (temp2)
12252 delete arg2;
12253 }
12254 return NULL;
12255}
12256
12257
12258static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12259 PyObject *resultobj;
12260 wxDC *arg1 = (wxDC *) 0 ;
12261 wxString *arg2 = 0 ;
423f194a
RD
12262 int arg3 ;
12263 int arg4 ;
d14a1e28 12264 double arg5 ;
423f194a 12265 bool temp2 = False ;
d14a1e28
RD
12266 PyObject * obj0 = 0 ;
12267 PyObject * obj1 = 0 ;
8edf1c75
RD
12268 PyObject * obj2 = 0 ;
12269 PyObject * obj3 = 0 ;
12270 PyObject * obj4 = 0 ;
d14a1e28
RD
12271 char *kwnames[] = {
12272 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12273 };
12274
8edf1c75 12275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
12276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12278 {
12279 arg2 = wxString_in_helper(obj1);
12280 if (arg2 == NULL) SWIG_fail;
423f194a 12281 temp2 = True;
d14a1e28 12282 }
2f4c0a16
RD
12283 arg3 = (int) SWIG_AsInt(obj2);
12284 if (PyErr_Occurred()) SWIG_fail;
12285 arg4 = (int) SWIG_AsInt(obj3);
12286 if (PyErr_Occurred()) SWIG_fail;
12287 arg5 = (double) SWIG_AsDouble(obj4);
12288 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12289 {
12290 PyThreadState* __tstate = wxPyBeginAllowThreads();
12291 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12292
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 Py_INCREF(Py_None); resultobj = Py_None;
12297 {
12298 if (temp2)
12299 delete arg2;
12300 }
12301 return resultobj;
12302 fail:
12303 {
12304 if (temp2)
12305 delete arg2;
12306 }
12307 return NULL;
12308}
12309
12310
12311static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
12312 PyObject *resultobj;
12313 wxDC *arg1 = (wxDC *) 0 ;
12314 wxString *arg2 = 0 ;
12315 wxPoint *arg3 = 0 ;
12316 double arg4 ;
423f194a 12317 bool temp2 = False ;
d14a1e28
RD
12318 wxPoint temp3 ;
12319 PyObject * obj0 = 0 ;
12320 PyObject * obj1 = 0 ;
12321 PyObject * obj2 = 0 ;
8edf1c75 12322 PyObject * obj3 = 0 ;
d14a1e28
RD
12323 char *kwnames[] = {
12324 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12325 };
12326
8edf1c75 12327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
12328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12330 {
12331 arg2 = wxString_in_helper(obj1);
12332 if (arg2 == NULL) SWIG_fail;
423f194a 12333 temp2 = True;
d14a1e28
RD
12334 }
12335 {
12336 arg3 = &temp3;
12337 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12338 }
2f4c0a16
RD
12339 arg4 = (double) SWIG_AsDouble(obj3);
12340 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12341 {
12342 PyThreadState* __tstate = wxPyBeginAllowThreads();
12343 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12344
12345 wxPyEndAllowThreads(__tstate);
12346 if (PyErr_Occurred()) SWIG_fail;
12347 }
12348 Py_INCREF(Py_None); resultobj = Py_None;
12349 {
12350 if (temp2)
12351 delete arg2;
12352 }
12353 return resultobj;
12354 fail:
12355 {
12356 if (temp2)
12357 delete arg2;
12358 }
12359 return NULL;
12360}
12361
12362
12363static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12364 PyObject *resultobj;
12365 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
12366 int arg2 ;
12367 int arg3 ;
12368 int arg4 ;
12369 int arg5 ;
d14a1e28 12370 wxDC *arg6 = (wxDC *) 0 ;
423f194a
RD
12371 int arg7 ;
12372 int arg8 ;
d14a1e28 12373 int arg9 = (int) wxCOPY ;
423f194a
RD
12374 bool arg10 = (bool) False ;
12375 int arg11 = (int) -1 ;
12376 int arg12 = (int) -1 ;
d14a1e28
RD
12377 bool result;
12378 PyObject * obj0 = 0 ;
8edf1c75
RD
12379 PyObject * obj1 = 0 ;
12380 PyObject * obj2 = 0 ;
12381 PyObject * obj3 = 0 ;
12382 PyObject * obj4 = 0 ;
d14a1e28 12383 PyObject * obj5 = 0 ;
8edf1c75
RD
12384 PyObject * obj6 = 0 ;
12385 PyObject * obj7 = 0 ;
12386 PyObject * obj8 = 0 ;
d14a1e28 12387 PyObject * obj9 = 0 ;
8edf1c75
RD
12388 PyObject * obj10 = 0 ;
12389 PyObject * obj11 = 0 ;
d14a1e28
RD
12390 char *kwnames[] = {
12391 (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
12392 };
12393
8edf1c75 12394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_BlitXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
2f4c0a16
RD
12395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12397 arg2 = (int) SWIG_AsInt(obj1);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 arg3 = (int) SWIG_AsInt(obj2);
12400 if (PyErr_Occurred()) SWIG_fail;
12401 arg4 = (int) SWIG_AsInt(obj3);
12402 if (PyErr_Occurred()) SWIG_fail;
12403 arg5 = (int) SWIG_AsInt(obj4);
12404 if (PyErr_Occurred()) SWIG_fail;
12405 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12407 arg7 = (int) SWIG_AsInt(obj6);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 arg8 = (int) SWIG_AsInt(obj7);
12410 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 12411 if (obj8) {
2f4c0a16
RD
12412 arg9 = (int) SWIG_AsInt(obj8);
12413 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 12414 }
d14a1e28 12415 if (obj9) {
2f4c0a16
RD
12416 arg10 = (bool) SWIG_AsBool(obj9);
12417 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
12418 }
12419 if (obj10) {
2f4c0a16
RD
12420 arg11 = (int) SWIG_AsInt(obj10);
12421 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
12422 }
12423 if (obj11) {
2f4c0a16
RD
12424 arg12 = (int) SWIG_AsInt(obj11);
12425 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12426 }
12427 {
12428 PyThreadState* __tstate = wxPyBeginAllowThreads();
12429 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12430
12431 wxPyEndAllowThreads(__tstate);
12432 if (PyErr_Occurred()) SWIG_fail;
12433 }
4f89f6a3
RD
12434 {
12435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12436 }
d14a1e28
RD
12437 return resultobj;
12438 fail:
12439 return NULL;
12440}
12441
12442
12443static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12444 PyObject *resultobj;
12445 wxDC *arg1 = (wxDC *) 0 ;
12446 wxPoint *arg2 = 0 ;
12447 wxSize *arg3 = 0 ;
12448 wxDC *arg4 = (wxDC *) 0 ;
12449 wxPoint *arg5 = 0 ;
12450 int arg6 = (int) wxCOPY ;
423f194a 12451 bool arg7 = (bool) False ;
d14a1e28
RD
12452 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12453 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12454 bool result;
12455 wxPoint temp2 ;
12456 wxSize temp3 ;
12457 wxPoint temp5 ;
12458 wxPoint temp8 ;
12459 PyObject * obj0 = 0 ;
12460 PyObject * obj1 = 0 ;
12461 PyObject * obj2 = 0 ;
12462 PyObject * obj3 = 0 ;
12463 PyObject * obj4 = 0 ;
8edf1c75 12464 PyObject * obj5 = 0 ;
d14a1e28
RD
12465 PyObject * obj6 = 0 ;
12466 PyObject * obj7 = 0 ;
12467 char *kwnames[] = {
12468 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12469 };
12470
8edf1c75 12471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2f4c0a16
RD
12472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12474 {
12475 arg2 = &temp2;
12476 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12477 }
12478 {
12479 arg3 = &temp3;
12480 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12481 }
2f4c0a16
RD
12482 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12484 {
12485 arg5 = &temp5;
12486 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12487 }
8edf1c75 12488 if (obj5) {
2f4c0a16
RD
12489 arg6 = (int) SWIG_AsInt(obj5);
12490 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 12491 }
d14a1e28 12492 if (obj6) {
2f4c0a16
RD
12493 arg7 = (bool) SWIG_AsBool(obj6);
12494 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12495 }
12496 if (obj7) {
12497 {
12498 arg8 = &temp8;
12499 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12500 }
12501 }
12502 {
12503 PyThreadState* __tstate = wxPyBeginAllowThreads();
12504 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12505
12506 wxPyEndAllowThreads(__tstate);
12507 if (PyErr_Occurred()) SWIG_fail;
12508 }
4f89f6a3
RD
12509 {
12510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12511 }
d14a1e28
RD
12512 return resultobj;
12513 fail:
12514 return NULL;
12515}
12516
12517
12518static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12519 PyObject *resultobj;
12520 wxDC *arg1 = (wxDC *) 0 ;
12521 int arg2 ;
12522 wxPoint *arg3 = (wxPoint *) 0 ;
423f194a
RD
12523 int arg4 = (int) 0 ;
12524 int arg5 = (int) 0 ;
d14a1e28
RD
12525 PyObject * obj0 = 0 ;
12526 PyObject * obj1 = 0 ;
8edf1c75
RD
12527 PyObject * obj2 = 0 ;
12528 PyObject * obj3 = 0 ;
d14a1e28
RD
12529 char *kwnames[] = {
12530 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12531 };
12532
8edf1c75 12533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
12534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12536 {
12537 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12538 if (arg3 == NULL) SWIG_fail;
12539 }
8edf1c75 12540 if (obj2) {
2f4c0a16
RD
12541 arg4 = (int) SWIG_AsInt(obj2);
12542 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
12543 }
12544 if (obj3) {
2f4c0a16
RD
12545 arg5 = (int) SWIG_AsInt(obj3);
12546 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 12547 }
d14a1e28
RD
12548 {
12549 PyThreadState* __tstate = wxPyBeginAllowThreads();
12550 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12551
12552 wxPyEndAllowThreads(__tstate);
12553 if (PyErr_Occurred()) SWIG_fail;
12554 }
12555 Py_INCREF(Py_None); resultobj = Py_None;
12556 {
12557 if (arg3) delete [] arg3;
12558 }
12559 return resultobj;
12560 fail:
12561 {
12562 if (arg3) delete [] arg3;
12563 }
12564 return NULL;
12565}
12566
12567
12568static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12569 PyObject *resultobj;
12570 wxDC *arg1 = (wxDC *) 0 ;
12571 int arg2 ;
12572 wxPoint *arg3 = (wxPoint *) 0 ;
423f194a
RD
12573 int arg4 = (int) 0 ;
12574 int arg5 = (int) 0 ;
d14a1e28
RD
12575 int arg6 = (int) wxODDEVEN_RULE ;
12576 PyObject * obj0 = 0 ;
12577 PyObject * obj1 = 0 ;
8edf1c75
RD
12578 PyObject * obj2 = 0 ;
12579 PyObject * obj3 = 0 ;
12580 PyObject * obj4 = 0 ;
d14a1e28
RD
12581 char *kwnames[] = {
12582 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12583 };
12584
8edf1c75 12585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
12586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12588 {
12589 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12590 if (arg3 == NULL) SWIG_fail;
12591 }
8edf1c75 12592 if (obj2) {
2f4c0a16
RD
12593 arg4 = (int) SWIG_AsInt(obj2);
12594 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
12595 }
12596 if (obj3) {
2f4c0a16
RD
12597 arg5 = (int) SWIG_AsInt(obj3);
12598 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
12599 }
12600 if (obj4) {
2f4c0a16
RD
12601 arg6 = (int) SWIG_AsInt(obj4);
12602 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 12603 }
d14a1e28
RD
12604 {
12605 PyThreadState* __tstate = wxPyBeginAllowThreads();
12606 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12607
12608 wxPyEndAllowThreads(__tstate);
12609 if (PyErr_Occurred()) SWIG_fail;
12610 }
12611 Py_INCREF(Py_None); resultobj = Py_None;
12612 {
12613 if (arg3) delete [] arg3;
12614 }
12615 return resultobj;
12616 fail:
12617 {
12618 if (arg3) delete [] arg3;
12619 }
12620 return NULL;
12621}
12622
12623
12624static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12625 PyObject *resultobj;
12626 wxDC *arg1 = (wxDC *) 0 ;
12627 wxString *arg2 = 0 ;
12628 wxRect *arg3 = 0 ;
12629 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12630 int arg5 = (int) -1 ;
423f194a 12631 bool temp2 = False ;
d14a1e28
RD
12632 wxRect temp3 ;
12633 PyObject * obj0 = 0 ;
12634 PyObject * obj1 = 0 ;
12635 PyObject * obj2 = 0 ;
8edf1c75
RD
12636 PyObject * obj3 = 0 ;
12637 PyObject * obj4 = 0 ;
d14a1e28
RD
12638 char *kwnames[] = {
12639 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12640 };
12641
8edf1c75 12642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
12643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12645 {
12646 arg2 = wxString_in_helper(obj1);
12647 if (arg2 == NULL) SWIG_fail;
423f194a 12648 temp2 = True;
d14a1e28
RD
12649 }
12650 {
12651 arg3 = &temp3;
12652 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12653 }
8edf1c75 12654 if (obj3) {
2f4c0a16
RD
12655 arg4 = (int) SWIG_AsInt(obj3);
12656 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
12657 }
12658 if (obj4) {
2f4c0a16
RD
12659 arg5 = (int) SWIG_AsInt(obj4);
12660 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 12661 }
d14a1e28
RD
12662 {
12663 PyThreadState* __tstate = wxPyBeginAllowThreads();
12664 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12665
12666 wxPyEndAllowThreads(__tstate);
12667 if (PyErr_Occurred()) SWIG_fail;
12668 }
12669 Py_INCREF(Py_None); resultobj = Py_None;
12670 {
12671 if (temp2)
12672 delete arg2;
12673 }
12674 return resultobj;
12675 fail:
12676 {
12677 if (temp2)
12678 delete arg2;
12679 }
12680 return NULL;
12681}
12682
12683
12684static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12685 PyObject *resultobj;
12686 wxDC *arg1 = (wxDC *) 0 ;
12687 wxString *arg2 = 0 ;
12688 wxBitmap *arg3 = 0 ;
12689 wxRect *arg4 = 0 ;
12690 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12691 int arg6 = (int) -1 ;
12692 wxRect result;
423f194a 12693 bool temp2 = False ;
d14a1e28
RD
12694 wxRect temp4 ;
12695 PyObject * obj0 = 0 ;
12696 PyObject * obj1 = 0 ;
12697 PyObject * obj2 = 0 ;
12698 PyObject * obj3 = 0 ;
8edf1c75
RD
12699 PyObject * obj4 = 0 ;
12700 PyObject * obj5 = 0 ;
d14a1e28
RD
12701 char *kwnames[] = {
12702 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12703 };
12704
8edf1c75 12705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
2f4c0a16
RD
12706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12708 {
12709 arg2 = wxString_in_helper(obj1);
12710 if (arg2 == NULL) SWIG_fail;
423f194a 12711 temp2 = True;
d14a1e28 12712 }
2f4c0a16
RD
12713 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12714 SWIG_POINTER_EXCEPTION | 0)) == -1)
12715 SWIG_fail;
d14a1e28 12716 if (arg3 == NULL) {
2f4c0a16
RD
12717 PyErr_SetString(PyExc_TypeError,"null reference");
12718 SWIG_fail;
d14a1e28
RD
12719 }
12720 {
12721 arg4 = &temp4;
12722 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12723 }
8edf1c75 12724 if (obj4) {
2f4c0a16
RD
12725 arg5 = (int) SWIG_AsInt(obj4);
12726 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
12727 }
12728 if (obj5) {
2f4c0a16
RD
12729 arg6 = (int) SWIG_AsInt(obj5);
12730 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 12731 }
d14a1e28
RD
12732 {
12733 PyThreadState* __tstate = wxPyBeginAllowThreads();
12734 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12735
12736 wxPyEndAllowThreads(__tstate);
12737 if (PyErr_Occurred()) SWIG_fail;
12738 }
12739 {
12740 wxRect * resultptr;
12741 resultptr = new wxRect((wxRect &) result);
2f4c0a16 12742 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
12743 }
12744 {
12745 if (temp2)
12746 delete arg2;
12747 }
12748 return resultobj;
12749 fail:
12750 {
12751 if (temp2)
12752 delete arg2;
12753 }
12754 return NULL;
12755}
12756
12757
12758static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12759 PyObject *resultobj;
12760 wxDC *arg1 = (wxDC *) 0 ;
12761 int arg2 ;
12762 wxPoint *arg3 = (wxPoint *) 0 ;
12763 PyObject * obj0 = 0 ;
12764 PyObject * obj1 = 0 ;
12765 char *kwnames[] = {
12766 (char *) "self",(char *) "points", NULL
12767 };
12768
12769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
12770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12772 {
12773 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12774 if (arg3 == NULL) SWIG_fail;
12775 }
12776 {
12777 PyThreadState* __tstate = wxPyBeginAllowThreads();
12778 (arg1)->DrawSpline(arg2,arg3);
12779
12780 wxPyEndAllowThreads(__tstate);
12781 if (PyErr_Occurred()) SWIG_fail;
12782 }
12783 Py_INCREF(Py_None); resultobj = Py_None;
12784 {
12785 if (arg3) delete [] arg3;
12786 }
12787 return resultobj;
12788 fail:
12789 {
12790 if (arg3) delete [] arg3;
12791 }
12792 return NULL;
12793}
12794
12795
12796static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12797 PyObject *resultobj;
12798 wxDC *arg1 = (wxDC *) 0 ;
12799 PyObject * obj0 = 0 ;
12800 char *kwnames[] = {
12801 (char *) "self", NULL
12802 };
12803
12804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
2f4c0a16
RD
12805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12807 {
12808 PyThreadState* __tstate = wxPyBeginAllowThreads();
12809 (arg1)->Clear();
12810
12811 wxPyEndAllowThreads(__tstate);
12812 if (PyErr_Occurred()) SWIG_fail;
12813 }
12814 Py_INCREF(Py_None); resultobj = Py_None;
12815 return resultobj;
12816 fail:
12817 return NULL;
12818}
12819
12820
12821static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12822 PyObject *resultobj;
12823 wxDC *arg1 = (wxDC *) 0 ;
12824 wxString *arg2 = 0 ;
12825 bool result;
423f194a 12826 bool temp2 = False ;
d14a1e28
RD
12827 PyObject * obj0 = 0 ;
12828 PyObject * obj1 = 0 ;
12829 char *kwnames[] = {
12830 (char *) "self",(char *) "message", NULL
12831 };
12832
12833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
12834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12836 {
12837 arg2 = wxString_in_helper(obj1);
12838 if (arg2 == NULL) SWIG_fail;
423f194a 12839 temp2 = True;
d14a1e28
RD
12840 }
12841 {
12842 PyThreadState* __tstate = wxPyBeginAllowThreads();
12843 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12844
12845 wxPyEndAllowThreads(__tstate);
12846 if (PyErr_Occurred()) SWIG_fail;
12847 }
4f89f6a3
RD
12848 {
12849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12850 }
d14a1e28
RD
12851 {
12852 if (temp2)
12853 delete arg2;
12854 }
12855 return resultobj;
12856 fail:
12857 {
12858 if (temp2)
12859 delete arg2;
12860 }
12861 return NULL;
12862}
12863
12864
12865static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12866 PyObject *resultobj;
12867 wxDC *arg1 = (wxDC *) 0 ;
12868 PyObject * obj0 = 0 ;
12869 char *kwnames[] = {
12870 (char *) "self", NULL
12871 };
12872
12873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
2f4c0a16
RD
12874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12876 {
12877 PyThreadState* __tstate = wxPyBeginAllowThreads();
12878 (arg1)->EndDoc();
12879
12880 wxPyEndAllowThreads(__tstate);
12881 if (PyErr_Occurred()) SWIG_fail;
12882 }
12883 Py_INCREF(Py_None); resultobj = Py_None;
12884 return resultobj;
12885 fail:
12886 return NULL;
12887}
12888
12889
12890static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12891 PyObject *resultobj;
12892 wxDC *arg1 = (wxDC *) 0 ;
12893 PyObject * obj0 = 0 ;
12894 char *kwnames[] = {
12895 (char *) "self", NULL
12896 };
12897
12898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
2f4c0a16
RD
12899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12901 {
12902 PyThreadState* __tstate = wxPyBeginAllowThreads();
12903 (arg1)->StartPage();
12904
12905 wxPyEndAllowThreads(__tstate);
12906 if (PyErr_Occurred()) SWIG_fail;
12907 }
12908 Py_INCREF(Py_None); resultobj = Py_None;
12909 return resultobj;
12910 fail:
12911 return NULL;
12912}
12913
12914
12915static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12916 PyObject *resultobj;
12917 wxDC *arg1 = (wxDC *) 0 ;
12918 PyObject * obj0 = 0 ;
12919 char *kwnames[] = {
12920 (char *) "self", NULL
12921 };
12922
12923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
2f4c0a16
RD
12924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12926 {
12927 PyThreadState* __tstate = wxPyBeginAllowThreads();
12928 (arg1)->EndPage();
12929
12930 wxPyEndAllowThreads(__tstate);
12931 if (PyErr_Occurred()) SWIG_fail;
12932 }
12933 Py_INCREF(Py_None); resultobj = Py_None;
12934 return resultobj;
12935 fail:
12936 return NULL;
12937}
12938
12939
12940static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12941 PyObject *resultobj;
12942 wxDC *arg1 = (wxDC *) 0 ;
12943 wxFont *arg2 = 0 ;
12944 PyObject * obj0 = 0 ;
12945 PyObject * obj1 = 0 ;
12946 char *kwnames[] = {
12947 (char *) "self",(char *) "font", NULL
12948 };
12949
12950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
12951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12953 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12954 SWIG_POINTER_EXCEPTION | 0)) == -1)
12955 SWIG_fail;
d14a1e28 12956 if (arg2 == NULL) {
2f4c0a16
RD
12957 PyErr_SetString(PyExc_TypeError,"null reference");
12958 SWIG_fail;
d14a1e28
RD
12959 }
12960 {
12961 PyThreadState* __tstate = wxPyBeginAllowThreads();
12962 (arg1)->SetFont((wxFont const &)*arg2);
12963
12964 wxPyEndAllowThreads(__tstate);
12965 if (PyErr_Occurred()) SWIG_fail;
12966 }
12967 Py_INCREF(Py_None); resultobj = Py_None;
12968 return resultobj;
12969 fail:
12970 return NULL;
12971}
12972
12973
12974static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12975 PyObject *resultobj;
12976 wxDC *arg1 = (wxDC *) 0 ;
12977 wxPen *arg2 = 0 ;
12978 PyObject * obj0 = 0 ;
12979 PyObject * obj1 = 0 ;
12980 char *kwnames[] = {
12981 (char *) "self",(char *) "pen", NULL
12982 };
12983
12984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
12985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12987 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12988 SWIG_POINTER_EXCEPTION | 0)) == -1)
12989 SWIG_fail;
d14a1e28 12990 if (arg2 == NULL) {
2f4c0a16
RD
12991 PyErr_SetString(PyExc_TypeError,"null reference");
12992 SWIG_fail;
d14a1e28
RD
12993 }
12994 {
12995 PyThreadState* __tstate = wxPyBeginAllowThreads();
12996 (arg1)->SetPen((wxPen const &)*arg2);
12997
12998 wxPyEndAllowThreads(__tstate);
12999 if (PyErr_Occurred()) SWIG_fail;
13000 }
13001 Py_INCREF(Py_None); resultobj = Py_None;
13002 return resultobj;
13003 fail:
13004 return NULL;
13005}
13006
13007
13008static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13009 PyObject *resultobj;
13010 wxDC *arg1 = (wxDC *) 0 ;
13011 wxBrush *arg2 = 0 ;
13012 PyObject * obj0 = 0 ;
13013 PyObject * obj1 = 0 ;
13014 char *kwnames[] = {
13015 (char *) "self",(char *) "brush", NULL
13016 };
13017
13018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13021 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13022 SWIG_POINTER_EXCEPTION | 0)) == -1)
13023 SWIG_fail;
d14a1e28 13024 if (arg2 == NULL) {
2f4c0a16
RD
13025 PyErr_SetString(PyExc_TypeError,"null reference");
13026 SWIG_fail;
d14a1e28
RD
13027 }
13028 {
13029 PyThreadState* __tstate = wxPyBeginAllowThreads();
13030 (arg1)->SetBrush((wxBrush const &)*arg2);
13031
13032 wxPyEndAllowThreads(__tstate);
13033 if (PyErr_Occurred()) SWIG_fail;
13034 }
13035 Py_INCREF(Py_None); resultobj = Py_None;
13036 return resultobj;
13037 fail:
13038 return NULL;
13039}
13040
13041
13042static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13043 PyObject *resultobj;
13044 wxDC *arg1 = (wxDC *) 0 ;
13045 wxBrush *arg2 = 0 ;
13046 PyObject * obj0 = 0 ;
13047 PyObject * obj1 = 0 ;
13048 char *kwnames[] = {
13049 (char *) "self",(char *) "brush", NULL
13050 };
13051
13052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13055 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13056 SWIG_POINTER_EXCEPTION | 0)) == -1)
13057 SWIG_fail;
d14a1e28 13058 if (arg2 == NULL) {
2f4c0a16
RD
13059 PyErr_SetString(PyExc_TypeError,"null reference");
13060 SWIG_fail;
d14a1e28
RD
13061 }
13062 {
13063 PyThreadState* __tstate = wxPyBeginAllowThreads();
13064 (arg1)->SetBackground((wxBrush const &)*arg2);
13065
13066 wxPyEndAllowThreads(__tstate);
13067 if (PyErr_Occurred()) SWIG_fail;
13068 }
13069 Py_INCREF(Py_None); resultobj = Py_None;
13070 return resultobj;
13071 fail:
13072 return NULL;
13073}
13074
13075
13076static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13077 PyObject *resultobj;
13078 wxDC *arg1 = (wxDC *) 0 ;
13079 int arg2 ;
13080 PyObject * obj0 = 0 ;
8edf1c75 13081 PyObject * obj1 = 0 ;
d14a1e28
RD
13082 char *kwnames[] = {
13083 (char *) "self",(char *) "mode", NULL
13084 };
13085
8edf1c75 13086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13089 arg2 = (int) SWIG_AsInt(obj1);
13090 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13091 {
13092 PyThreadState* __tstate = wxPyBeginAllowThreads();
13093 (arg1)->SetBackgroundMode(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
13105static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
13106 PyObject *resultobj;
13107 wxDC *arg1 = (wxDC *) 0 ;
13108 wxPalette *arg2 = 0 ;
13109 PyObject * obj0 = 0 ;
13110 PyObject * obj1 = 0 ;
13111 char *kwnames[] = {
13112 (char *) "self",(char *) "palette", NULL
13113 };
13114
13115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13118 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13119 SWIG_POINTER_EXCEPTION | 0)) == -1)
13120 SWIG_fail;
d14a1e28 13121 if (arg2 == NULL) {
2f4c0a16
RD
13122 PyErr_SetString(PyExc_TypeError,"null reference");
13123 SWIG_fail;
d14a1e28
RD
13124 }
13125 {
13126 PyThreadState* __tstate = wxPyBeginAllowThreads();
13127 (arg1)->SetPalette((wxPalette const &)*arg2);
13128
13129 wxPyEndAllowThreads(__tstate);
13130 if (PyErr_Occurred()) SWIG_fail;
13131 }
13132 Py_INCREF(Py_None); resultobj = Py_None;
13133 return resultobj;
13134 fail:
13135 return NULL;
13136}
13137
13138
f0983263 13139static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13140 PyObject *resultobj;
13141 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13142 int arg2 ;
13143 int arg3 ;
13144 int arg4 ;
13145 int arg5 ;
d14a1e28 13146 PyObject * obj0 = 0 ;
8edf1c75
RD
13147 PyObject * obj1 = 0 ;
13148 PyObject * obj2 = 0 ;
13149 PyObject * obj3 = 0 ;
13150 PyObject * obj4 = 0 ;
d14a1e28
RD
13151 char *kwnames[] = {
13152 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13153 };
13154
8edf1c75 13155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
13156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13158 arg2 = (int) SWIG_AsInt(obj1);
13159 if (PyErr_Occurred()) SWIG_fail;
13160 arg3 = (int) SWIG_AsInt(obj2);
13161 if (PyErr_Occurred()) SWIG_fail;
13162 arg4 = (int) SWIG_AsInt(obj3);
13163 if (PyErr_Occurred()) SWIG_fail;
13164 arg5 = (int) SWIG_AsInt(obj4);
13165 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13166 {
13167 PyThreadState* __tstate = wxPyBeginAllowThreads();
13168 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
13169
13170 wxPyEndAllowThreads(__tstate);
13171 if (PyErr_Occurred()) SWIG_fail;
13172 }
13173 Py_INCREF(Py_None); resultobj = Py_None;
13174 return resultobj;
13175 fail:
13176 return NULL;
13177}
13178
13179
f0983263
RD
13180static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13181 PyObject *resultobj;
13182 wxDC *arg1 = (wxDC *) 0 ;
13183 wxPoint *arg2 = 0 ;
13184 wxSize *arg3 = 0 ;
13185 wxPoint temp2 ;
13186 wxSize temp3 ;
13187 PyObject * obj0 = 0 ;
13188 PyObject * obj1 = 0 ;
13189 PyObject * obj2 = 0 ;
13190 char *kwnames[] = {
13191 (char *) "self",(char *) "pt",(char *) "sz", NULL
13192 };
13193
13194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
13195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
f0983263
RD
13197 {
13198 arg2 = &temp2;
13199 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13200 }
13201 {
13202 arg3 = &temp3;
13203 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13204 }
13205 {
13206 PyThreadState* __tstate = wxPyBeginAllowThreads();
13207 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
13208
13209 wxPyEndAllowThreads(__tstate);
13210 if (PyErr_Occurred()) SWIG_fail;
13211 }
13212 Py_INCREF(Py_None); resultobj = Py_None;
13213 return resultobj;
13214 fail:
13215 return NULL;
13216}
13217
13218
d14a1e28
RD
13219static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13220 PyObject *resultobj;
13221 wxDC *arg1 = (wxDC *) 0 ;
13222 wxRect *arg2 = 0 ;
13223 wxRect temp2 ;
13224 PyObject * obj0 = 0 ;
13225 PyObject * obj1 = 0 ;
13226 char *kwnames[] = {
13227 (char *) "self",(char *) "rect", NULL
13228 };
13229
13230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13233 {
13234 arg2 = &temp2;
13235 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13236 }
13237 {
13238 PyThreadState* __tstate = wxPyBeginAllowThreads();
13239 (arg1)->SetClippingRegion((wxRect const &)*arg2);
13240
13241 wxPyEndAllowThreads(__tstate);
13242 if (PyErr_Occurred()) SWIG_fail;
13243 }
13244 Py_INCREF(Py_None); resultobj = Py_None;
13245 return resultobj;
13246 fail:
13247 return NULL;
13248}
13249
13250
13251static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13252 PyObject *resultobj;
13253 wxDC *arg1 = (wxDC *) 0 ;
13254 wxRegion *arg2 = 0 ;
13255 PyObject * obj0 = 0 ;
13256 PyObject * obj1 = 0 ;
13257 char *kwnames[] = {
13258 (char *) "self",(char *) "region", NULL
13259 };
13260
13261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13264 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
13265 SWIG_POINTER_EXCEPTION | 0)) == -1)
13266 SWIG_fail;
d14a1e28 13267 if (arg2 == NULL) {
2f4c0a16
RD
13268 PyErr_SetString(PyExc_TypeError,"null reference");
13269 SWIG_fail;
d14a1e28
RD
13270 }
13271 {
13272 PyThreadState* __tstate = wxPyBeginAllowThreads();
13273 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
13274
13275 wxPyEndAllowThreads(__tstate);
13276 if (PyErr_Occurred()) SWIG_fail;
13277 }
13278 Py_INCREF(Py_None); resultobj = Py_None;
13279 return resultobj;
13280 fail:
13281 return NULL;
13282}
13283
13284
13285static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13286 PyObject *resultobj;
13287 wxDC *arg1 = (wxDC *) 0 ;
13288 PyObject * obj0 = 0 ;
13289 char *kwnames[] = {
13290 (char *) "self", NULL
13291 };
13292
13293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13296 {
13297 PyThreadState* __tstate = wxPyBeginAllowThreads();
13298 (arg1)->DestroyClippingRegion();
13299
13300 wxPyEndAllowThreads(__tstate);
13301 if (PyErr_Occurred()) SWIG_fail;
13302 }
13303 Py_INCREF(Py_None); resultobj = Py_None;
13304 return resultobj;
13305 fail:
13306 return NULL;
13307}
13308
13309
13310static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13311 PyObject *resultobj;
13312 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13313 int *arg2 = (int *) 0 ;
13314 int *arg3 = (int *) 0 ;
13315 int *arg4 = (int *) 0 ;
13316 int *arg5 = (int *) 0 ;
13317 int temp2 ;
13318 int temp3 ;
13319 int temp4 ;
13320 int temp5 ;
d14a1e28
RD
13321 PyObject * obj0 = 0 ;
13322 char *kwnames[] = {
13323 (char *) "self", NULL
13324 };
13325
13326 arg2 = &temp2;
13327 arg3 = &temp3;
13328 arg4 = &temp4;
13329 arg5 = &temp5;
13330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13333 {
13334 PyThreadState* __tstate = wxPyBeginAllowThreads();
13335 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13336
13337 wxPyEndAllowThreads(__tstate);
13338 if (PyErr_Occurred()) SWIG_fail;
13339 }
13340 Py_INCREF(Py_None); resultobj = Py_None;
13341 {
13342 PyObject *o = PyInt_FromLong((long) (*arg2));
13343 resultobj = t_output_helper(resultobj,o);
13344 }
13345 {
13346 PyObject *o = PyInt_FromLong((long) (*arg3));
13347 resultobj = t_output_helper(resultobj,o);
13348 }
13349 {
13350 PyObject *o = PyInt_FromLong((long) (*arg4));
13351 resultobj = t_output_helper(resultobj,o);
13352 }
13353 {
13354 PyObject *o = PyInt_FromLong((long) (*arg5));
13355 resultobj = t_output_helper(resultobj,o);
13356 }
13357 return resultobj;
13358 fail:
13359 return NULL;
13360}
13361
13362
13363static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13364 PyObject *resultobj;
13365 wxDC *arg1 = (wxDC *) 0 ;
13366 wxRect result;
13367 PyObject * obj0 = 0 ;
13368 char *kwnames[] = {
13369 (char *) "self", NULL
13370 };
13371
13372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13375 {
13376 PyThreadState* __tstate = wxPyBeginAllowThreads();
13377 result = wxDC_GetClippingRect(arg1);
13378
13379 wxPyEndAllowThreads(__tstate);
13380 if (PyErr_Occurred()) SWIG_fail;
13381 }
13382 {
13383 wxRect * resultptr;
13384 resultptr = new wxRect((wxRect &) result);
2f4c0a16 13385 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
13386 }
13387 return resultobj;
13388 fail:
13389 return NULL;
13390}
13391
13392
13393static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13394 PyObject *resultobj;
13395 wxDC *arg1 = (wxDC *) 0 ;
423f194a 13396 int result;
d14a1e28
RD
13397 PyObject * obj0 = 0 ;
13398 char *kwnames[] = {
13399 (char *) "self", NULL
13400 };
13401
13402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13405 {
13406 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13407 result = (int)((wxDC const *)arg1)->GetCharHeight();
d14a1e28
RD
13408
13409 wxPyEndAllowThreads(__tstate);
13410 if (PyErr_Occurred()) SWIG_fail;
13411 }
2f4c0a16 13412 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13413 return resultobj;
13414 fail:
13415 return NULL;
13416}
13417
13418
13419static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13420 PyObject *resultobj;
13421 wxDC *arg1 = (wxDC *) 0 ;
423f194a 13422 int result;
d14a1e28
RD
13423 PyObject * obj0 = 0 ;
13424 char *kwnames[] = {
13425 (char *) "self", NULL
13426 };
13427
13428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13431 {
13432 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13433 result = (int)((wxDC const *)arg1)->GetCharWidth();
d14a1e28
RD
13434
13435 wxPyEndAllowThreads(__tstate);
13436 if (PyErr_Occurred()) SWIG_fail;
13437 }
2f4c0a16 13438 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13439 return resultobj;
13440 fail:
13441 return NULL;
13442}
13443
13444
13445static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13446 PyObject *resultobj;
13447 wxDC *arg1 = (wxDC *) 0 ;
13448 wxString *arg2 = 0 ;
423f194a
RD
13449 int *arg3 = (int *) 0 ;
13450 int *arg4 = (int *) 0 ;
13451 bool temp2 = False ;
13452 int temp3 ;
13453 int temp4 ;
d14a1e28
RD
13454 PyObject * obj0 = 0 ;
13455 PyObject * obj1 = 0 ;
13456 char *kwnames[] = {
13457 (char *) "self",(char *) "string", NULL
13458 };
13459
13460 arg3 = &temp3;
13461 arg4 = &temp4;
13462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13465 {
13466 arg2 = wxString_in_helper(obj1);
13467 if (arg2 == NULL) SWIG_fail;
423f194a 13468 temp2 = True;
d14a1e28
RD
13469 }
13470 {
13471 PyThreadState* __tstate = wxPyBeginAllowThreads();
13472 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13473
13474 wxPyEndAllowThreads(__tstate);
13475 if (PyErr_Occurred()) SWIG_fail;
13476 }
13477 Py_INCREF(Py_None); resultobj = Py_None;
13478 {
13479 PyObject *o = PyInt_FromLong((long) (*arg3));
13480 resultobj = t_output_helper(resultobj,o);
13481 }
13482 {
13483 PyObject *o = PyInt_FromLong((long) (*arg4));
13484 resultobj = t_output_helper(resultobj,o);
13485 }
13486 {
13487 if (temp2)
13488 delete arg2;
13489 }
13490 return resultobj;
13491 fail:
13492 {
13493 if (temp2)
13494 delete arg2;
13495 }
13496 return NULL;
13497}
13498
13499
13500static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13501 PyObject *resultobj;
13502 wxDC *arg1 = (wxDC *) 0 ;
13503 wxString *arg2 = 0 ;
423f194a
RD
13504 int *arg3 = (int *) 0 ;
13505 int *arg4 = (int *) 0 ;
13506 int *arg5 = (int *) 0 ;
13507 int *arg6 = (int *) 0 ;
d14a1e28 13508 wxFont *arg7 = (wxFont *) NULL ;
423f194a
RD
13509 bool temp2 = False ;
13510 int temp3 ;
13511 int temp4 ;
13512 int temp5 ;
13513 int temp6 ;
d14a1e28
RD
13514 PyObject * obj0 = 0 ;
13515 PyObject * obj1 = 0 ;
13516 PyObject * obj2 = 0 ;
13517 char *kwnames[] = {
13518 (char *) "self",(char *) "string",(char *) "font", NULL
13519 };
13520
13521 arg3 = &temp3;
13522 arg4 = &temp4;
13523 arg5 = &temp5;
13524 arg6 = &temp6;
13525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
13526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13528 {
13529 arg2 = wxString_in_helper(obj1);
13530 if (arg2 == NULL) SWIG_fail;
423f194a 13531 temp2 = True;
d14a1e28
RD
13532 }
13533 if (obj2) {
2f4c0a16
RD
13534 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13536 }
13537 {
13538 PyThreadState* __tstate = wxPyBeginAllowThreads();
13539 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13540
13541 wxPyEndAllowThreads(__tstate);
13542 if (PyErr_Occurred()) SWIG_fail;
13543 }
13544 Py_INCREF(Py_None); resultobj = Py_None;
13545 {
13546 PyObject *o = PyInt_FromLong((long) (*arg3));
13547 resultobj = t_output_helper(resultobj,o);
13548 }
13549 {
13550 PyObject *o = PyInt_FromLong((long) (*arg4));
13551 resultobj = t_output_helper(resultobj,o);
13552 }
13553 {
13554 PyObject *o = PyInt_FromLong((long) (*arg5));
13555 resultobj = t_output_helper(resultobj,o);
13556 }
13557 {
13558 PyObject *o = PyInt_FromLong((long) (*arg6));
13559 resultobj = t_output_helper(resultobj,o);
13560 }
13561 {
13562 if (temp2)
13563 delete arg2;
13564 }
13565 return resultobj;
13566 fail:
13567 {
13568 if (temp2)
13569 delete arg2;
13570 }
13571 return NULL;
13572}
13573
13574
13575static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13576 PyObject *resultobj;
13577 wxDC *arg1 = (wxDC *) 0 ;
13578 wxString *arg2 = 0 ;
423f194a
RD
13579 int *arg3 = (int *) 0 ;
13580 int *arg4 = (int *) 0 ;
13581 int *arg5 = (int *) 0 ;
d14a1e28 13582 wxFont *arg6 = (wxFont *) NULL ;
423f194a
RD
13583 bool temp2 = False ;
13584 int temp3 ;
13585 int temp4 ;
13586 int temp5 ;
d14a1e28
RD
13587 PyObject * obj0 = 0 ;
13588 PyObject * obj1 = 0 ;
13589 PyObject * obj2 = 0 ;
13590 char *kwnames[] = {
13591 (char *) "self",(char *) "text",(char *) "font", NULL
13592 };
13593
13594 arg3 = &temp3;
13595 arg4 = &temp4;
13596 arg5 = &temp5;
13597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
13598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13600 {
13601 arg2 = wxString_in_helper(obj1);
13602 if (arg2 == NULL) SWIG_fail;
423f194a 13603 temp2 = True;
d14a1e28
RD
13604 }
13605 if (obj2) {
2f4c0a16
RD
13606 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13608 }
13609 {
13610 PyThreadState* __tstate = wxPyBeginAllowThreads();
13611 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13612
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 Py_INCREF(Py_None); resultobj = Py_None;
13617 {
13618 PyObject *o = PyInt_FromLong((long) (*arg3));
13619 resultobj = t_output_helper(resultobj,o);
13620 }
13621 {
13622 PyObject *o = PyInt_FromLong((long) (*arg4));
13623 resultobj = t_output_helper(resultobj,o);
13624 }
13625 {
13626 PyObject *o = PyInt_FromLong((long) (*arg5));
13627 resultobj = t_output_helper(resultobj,o);
13628 }
13629 {
13630 if (temp2)
13631 delete arg2;
13632 }
13633 return resultobj;
13634 fail:
13635 {
13636 if (temp2)
13637 delete arg2;
13638 }
13639 return NULL;
13640}
13641
13642
db914595
RD
13643static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13644 PyObject *resultobj;
13645 wxDC *arg1 = (wxDC *) 0 ;
13646 wxString *arg2 = 0 ;
13647 wxArrayInt result;
13648 bool temp2 = False ;
13649 PyObject * obj0 = 0 ;
13650 PyObject * obj1 = 0 ;
13651 char *kwnames[] = {
13652 (char *) "self",(char *) "text", NULL
13653 };
13654
13655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
db914595
RD
13658 {
13659 arg2 = wxString_in_helper(obj1);
13660 if (arg2 == NULL) SWIG_fail;
13661 temp2 = True;
13662 }
13663 {
13664 PyThreadState* __tstate = wxPyBeginAllowThreads();
13665 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13666
13667 wxPyEndAllowThreads(__tstate);
13668 if (PyErr_Occurred()) SWIG_fail;
13669 }
13670 {
13671 resultobj = PyList_New(0);
13672 size_t idx;
13673 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13674 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13675 PyList_Append(resultobj, val);
13676 Py_DECREF(val);
13677 }
13678 }
13679 {
13680 if (temp2)
13681 delete arg2;
13682 }
13683 return resultobj;
13684 fail:
13685 {
13686 if (temp2)
13687 delete arg2;
13688 }
13689 return NULL;
13690}
13691
13692
44127b65
RD
13693static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13694 PyObject *resultobj;
13695 wxDC *arg1 = (wxDC *) 0 ;
13696 wxSize result;
13697 PyObject * obj0 = 0 ;
13698 char *kwnames[] = {
13699 (char *) "self", NULL
13700 };
13701
13702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
44127b65
RD
13705 {
13706 PyThreadState* __tstate = wxPyBeginAllowThreads();
13707 result = (arg1)->GetSize();
13708
13709 wxPyEndAllowThreads(__tstate);
13710 if (PyErr_Occurred()) SWIG_fail;
13711 }
13712 {
13713 wxSize * resultptr;
13714 resultptr = new wxSize((wxSize &) result);
2f4c0a16 13715 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
44127b65
RD
13716 }
13717 return resultobj;
13718 fail:
13719 return NULL;
13720}
13721
13722
d14a1e28
RD
13723static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13724 PyObject *resultobj;
13725 wxDC *arg1 = (wxDC *) 0 ;
13726 int *arg2 = (int *) 0 ;
13727 int *arg3 = (int *) 0 ;
13728 int temp2 ;
13729 int temp3 ;
13730 PyObject * obj0 = 0 ;
13731 char *kwnames[] = {
13732 (char *) "self", NULL
13733 };
13734
13735 arg2 = &temp2;
13736 arg3 = &temp3;
13737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13740 {
13741 PyThreadState* __tstate = wxPyBeginAllowThreads();
13742 (arg1)->GetSize(arg2,arg3);
13743
13744 wxPyEndAllowThreads(__tstate);
13745 if (PyErr_Occurred()) SWIG_fail;
13746 }
13747 Py_INCREF(Py_None); resultobj = Py_None;
13748 {
13749 PyObject *o = PyInt_FromLong((long) (*arg2));
13750 resultobj = t_output_helper(resultobj,o);
13751 }
13752 {
13753 PyObject *o = PyInt_FromLong((long) (*arg3));
13754 resultobj = t_output_helper(resultobj,o);
13755 }
13756 return resultobj;
13757 fail:
13758 return NULL;
13759}
13760
13761
44127b65 13762static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13763 PyObject *resultobj;
13764 wxDC *arg1 = (wxDC *) 0 ;
13765 wxSize result;
13766 PyObject * obj0 = 0 ;
13767 char *kwnames[] = {
13768 (char *) "self", NULL
13769 };
13770
44127b65 13771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13774 {
13775 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 13776 result = ((wxDC const *)arg1)->GetSizeMM();
d14a1e28
RD
13777
13778 wxPyEndAllowThreads(__tstate);
13779 if (PyErr_Occurred()) SWIG_fail;
13780 }
13781 {
13782 wxSize * resultptr;
13783 resultptr = new wxSize((wxSize &) result);
2f4c0a16 13784 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
13785 }
13786 return resultobj;
13787 fail:
13788 return NULL;
13789}
13790
13791
44127b65 13792static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13793 PyObject *resultobj;
13794 wxDC *arg1 = (wxDC *) 0 ;
13795 int *arg2 = (int *) 0 ;
13796 int *arg3 = (int *) 0 ;
13797 int temp2 ;
13798 int temp3 ;
13799 PyObject * obj0 = 0 ;
13800 char *kwnames[] = {
13801 (char *) "self", NULL
13802 };
13803
13804 arg2 = &temp2;
13805 arg3 = &temp3;
44127b65 13806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13809 {
13810 PyThreadState* __tstate = wxPyBeginAllowThreads();
13811 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13812
13813 wxPyEndAllowThreads(__tstate);
13814 if (PyErr_Occurred()) SWIG_fail;
13815 }
13816 Py_INCREF(Py_None); resultobj = Py_None;
13817 {
13818 PyObject *o = PyInt_FromLong((long) (*arg2));
13819 resultobj = t_output_helper(resultobj,o);
13820 }
13821 {
13822 PyObject *o = PyInt_FromLong((long) (*arg3));
13823 resultobj = t_output_helper(resultobj,o);
13824 }
13825 return resultobj;
13826 fail:
13827 return NULL;
13828}
13829
13830
d14a1e28
RD
13831static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13832 PyObject *resultobj;
13833 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13834 int arg2 ;
13835 int result;
d14a1e28 13836 PyObject * obj0 = 0 ;
8edf1c75 13837 PyObject * obj1 = 0 ;
d14a1e28
RD
13838 char *kwnames[] = {
13839 (char *) "self",(char *) "x", NULL
13840 };
13841
8edf1c75 13842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13845 arg2 = (int) SWIG_AsInt(obj1);
13846 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13847 {
13848 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13849 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
d14a1e28
RD
13850
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
2f4c0a16 13854 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13855 return resultobj;
13856 fail:
13857 return NULL;
13858}
13859
13860
13861static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13862 PyObject *resultobj;
13863 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13864 int arg2 ;
13865 int result;
d14a1e28 13866 PyObject * obj0 = 0 ;
8edf1c75 13867 PyObject * obj1 = 0 ;
d14a1e28
RD
13868 char *kwnames[] = {
13869 (char *) "self",(char *) "y", NULL
13870 };
13871
8edf1c75 13872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13875 arg2 = (int) SWIG_AsInt(obj1);
13876 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13877 {
13878 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13879 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
d14a1e28
RD
13880
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
2f4c0a16 13884 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13885 return resultobj;
13886 fail:
13887 return NULL;
13888}
13889
13890
13891static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13892 PyObject *resultobj;
13893 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13894 int arg2 ;
13895 int result;
d14a1e28 13896 PyObject * obj0 = 0 ;
8edf1c75 13897 PyObject * obj1 = 0 ;
d14a1e28
RD
13898 char *kwnames[] = {
13899 (char *) "self",(char *) "x", NULL
13900 };
13901
8edf1c75 13902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13905 arg2 = (int) SWIG_AsInt(obj1);
13906 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13907 {
13908 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13909 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
d14a1e28
RD
13910
13911 wxPyEndAllowThreads(__tstate);
13912 if (PyErr_Occurred()) SWIG_fail;
13913 }
2f4c0a16 13914 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13915 return resultobj;
13916 fail:
13917 return NULL;
13918}
13919
13920
13921static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13922 PyObject *resultobj;
13923 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13924 int arg2 ;
13925 int result;
d14a1e28 13926 PyObject * obj0 = 0 ;
8edf1c75 13927 PyObject * obj1 = 0 ;
d14a1e28
RD
13928 char *kwnames[] = {
13929 (char *) "self",(char *) "y", NULL
13930 };
13931
8edf1c75 13932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13935 arg2 = (int) SWIG_AsInt(obj1);
13936 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13937 {
13938 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13939 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
d14a1e28
RD
13940
13941 wxPyEndAllowThreads(__tstate);
13942 if (PyErr_Occurred()) SWIG_fail;
13943 }
2f4c0a16 13944 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13945 return resultobj;
13946 fail:
13947 return NULL;
13948}
13949
13950
13951static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13952 PyObject *resultobj;
13953 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13954 int arg2 ;
13955 int result;
d14a1e28 13956 PyObject * obj0 = 0 ;
8edf1c75 13957 PyObject * obj1 = 0 ;
d14a1e28
RD
13958 char *kwnames[] = {
13959 (char *) "self",(char *) "x", NULL
13960 };
13961
8edf1c75 13962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13965 arg2 = (int) SWIG_AsInt(obj1);
13966 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13967 {
13968 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13969 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
d14a1e28
RD
13970
13971 wxPyEndAllowThreads(__tstate);
13972 if (PyErr_Occurred()) SWIG_fail;
13973 }
2f4c0a16 13974 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13975 return resultobj;
13976 fail:
13977 return NULL;
13978}
13979
13980
13981static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13982 PyObject *resultobj;
13983 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13984 int arg2 ;
13985 int result;
d14a1e28 13986 PyObject * obj0 = 0 ;
8edf1c75 13987 PyObject * obj1 = 0 ;
d14a1e28
RD
13988 char *kwnames[] = {
13989 (char *) "self",(char *) "y", NULL
13990 };
13991
8edf1c75 13992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13995 arg2 = (int) SWIG_AsInt(obj1);
13996 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13997 {
13998 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13999 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
d14a1e28
RD
14000
14001 wxPyEndAllowThreads(__tstate);
14002 if (PyErr_Occurred()) SWIG_fail;
14003 }
2f4c0a16 14004 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14005 return resultobj;
14006 fail:
14007 return NULL;
14008}
14009
14010
14011static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14012 PyObject *resultobj;
14013 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
14014 int arg2 ;
14015 int result;
d14a1e28 14016 PyObject * obj0 = 0 ;
8edf1c75 14017 PyObject * obj1 = 0 ;
d14a1e28
RD
14018 char *kwnames[] = {
14019 (char *) "self",(char *) "x", NULL
14020 };
14021
8edf1c75 14022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
14023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14025 arg2 = (int) SWIG_AsInt(obj1);
14026 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14027 {
14028 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 14029 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
d14a1e28
RD
14030
14031 wxPyEndAllowThreads(__tstate);
14032 if (PyErr_Occurred()) SWIG_fail;
14033 }
2f4c0a16 14034 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14035 return resultobj;
14036 fail:
14037 return NULL;
14038}
14039
14040
14041static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14042 PyObject *resultobj;
14043 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
14044 int arg2 ;
14045 int result;
d14a1e28 14046 PyObject * obj0 = 0 ;
8edf1c75 14047 PyObject * obj1 = 0 ;
d14a1e28
RD
14048 char *kwnames[] = {
14049 (char *) "self",(char *) "y", NULL
14050 };
14051
8edf1c75 14052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
14053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14055 arg2 = (int) SWIG_AsInt(obj1);
14056 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14057 {
14058 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 14059 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
d14a1e28
RD
14060
14061 wxPyEndAllowThreads(__tstate);
14062 if (PyErr_Occurred()) SWIG_fail;
14063 }
2f4c0a16 14064 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14065 return resultobj;
14066 fail:
14067 return NULL;
14068}
14069
14070
14071static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14072 PyObject *resultobj;
14073 wxDC *arg1 = (wxDC *) 0 ;
14074 bool result;
14075 PyObject * obj0 = 0 ;
14076 char *kwnames[] = {
14077 (char *) "self", NULL
14078 };
14079
14080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14083 {
14084 PyThreadState* __tstate = wxPyBeginAllowThreads();
14085 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
14086
14087 wxPyEndAllowThreads(__tstate);
14088 if (PyErr_Occurred()) SWIG_fail;
14089 }
4f89f6a3
RD
14090 {
14091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14092 }
d14a1e28
RD
14093 return resultobj;
14094 fail:
14095 return NULL;
14096}
14097
14098
14099static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
14100 PyObject *resultobj;
14101 wxDC *arg1 = (wxDC *) 0 ;
14102 bool result;
14103 PyObject * obj0 = 0 ;
14104 char *kwnames[] = {
14105 (char *) "self", NULL
14106 };
14107
14108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14111 {
14112 PyThreadState* __tstate = wxPyBeginAllowThreads();
14113 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
14114
14115 wxPyEndAllowThreads(__tstate);
14116 if (PyErr_Occurred()) SWIG_fail;
14117 }
4f89f6a3
RD
14118 {
14119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14120 }
d14a1e28
RD
14121 return resultobj;
14122 fail:
14123 return NULL;
14124}
14125
14126
14127static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
14128 PyObject *resultobj;
14129 wxDC *arg1 = (wxDC *) 0 ;
14130 int result;
14131 PyObject * obj0 = 0 ;
14132 char *kwnames[] = {
14133 (char *) "self", NULL
14134 };
14135
14136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14139 {
14140 PyThreadState* __tstate = wxPyBeginAllowThreads();
14141 result = (int)((wxDC const *)arg1)->GetDepth();
14142
14143 wxPyEndAllowThreads(__tstate);
14144 if (PyErr_Occurred()) SWIG_fail;
14145 }
2f4c0a16 14146 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14147 return resultobj;
14148 fail:
14149 return NULL;
14150}
14151
14152
14153static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
14154 PyObject *resultobj;
14155 wxDC *arg1 = (wxDC *) 0 ;
14156 wxSize result;
14157 PyObject * obj0 = 0 ;
14158 char *kwnames[] = {
14159 (char *) "self", NULL
14160 };
14161
14162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14165 {
14166 PyThreadState* __tstate = wxPyBeginAllowThreads();
14167 result = ((wxDC const *)arg1)->GetPPI();
14168
14169 wxPyEndAllowThreads(__tstate);
14170 if (PyErr_Occurred()) SWIG_fail;
14171 }
14172 {
14173 wxSize * resultptr;
14174 resultptr = new wxSize((wxSize &) result);
2f4c0a16 14175 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
14176 }
14177 return resultobj;
14178 fail:
14179 return NULL;
14180}
14181
14182
14183static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
14184 PyObject *resultobj;
14185 wxDC *arg1 = (wxDC *) 0 ;
14186 bool result;
14187 PyObject * obj0 = 0 ;
14188 char *kwnames[] = {
14189 (char *) "self", NULL
14190 };
14191
14192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14195 {
14196 PyThreadState* __tstate = wxPyBeginAllowThreads();
14197 result = (bool)((wxDC const *)arg1)->Ok();
14198
14199 wxPyEndAllowThreads(__tstate);
14200 if (PyErr_Occurred()) SWIG_fail;
14201 }
4f89f6a3
RD
14202 {
14203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14204 }
d14a1e28
RD
14205 return resultobj;
14206 fail:
14207 return NULL;
14208}
14209
14210
14211static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14212 PyObject *resultobj;
14213 wxDC *arg1 = (wxDC *) 0 ;
14214 int result;
14215 PyObject * obj0 = 0 ;
14216 char *kwnames[] = {
14217 (char *) "self", NULL
14218 };
14219
14220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14223 {
14224 PyThreadState* __tstate = wxPyBeginAllowThreads();
14225 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14226
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
2f4c0a16 14230 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14231 return resultobj;
14232 fail:
14233 return NULL;
14234}
14235
14236
14237static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14238 PyObject *resultobj;
14239 wxDC *arg1 = (wxDC *) 0 ;
14240 wxBrush *result;
14241 PyObject * obj0 = 0 ;
14242 char *kwnames[] = {
14243 (char *) "self", NULL
14244 };
14245
14246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14249 {
14250 PyThreadState* __tstate = wxPyBeginAllowThreads();
14251 {
14252 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14253 result = (wxBrush *) &_result_ref;
14254 }
14255
14256 wxPyEndAllowThreads(__tstate);
14257 if (PyErr_Occurred()) SWIG_fail;
14258 }
fe763115
RD
14259 {
14260 wxBrush* resultptr = new wxBrush(*result);
14261 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14262 }
d14a1e28
RD
14263 return resultobj;
14264 fail:
14265 return NULL;
14266}
14267
14268
14269static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14270 PyObject *resultobj;
14271 wxDC *arg1 = (wxDC *) 0 ;
14272 wxBrush *result;
14273 PyObject * obj0 = 0 ;
14274 char *kwnames[] = {
14275 (char *) "self", NULL
14276 };
14277
14278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14281 {
14282 PyThreadState* __tstate = wxPyBeginAllowThreads();
14283 {
14284 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14285 result = (wxBrush *) &_result_ref;
14286 }
14287
14288 wxPyEndAllowThreads(__tstate);
14289 if (PyErr_Occurred()) SWIG_fail;
14290 }
fe763115
RD
14291 {
14292 wxBrush* resultptr = new wxBrush(*result);
14293 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14294 }
d14a1e28
RD
14295 return resultobj;
14296 fail:
14297 return NULL;
14298}
14299
14300
14301static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14302 PyObject *resultobj;
14303 wxDC *arg1 = (wxDC *) 0 ;
14304 wxFont *result;
14305 PyObject * obj0 = 0 ;
14306 char *kwnames[] = {
14307 (char *) "self", NULL
14308 };
14309
14310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14313 {
14314 PyThreadState* __tstate = wxPyBeginAllowThreads();
14315 {
14316 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14317 result = (wxFont *) &_result_ref;
14318 }
14319
14320 wxPyEndAllowThreads(__tstate);
14321 if (PyErr_Occurred()) SWIG_fail;
14322 }
fe763115
RD
14323 {
14324 wxFont* resultptr = new wxFont(*result);
14325 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14326 }
d14a1e28
RD
14327 return resultobj;
14328 fail:
14329 return NULL;
14330}
14331
14332
14333static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14334 PyObject *resultobj;
14335 wxDC *arg1 = (wxDC *) 0 ;
14336 wxPen *result;
14337 PyObject * obj0 = 0 ;
14338 char *kwnames[] = {
14339 (char *) "self", NULL
14340 };
14341
14342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14345 {
14346 PyThreadState* __tstate = wxPyBeginAllowThreads();
14347 {
14348 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14349 result = (wxPen *) &_result_ref;
14350 }
14351
14352 wxPyEndAllowThreads(__tstate);
14353 if (PyErr_Occurred()) SWIG_fail;
14354 }
fe763115
RD
14355 {
14356 wxPen* resultptr = new wxPen(*result);
14357 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14358 }
d14a1e28
RD
14359 return resultobj;
14360 fail:
14361 return NULL;
14362}
14363
14364
14365static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14366 PyObject *resultobj;
14367 wxDC *arg1 = (wxDC *) 0 ;
14368 wxColour *result;
14369 PyObject * obj0 = 0 ;
14370 char *kwnames[] = {
14371 (char *) "self", NULL
14372 };
14373
14374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14377 {
14378 PyThreadState* __tstate = wxPyBeginAllowThreads();
14379 {
14380 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14381 result = (wxColour *) &_result_ref;
14382 }
14383
14384 wxPyEndAllowThreads(__tstate);
14385 if (PyErr_Occurred()) SWIG_fail;
14386 }
2f4c0a16 14387 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
14388 return resultobj;
14389 fail:
14390 return NULL;
14391}
14392
14393
14394static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14395 PyObject *resultobj;
14396 wxDC *arg1 = (wxDC *) 0 ;
14397 wxColour *result;
14398 PyObject * obj0 = 0 ;
14399 char *kwnames[] = {
14400 (char *) "self", NULL
14401 };
14402
14403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14406 {
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 {
14409 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14410 result = (wxColour *) &_result_ref;
14411 }
14412
14413 wxPyEndAllowThreads(__tstate);
14414 if (PyErr_Occurred()) SWIG_fail;
14415 }
2f4c0a16 14416 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
14417 return resultobj;
14418 fail:
14419 return NULL;
14420}
14421
14422
14423static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14424 PyObject *resultobj;
14425 wxDC *arg1 = (wxDC *) 0 ;
14426 wxColour *arg2 = 0 ;
14427 wxColour temp2 ;
14428 PyObject * obj0 = 0 ;
14429 PyObject * obj1 = 0 ;
14430 char *kwnames[] = {
14431 (char *) "self",(char *) "colour", NULL
14432 };
14433
14434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
14435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14437 {
14438 arg2 = &temp2;
14439 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14440 }
14441 {
14442 PyThreadState* __tstate = wxPyBeginAllowThreads();
14443 (arg1)->SetTextForeground((wxColour const &)*arg2);
14444
14445 wxPyEndAllowThreads(__tstate);
14446 if (PyErr_Occurred()) SWIG_fail;
14447 }
14448 Py_INCREF(Py_None); resultobj = Py_None;
14449 return resultobj;
14450 fail:
14451 return NULL;
14452}
14453
14454
14455static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14456 PyObject *resultobj;
14457 wxDC *arg1 = (wxDC *) 0 ;
14458 wxColour *arg2 = 0 ;
14459 wxColour temp2 ;
14460 PyObject * obj0 = 0 ;
14461 PyObject * obj1 = 0 ;
14462 char *kwnames[] = {
14463 (char *) "self",(char *) "colour", NULL
14464 };
14465
14466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
14467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14469 {
14470 arg2 = &temp2;
14471 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14472 }
14473 {
14474 PyThreadState* __tstate = wxPyBeginAllowThreads();
14475 (arg1)->SetTextBackground((wxColour const &)*arg2);
14476
14477 wxPyEndAllowThreads(__tstate);
14478 if (PyErr_Occurred()) SWIG_fail;
14479 }
14480 Py_INCREF(Py_None); resultobj = Py_None;
14481 return resultobj;
14482 fail:
14483 return NULL;
14484}
14485
14486
14487static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14488 PyObject *resultobj;
14489 wxDC *arg1 = (wxDC *) 0 ;
14490 int result;
14491 PyObject * obj0 = 0 ;
14492 char *kwnames[] = {
14493 (char *) "self", NULL
14494 };
14495
14496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14499 {
14500 PyThreadState* __tstate = wxPyBeginAllowThreads();
14501 result = (int)((wxDC const *)arg1)->GetMapMode();
14502
14503 wxPyEndAllowThreads(__tstate);
14504 if (PyErr_Occurred()) SWIG_fail;
14505 }
2f4c0a16 14506 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14507 return resultobj;
14508 fail:
14509 return NULL;
14510}
14511
14512
14513static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14514 PyObject *resultobj;
14515 wxDC *arg1 = (wxDC *) 0 ;
14516 int arg2 ;
14517 PyObject * obj0 = 0 ;
8edf1c75 14518 PyObject * obj1 = 0 ;
d14a1e28
RD
14519 char *kwnames[] = {
14520 (char *) "self",(char *) "mode", NULL
14521 };
14522
8edf1c75 14523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
14524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14526 arg2 = (int) SWIG_AsInt(obj1);
14527 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14528 {
14529 PyThreadState* __tstate = wxPyBeginAllowThreads();
14530 (arg1)->SetMapMode(arg2);
14531
14532 wxPyEndAllowThreads(__tstate);
14533 if (PyErr_Occurred()) SWIG_fail;
14534 }
14535 Py_INCREF(Py_None); resultobj = Py_None;
14536 return resultobj;
14537 fail:
14538 return NULL;
14539}
14540
14541
14542static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14543 PyObject *resultobj;
14544 wxDC *arg1 = (wxDC *) 0 ;
14545 double *arg2 = (double *) 0 ;
14546 double *arg3 = (double *) 0 ;
14547 double temp2 ;
14548 double temp3 ;
14549 PyObject * obj0 = 0 ;
14550 char *kwnames[] = {
14551 (char *) "self", NULL
14552 };
14553
14554 arg2 = &temp2;
14555 arg3 = &temp3;
14556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14559 {
14560 PyThreadState* __tstate = wxPyBeginAllowThreads();
14561 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14562
14563 wxPyEndAllowThreads(__tstate);
14564 if (PyErr_Occurred()) SWIG_fail;
14565 }
14566 Py_INCREF(Py_None); resultobj = Py_None;
14567 {
14568 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14569 resultobj = t_output_helper(resultobj,o);
14570 }
14571 {
14572 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14573 resultobj = t_output_helper(resultobj,o);
14574 }
14575 return resultobj;
14576 fail:
14577 return NULL;
14578}
14579
14580
14581static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14582 PyObject *resultobj;
14583 wxDC *arg1 = (wxDC *) 0 ;
14584 double arg2 ;
14585 double arg3 ;
14586 PyObject * obj0 = 0 ;
8edf1c75
RD
14587 PyObject * obj1 = 0 ;
14588 PyObject * obj2 = 0 ;
d14a1e28
RD
14589 char *kwnames[] = {
14590 (char *) "self",(char *) "x",(char *) "y", NULL
14591 };
14592
8edf1c75 14593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
14594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14596 arg2 = (double) SWIG_AsDouble(obj1);
14597 if (PyErr_Occurred()) SWIG_fail;
14598 arg3 = (double) SWIG_AsDouble(obj2);
14599 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14600 {
14601 PyThreadState* __tstate = wxPyBeginAllowThreads();
14602 (arg1)->SetUserScale(arg2,arg3);
14603
14604 wxPyEndAllowThreads(__tstate);
14605 if (PyErr_Occurred()) SWIG_fail;
14606 }
14607 Py_INCREF(Py_None); resultobj = Py_None;
14608 return resultobj;
14609 fail:
14610 return NULL;
14611}
14612
14613
14614static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14615 PyObject *resultobj;
14616 wxDC *arg1 = (wxDC *) 0 ;
14617 double *arg2 = (double *) 0 ;
14618 double *arg3 = (double *) 0 ;
14619 double temp2 ;
14620 double temp3 ;
14621 PyObject * obj0 = 0 ;
14622 char *kwnames[] = {
14623 (char *) "self", NULL
14624 };
14625
14626 arg2 = &temp2;
14627 arg3 = &temp3;
14628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14631 {
14632 PyThreadState* __tstate = wxPyBeginAllowThreads();
14633 (arg1)->GetLogicalScale(arg2,arg3);
14634
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 Py_INCREF(Py_None); resultobj = Py_None;
14639 {
14640 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14641 resultobj = t_output_helper(resultobj,o);
14642 }
14643 {
14644 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14645 resultobj = t_output_helper(resultobj,o);
14646 }
14647 return resultobj;
14648 fail:
14649 return NULL;
14650}
14651
14652
14653static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14654 PyObject *resultobj;
14655 wxDC *arg1 = (wxDC *) 0 ;
14656 double arg2 ;
14657 double arg3 ;
14658 PyObject * obj0 = 0 ;
8edf1c75
RD
14659 PyObject * obj1 = 0 ;
14660 PyObject * obj2 = 0 ;
d14a1e28
RD
14661 char *kwnames[] = {
14662 (char *) "self",(char *) "x",(char *) "y", NULL
14663 };
14664
8edf1c75 14665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
14666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14668 arg2 = (double) SWIG_AsDouble(obj1);
14669 if (PyErr_Occurred()) SWIG_fail;
14670 arg3 = (double) SWIG_AsDouble(obj2);
14671 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14672 {
14673 PyThreadState* __tstate = wxPyBeginAllowThreads();
14674 (arg1)->SetLogicalScale(arg2,arg3);
14675
14676 wxPyEndAllowThreads(__tstate);
14677 if (PyErr_Occurred()) SWIG_fail;
14678 }
14679 Py_INCREF(Py_None); resultobj = Py_None;
14680 return resultobj;
14681 fail:
14682 return NULL;
14683}
14684
14685
44127b65 14686static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14687 PyObject *resultobj;
14688 wxDC *arg1 = (wxDC *) 0 ;
44127b65 14689 wxPoint result;
d14a1e28
RD
14690 PyObject * obj0 = 0 ;
14691 char *kwnames[] = {
14692 (char *) "self", NULL
14693 };
14694
44127b65 14695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14698 {
14699 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 14700 result = ((wxDC const *)arg1)->GetLogicalOrigin();
d14a1e28
RD
14701
14702 wxPyEndAllowThreads(__tstate);
14703 if (PyErr_Occurred()) SWIG_fail;
14704 }
d14a1e28 14705 {
44127b65
RD
14706 wxPoint * resultptr;
14707 resultptr = new wxPoint((wxPoint &) result);
2f4c0a16 14708 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
14709 }
14710 return resultobj;
14711 fail:
14712 return NULL;
14713}
14714
14715
44127b65 14716static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14717 PyObject *resultobj;
14718 wxDC *arg1 = (wxDC *) 0 ;
44127b65
RD
14719 int *arg2 = (int *) 0 ;
14720 int *arg3 = (int *) 0 ;
14721 int temp2 ;
14722 int temp3 ;
d14a1e28
RD
14723 PyObject * obj0 = 0 ;
14724 char *kwnames[] = {
14725 (char *) "self", NULL
14726 };
14727
44127b65
RD
14728 arg2 = &temp2;
14729 arg3 = &temp3;
14730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14733 {
14734 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 14735 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
d14a1e28
RD
14736
14737 wxPyEndAllowThreads(__tstate);
14738 if (PyErr_Occurred()) SWIG_fail;
14739 }
44127b65 14740 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 14741 {
44127b65
RD
14742 PyObject *o = PyInt_FromLong((long) (*arg2));
14743 resultobj = t_output_helper(resultobj,o);
14744 }
14745 {
14746 PyObject *o = PyInt_FromLong((long) (*arg3));
14747 resultobj = t_output_helper(resultobj,o);
d14a1e28
RD
14748 }
14749 return resultobj;
14750 fail:
14751 return NULL;
14752}
14753
14754
14755static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14756 PyObject *resultobj;
14757 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
14758 int arg2 ;
14759 int arg3 ;
d14a1e28 14760 PyObject * obj0 = 0 ;
8edf1c75
RD
14761 PyObject * obj1 = 0 ;
14762 PyObject * obj2 = 0 ;
d14a1e28
RD
14763 char *kwnames[] = {
14764 (char *) "self",(char *) "x",(char *) "y", NULL
14765 };
14766
8edf1c75 14767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
14768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14770 arg2 = (int) SWIG_AsInt(obj1);
14771 if (PyErr_Occurred()) SWIG_fail;
14772 arg3 = (int) SWIG_AsInt(obj2);
14773 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14774 {
14775 PyThreadState* __tstate = wxPyBeginAllowThreads();
14776 (arg1)->SetLogicalOrigin(arg2,arg3);
14777
14778 wxPyEndAllowThreads(__tstate);
14779 if (PyErr_Occurred()) SWIG_fail;
14780 }
14781 Py_INCREF(Py_None); resultobj = Py_None;
14782 return resultobj;
14783 fail:
14784 return NULL;
14785}
14786
14787
44127b65 14788static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14789 PyObject *resultobj;
14790 wxDC *arg1 = (wxDC *) 0 ;
44127b65 14791 wxPoint result;
d14a1e28
RD
14792 PyObject * obj0 = 0 ;
14793 char *kwnames[] = {
14794 (char *) "self", NULL
14795 };
14796
44127b65 14797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14800 {
14801 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 14802 result = ((wxDC const *)arg1)->GetDeviceOrigin();
d14a1e28
RD
14803
14804 wxPyEndAllowThreads(__tstate);
14805 if (PyErr_Occurred()) SWIG_fail;
14806 }
d14a1e28 14807 {
44127b65
RD
14808 wxPoint * resultptr;
14809 resultptr = new wxPoint((wxPoint &) result);
2f4c0a16 14810 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
14811 }
14812 return resultobj;
14813 fail:
14814 return NULL;
14815}
14816
14817
44127b65 14818static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14819 PyObject *resultobj;
14820 wxDC *arg1 = (wxDC *) 0 ;
44127b65
RD
14821 int *arg2 = (int *) 0 ;
14822 int *arg3 = (int *) 0 ;
14823 int temp2 ;
14824 int temp3 ;
d14a1e28
RD
14825 PyObject * obj0 = 0 ;
14826 char *kwnames[] = {
14827 (char *) "self", NULL
14828 };
14829
44127b65
RD
14830 arg2 = &temp2;
14831 arg3 = &temp3;
14832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14835 {
14836 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 14837 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
d14a1e28
RD
14838
14839 wxPyEndAllowThreads(__tstate);
14840 if (PyErr_Occurred()) SWIG_fail;
14841 }
44127b65 14842 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 14843 {
44127b65
RD
14844 PyObject *o = PyInt_FromLong((long) (*arg2));
14845 resultobj = t_output_helper(resultobj,o);
14846 }
14847 {
14848 PyObject *o = PyInt_FromLong((long) (*arg3));
14849 resultobj = t_output_helper(resultobj,o);
d14a1e28
RD
14850 }
14851 return resultobj;
14852 fail:
14853 return NULL;
14854}
14855
14856
14857static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14858 PyObject *resultobj;
14859 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
14860 int arg2 ;
14861 int arg3 ;
d14a1e28 14862 PyObject * obj0 = 0 ;
8edf1c75
RD
14863 PyObject * obj1 = 0 ;
14864 PyObject * obj2 = 0 ;
d14a1e28
RD
14865 char *kwnames[] = {
14866 (char *) "self",(char *) "x",(char *) "y", NULL
14867 };
14868
8edf1c75 14869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
14870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14872 arg2 = (int) SWIG_AsInt(obj1);
14873 if (PyErr_Occurred()) SWIG_fail;
14874 arg3 = (int) SWIG_AsInt(obj2);
14875 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14876 {
14877 PyThreadState* __tstate = wxPyBeginAllowThreads();
14878 (arg1)->SetDeviceOrigin(arg2,arg3);
14879
14880 wxPyEndAllowThreads(__tstate);
14881 if (PyErr_Occurred()) SWIG_fail;
14882 }
14883 Py_INCREF(Py_None); resultobj = Py_None;
14884 return resultobj;
14885 fail:
14886 return NULL;
14887}
14888
14889
14890static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14891 PyObject *resultobj;
14892 wxDC *arg1 = (wxDC *) 0 ;
14893 bool arg2 ;
14894 bool arg3 ;
14895 PyObject * obj0 = 0 ;
14896 PyObject * obj1 = 0 ;
14897 PyObject * obj2 = 0 ;
14898 char *kwnames[] = {
14899 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14900 };
14901
14902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
14903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14905 arg2 = (bool) SWIG_AsBool(obj1);
14906 if (PyErr_Occurred()) SWIG_fail;
14907 arg3 = (bool) SWIG_AsBool(obj2);
14908 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14909 {
14910 PyThreadState* __tstate = wxPyBeginAllowThreads();
14911 (arg1)->SetAxisOrientation(arg2,arg3);
14912
14913 wxPyEndAllowThreads(__tstate);
14914 if (PyErr_Occurred()) SWIG_fail;
14915 }
14916 Py_INCREF(Py_None); resultobj = Py_None;
14917 return resultobj;
14918 fail:
14919 return NULL;
14920}
14921
14922
14923static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14924 PyObject *resultobj;
14925 wxDC *arg1 = (wxDC *) 0 ;
14926 int result;
14927 PyObject * obj0 = 0 ;
14928 char *kwnames[] = {
14929 (char *) "self", NULL
14930 };
14931
14932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14935 {
14936 PyThreadState* __tstate = wxPyBeginAllowThreads();
14937 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14938
14939 wxPyEndAllowThreads(__tstate);
14940 if (PyErr_Occurred()) SWIG_fail;
14941 }
2f4c0a16 14942 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14943 return resultobj;
14944 fail:
14945 return NULL;
14946}
14947
14948
14949static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14950 PyObject *resultobj;
14951 wxDC *arg1 = (wxDC *) 0 ;
14952 int arg2 ;
14953 PyObject * obj0 = 0 ;
8edf1c75 14954 PyObject * obj1 = 0 ;
d14a1e28
RD
14955 char *kwnames[] = {
14956 (char *) "self",(char *) "function", NULL
14957 };
14958
8edf1c75 14959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
14960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14962 arg2 = (int) SWIG_AsInt(obj1);
14963 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14964 {
14965 PyThreadState* __tstate = wxPyBeginAllowThreads();
14966 (arg1)->SetLogicalFunction(arg2);
14967
14968 wxPyEndAllowThreads(__tstate);
14969 if (PyErr_Occurred()) SWIG_fail;
14970 }
14971 Py_INCREF(Py_None); resultobj = Py_None;
14972 return resultobj;
14973 fail:
14974 return NULL;
14975}
14976
14977
14978static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14979 PyObject *resultobj;
14980 wxDC *arg1 = (wxDC *) 0 ;
14981 bool arg2 ;
14982 PyObject * obj0 = 0 ;
14983 PyObject * obj1 = 0 ;
14984 char *kwnames[] = {
14985 (char *) "self",(char *) "opt", NULL
14986 };
14987
14988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
14989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14991 arg2 = (bool) SWIG_AsBool(obj1);
14992 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14993 {
14994 PyThreadState* __tstate = wxPyBeginAllowThreads();
14995 (arg1)->SetOptimization(arg2);
14996
14997 wxPyEndAllowThreads(__tstate);
14998 if (PyErr_Occurred()) SWIG_fail;
14999 }
15000 Py_INCREF(Py_None); resultobj = Py_None;
15001 return resultobj;
15002 fail:
15003 return NULL;
15004}
15005
15006
15007static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
15008 PyObject *resultobj;
15009 wxDC *arg1 = (wxDC *) 0 ;
15010 bool result;
15011 PyObject * obj0 = 0 ;
15012 char *kwnames[] = {
15013 (char *) "self", NULL
15014 };
15015
15016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15019 {
15020 PyThreadState* __tstate = wxPyBeginAllowThreads();
15021 result = (bool)(arg1)->GetOptimization();
15022
15023 wxPyEndAllowThreads(__tstate);
15024 if (PyErr_Occurred()) SWIG_fail;
15025 }
4f89f6a3
RD
15026 {
15027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15028 }
d14a1e28
RD
15029 return resultobj;
15030 fail:
15031 return NULL;
15032}
15033
15034
15035static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15036 PyObject *resultobj;
15037 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
15038 int arg2 ;
15039 int arg3 ;
d14a1e28 15040 PyObject * obj0 = 0 ;
8edf1c75
RD
15041 PyObject * obj1 = 0 ;
15042 PyObject * obj2 = 0 ;
d14a1e28
RD
15043 char *kwnames[] = {
15044 (char *) "self",(char *) "x",(char *) "y", NULL
15045 };
15046
8edf1c75 15047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
15048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15050 arg2 = (int) SWIG_AsInt(obj1);
15051 if (PyErr_Occurred()) SWIG_fail;
15052 arg3 = (int) SWIG_AsInt(obj2);
15053 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
15054 {
15055 PyThreadState* __tstate = wxPyBeginAllowThreads();
15056 (arg1)->CalcBoundingBox(arg2,arg3);
15057
15058 wxPyEndAllowThreads(__tstate);
15059 if (PyErr_Occurred()) SWIG_fail;
15060 }
15061 Py_INCREF(Py_None); resultobj = Py_None;
15062 return resultobj;
15063 fail:
15064 return NULL;
15065}
15066
15067
15068static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15069 PyObject *resultobj;
15070 wxDC *arg1 = (wxDC *) 0 ;
15071 PyObject * obj0 = 0 ;
15072 char *kwnames[] = {
15073 (char *) "self", NULL
15074 };
15075
15076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15079 {
15080 PyThreadState* __tstate = wxPyBeginAllowThreads();
15081 (arg1)->ResetBoundingBox();
15082
15083 wxPyEndAllowThreads(__tstate);
15084 if (PyErr_Occurred()) SWIG_fail;
15085 }
15086 Py_INCREF(Py_None); resultobj = Py_None;
15087 return resultobj;
15088 fail:
15089 return NULL;
15090}
15091
15092
15093static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
15094 PyObject *resultobj;
15095 wxDC *arg1 = (wxDC *) 0 ;
423f194a 15096 int result;
d14a1e28
RD
15097 PyObject * obj0 = 0 ;
15098 char *kwnames[] = {
15099 (char *) "self", NULL
15100 };
15101
15102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15105 {
15106 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 15107 result = (int)((wxDC const *)arg1)->MinX();
d14a1e28
RD
15108
15109 wxPyEndAllowThreads(__tstate);
15110 if (PyErr_Occurred()) SWIG_fail;
15111 }
2f4c0a16 15112 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
15113 return resultobj;
15114 fail:
15115 return NULL;
15116}
15117
15118
15119static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
15120 PyObject *resultobj;
15121 wxDC *arg1 = (wxDC *) 0 ;
423f194a 15122 int result;
d14a1e28
RD
15123 PyObject * obj0 = 0 ;
15124 char *kwnames[] = {
15125 (char *) "self", NULL
15126 };
15127
15128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15131 {
15132 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 15133 result = (int)((wxDC const *)arg1)->MaxX();
d14a1e28
RD
15134
15135 wxPyEndAllowThreads(__tstate);
15136 if (PyErr_Occurred()) SWIG_fail;
15137 }
2f4c0a16 15138 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
15139 return resultobj;
15140 fail:
15141 return NULL;
15142}
15143
15144
15145static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
15146 PyObject *resultobj;
15147 wxDC *arg1 = (wxDC *) 0 ;
423f194a 15148 int result;
d14a1e28
RD
15149 PyObject * obj0 = 0 ;
15150 char *kwnames[] = {
15151 (char *) "self", NULL
15152 };
15153
15154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15157 {
15158 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 15159 result = (int)((wxDC const *)arg1)->MinY();
d14a1e28
RD
15160
15161 wxPyEndAllowThreads(__tstate);
15162 if (PyErr_Occurred()) SWIG_fail;
15163 }
2f4c0a16 15164 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
15165 return resultobj;
15166 fail:
15167 return NULL;
15168}
15169
15170
15171static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
15172 PyObject *resultobj;
15173 wxDC *arg1 = (wxDC *) 0 ;
423f194a 15174 int result;
d14a1e28
RD
15175 PyObject * obj0 = 0 ;
15176 char *kwnames[] = {
15177 (char *) "self", NULL
15178 };
15179
15180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15183 {
15184 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 15185 result = (int)((wxDC const *)arg1)->MaxY();
d14a1e28
RD
15186
15187 wxPyEndAllowThreads(__tstate);
15188 if (PyErr_Occurred()) SWIG_fail;
15189 }
2f4c0a16 15190 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
15191 return resultobj;
15192 fail:
15193 return NULL;
15194}
15195
15196
15197static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15198 PyObject *resultobj;
15199 wxDC *arg1 = (wxDC *) 0 ;
15200 int *arg2 = (int *) 0 ;
15201 int *arg3 = (int *) 0 ;
15202 int *arg4 = (int *) 0 ;
15203 int *arg5 = (int *) 0 ;
15204 int temp2 ;
15205 int temp3 ;
15206 int temp4 ;
15207 int temp5 ;
15208 PyObject * obj0 = 0 ;
15209 char *kwnames[] = {
15210 (char *) "self", NULL
15211 };
15212
15213 arg2 = &temp2;
15214 arg3 = &temp3;
15215 arg4 = &temp4;
15216 arg5 = &temp5;
15217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15220 {
15221 PyThreadState* __tstate = wxPyBeginAllowThreads();
15222 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15223
15224 wxPyEndAllowThreads(__tstate);
15225 if (PyErr_Occurred()) SWIG_fail;
15226 }
15227 Py_INCREF(Py_None); resultobj = Py_None;
15228 {
15229 PyObject *o = PyInt_FromLong((long) (*arg2));
15230 resultobj = t_output_helper(resultobj,o);
15231 }
15232 {
15233 PyObject *o = PyInt_FromLong((long) (*arg3));
15234 resultobj = t_output_helper(resultobj,o);
15235 }
15236 {
15237 PyObject *o = PyInt_FromLong((long) (*arg4));
15238 resultobj = t_output_helper(resultobj,o);
15239 }
15240 {
15241 PyObject *o = PyInt_FromLong((long) (*arg5));
15242 resultobj = t_output_helper(resultobj,o);
15243 }
15244 return resultobj;
15245 fail:
15246 return NULL;
15247}
15248
15249
15250static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
15251 PyObject *resultobj;
15252 wxDC *arg1 = (wxDC *) 0 ;
15253 PyObject *arg2 = (PyObject *) 0 ;
15254 PyObject *arg3 = (PyObject *) 0 ;
15255 PyObject *arg4 = (PyObject *) 0 ;
15256 PyObject *result;
15257 PyObject * obj0 = 0 ;
15258 PyObject * obj1 = 0 ;
15259 PyObject * obj2 = 0 ;
15260 PyObject * obj3 = 0 ;
15261 char *kwnames[] = {
15262 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15263 };
15264
15265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
15266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15268 arg2 = obj1;
15269 arg3 = obj2;
15270 arg4 = obj3;
15271 {
15272 PyThreadState* __tstate = wxPyBeginAllowThreads();
15273 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15274
15275 wxPyEndAllowThreads(__tstate);
15276 if (PyErr_Occurred()) SWIG_fail;
15277 }
15278 resultobj = result;
15279 return resultobj;
15280 fail:
15281 return NULL;
15282}
15283
15284
15285static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
15286 PyObject *resultobj;
15287 wxDC *arg1 = (wxDC *) 0 ;
15288 PyObject *arg2 = (PyObject *) 0 ;
15289 PyObject *arg3 = (PyObject *) 0 ;
15290 PyObject *arg4 = (PyObject *) 0 ;
15291 PyObject *result;
15292 PyObject * obj0 = 0 ;
15293 PyObject * obj1 = 0 ;
15294 PyObject * obj2 = 0 ;
15295 PyObject * obj3 = 0 ;
15296 char *kwnames[] = {
15297 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15298 };
15299
15300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
15301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15303 arg2 = obj1;
15304 arg3 = obj2;
15305 arg4 = obj3;
15306 {
15307 PyThreadState* __tstate = wxPyBeginAllowThreads();
15308 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15309
15310 wxPyEndAllowThreads(__tstate);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
15313 resultobj = result;
15314 return resultobj;
15315 fail:
15316 return NULL;
15317}
15318
15319
15320static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
15321 PyObject *resultobj;
15322 wxDC *arg1 = (wxDC *) 0 ;
15323 PyObject *arg2 = (PyObject *) 0 ;
15324 PyObject *arg3 = (PyObject *) 0 ;
15325 PyObject *arg4 = (PyObject *) 0 ;
15326 PyObject *result;
15327 PyObject * obj0 = 0 ;
15328 PyObject * obj1 = 0 ;
15329 PyObject * obj2 = 0 ;
15330 PyObject * obj3 = 0 ;
15331 char *kwnames[] = {
15332 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15333 };
15334
15335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
15336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15338 arg2 = obj1;
15339 arg3 = obj2;
15340 arg4 = obj3;
15341 {
15342 PyThreadState* __tstate = wxPyBeginAllowThreads();
15343 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15344
15345 wxPyEndAllowThreads(__tstate);
15346 if (PyErr_Occurred()) SWIG_fail;
15347 }
15348 resultobj = result;
15349 return resultobj;
15350 fail:
15351 return NULL;
15352}
15353
15354
15355static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
15356 PyObject *resultobj;
15357 wxDC *arg1 = (wxDC *) 0 ;
15358 PyObject *arg2 = (PyObject *) 0 ;
15359 PyObject *arg3 = (PyObject *) 0 ;
15360 PyObject *arg4 = (PyObject *) 0 ;
15361 PyObject *result;
15362 PyObject * obj0 = 0 ;
15363 PyObject * obj1 = 0 ;
15364 PyObject * obj2 = 0 ;
15365 PyObject * obj3 = 0 ;
15366 char *kwnames[] = {
15367 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15368 };
15369
15370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
15371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15373 arg2 = obj1;
15374 arg3 = obj2;
15375 arg4 = obj3;
15376 {
15377 PyThreadState* __tstate = wxPyBeginAllowThreads();
15378 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15379
15380 wxPyEndAllowThreads(__tstate);
15381 if (PyErr_Occurred()) SWIG_fail;
15382 }
15383 resultobj = result;
15384 return resultobj;
15385 fail:
15386 return NULL;
15387}
15388
15389
15390static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
15391 PyObject *resultobj;
15392 wxDC *arg1 = (wxDC *) 0 ;
15393 PyObject *arg2 = (PyObject *) 0 ;
15394 PyObject *arg3 = (PyObject *) 0 ;
15395 PyObject *arg4 = (PyObject *) 0 ;
15396 PyObject *result;
15397 PyObject * obj0 = 0 ;
15398 PyObject * obj1 = 0 ;
15399 PyObject * obj2 = 0 ;
15400 PyObject * obj3 = 0 ;
15401 char *kwnames[] = {
15402 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15403 };
15404
15405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
15406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15408 arg2 = obj1;
15409 arg3 = obj2;
15410 arg4 = obj3;
15411 {
15412 PyThreadState* __tstate = wxPyBeginAllowThreads();
15413 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15414
15415 wxPyEndAllowThreads(__tstate);
15416 if (PyErr_Occurred()) SWIG_fail;
15417 }
15418 resultobj = result;
15419 return resultobj;
15420 fail:
15421 return NULL;
15422}
15423
15424
15425static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15426 PyObject *resultobj;
15427 wxDC *arg1 = (wxDC *) 0 ;
15428 PyObject *arg2 = (PyObject *) 0 ;
15429 PyObject *arg3 = (PyObject *) 0 ;
15430 PyObject *arg4 = (PyObject *) 0 ;
15431 PyObject *arg5 = (PyObject *) 0 ;
15432 PyObject *result;
15433 PyObject * obj0 = 0 ;
15434 PyObject * obj1 = 0 ;
15435 PyObject * obj2 = 0 ;
15436 PyObject * obj3 = 0 ;
15437 PyObject * obj4 = 0 ;
15438 char *kwnames[] = {
15439 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15440 };
15441
15442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
15443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15445 arg2 = obj1;
15446 arg3 = obj2;
15447 arg4 = obj3;
15448 arg5 = obj4;
15449 {
15450 PyThreadState* __tstate = wxPyBeginAllowThreads();
15451 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15452
15453 wxPyEndAllowThreads(__tstate);
15454 if (PyErr_Occurred()) SWIG_fail;
15455 }
15456 resultobj = result;
15457 return resultobj;
15458 fail:
15459 return NULL;
15460}
15461
15462
15463static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15464 PyObject *obj;
15465 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15466 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15467 Py_INCREF(obj);
15468 return Py_BuildValue((char *)"");
15469}
15470static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15471 PyObject *resultobj;
15472 wxMemoryDC *result;
15473 char *kwnames[] = {
15474 NULL
15475 };
15476
15477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15478 {
15479 PyThreadState* __tstate = wxPyBeginAllowThreads();
15480 result = (wxMemoryDC *)new wxMemoryDC();
15481
15482 wxPyEndAllowThreads(__tstate);
15483 if (PyErr_Occurred()) SWIG_fail;
15484 }
2f4c0a16 15485 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
d14a1e28
RD
15486 return resultobj;
15487 fail:
15488 return NULL;
15489}
15490
15491
15492static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15493 PyObject *resultobj;
15494 wxDC *arg1 = (wxDC *) 0 ;
15495 wxMemoryDC *result;
15496 PyObject * obj0 = 0 ;
15497 char *kwnames[] = {
15498 (char *) "oldDC", NULL
15499 };
15500
15501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15504 {
15505 PyThreadState* __tstate = wxPyBeginAllowThreads();
15506 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15507
15508 wxPyEndAllowThreads(__tstate);
15509 if (PyErr_Occurred()) SWIG_fail;
15510 }
2f4c0a16 15511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
d14a1e28
RD
15512 return resultobj;
15513 fail:
15514 return NULL;
15515}
15516
15517
15518static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15519 PyObject *resultobj;
15520 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15521 wxBitmap *arg2 = 0 ;
15522 PyObject * obj0 = 0 ;
15523 PyObject * obj1 = 0 ;
15524 char *kwnames[] = {
15525 (char *) "self",(char *) "bitmap", NULL
15526 };
15527
15528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
15529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15531 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15532 SWIG_POINTER_EXCEPTION | 0)) == -1)
15533 SWIG_fail;
d14a1e28 15534 if (arg2 == NULL) {
2f4c0a16
RD
15535 PyErr_SetString(PyExc_TypeError,"null reference");
15536 SWIG_fail;
d14a1e28
RD
15537 }
15538 {
15539 PyThreadState* __tstate = wxPyBeginAllowThreads();
15540 (arg1)->SelectObject((wxBitmap const &)*arg2);
15541
15542 wxPyEndAllowThreads(__tstate);
15543 if (PyErr_Occurred()) SWIG_fail;
15544 }
15545 Py_INCREF(Py_None); resultobj = Py_None;
15546 return resultobj;
15547 fail:
15548 return NULL;
15549}
15550
15551
15552static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15553 PyObject *obj;
15554 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15555 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15556 Py_INCREF(obj);
15557 return Py_BuildValue((char *)"");
15558}
db914595 15559static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
d14a1e28
RD
15560 PyObject *resultobj;
15561 wxDC *arg1 = (wxDC *) 0 ;
15562 wxBitmap *arg2 = 0 ;
15563 wxBufferedDC *result;
15564 PyObject * obj0 = 0 ;
15565 PyObject * obj1 = 0 ;
d14a1e28 15566
db914595 15567 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
2f4c0a16
RD
15568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15570 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15571 SWIG_POINTER_EXCEPTION | 0)) == -1)
15572 SWIG_fail;
d14a1e28 15573 if (arg2 == NULL) {
2f4c0a16
RD
15574 PyErr_SetString(PyExc_TypeError,"null reference");
15575 SWIG_fail;
d14a1e28
RD
15576 }
15577 {
15578 PyThreadState* __tstate = wxPyBeginAllowThreads();
15579 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15580
15581 wxPyEndAllowThreads(__tstate);
15582 if (PyErr_Occurred()) SWIG_fail;
15583 }
2f4c0a16 15584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
d14a1e28
RD
15585 return resultobj;
15586 fail:
15587 return NULL;
15588}
15589
15590
db914595 15591static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
d14a1e28
RD
15592 PyObject *resultobj;
15593 wxDC *arg1 = (wxDC *) 0 ;
15594 wxSize *arg2 = 0 ;
15595 wxBufferedDC *result;
15596 wxSize temp2 ;
15597 PyObject * obj0 = 0 ;
15598 PyObject * obj1 = 0 ;
db914595 15599
328fcd84 15600 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
2f4c0a16
RD
15601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
db914595
RD
15603 {
15604 arg2 = &temp2;
15605 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15606 }
db914595
RD
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 15609 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
db914595
RD
15610
15611 wxPyEndAllowThreads(__tstate);
15612 if (PyErr_Occurred()) SWIG_fail;
15613 }
2f4c0a16 15614 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
db914595
RD
15615 return resultobj;
15616 fail:
15617 return NULL;
15618}
15619
15620
15621static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15622 int argc;
328fcd84 15623 PyObject *argv[3];
db914595
RD
15624 int ii;
15625
15626 argc = PyObject_Length(args);
328fcd84 15627 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
db914595
RD
15628 argv[ii] = PyTuple_GetItem(args,ii);
15629 }
15630 if (argc == 2) {
15631 int _v;
15632 {
15633 void *ptr;
2f4c0a16 15634 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
db914595
RD
15635 _v = 0;
15636 PyErr_Clear();
15637 } else {
15638 _v = 1;
15639 }
15640 }
15641 if (_v) {
15642 {
15643 void *ptr;
2f4c0a16 15644 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
db914595
RD
15645 _v = 0;
15646 PyErr_Clear();
15647 } else {
15648 _v = 1;
15649 }
15650 }
15651 if (_v) {
15652 return _wrap_new_BufferedDC__SWIG_0(self,args);
15653 }
15654 }
15655 }
328fcd84 15656 if (argc == 2) {
db914595
RD
15657 int _v;
15658 {
15659 void *ptr;
2f4c0a16 15660 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
db914595
RD
15661 _v = 0;
15662 PyErr_Clear();
15663 } else {
15664 _v = 1;
15665 }
15666 }
15667 if (_v) {
15668 {
15669 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15670 }
15671 if (_v) {
328fcd84 15672 return _wrap_new_BufferedDC__SWIG_1(self,args);
db914595
RD
15673 }
15674 }
15675 }
d14a1e28 15676
db914595
RD
15677 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15678 return NULL;
15679}
15680
15681
15682static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15683 PyObject *resultobj;
15684 wxDC *arg1 = (wxDC *) 0 ;
15685 wxSize *arg2 = 0 ;
db914595
RD
15686 wxBufferedDC *result;
15687 wxSize temp2 ;
15688 PyObject * obj0 = 0 ;
15689 PyObject * obj1 = 0 ;
db914595 15690
328fcd84 15691 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
2f4c0a16
RD
15692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15694 {
15695 arg2 = &temp2;
15696 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15697 }
15698 {
15699 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 15700 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
d14a1e28
RD
15701
15702 wxPyEndAllowThreads(__tstate);
15703 if (PyErr_Occurred()) SWIG_fail;
15704 }
2f4c0a16 15705 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
d14a1e28
RD
15706 return resultobj;
15707 fail:
15708 return NULL;
15709}
15710
15711
328fcd84 15712static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15713 PyObject *resultobj;
15714 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15715 PyObject * obj0 = 0 ;
15716 char *kwnames[] = {
15717 (char *) "self", NULL
15718 };
15719
328fcd84 15720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15723 {
15724 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 15725 delete arg1;
d14a1e28
RD
15726
15727 wxPyEndAllowThreads(__tstate);
15728 if (PyErr_Occurred()) SWIG_fail;
15729 }
15730 Py_INCREF(Py_None); resultobj = Py_None;
15731 return resultobj;
15732 fail:
15733 return NULL;
15734}
15735
15736
328fcd84 15737static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15738 PyObject *resultobj;
328fcd84 15739 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
db914595 15740 PyObject * obj0 = 0 ;
328fcd84
RD
15741 char *kwnames[] = {
15742 (char *) "self", NULL
15743 };
db914595 15744
328fcd84 15745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
db914595
RD
15748 {
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 15750 (arg1)->UnMask();
db914595
RD
15751
15752 wxPyEndAllowThreads(__tstate);
15753 if (PyErr_Occurred()) SWIG_fail;
15754 }
328fcd84 15755 Py_INCREF(Py_None); resultobj = Py_None;
db914595
RD
15756 return resultobj;
15757 fail:
15758 return NULL;
15759}
15760
15761
328fcd84
RD
15762static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15763 PyObject *obj;
15764 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15765 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15766 Py_INCREF(obj);
15767 return Py_BuildValue((char *)"");
15768}
15769static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
db914595
RD
15770 PyObject *resultobj;
15771 wxWindow *arg1 = (wxWindow *) 0 ;
328fcd84
RD
15772 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15773 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
d14a1e28
RD
15774 wxBufferedPaintDC *result;
15775 PyObject * obj0 = 0 ;
15776 PyObject * obj1 = 0 ;
328fcd84
RD
15777 char *kwnames[] = {
15778 (char *) "window",(char *) "buffer", NULL
15779 };
d14a1e28 15780
328fcd84 15781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
15782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15784 if (obj1) {
2f4c0a16
RD
15785 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15786 SWIG_POINTER_EXCEPTION | 0)) == -1)
15787 SWIG_fail;
328fcd84 15788 if (arg2 == NULL) {
2f4c0a16
RD
15789 PyErr_SetString(PyExc_TypeError,"null reference");
15790 SWIG_fail;
d14a1e28
RD
15791 }
15792 }
15793 {
15794 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 15795 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
d14a1e28
RD
15796
15797 wxPyEndAllowThreads(__tstate);
15798 if (PyErr_Occurred()) SWIG_fail;
15799 }
2f4c0a16 15800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
d14a1e28
RD
15801 return resultobj;
15802 fail:
15803 return NULL;
15804}
15805
15806
15807static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15808 PyObject *obj;
15809 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15810 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15811 Py_INCREF(obj);
15812 return Py_BuildValue((char *)"");
15813}
15814static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15815 PyObject *resultobj;
15816 wxScreenDC *result;
15817 char *kwnames[] = {
15818 NULL
15819 };
15820
15821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15822 {
15823 PyThreadState* __tstate = wxPyBeginAllowThreads();
15824 result = (wxScreenDC *)new wxScreenDC();
15825
15826 wxPyEndAllowThreads(__tstate);
15827 if (PyErr_Occurred()) SWIG_fail;
15828 }
2f4c0a16 15829 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
d14a1e28
RD
15830 return resultobj;
15831 fail:
15832 return NULL;
15833}
15834
15835
15836static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15837 PyObject *resultobj;
15838 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15839 wxWindow *arg2 = (wxWindow *) 0 ;
15840 bool result;
15841 PyObject * obj0 = 0 ;
15842 PyObject * obj1 = 0 ;
15843 char *kwnames[] = {
15844 (char *) "self",(char *) "window", NULL
15845 };
15846
15847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
15848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15850 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15852 {
15853 PyThreadState* __tstate = wxPyBeginAllowThreads();
15854 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15855
15856 wxPyEndAllowThreads(__tstate);
15857 if (PyErr_Occurred()) SWIG_fail;
15858 }
4f89f6a3
RD
15859 {
15860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15861 }
d14a1e28
RD
15862 return resultobj;
15863 fail:
15864 return NULL;
15865}
15866
15867
15868static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15869 PyObject *resultobj;
15870 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15871 wxRect *arg2 = (wxRect *) NULL ;
15872 bool result;
15873 PyObject * obj0 = 0 ;
15874 PyObject * obj1 = 0 ;
15875 char *kwnames[] = {
15876 (char *) "self",(char *) "rect", NULL
15877 };
15878
15879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
15880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15882 if (obj1) {
2f4c0a16
RD
15883 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15885 }
15886 {
15887 PyThreadState* __tstate = wxPyBeginAllowThreads();
15888 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15889
15890 wxPyEndAllowThreads(__tstate);
15891 if (PyErr_Occurred()) SWIG_fail;
15892 }
4f89f6a3
RD
15893 {
15894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15895 }
d14a1e28
RD
15896 return resultobj;
15897 fail:
15898 return NULL;
15899}
15900
15901
15902static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15903 PyObject *resultobj;
15904 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15905 bool result;
15906 PyObject * obj0 = 0 ;
15907 char *kwnames[] = {
15908 (char *) "self", NULL
15909 };
15910
15911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15914 {
15915 PyThreadState* __tstate = wxPyBeginAllowThreads();
15916 result = (bool)(arg1)->EndDrawingOnTop();
15917
15918 wxPyEndAllowThreads(__tstate);
15919 if (PyErr_Occurred()) SWIG_fail;
15920 }
4f89f6a3
RD
15921 {
15922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15923 }
d14a1e28
RD
15924 return resultobj;
15925 fail:
15926 return NULL;
15927}
15928
15929
15930static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15931 PyObject *obj;
15932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15933 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15934 Py_INCREF(obj);
15935 return Py_BuildValue((char *)"");
15936}
15937static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15938 PyObject *resultobj;
15939 wxWindow *arg1 = (wxWindow *) 0 ;
15940 wxClientDC *result;
15941 PyObject * obj0 = 0 ;
15942 char *kwnames[] = {
15943 (char *) "win", NULL
15944 };
15945
15946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15949 {
15950 PyThreadState* __tstate = wxPyBeginAllowThreads();
15951 result = (wxClientDC *)new wxClientDC(arg1);
15952
15953 wxPyEndAllowThreads(__tstate);
15954 if (PyErr_Occurred()) SWIG_fail;
15955 }
2f4c0a16 15956 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
d14a1e28
RD
15957 return resultobj;
15958 fail:
15959 return NULL;
15960}
15961
15962
15963static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15964 PyObject *obj;
15965 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15966 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15967 Py_INCREF(obj);
15968 return Py_BuildValue((char *)"");
15969}
15970static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15971 PyObject *resultobj;
15972 wxWindow *arg1 = (wxWindow *) 0 ;
15973 wxPaintDC *result;
15974 PyObject * obj0 = 0 ;
15975 char *kwnames[] = {
15976 (char *) "win", NULL
15977 };
15978
15979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15982 {
15983 PyThreadState* __tstate = wxPyBeginAllowThreads();
15984 result = (wxPaintDC *)new wxPaintDC(arg1);
15985
15986 wxPyEndAllowThreads(__tstate);
15987 if (PyErr_Occurred()) SWIG_fail;
15988 }
2f4c0a16 15989 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
d14a1e28
RD
15990 return resultobj;
15991 fail:
15992 return NULL;
15993}
15994
15995
15996static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15997 PyObject *obj;
15998 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15999 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
16000 Py_INCREF(obj);
16001 return Py_BuildValue((char *)"");
16002}
16003static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16004 PyObject *resultobj;
16005 wxWindow *arg1 = (wxWindow *) 0 ;
16006 wxWindowDC *result;
16007 PyObject * obj0 = 0 ;
16008 char *kwnames[] = {
16009 (char *) "win", NULL
16010 };
16011
16012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16015 {
16016 PyThreadState* __tstate = wxPyBeginAllowThreads();
16017 result = (wxWindowDC *)new wxWindowDC(arg1);
16018
16019 wxPyEndAllowThreads(__tstate);
16020 if (PyErr_Occurred()) SWIG_fail;
16021 }
2f4c0a16 16022 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
d14a1e28
RD
16023 return resultobj;
16024 fail:
16025 return NULL;
16026}
16027
16028
16029static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
16030 PyObject *obj;
16031 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16032 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
16033 Py_INCREF(obj);
16034 return Py_BuildValue((char *)"");
16035}
16036static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16037 PyObject *resultobj;
16038 wxDC *arg1 = 0 ;
16039 bool arg2 ;
16040 wxMirrorDC *result;
16041 PyObject * obj0 = 0 ;
16042 PyObject * obj1 = 0 ;
16043 char *kwnames[] = {
16044 (char *) "dc",(char *) "mirror", NULL
16045 };
16046
16047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
16048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16049 SWIG_POINTER_EXCEPTION | 0)) == -1)
16050 SWIG_fail;
d14a1e28 16051 if (arg1 == NULL) {
2f4c0a16
RD
16052 PyErr_SetString(PyExc_TypeError,"null reference");
16053 SWIG_fail;
83448d71 16054 }
2f4c0a16
RD
16055 arg2 = (bool) SWIG_AsBool(obj1);
16056 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16057 {
16058 PyThreadState* __tstate = wxPyBeginAllowThreads();
16059 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
16060
16061 wxPyEndAllowThreads(__tstate);
16062 if (PyErr_Occurred()) SWIG_fail;
16063 }
2f4c0a16 16064 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
d14a1e28
RD
16065 return resultobj;
16066 fail:
16067 return NULL;
16068}
16069
16070
16071static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
16072 PyObject *obj;
16073 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16074 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
16075 Py_INCREF(obj);
16076 return Py_BuildValue((char *)"");
16077}
16078static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16079 PyObject *resultobj;
16080 wxPrintData *arg1 = 0 ;
16081 wxPostScriptDC *result;
16082 PyObject * obj0 = 0 ;
16083 char *kwnames[] = {
16084 (char *) "printData", NULL
16085 };
16086
16087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16089 SWIG_POINTER_EXCEPTION | 0)) == -1)
16090 SWIG_fail;
d14a1e28 16091 if (arg1 == NULL) {
2f4c0a16
RD
16092 PyErr_SetString(PyExc_TypeError,"null reference");
16093 SWIG_fail;
d14a1e28
RD
16094 }
16095 {
16096 PyThreadState* __tstate = wxPyBeginAllowThreads();
16097 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16098
16099 wxPyEndAllowThreads(__tstate);
16100 if (PyErr_Occurred()) SWIG_fail;
16101 }
2f4c0a16 16102 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
d14a1e28
RD
16103 return resultobj;
16104 fail:
16105 return NULL;
16106}
16107
16108
16109static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16110 PyObject *resultobj;
16111 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16112 wxPrintData *result;
16113 PyObject * obj0 = 0 ;
16114 char *kwnames[] = {
16115 (char *) "self", NULL
16116 };
16117
16118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16121 {
16122 PyThreadState* __tstate = wxPyBeginAllowThreads();
16123 {
16124 wxPrintData &_result_ref = (arg1)->GetPrintData();
16125 result = (wxPrintData *) &_result_ref;
16126 }
16127
16128 wxPyEndAllowThreads(__tstate);
16129 if (PyErr_Occurred()) SWIG_fail;
16130 }
2f4c0a16 16131 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
d14a1e28
RD
16132 return resultobj;
16133 fail:
16134 return NULL;
16135}
16136
16137
16138static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16139 PyObject *resultobj;
16140 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16141 wxPrintData *arg2 = 0 ;
16142 PyObject * obj0 = 0 ;
16143 PyObject * obj1 = 0 ;
16144 char *kwnames[] = {
16145 (char *) "self",(char *) "data", NULL
16146 };
16147
16148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
16149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16151 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16152 SWIG_POINTER_EXCEPTION | 0)) == -1)
16153 SWIG_fail;
d14a1e28 16154 if (arg2 == NULL) {
2f4c0a16
RD
16155 PyErr_SetString(PyExc_TypeError,"null reference");
16156 SWIG_fail;
d14a1e28
RD
16157 }
16158 {
16159 PyThreadState* __tstate = wxPyBeginAllowThreads();
16160 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16161
16162 wxPyEndAllowThreads(__tstate);
16163 if (PyErr_Occurred()) SWIG_fail;
16164 }
16165 Py_INCREF(Py_None); resultobj = Py_None;
16166 return resultobj;
16167 fail:
16168 return NULL;
16169}
16170
16171
16172static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16173 PyObject *resultobj;
16174 int arg1 ;
8edf1c75 16175 PyObject * obj0 = 0 ;
d14a1e28
RD
16176 char *kwnames[] = {
16177 (char *) "ppi", NULL
16178 };
16179
8edf1c75 16180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16181 arg1 = (int) SWIG_AsInt(obj0);
16182 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16183 {
16184 PyThreadState* __tstate = wxPyBeginAllowThreads();
16185 wxPostScriptDC::SetResolution(arg1);
16186
16187 wxPyEndAllowThreads(__tstate);
16188 if (PyErr_Occurred()) SWIG_fail;
16189 }
16190 Py_INCREF(Py_None); resultobj = Py_None;
16191 return resultobj;
16192 fail:
16193 return NULL;
16194}
16195
16196
16197static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16198 PyObject *resultobj;
16199 int result;
16200 char *kwnames[] = {
16201 NULL
16202 };
16203
16204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16205 {
16206 PyThreadState* __tstate = wxPyBeginAllowThreads();
16207 result = (int)wxPostScriptDC::GetResolution();
16208
16209 wxPyEndAllowThreads(__tstate);
16210 if (PyErr_Occurred()) SWIG_fail;
16211 }
2f4c0a16 16212 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16213 return resultobj;
16214 fail:
16215 return NULL;
16216}
16217
16218
16219static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
16220 PyObject *obj;
16221 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16222 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16223 Py_INCREF(obj);
16224 return Py_BuildValue((char *)"");
16225}
16226static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16227 PyObject *resultobj;
16228 wxString const &arg1_defvalue = wxPyEmptyString ;
16229 wxString *arg1 = (wxString *) &arg1_defvalue ;
16230 wxMetaFile *result;
423f194a 16231 bool temp1 = False ;
d14a1e28
RD
16232 PyObject * obj0 = 0 ;
16233 char *kwnames[] = {
16234 (char *) "filename", NULL
16235 };
16236
16237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16238 if (obj0) {
16239 {
16240 arg1 = wxString_in_helper(obj0);
16241 if (arg1 == NULL) SWIG_fail;
423f194a 16242 temp1 = True;
d14a1e28
RD
16243 }
16244 }
16245 {
16246 PyThreadState* __tstate = wxPyBeginAllowThreads();
16247 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16248
16249 wxPyEndAllowThreads(__tstate);
16250 if (PyErr_Occurred()) SWIG_fail;
16251 }
2f4c0a16 16252 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
d14a1e28
RD
16253 {
16254 if (temp1)
16255 delete arg1;
16256 }
16257 return resultobj;
16258 fail:
16259 {
16260 if (temp1)
16261 delete arg1;
16262 }
16263 return NULL;
16264}
16265
16266
16267static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16268 PyObject *resultobj;
16269 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16270 PyObject * obj0 = 0 ;
16271 char *kwnames[] = {
16272 (char *) "self", NULL
16273 };
16274
16275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16278 {
16279 PyThreadState* __tstate = wxPyBeginAllowThreads();
16280 delete arg1;
16281
16282 wxPyEndAllowThreads(__tstate);
16283 if (PyErr_Occurred()) SWIG_fail;
16284 }
16285 Py_INCREF(Py_None); resultobj = Py_None;
16286 return resultobj;
16287 fail:
16288 return NULL;
16289}
16290
16291
16292static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
16293 PyObject *resultobj;
16294 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16295 bool result;
16296 PyObject * obj0 = 0 ;
16297 char *kwnames[] = {
16298 (char *) "self", NULL
16299 };
16300
16301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16304 {
16305 PyThreadState* __tstate = wxPyBeginAllowThreads();
16306 result = (bool)(arg1)->Ok();
16307
16308 wxPyEndAllowThreads(__tstate);
16309 if (PyErr_Occurred()) SWIG_fail;
16310 }
4f89f6a3
RD
16311 {
16312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16313 }
d14a1e28
RD
16314 return resultobj;
16315 fail:
16316 return NULL;
16317}
16318
16319
16320static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
16321 PyObject *resultobj;
16322 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16323 int arg2 = (int) 0 ;
16324 int arg3 = (int) 0 ;
16325 bool result;
16326 PyObject * obj0 = 0 ;
8edf1c75
RD
16327 PyObject * obj1 = 0 ;
16328 PyObject * obj2 = 0 ;
d14a1e28
RD
16329 char *kwnames[] = {
16330 (char *) "self",(char *) "width",(char *) "height", NULL
16331 };
16332
8edf1c75 16333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
16334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75 16336 if (obj1) {
2f4c0a16
RD
16337 arg2 = (int) SWIG_AsInt(obj1);
16338 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
16339 }
16340 if (obj2) {
2f4c0a16
RD
16341 arg3 = (int) SWIG_AsInt(obj2);
16342 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 16343 }
d14a1e28
RD
16344 {
16345 PyThreadState* __tstate = wxPyBeginAllowThreads();
16346 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16347
16348 wxPyEndAllowThreads(__tstate);
16349 if (PyErr_Occurred()) SWIG_fail;
16350 }
4f89f6a3
RD
16351 {
16352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16353 }
d14a1e28
RD
16354 return resultobj;
16355 fail:
16356 return NULL;
16357}
16358
16359
16360static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16361 PyObject *resultobj;
16362 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16363 wxSize result;
16364 PyObject * obj0 = 0 ;
16365 char *kwnames[] = {
16366 (char *) "self", NULL
16367 };
16368
16369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16372 {
16373 PyThreadState* __tstate = wxPyBeginAllowThreads();
16374 result = (arg1)->GetSize();
16375
16376 wxPyEndAllowThreads(__tstate);
16377 if (PyErr_Occurred()) SWIG_fail;
16378 }
16379 {
16380 wxSize * resultptr;
16381 resultptr = new wxSize((wxSize &) result);
2f4c0a16 16382 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
16383 }
16384 return resultobj;
16385 fail:
16386 return NULL;
16387}
16388
16389
16390static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
16391 PyObject *resultobj;
16392 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16393 int result;
16394 PyObject * obj0 = 0 ;
16395 char *kwnames[] = {
16396 (char *) "self", NULL
16397 };
16398
16399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16402 {
16403 PyThreadState* __tstate = wxPyBeginAllowThreads();
16404 result = (int)(arg1)->GetWidth();
16405
16406 wxPyEndAllowThreads(__tstate);
16407 if (PyErr_Occurred()) SWIG_fail;
16408 }
2f4c0a16 16409 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16410 return resultobj;
16411 fail:
16412 return NULL;
16413}
16414
16415
16416static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
16417 PyObject *resultobj;
16418 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16419 int result;
16420 PyObject * obj0 = 0 ;
16421 char *kwnames[] = {
16422 (char *) "self", NULL
16423 };
16424
16425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16428 {
16429 PyThreadState* __tstate = wxPyBeginAllowThreads();
16430 result = (int)(arg1)->GetHeight();
16431
16432 wxPyEndAllowThreads(__tstate);
16433 if (PyErr_Occurred()) SWIG_fail;
16434 }
2f4c0a16 16435 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16436 return resultobj;
16437 fail:
16438 return NULL;
16439}
16440
16441
16442static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
16443 PyObject *resultobj;
16444 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16445 wxString *result;
16446 PyObject * obj0 = 0 ;
16447 char *kwnames[] = {
16448 (char *) "self", NULL
16449 };
16450
16451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16454 {
16455 PyThreadState* __tstate = wxPyBeginAllowThreads();
16456 {
16457 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16458 result = (wxString *) &_result_ref;
16459 }
16460
16461 wxPyEndAllowThreads(__tstate);
16462 if (PyErr_Occurred()) SWIG_fail;
16463 }
f0983263
RD
16464 {
16465#if wxUSE_UNICODE
16466 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16467#else
16468 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16469#endif
16470 }
d14a1e28
RD
16471 return resultobj;
16472 fail:
16473 return NULL;
16474}
16475
16476
16477static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
16478 PyObject *obj;
16479 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16480 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16481 Py_INCREF(obj);
16482 return Py_BuildValue((char *)"");
16483}
16484static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16485 PyObject *resultobj;
16486 wxString const &arg1_defvalue = wxPyEmptyString ;
16487 wxString *arg1 = (wxString *) &arg1_defvalue ;
16488 int arg2 = (int) 0 ;
16489 int arg3 = (int) 0 ;
16490 wxString const &arg4_defvalue = wxPyEmptyString ;
16491 wxString *arg4 = (wxString *) &arg4_defvalue ;
16492 wxMetaFileDC *result;
423f194a
RD
16493 bool temp1 = False ;
16494 bool temp4 = False ;
d14a1e28 16495 PyObject * obj0 = 0 ;
8edf1c75
RD
16496 PyObject * obj1 = 0 ;
16497 PyObject * obj2 = 0 ;
d14a1e28
RD
16498 PyObject * obj3 = 0 ;
16499 char *kwnames[] = {
16500 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16501 };
16502
8edf1c75 16503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
16504 if (obj0) {
16505 {
16506 arg1 = wxString_in_helper(obj0);
16507 if (arg1 == NULL) SWIG_fail;
423f194a 16508 temp1 = True;
d14a1e28
RD
16509 }
16510 }
8edf1c75 16511 if (obj1) {
2f4c0a16
RD
16512 arg2 = (int) SWIG_AsInt(obj1);
16513 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
16514 }
16515 if (obj2) {
2f4c0a16
RD
16516 arg3 = (int) SWIG_AsInt(obj2);
16517 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 16518 }
d14a1e28
RD
16519 if (obj3) {
16520 {
16521 arg4 = wxString_in_helper(obj3);
16522 if (arg4 == NULL) SWIG_fail;
423f194a 16523 temp4 = True;
d14a1e28
RD
16524 }
16525 }
16526 {
16527 PyThreadState* __tstate = wxPyBeginAllowThreads();
16528 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16529
16530 wxPyEndAllowThreads(__tstate);
16531 if (PyErr_Occurred()) SWIG_fail;
16532 }
2f4c0a16 16533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
d14a1e28
RD
16534 {
16535 if (temp1)
16536 delete arg1;
16537 }
16538 {
16539 if (temp4)
16540 delete arg4;
16541 }
16542 return resultobj;
16543 fail:
16544 {
16545 if (temp1)
16546 delete arg1;
16547 }
16548 {
16549 if (temp4)
16550 delete arg4;
16551 }
16552 return NULL;
16553}
16554
16555
16556static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16557 PyObject *resultobj;
16558 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16559 wxMetaFile *result;
16560 PyObject * obj0 = 0 ;
16561 char *kwnames[] = {
16562 (char *) "self", NULL
16563 };
16564
16565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16568 {
16569 PyThreadState* __tstate = wxPyBeginAllowThreads();
16570 result = (wxMetaFile *)(arg1)->Close();
16571
16572 wxPyEndAllowThreads(__tstate);
16573 if (PyErr_Occurred()) SWIG_fail;
16574 }
2f4c0a16 16575 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
d14a1e28
RD
16576 return resultobj;
16577 fail:
16578 return NULL;
16579}
16580
16581
16582static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16583 PyObject *obj;
16584 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16585 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16586 Py_INCREF(obj);
16587 return Py_BuildValue((char *)"");
16588}
16589static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16590 PyObject *resultobj;
16591 wxPrintData *arg1 = 0 ;
16592 wxPrinterDC *result;
16593 PyObject * obj0 = 0 ;
16594 char *kwnames[] = {
16595 (char *) "printData", NULL
16596 };
16597
16598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16600 SWIG_POINTER_EXCEPTION | 0)) == -1)
16601 SWIG_fail;
d14a1e28 16602 if (arg1 == NULL) {
2f4c0a16
RD
16603 PyErr_SetString(PyExc_TypeError,"null reference");
16604 SWIG_fail;
d14a1e28
RD
16605 }
16606 {
16607 PyThreadState* __tstate = wxPyBeginAllowThreads();
16608 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16609
16610 wxPyEndAllowThreads(__tstate);
16611 if (PyErr_Occurred()) SWIG_fail;
16612 }
2f4c0a16 16613 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
d14a1e28
RD
16614 return resultobj;
16615 fail:
16616 return NULL;
16617}
16618
16619
16620static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16621 PyObject *obj;
16622 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16623 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16624 Py_INCREF(obj);
16625 return Py_BuildValue((char *)"");
16626}
16627static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16628 PyObject *resultobj;
16629 int arg1 ;
16630 int arg2 ;
423f194a 16631 int arg3 = (int) True ;
d14a1e28
RD
16632 int arg4 = (int) 1 ;
16633 wxImageList *result;
8edf1c75
RD
16634 PyObject * obj0 = 0 ;
16635 PyObject * obj1 = 0 ;
16636 PyObject * obj2 = 0 ;
16637 PyObject * obj3 = 0 ;
d14a1e28
RD
16638 char *kwnames[] = {
16639 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16640 };
16641
8edf1c75 16642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
16643 arg1 = (int) SWIG_AsInt(obj0);
16644 if (PyErr_Occurred()) SWIG_fail;
16645 arg2 = (int) SWIG_AsInt(obj1);
16646 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 16647 if (obj2) {
2f4c0a16
RD
16648 arg3 = (int) SWIG_AsInt(obj2);
16649 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
16650 }
16651 if (obj3) {
2f4c0a16
RD
16652 arg4 = (int) SWIG_AsInt(obj3);
16653 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 16654 }
d14a1e28
RD
16655 {
16656 PyThreadState* __tstate = wxPyBeginAllowThreads();
16657 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16658
16659 wxPyEndAllowThreads(__tstate);
16660 if (PyErr_Occurred()) SWIG_fail;
16661 }
16662 {
16663 resultobj = wxPyMake_wxObject(result);
16664 }
16665 return resultobj;
16666 fail:
16667 return NULL;
16668}
16669
16670
16671static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16672 PyObject *resultobj;
16673 wxImageList *arg1 = (wxImageList *) 0 ;
16674 PyObject * obj0 = 0 ;
16675 char *kwnames[] = {
16676 (char *) "self", NULL
16677 };
16678
16679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16682 {
16683 PyThreadState* __tstate = wxPyBeginAllowThreads();
16684 delete arg1;
16685
16686 wxPyEndAllowThreads(__tstate);
16687 if (PyErr_Occurred()) SWIG_fail;
16688 }
16689 Py_INCREF(Py_None); resultobj = Py_None;
16690 return resultobj;
16691 fail:
16692 return NULL;
16693}
16694
16695
16696static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16697 PyObject *resultobj;
16698 wxImageList *arg1 = (wxImageList *) 0 ;
16699 wxBitmap *arg2 = 0 ;
16700 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16701 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16702 int result;
16703 PyObject * obj0 = 0 ;
16704 PyObject * obj1 = 0 ;
16705 PyObject * obj2 = 0 ;
16706 char *kwnames[] = {
16707 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16708 };
16709
16710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
16711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16713 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16714 SWIG_POINTER_EXCEPTION | 0)) == -1)
16715 SWIG_fail;
d14a1e28 16716 if (arg2 == NULL) {
2f4c0a16
RD
16717 PyErr_SetString(PyExc_TypeError,"null reference");
16718 SWIG_fail;
d14a1e28
RD
16719 }
16720 if (obj2) {
2f4c0a16
RD
16721 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16722 SWIG_POINTER_EXCEPTION | 0)) == -1)
16723 SWIG_fail;
d14a1e28 16724 if (arg3 == NULL) {
2f4c0a16
RD
16725 PyErr_SetString(PyExc_TypeError,"null reference");
16726 SWIG_fail;
d14a1e28
RD
16727 }
16728 }
16729 {
16730 PyThreadState* __tstate = wxPyBeginAllowThreads();
16731 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16732
16733 wxPyEndAllowThreads(__tstate);
16734 if (PyErr_Occurred()) SWIG_fail;
16735 }
2f4c0a16 16736 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16737 return resultobj;
16738 fail:
16739 return NULL;
16740}
16741
16742
16743static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16744 PyObject *resultobj;
16745 wxImageList *arg1 = (wxImageList *) 0 ;
16746 wxBitmap *arg2 = 0 ;
16747 wxColour *arg3 = 0 ;
16748 int result;
16749 wxColour temp3 ;
16750 PyObject * obj0 = 0 ;
16751 PyObject * obj1 = 0 ;
16752 PyObject * obj2 = 0 ;
16753 char *kwnames[] = {
16754 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16755 };
16756
16757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
16758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16760 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16761 SWIG_POINTER_EXCEPTION | 0)) == -1)
16762 SWIG_fail;
d14a1e28 16763 if (arg2 == NULL) {
2f4c0a16
RD
16764 PyErr_SetString(PyExc_TypeError,"null reference");
16765 SWIG_fail;
d14a1e28
RD
16766 }
16767 {
16768 arg3 = &temp3;
16769 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16770 }
16771 {
16772 PyThreadState* __tstate = wxPyBeginAllowThreads();
16773 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16774
16775 wxPyEndAllowThreads(__tstate);
16776 if (PyErr_Occurred()) SWIG_fail;
16777 }
2f4c0a16 16778 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16779 return resultobj;
16780 fail:
16781 return NULL;
16782}
16783
16784
16785static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16786 PyObject *resultobj;
16787 wxImageList *arg1 = (wxImageList *) 0 ;
16788 wxIcon *arg2 = 0 ;
16789 int result;
16790 PyObject * obj0 = 0 ;
16791 PyObject * obj1 = 0 ;
16792 char *kwnames[] = {
16793 (char *) "self",(char *) "icon", NULL
16794 };
16795
16796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
16797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16799 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16800 SWIG_POINTER_EXCEPTION | 0)) == -1)
16801 SWIG_fail;
d14a1e28 16802 if (arg2 == NULL) {
2f4c0a16
RD
16803 PyErr_SetString(PyExc_TypeError,"null reference");
16804 SWIG_fail;
d14a1e28
RD
16805 }
16806 {
16807 PyThreadState* __tstate = wxPyBeginAllowThreads();
16808 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16809
16810 wxPyEndAllowThreads(__tstate);
16811 if (PyErr_Occurred()) SWIG_fail;
16812 }
2f4c0a16 16813 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16814 return resultobj;
16815 fail:
16816 return NULL;
16817}
16818
16819
16820static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16821 PyObject *resultobj;
16822 wxImageList *arg1 = (wxImageList *) 0 ;
16823 int arg2 ;
16824 wxBitmap *arg3 = 0 ;
16825 wxBitmap const &arg4_defvalue = wxNullBitmap ;
16826 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
16827 bool result;
16828 PyObject * obj0 = 0 ;
8edf1c75 16829 PyObject * obj1 = 0 ;
d14a1e28
RD
16830 PyObject * obj2 = 0 ;
16831 PyObject * obj3 = 0 ;
16832 char *kwnames[] = {
16833 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
16834 };
16835
8edf1c75 16836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
16837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16839 arg2 = (int) SWIG_AsInt(obj1);
16840 if (PyErr_Occurred()) SWIG_fail;
16841 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16842 SWIG_POINTER_EXCEPTION | 0)) == -1)
16843 SWIG_fail;
d14a1e28 16844 if (arg3 == NULL) {
2f4c0a16
RD
16845 PyErr_SetString(PyExc_TypeError,"null reference");
16846 SWIG_fail;
d14a1e28
RD
16847 }
16848 if (obj3) {
2f4c0a16
RD
16849 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16850 SWIG_POINTER_EXCEPTION | 0)) == -1)
16851 SWIG_fail;
d14a1e28 16852 if (arg4 == NULL) {
2f4c0a16
RD
16853 PyErr_SetString(PyExc_TypeError,"null reference");
16854 SWIG_fail;
d14a1e28
RD
16855 }
16856 }
16857 {
16858 PyThreadState* __tstate = wxPyBeginAllowThreads();
16859 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
16860
16861 wxPyEndAllowThreads(__tstate);
16862 if (PyErr_Occurred()) SWIG_fail;
16863 }
4f89f6a3
RD
16864 {
16865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16866 }
d14a1e28
RD
16867 return resultobj;
16868 fail:
16869 return NULL;
16870}
16871
16872
16873static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16874 PyObject *resultobj;
16875 wxImageList *arg1 = (wxImageList *) 0 ;
16876 int arg2 ;
16877 wxDC *arg3 = 0 ;
16878 int arg4 ;
16879 int arg5 ;
16880 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
423f194a 16881 bool arg7 = (bool) (bool)False ;
d14a1e28
RD
16882 bool result;
16883 PyObject * obj0 = 0 ;
8edf1c75 16884 PyObject * obj1 = 0 ;
d14a1e28 16885 PyObject * obj2 = 0 ;
8edf1c75
RD
16886 PyObject * obj3 = 0 ;
16887 PyObject * obj4 = 0 ;
16888 PyObject * obj5 = 0 ;
d14a1e28
RD
16889 PyObject * obj6 = 0 ;
16890 char *kwnames[] = {
16891 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16892 };
16893
8edf1c75 16894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
2f4c0a16
RD
16895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16897 arg2 = (int) SWIG_AsInt(obj1);
16898 if (PyErr_Occurred()) SWIG_fail;
16899 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16900 SWIG_POINTER_EXCEPTION | 0)) == -1)
16901 SWIG_fail;
d14a1e28 16902 if (arg3 == NULL) {
2f4c0a16
RD
16903 PyErr_SetString(PyExc_TypeError,"null reference");
16904 SWIG_fail;
8edf1c75 16905 }
2f4c0a16
RD
16906 arg4 = (int) SWIG_AsInt(obj3);
16907 if (PyErr_Occurred()) SWIG_fail;
16908 arg5 = (int) SWIG_AsInt(obj4);
16909 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 16910 if (obj5) {
2f4c0a16
RD
16911 arg6 = (int) SWIG_AsInt(obj5);
16912 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 16913 }
d14a1e28 16914 if (obj6) {
2f4c0a16
RD
16915 arg7 = (bool const) SWIG_AsBool(obj6);
16916 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16917 }
16918 {
16919 PyThreadState* __tstate = wxPyBeginAllowThreads();
16920 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16921
16922 wxPyEndAllowThreads(__tstate);
16923 if (PyErr_Occurred()) SWIG_fail;
16924 }
4f89f6a3
RD
16925 {
16926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16927 }
d14a1e28
RD
16928 return resultobj;
16929 fail:
16930 return NULL;
16931}
16932
16933
16934static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16935 PyObject *resultobj;
16936 wxImageList *arg1 = (wxImageList *) 0 ;
16937 int result;
16938 PyObject * obj0 = 0 ;
16939 char *kwnames[] = {
16940 (char *) "self", NULL
16941 };
16942
16943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16946 {
16947 PyThreadState* __tstate = wxPyBeginAllowThreads();
16948 result = (int)(arg1)->GetImageCount();
16949
16950 wxPyEndAllowThreads(__tstate);
16951 if (PyErr_Occurred()) SWIG_fail;
16952 }
2f4c0a16 16953 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16954 return resultobj;
16955 fail:
16956 return NULL;
16957}
16958
16959
16960static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16961 PyObject *resultobj;
16962 wxImageList *arg1 = (wxImageList *) 0 ;
16963 int arg2 ;
16964 bool result;
16965 PyObject * obj0 = 0 ;
8edf1c75 16966 PyObject * obj1 = 0 ;
d14a1e28
RD
16967 char *kwnames[] = {
16968 (char *) "self",(char *) "index", NULL
16969 };
16970
8edf1c75 16971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
16972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16974 arg2 = (int) SWIG_AsInt(obj1);
16975 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16976 {
16977 PyThreadState* __tstate = wxPyBeginAllowThreads();
16978 result = (bool)(arg1)->Remove(arg2);
16979
16980 wxPyEndAllowThreads(__tstate);
16981 if (PyErr_Occurred()) SWIG_fail;
16982 }
4f89f6a3
RD
16983 {
16984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16985 }
d14a1e28
RD
16986 return resultobj;
16987 fail:
16988 return NULL;
16989}
16990
16991
16992static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16993 PyObject *resultobj;
16994 wxImageList *arg1 = (wxImageList *) 0 ;
16995 bool result;
16996 PyObject * obj0 = 0 ;
16997 char *kwnames[] = {
16998 (char *) "self", NULL
16999 };
17000
17001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
2f4c0a16
RD
17002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17004 {
17005 PyThreadState* __tstate = wxPyBeginAllowThreads();
17006 result = (bool)(arg1)->RemoveAll();
17007
17008 wxPyEndAllowThreads(__tstate);
17009 if (PyErr_Occurred()) SWIG_fail;
17010 }
4f89f6a3
RD
17011 {
17012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17013 }
d14a1e28
RD
17014 return resultobj;
17015 fail:
17016 return NULL;
17017}
17018
17019
17020static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17021 PyObject *resultobj;
17022 wxImageList *arg1 = (wxImageList *) 0 ;
17023 int arg2 ;
17024 int *arg3 = 0 ;
17025 int *arg4 = 0 ;
17026 int temp3 ;
17027 int temp4 ;
17028 PyObject * obj0 = 0 ;
8edf1c75 17029 PyObject * obj1 = 0 ;
d14a1e28
RD
17030 char *kwnames[] = {
17031 (char *) "self",(char *) "index", NULL
17032 };
17033
17034 arg3 = &temp3;
17035 arg4 = &temp4;
8edf1c75 17036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
17037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17039 arg2 = (int) SWIG_AsInt(obj1);
17040 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17041 {
17042 PyThreadState* __tstate = wxPyBeginAllowThreads();
17043 (arg1)->GetSize(arg2,*arg3,*arg4);
17044
17045 wxPyEndAllowThreads(__tstate);
17046 if (PyErr_Occurred()) SWIG_fail;
17047 }
17048 Py_INCREF(Py_None); resultobj = Py_None;
17049 {
17050 PyObject *o = PyInt_FromLong((long) (*arg3));
17051 resultobj = t_output_helper(resultobj,o);
17052 }
17053 {
17054 PyObject *o = PyInt_FromLong((long) (*arg4));
17055 resultobj = t_output_helper(resultobj,o);
17056 }
17057 return resultobj;
17058 fail:
17059 return NULL;
17060}
17061
17062
17063static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
17064 PyObject *obj;
17065 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17066 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
17067 Py_INCREF(obj);
17068 return Py_BuildValue((char *)"");
17069}
2f4c0a16 17070static int _wrap_NORMAL_FONT_set(PyObject *_val) {
8edf1c75
RD
17071 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
17072 return 1;
17073}
17074
17075
17076static PyObject *_wrap_NORMAL_FONT_get() {
17077 PyObject *pyobj;
d14a1e28 17078
2f4c0a16 17079 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
8edf1c75 17080 return pyobj;
d14a1e28
RD
17081}
17082
17083
2f4c0a16 17084static int _wrap_SMALL_FONT_set(PyObject *_val) {
8edf1c75
RD
17085 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
17086 return 1;
d14a1e28
RD
17087}
17088
17089
8edf1c75
RD
17090static PyObject *_wrap_SMALL_FONT_get() {
17091 PyObject *pyobj;
d14a1e28 17092
2f4c0a16 17093 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
8edf1c75 17094 return pyobj;
d14a1e28
RD
17095}
17096
17097
2f4c0a16 17098static int _wrap_ITALIC_FONT_set(PyObject *_val) {
8edf1c75
RD
17099 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
17100 return 1;
d14a1e28
RD
17101}
17102
17103
8edf1c75
RD
17104static PyObject *_wrap_ITALIC_FONT_get() {
17105 PyObject *pyobj;
d14a1e28 17106
2f4c0a16 17107 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
8edf1c75 17108 return pyobj;
d14a1e28
RD
17109}
17110
17111
2f4c0a16 17112static int _wrap_SWISS_FONT_set(PyObject *_val) {
8edf1c75
RD
17113 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
17114 return 1;
d14a1e28
RD
17115}
17116
17117
8edf1c75
RD
17118static PyObject *_wrap_SWISS_FONT_get() {
17119 PyObject *pyobj;
d14a1e28 17120
2f4c0a16 17121 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
8edf1c75 17122 return pyobj;
d14a1e28
RD
17123}
17124
17125
2f4c0a16 17126static int _wrap_RED_PEN_set(PyObject *_val) {
8edf1c75
RD
17127 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
17128 return 1;
17129}
17130
17131
17132static PyObject *_wrap_RED_PEN_get() {
17133 PyObject *pyobj;
d14a1e28 17134
2f4c0a16 17135 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17136 return pyobj;
d14a1e28
RD
17137}
17138
17139
2f4c0a16 17140static int _wrap_CYAN_PEN_set(PyObject *_val) {
8edf1c75
RD
17141 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
17142 return 1;
d14a1e28 17143}
8edf1c75
RD
17144
17145
17146static PyObject *_wrap_CYAN_PEN_get() {
17147 PyObject *pyobj;
d14a1e28 17148
2f4c0a16 17149 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17150 return pyobj;
d14a1e28
RD
17151}
17152
17153
2f4c0a16 17154static int _wrap_GREEN_PEN_set(PyObject *_val) {
8edf1c75
RD
17155 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
17156 return 1;
d14a1e28
RD
17157}
17158
17159
8edf1c75
RD
17160static PyObject *_wrap_GREEN_PEN_get() {
17161 PyObject *pyobj;
d14a1e28 17162
2f4c0a16 17163 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17164 return pyobj;
d14a1e28
RD
17165}
17166
17167
2f4c0a16 17168static int _wrap_BLACK_PEN_set(PyObject *_val) {
8edf1c75
RD
17169 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17170 return 1;
d14a1e28
RD
17171}
17172
17173
8edf1c75
RD
17174static PyObject *_wrap_BLACK_PEN_get() {
17175 PyObject *pyobj;
d14a1e28 17176
2f4c0a16 17177 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17178 return pyobj;
d14a1e28
RD
17179}
17180
17181
2f4c0a16 17182static int _wrap_WHITE_PEN_set(PyObject *_val) {
8edf1c75
RD
17183 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17184 return 1;
17185}
17186
17187
17188static PyObject *_wrap_WHITE_PEN_get() {
17189 PyObject *pyobj;
d14a1e28 17190
2f4c0a16 17191 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17192 return pyobj;
d14a1e28
RD
17193}
17194
17195
2f4c0a16 17196static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
8edf1c75
RD
17197 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17198 return 1;
d14a1e28 17199}
8edf1c75
RD
17200
17201
17202static PyObject *_wrap_TRANSPARENT_PEN_get() {
17203 PyObject *pyobj;
d14a1e28 17204
2f4c0a16 17205 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17206 return pyobj;
d14a1e28
RD
17207}
17208
17209
2f4c0a16 17210static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
8edf1c75
RD
17211 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17212 return 1;
17213}
17214
17215
17216static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17217 PyObject *pyobj;
d14a1e28 17218
2f4c0a16 17219 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17220 return pyobj;
d14a1e28
RD
17221}
17222
17223
2f4c0a16 17224static int _wrap_GREY_PEN_set(PyObject *_val) {
8edf1c75
RD
17225 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17226 return 1;
17227}
17228
17229
17230static PyObject *_wrap_GREY_PEN_get() {
17231 PyObject *pyobj;
d14a1e28 17232
2f4c0a16 17233 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17234 return pyobj;
d14a1e28
RD
17235}
17236
17237
2f4c0a16 17238static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
8edf1c75
RD
17239 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17240 return 1;
17241}
17242
17243
17244static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17245 PyObject *pyobj;
d14a1e28 17246
2f4c0a16 17247 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17248 return pyobj;
d14a1e28
RD
17249}
17250
17251
2f4c0a16 17252static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
8edf1c75
RD
17253 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17254 return 1;
d14a1e28 17255}
8edf1c75
RD
17256
17257
17258static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17259 PyObject *pyobj;
17260
2f4c0a16 17261 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75
RD
17262 return pyobj;
17263}
17264
17265
2f4c0a16 17266static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
8edf1c75 17267 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
d14a1e28
RD
17268 return 1;
17269}
17270
17271
8edf1c75 17272static PyObject *_wrap_BLUE_BRUSH_get() {
d14a1e28
RD
17273 PyObject *pyobj;
17274
2f4c0a16 17275 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17276 return pyobj;
17277}
17278
17279
2f4c0a16 17280static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
8edf1c75 17281 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
d14a1e28
RD
17282 return 1;
17283}
17284
17285
8edf1c75 17286static PyObject *_wrap_GREEN_BRUSH_get() {
d14a1e28
RD
17287 PyObject *pyobj;
17288
2f4c0a16 17289 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17290 return pyobj;
17291}
17292
17293
2f4c0a16 17294static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
8edf1c75 17295 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
d14a1e28
RD
17296 return 1;
17297}
17298
17299
8edf1c75 17300static PyObject *_wrap_WHITE_BRUSH_get() {
d14a1e28
RD
17301 PyObject *pyobj;
17302
2f4c0a16 17303 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17304 return pyobj;
17305}
17306
17307
2f4c0a16 17308static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
8edf1c75 17309 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
d14a1e28
RD
17310 return 1;
17311}
17312
17313
8edf1c75 17314static PyObject *_wrap_BLACK_BRUSH_get() {
d14a1e28
RD
17315 PyObject *pyobj;
17316
2f4c0a16 17317 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17318 return pyobj;
17319}
17320
17321
2f4c0a16 17322static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
8edf1c75 17323 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
d14a1e28
RD
17324 return 1;
17325}
17326
17327
8edf1c75 17328static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
d14a1e28
RD
17329 PyObject *pyobj;
17330
2f4c0a16 17331 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17332 return pyobj;
17333}
17334
17335
2f4c0a16 17336static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
8edf1c75 17337 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
d14a1e28
RD
17338 return 1;
17339}
17340
17341
8edf1c75 17342static PyObject *_wrap_CYAN_BRUSH_get() {
d14a1e28
RD
17343 PyObject *pyobj;
17344
2f4c0a16 17345 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17346 return pyobj;
17347}
17348
17349
2f4c0a16 17350static int _wrap_RED_BRUSH_set(PyObject *_val) {
8edf1c75 17351 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
d14a1e28
RD
17352 return 1;
17353}
17354
17355
8edf1c75 17356static PyObject *_wrap_RED_BRUSH_get() {
d14a1e28
RD
17357 PyObject *pyobj;
17358
2f4c0a16 17359 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17360 return pyobj;
17361}
17362
17363
2f4c0a16 17364static int _wrap_GREY_BRUSH_set(PyObject *_val) {
8edf1c75 17365 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
d14a1e28
RD
17366 return 1;
17367}
17368
17369
8edf1c75 17370static PyObject *_wrap_GREY_BRUSH_get() {
d14a1e28
RD
17371 PyObject *pyobj;
17372
2f4c0a16 17373 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17374 return pyobj;
17375}
17376
17377
2f4c0a16 17378static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
8edf1c75 17379 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
d14a1e28
RD
17380 return 1;
17381}
17382
17383
8edf1c75 17384static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
d14a1e28
RD
17385 PyObject *pyobj;
17386
2f4c0a16 17387 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17388 return pyobj;
17389}
17390
17391
2f4c0a16 17392static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
8edf1c75 17393 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
d14a1e28
RD
17394 return 1;
17395}
17396
17397
8edf1c75 17398static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
d14a1e28
RD
17399 PyObject *pyobj;
17400
2f4c0a16 17401 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17402 return pyobj;
17403}
17404
17405
2f4c0a16 17406static int _wrap_BLACK_set(PyObject *_val) {
8edf1c75 17407 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
d14a1e28
RD
17408 return 1;
17409}
17410
17411
8edf1c75 17412static PyObject *_wrap_BLACK_get() {
d14a1e28
RD
17413 PyObject *pyobj;
17414
2f4c0a16 17415 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17416 return pyobj;
17417}
17418
17419
2f4c0a16 17420static int _wrap_WHITE_set(PyObject *_val) {
8edf1c75 17421 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
d14a1e28
RD
17422 return 1;
17423}
17424
17425
8edf1c75 17426static PyObject *_wrap_WHITE_get() {
d14a1e28
RD
17427 PyObject *pyobj;
17428
2f4c0a16 17429 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17430 return pyobj;
17431}
17432
17433
2f4c0a16 17434static int _wrap_RED_set(PyObject *_val) {
8edf1c75 17435 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
d14a1e28
RD
17436 return 1;
17437}
17438
17439
8edf1c75 17440static PyObject *_wrap_RED_get() {
d14a1e28
RD
17441 PyObject *pyobj;
17442
2f4c0a16 17443 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17444 return pyobj;
17445}
17446
17447
2f4c0a16 17448static int _wrap_BLUE_set(PyObject *_val) {
8edf1c75 17449 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
d14a1e28
RD
17450 return 1;
17451}
17452
17453
8edf1c75 17454static PyObject *_wrap_BLUE_get() {
d14a1e28
RD
17455 PyObject *pyobj;
17456
2f4c0a16 17457 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17458 return pyobj;
17459}
17460
17461
2f4c0a16 17462static int _wrap_GREEN_set(PyObject *_val) {
8edf1c75 17463 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
d14a1e28
RD
17464 return 1;
17465}
17466
17467
8edf1c75 17468static PyObject *_wrap_GREEN_get() {
d14a1e28
RD
17469 PyObject *pyobj;
17470
2f4c0a16 17471 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17472 return pyobj;
17473}
17474
17475
2f4c0a16 17476static int _wrap_CYAN_set(PyObject *_val) {
8edf1c75 17477 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
d14a1e28
RD
17478 return 1;
17479}
17480
17481
8edf1c75 17482static PyObject *_wrap_CYAN_get() {
d14a1e28
RD
17483 PyObject *pyobj;
17484
2f4c0a16 17485 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17486 return pyobj;
17487}
17488
17489
2f4c0a16 17490static int _wrap_LIGHT_GREY_set(PyObject *_val) {
8edf1c75 17491 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
d14a1e28
RD
17492 return 1;
17493}
17494
17495
8edf1c75 17496static PyObject *_wrap_LIGHT_GREY_get() {
d14a1e28
RD
17497 PyObject *pyobj;
17498
2f4c0a16 17499 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17500 return pyobj;
17501}
17502
17503
2f4c0a16 17504static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
8edf1c75 17505 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
d14a1e28
RD
17506 return 1;
17507}
17508
17509
8edf1c75 17510static PyObject *_wrap_STANDARD_CURSOR_get() {
d14a1e28
RD
17511 PyObject *pyobj;
17512
2f4c0a16 17513 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
17514 return pyobj;
17515}
17516
17517
2f4c0a16 17518static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
8edf1c75 17519 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
d14a1e28
RD
17520 return 1;
17521}
17522
17523
8edf1c75 17524static PyObject *_wrap_HOURGLASS_CURSOR_get() {
d14a1e28
RD
17525 PyObject *pyobj;
17526
2f4c0a16 17527 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
17528 return pyobj;
17529}
17530
17531
2f4c0a16 17532static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
8edf1c75 17533 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
d14a1e28
RD
17534 return 1;
17535}
17536
17537
8edf1c75 17538static PyObject *_wrap_CROSS_CURSOR_get() {
d14a1e28
RD
17539 PyObject *pyobj;
17540
2f4c0a16 17541 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
17542 return pyobj;
17543}
17544
17545
2f4c0a16 17546static int _wrap_NullBitmap_set(PyObject *_val) {
8edf1c75 17547 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
d14a1e28
RD
17548 return 1;
17549}
17550
17551
8edf1c75 17552static PyObject *_wrap_NullBitmap_get() {
d14a1e28
RD
17553 PyObject *pyobj;
17554
2f4c0a16 17555 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
d14a1e28
RD
17556 return pyobj;
17557}
17558
17559
2f4c0a16 17560static int _wrap_NullIcon_set(PyObject *_val) {
8edf1c75 17561 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
d14a1e28
RD
17562 return 1;
17563}
17564
17565
8edf1c75 17566static PyObject *_wrap_NullIcon_get() {
d14a1e28
RD
17567 PyObject *pyobj;
17568
2f4c0a16 17569 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
d14a1e28
RD
17570 return pyobj;
17571}
17572
17573
2f4c0a16 17574static int _wrap_NullCursor_set(PyObject *_val) {
8edf1c75 17575 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
d14a1e28
RD
17576 return 1;
17577}
17578
17579
8edf1c75 17580static PyObject *_wrap_NullCursor_get() {
d14a1e28
RD
17581 PyObject *pyobj;
17582
2f4c0a16 17583 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
17584 return pyobj;
17585}
17586
17587
2f4c0a16 17588static int _wrap_NullPen_set(PyObject *_val) {
8edf1c75 17589 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
d14a1e28
RD
17590 return 1;
17591}
17592
17593
8edf1c75 17594static PyObject *_wrap_NullPen_get() {
d14a1e28
RD
17595 PyObject *pyobj;
17596
2f4c0a16 17597 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
17598 return pyobj;
17599}
17600
17601
2f4c0a16 17602static int _wrap_NullBrush_set(PyObject *_val) {
8edf1c75 17603 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
d14a1e28
RD
17604 return 1;
17605}
17606
17607
8edf1c75 17608static PyObject *_wrap_NullBrush_get() {
d14a1e28
RD
17609 PyObject *pyobj;
17610
2f4c0a16 17611 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17612 return pyobj;
17613}
17614
17615
2f4c0a16 17616static int _wrap_NullPalette_set(PyObject *_val) {
8edf1c75 17617 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
d14a1e28
RD
17618 return 1;
17619}
17620
17621
8edf1c75 17622static PyObject *_wrap_NullPalette_get() {
d14a1e28
RD
17623 PyObject *pyobj;
17624
2f4c0a16 17625 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
d14a1e28
RD
17626 return pyobj;
17627}
17628
17629
2f4c0a16 17630static int _wrap_NullFont_set(PyObject *_val) {
8edf1c75 17631 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
d14a1e28
RD
17632 return 1;
17633}
17634
17635
8edf1c75 17636static PyObject *_wrap_NullFont_get() {
d14a1e28
RD
17637 PyObject *pyobj;
17638
2f4c0a16 17639 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
d14a1e28
RD
17640 return pyobj;
17641}
17642
17643
2f4c0a16 17644static int _wrap_NullColour_set(PyObject *_val) {
8edf1c75 17645 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
d14a1e28
RD
17646 return 1;
17647}
17648
17649
8edf1c75 17650static PyObject *_wrap_NullColour_get() {
d14a1e28
RD
17651 PyObject *pyobj;
17652
2f4c0a16 17653 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17654 return pyobj;
17655}
17656
17657
8edf1c75
RD
17658static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17659 PyObject *resultobj;
17660 wxPenList *arg1 = (wxPenList *) 0 ;
17661 wxPen *arg2 = (wxPen *) 0 ;
17662 PyObject * obj0 = 0 ;
17663 PyObject * obj1 = 0 ;
17664 char *kwnames[] = {
17665 (char *) "self",(char *) "pen", NULL
17666 };
17667
17668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
17669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17671 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17673 {
17674 PyThreadState* __tstate = wxPyBeginAllowThreads();
17675 (arg1)->AddPen(arg2);
17676
17677 wxPyEndAllowThreads(__tstate);
17678 if (PyErr_Occurred()) SWIG_fail;
17679 }
17680 Py_INCREF(Py_None); resultobj = Py_None;
17681 return resultobj;
17682 fail:
17683 return NULL;
d14a1e28
RD
17684}
17685
17686
8edf1c75
RD
17687static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17688 PyObject *resultobj;
17689 wxPenList *arg1 = (wxPenList *) 0 ;
17690 wxColour *arg2 = 0 ;
17691 int arg3 ;
17692 int arg4 ;
17693 wxPen *result;
17694 wxColour temp2 ;
17695 PyObject * obj0 = 0 ;
17696 PyObject * obj1 = 0 ;
17697 PyObject * obj2 = 0 ;
17698 PyObject * obj3 = 0 ;
17699 char *kwnames[] = {
17700 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17701 };
d14a1e28 17702
8edf1c75 17703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
17704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17706 {
17707 arg2 = &temp2;
17708 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17709 }
2f4c0a16
RD
17710 arg3 = (int) SWIG_AsInt(obj2);
17711 if (PyErr_Occurred()) SWIG_fail;
17712 arg4 = (int) SWIG_AsInt(obj3);
17713 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
17714 {
17715 PyThreadState* __tstate = wxPyBeginAllowThreads();
17716 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17717
17718 wxPyEndAllowThreads(__tstate);
17719 if (PyErr_Occurred()) SWIG_fail;
17720 }
2f4c0a16 17721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
8edf1c75
RD
17722 return resultobj;
17723 fail:
17724 return NULL;
d14a1e28
RD
17725}
17726
17727
8edf1c75
RD
17728static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17729 PyObject *resultobj;
17730 wxPenList *arg1 = (wxPenList *) 0 ;
17731 wxPen *arg2 = (wxPen *) 0 ;
17732 PyObject * obj0 = 0 ;
17733 PyObject * obj1 = 0 ;
17734 char *kwnames[] = {
17735 (char *) "self",(char *) "pen", NULL
17736 };
17737
17738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
17739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17741 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17743 {
17744 PyThreadState* __tstate = wxPyBeginAllowThreads();
17745 (arg1)->RemovePen(arg2);
17746
17747 wxPyEndAllowThreads(__tstate);
17748 if (PyErr_Occurred()) SWIG_fail;
17749 }
17750 Py_INCREF(Py_None); resultobj = Py_None;
17751 return resultobj;
17752 fail:
17753 return NULL;
d14a1e28
RD
17754}
17755
17756
8edf1c75
RD
17757static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17758 PyObject *resultobj;
17759 wxPenList *arg1 = (wxPenList *) 0 ;
17760 int result;
17761 PyObject * obj0 = 0 ;
17762 char *kwnames[] = {
17763 (char *) "self", NULL
17764 };
d14a1e28 17765
8edf1c75 17766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
2f4c0a16
RD
17767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17769 {
17770 PyThreadState* __tstate = wxPyBeginAllowThreads();
17771 result = (int)(arg1)->GetCount();
17772
17773 wxPyEndAllowThreads(__tstate);
17774 if (PyErr_Occurred()) SWIG_fail;
17775 }
2f4c0a16 17776 resultobj = SWIG_FromInt((int)result);
8edf1c75
RD
17777 return resultobj;
17778 fail:
17779 return NULL;
d14a1e28
RD
17780}
17781
17782
8edf1c75
RD
17783static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17784 PyObject *obj;
17785 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17786 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17787 Py_INCREF(obj);
17788 return Py_BuildValue((char *)"");
d14a1e28 17789}
8edf1c75
RD
17790static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17791 PyObject *resultobj;
17792 wxBrushList *arg1 = (wxBrushList *) 0 ;
17793 wxBrush *arg2 = (wxBrush *) 0 ;
17794 PyObject * obj0 = 0 ;
17795 PyObject * obj1 = 0 ;
17796 char *kwnames[] = {
17797 (char *) "self",(char *) "brush", NULL
17798 };
d14a1e28 17799
8edf1c75 17800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
17801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17803 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17805 {
17806 PyThreadState* __tstate = wxPyBeginAllowThreads();
17807 (arg1)->AddBrush(arg2);
17808
17809 wxPyEndAllowThreads(__tstate);
17810 if (PyErr_Occurred()) SWIG_fail;
17811 }
17812 Py_INCREF(Py_None); resultobj = Py_None;
17813 return resultobj;
17814 fail:
17815 return NULL;
d14a1e28
RD
17816}
17817
17818
8edf1c75
RD
17819static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17820 PyObject *resultobj;
17821 wxBrushList *arg1 = (wxBrushList *) 0 ;
17822 wxColour *arg2 = 0 ;
17823 int arg3 ;
17824 wxBrush *result;
17825 wxColour temp2 ;
17826 PyObject * obj0 = 0 ;
17827 PyObject * obj1 = 0 ;
17828 PyObject * obj2 = 0 ;
17829 char *kwnames[] = {
17830 (char *) "self",(char *) "colour",(char *) "style", NULL
17831 };
17832
17833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
17834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17836 {
17837 arg2 = &temp2;
17838 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17839 }
2f4c0a16
RD
17840 arg3 = (int) SWIG_AsInt(obj2);
17841 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
17842 {
17843 PyThreadState* __tstate = wxPyBeginAllowThreads();
17844 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17845
17846 wxPyEndAllowThreads(__tstate);
17847 if (PyErr_Occurred()) SWIG_fail;
17848 }
2f4c0a16 17849 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
8edf1c75
RD
17850 return resultobj;
17851 fail:
17852 return NULL;
d14a1e28
RD
17853}
17854
17855
8edf1c75
RD
17856static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17857 PyObject *resultobj;
17858 wxBrushList *arg1 = (wxBrushList *) 0 ;
17859 wxBrush *arg2 = (wxBrush *) 0 ;
17860 PyObject * obj0 = 0 ;
17861 PyObject * obj1 = 0 ;
17862 char *kwnames[] = {
17863 (char *) "self",(char *) "brush", NULL
17864 };
d14a1e28 17865
8edf1c75 17866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
17867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17869 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17871 {
17872 PyThreadState* __tstate = wxPyBeginAllowThreads();
17873 (arg1)->RemoveBrush(arg2);
17874
17875 wxPyEndAllowThreads(__tstate);
17876 if (PyErr_Occurred()) SWIG_fail;
17877 }
17878 Py_INCREF(Py_None); resultobj = Py_None;
17879 return resultobj;
17880 fail:
17881 return NULL;
d14a1e28
RD
17882}
17883
17884
8edf1c75
RD
17885static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17886 PyObject *resultobj;
17887 wxBrushList *arg1 = (wxBrushList *) 0 ;
17888 int result;
17889 PyObject * obj0 = 0 ;
17890 char *kwnames[] = {
17891 (char *) "self", NULL
17892 };
d14a1e28 17893
8edf1c75 17894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
2f4c0a16
RD
17895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17897 {
17898 PyThreadState* __tstate = wxPyBeginAllowThreads();
17899 result = (int)(arg1)->GetCount();
17900
17901 wxPyEndAllowThreads(__tstate);
17902 if (PyErr_Occurred()) SWIG_fail;
17903 }
2f4c0a16 17904 resultobj = SWIG_FromInt((int)result);
8edf1c75
RD
17905 return resultobj;
17906 fail:
17907 return NULL;
d14a1e28
RD
17908}
17909
17910
8edf1c75
RD
17911static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17912 PyObject *obj;
17913 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17914 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17915 Py_INCREF(obj);
17916 return Py_BuildValue((char *)"");
d14a1e28 17917}
8edf1c75
RD
17918static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17919 PyObject *resultobj;
17920 wxColourDatabase *result;
17921 char *kwnames[] = {
17922 NULL
17923 };
d14a1e28 17924
8edf1c75
RD
17925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17926 {
17927 PyThreadState* __tstate = wxPyBeginAllowThreads();
17928 result = (wxColourDatabase *)new wxColourDatabase();
17929
17930 wxPyEndAllowThreads(__tstate);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
2f4c0a16 17933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
8edf1c75
RD
17934 return resultobj;
17935 fail:
17936 return NULL;
d14a1e28
RD
17937}
17938
17939
8edf1c75
RD
17940static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj;
17942 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17943 PyObject * obj0 = 0 ;
17944 char *kwnames[] = {
17945 (char *) "self", NULL
17946 };
d14a1e28 17947
8edf1c75 17948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
2f4c0a16
RD
17949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17951 {
17952 PyThreadState* __tstate = wxPyBeginAllowThreads();
17953 delete arg1;
17954
17955 wxPyEndAllowThreads(__tstate);
17956 if (PyErr_Occurred()) SWIG_fail;
17957 }
17958 Py_INCREF(Py_None); resultobj = Py_None;
17959 return resultobj;
17960 fail:
17961 return NULL;
d14a1e28
RD
17962}
17963
17964
8edf1c75
RD
17965static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17966 PyObject *resultobj;
17967 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17968 wxString *arg2 = 0 ;
17969 wxColour result;
17970 bool temp2 = False ;
17971 PyObject * obj0 = 0 ;
17972 PyObject * obj1 = 0 ;
17973 char *kwnames[] = {
17974 (char *) "self",(char *) "name", NULL
17975 };
d14a1e28 17976
8edf1c75 17977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
17978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17980 {
17981 arg2 = wxString_in_helper(obj1);
17982 if (arg2 == NULL) SWIG_fail;
17983 temp2 = True;
17984 }
17985 {
17986 PyThreadState* __tstate = wxPyBeginAllowThreads();
17987 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17988
17989 wxPyEndAllowThreads(__tstate);
17990 if (PyErr_Occurred()) SWIG_fail;
17991 }
17992 {
17993 wxColour * resultptr;
17994 resultptr = new wxColour((wxColour &) result);
2f4c0a16 17995 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
8edf1c75
RD
17996 }
17997 {
17998 if (temp2)
17999 delete arg2;
18000 }
18001 return resultobj;
18002 fail:
18003 {
18004 if (temp2)
18005 delete arg2;
18006 }
18007 return NULL;
d14a1e28
RD
18008}
18009
18010
8edf1c75
RD
18011static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
18012 PyObject *resultobj;
18013 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18014 wxColour *arg2 = 0 ;
18015 wxString result;
18016 wxColour temp2 ;
18017 PyObject * obj0 = 0 ;
18018 PyObject * obj1 = 0 ;
18019 char *kwnames[] = {
18020 (char *) "self",(char *) "colour", NULL
18021 };
d14a1e28 18022
8edf1c75 18023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
18026 {
18027 arg2 = &temp2;
18028 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18029 }
18030 {
18031 PyThreadState* __tstate = wxPyBeginAllowThreads();
18032 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
18033
18034 wxPyEndAllowThreads(__tstate);
18035 if (PyErr_Occurred()) SWIG_fail;
18036 }
18037 {
18038#if wxUSE_UNICODE
18039 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18040#else
18041 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18042#endif
18043 }
18044 return resultobj;
18045 fail:
18046 return NULL;
d14a1e28
RD
18047}
18048
18049
8edf1c75
RD
18050static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18051 PyObject *resultobj;
18052 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18053 wxString *arg2 = 0 ;
18054 wxColour *arg3 = 0 ;
18055 bool temp2 = False ;
18056 wxColour temp3 ;
18057 PyObject * obj0 = 0 ;
18058 PyObject * obj1 = 0 ;
18059 PyObject * obj2 = 0 ;
18060 char *kwnames[] = {
18061 (char *) "self",(char *) "name",(char *) "colour", NULL
18062 };
18063
18064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
18065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
18067 {
18068 arg2 = wxString_in_helper(obj1);
18069 if (arg2 == NULL) SWIG_fail;
18070 temp2 = True;
18071 }
18072 {
18073 arg3 = &temp3;
18074 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18075 }
18076 {
18077 PyThreadState* __tstate = wxPyBeginAllowThreads();
18078 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
18079
18080 wxPyEndAllowThreads(__tstate);
18081 if (PyErr_Occurred()) SWIG_fail;
18082 }
18083 Py_INCREF(Py_None); resultobj = Py_None;
18084 {
18085 if (temp2)
18086 delete arg2;
18087 }
18088 return resultobj;
18089 fail:
18090 {
18091 if (temp2)
18092 delete arg2;
18093 }
18094 return NULL;
d14a1e28
RD
18095}
18096
18097
8edf1c75
RD
18098static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
18099 PyObject *resultobj;
18100 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18101 wxString *arg2 = 0 ;
18102 int arg3 ;
18103 int arg4 ;
18104 int arg5 ;
18105 bool temp2 = False ;
18106 PyObject * obj0 = 0 ;
18107 PyObject * obj1 = 0 ;
18108 PyObject * obj2 = 0 ;
18109 PyObject * obj3 = 0 ;
18110 PyObject * obj4 = 0 ;
18111 char *kwnames[] = {
18112 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
18113 };
d14a1e28 18114
8edf1c75 18115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
18116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
18118 {
18119 arg2 = wxString_in_helper(obj1);
18120 if (arg2 == NULL) SWIG_fail;
18121 temp2 = True;
18122 }
2f4c0a16
RD
18123 arg3 = (int) SWIG_AsInt(obj2);
18124 if (PyErr_Occurred()) SWIG_fail;
18125 arg4 = (int) SWIG_AsInt(obj3);
18126 if (PyErr_Occurred()) SWIG_fail;
18127 arg5 = (int) SWIG_AsInt(obj4);
18128 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
18129 {
18130 PyThreadState* __tstate = wxPyBeginAllowThreads();
18131 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
18132
18133 wxPyEndAllowThreads(__tstate);
18134 if (PyErr_Occurred()) SWIG_fail;
18135 }
18136 Py_INCREF(Py_None); resultobj = Py_None;
18137 {
18138 if (temp2)
18139 delete arg2;
18140 }
18141 return resultobj;
18142 fail:
18143 {
18144 if (temp2)
18145 delete arg2;
18146 }
18147 return NULL;
d14a1e28
RD
18148}
18149
18150
8edf1c75
RD
18151static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
18152 PyObject *obj;
18153 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18154 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
18155 Py_INCREF(obj);
18156 return Py_BuildValue((char *)"");
d14a1e28 18157}
8edf1c75
RD
18158static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18159 PyObject *resultobj;
18160 wxFontList *arg1 = (wxFontList *) 0 ;
18161 wxFont *arg2 = (wxFont *) 0 ;
18162 PyObject * obj0 = 0 ;
18163 PyObject * obj1 = 0 ;
18164 char *kwnames[] = {
18165 (char *) "self",(char *) "font", NULL
18166 };
d14a1e28 18167
8edf1c75 18168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18171 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
18173 {
18174 PyThreadState* __tstate = wxPyBeginAllowThreads();
18175 (arg1)->AddFont(arg2);
18176
18177 wxPyEndAllowThreads(__tstate);
18178 if (PyErr_Occurred()) SWIG_fail;
18179 }
18180 Py_INCREF(Py_None); resultobj = Py_None;
18181 return resultobj;
18182 fail:
18183 return NULL;
d14a1e28
RD
18184}
18185
18186
8edf1c75
RD
18187static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18188 PyObject *resultobj;
18189 wxFontList *arg1 = (wxFontList *) 0 ;
18190 int arg2 ;
18191 int arg3 ;
18192 int arg4 ;
18193 int arg5 ;
18194 bool arg6 = (bool) False ;
18195 wxString const &arg7_defvalue = wxPyEmptyString ;
18196 wxString *arg7 = (wxString *) &arg7_defvalue ;
18197 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18198 wxFont *result;
18199 bool temp7 = False ;
18200 PyObject * obj0 = 0 ;
18201 PyObject * obj1 = 0 ;
18202 PyObject * obj2 = 0 ;
18203 PyObject * obj3 = 0 ;
18204 PyObject * obj4 = 0 ;
18205 PyObject * obj5 = 0 ;
18206 PyObject * obj6 = 0 ;
18207 PyObject * obj7 = 0 ;
18208 char *kwnames[] = {
18209 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18210 };
d14a1e28 18211
8edf1c75 18212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2f4c0a16
RD
18213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18215 arg2 = (int) SWIG_AsInt(obj1);
18216 if (PyErr_Occurred()) SWIG_fail;
18217 arg3 = (int) SWIG_AsInt(obj2);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 arg4 = (int) SWIG_AsInt(obj3);
18220 if (PyErr_Occurred()) SWIG_fail;
18221 arg5 = (int) SWIG_AsInt(obj4);
18222 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 18223 if (obj5) {
2f4c0a16
RD
18224 arg6 = (bool) SWIG_AsBool(obj5);
18225 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
18226 }
18227 if (obj6) {
18228 {
18229 arg7 = wxString_in_helper(obj6);
18230 if (arg7 == NULL) SWIG_fail;
18231 temp7 = True;
18232 }
18233 }
18234 if (obj7) {
2f4c0a16
RD
18235 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
18236 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
18237 }
18238 {
18239 PyThreadState* __tstate = wxPyBeginAllowThreads();
18240 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18241
18242 wxPyEndAllowThreads(__tstate);
18243 if (PyErr_Occurred()) SWIG_fail;
18244 }
2f4c0a16 18245 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
8edf1c75
RD
18246 {
18247 if (temp7)
18248 delete arg7;
18249 }
18250 return resultobj;
18251 fail:
18252 {
18253 if (temp7)
18254 delete arg7;
18255 }
18256 return NULL;
d14a1e28
RD
18257}
18258
18259
8edf1c75
RD
18260static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18261 PyObject *resultobj;
18262 wxFontList *arg1 = (wxFontList *) 0 ;
18263 wxFont *arg2 = (wxFont *) 0 ;
18264 PyObject * obj0 = 0 ;
18265 PyObject * obj1 = 0 ;
18266 char *kwnames[] = {
18267 (char *) "self",(char *) "font", NULL
18268 };
d14a1e28 18269
8edf1c75 18270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18273 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
18275 {
18276 PyThreadState* __tstate = wxPyBeginAllowThreads();
18277 (arg1)->RemoveFont(arg2);
18278
18279 wxPyEndAllowThreads(__tstate);
18280 if (PyErr_Occurred()) SWIG_fail;
18281 }
18282 Py_INCREF(Py_None); resultobj = Py_None;
18283 return resultobj;
18284 fail:
18285 return NULL;
d14a1e28
RD
18286}
18287
18288
8edf1c75
RD
18289static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
18290 PyObject *resultobj;
18291 wxFontList *arg1 = (wxFontList *) 0 ;
18292 int result;
18293 PyObject * obj0 = 0 ;
18294 char *kwnames[] = {
18295 (char *) "self", NULL
18296 };
d14a1e28 18297
8edf1c75 18298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
2f4c0a16
RD
18299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
18301 {
18302 PyThreadState* __tstate = wxPyBeginAllowThreads();
18303 result = (int)(arg1)->GetCount();
18304
18305 wxPyEndAllowThreads(__tstate);
18306 if (PyErr_Occurred()) SWIG_fail;
18307 }
2f4c0a16 18308 resultobj = SWIG_FromInt((int)result);
8edf1c75
RD
18309 return resultobj;
18310 fail:
18311 return NULL;
d14a1e28
RD
18312}
18313
18314
8edf1c75
RD
18315static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
18316 PyObject *obj;
18317 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18318 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18319 Py_INCREF(obj);
18320 return Py_BuildValue((char *)"");
18321}
2f4c0a16 18322static int _wrap_TheFontList_set(PyObject *_val) {
d14a1e28
RD
18323 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18324 return 1;
18325}
18326
18327
18328static PyObject *_wrap_TheFontList_get() {
18329 PyObject *pyobj;
18330
2f4c0a16 18331 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
d14a1e28
RD
18332 return pyobj;
18333}
18334
18335
2f4c0a16 18336static int _wrap_ThePenList_set(PyObject *_val) {
d14a1e28
RD
18337 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18338 return 1;
18339}
18340
18341
18342static PyObject *_wrap_ThePenList_get() {
18343 PyObject *pyobj;
18344
2f4c0a16 18345 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
d14a1e28
RD
18346 return pyobj;
18347}
18348
18349
2f4c0a16 18350static int _wrap_TheBrushList_set(PyObject *_val) {
d14a1e28
RD
18351 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18352 return 1;
18353}
18354
18355
18356static PyObject *_wrap_TheBrushList_get() {
18357 PyObject *pyobj;
18358
2f4c0a16 18359 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
d14a1e28
RD
18360 return pyobj;
18361}
18362
18363
2f4c0a16 18364static int _wrap_TheColourDatabase_set(PyObject *_val) {
d14a1e28
RD
18365 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18366 return 1;
18367}
18368
18369
18370static PyObject *_wrap_TheColourDatabase_get() {
18371 PyObject *pyobj;
18372
2f4c0a16 18373 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
d14a1e28
RD
18374 return pyobj;
18375}
18376
18377
423f194a 18378static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 18379 PyObject *resultobj;
423f194a 18380 wxEffects *result;
d14a1e28 18381 char *kwnames[] = {
423f194a 18382 NULL
d14a1e28
RD
18383 };
18384
423f194a 18385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
d14a1e28
RD
18386 {
18387 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 18388 result = (wxEffects *)new wxEffects();
d14a1e28
RD
18389
18390 wxPyEndAllowThreads(__tstate);
18391 if (PyErr_Occurred()) SWIG_fail;
18392 }
2f4c0a16 18393 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
d14a1e28
RD
18394 return resultobj;
18395 fail:
18396 return NULL;
18397}
18398
18399
423f194a 18400static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 18401 PyObject *resultobj;
423f194a
RD
18402 wxEffects *arg1 = (wxEffects *) 0 ;
18403 wxColour result;
d14a1e28 18404 PyObject * obj0 = 0 ;
d14a1e28 18405 char *kwnames[] = {
423f194a 18406 (char *) "self", NULL
d14a1e28
RD
18407 };
18408
423f194a 18409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
2f4c0a16
RD
18410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18412 {
18413 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 18414 result = ((wxEffects const *)arg1)->GetHighlightColour();
d14a1e28
RD
18415
18416 wxPyEndAllowThreads(__tstate);
18417 if (PyErr_Occurred()) SWIG_fail;
18418 }
423f194a
RD
18419 {
18420 wxColour * resultptr;
18421 resultptr = new wxColour((wxColour &) result);
2f4c0a16 18422 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
423f194a 18423 }
d14a1e28
RD
18424 return resultobj;
18425 fail:
18426 return NULL;
18427}
18428
18429
423f194a 18430static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 18431 PyObject *resultobj;
423f194a
RD
18432 wxEffects *arg1 = (wxEffects *) 0 ;
18433 wxColour result;
d14a1e28 18434 PyObject * obj0 = 0 ;
d14a1e28 18435 char *kwnames[] = {
423f194a 18436 (char *) "self", NULL
d14a1e28
RD
18437 };
18438
423f194a 18439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
2f4c0a16
RD
18440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18442 {
18443 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 18444 result = ((wxEffects const *)arg1)->GetLightShadow();
d14a1e28
RD
18445
18446 wxPyEndAllowThreads(__tstate);
18447 if (PyErr_Occurred()) SWIG_fail;
18448 }
d14a1e28 18449 {
423f194a
RD
18450 wxColour * resultptr;
18451 resultptr = new wxColour((wxColour &) result);
2f4c0a16 18452 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
18453 }
18454 return resultobj;
18455 fail:
d14a1e28
RD
18456 return NULL;
18457}
18458
18459
423f194a 18460static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 18461 PyObject *resultobj;
423f194a
RD
18462 wxEffects *arg1 = (wxEffects *) 0 ;
18463 wxColour result;
d14a1e28 18464 PyObject * obj0 = 0 ;
d14a1e28 18465 char *kwnames[] = {
423f194a 18466 (char *) "self", NULL
d14a1e28
RD
18467 };
18468
423f194a 18469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
2f4c0a16
RD
18470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18472 {
18473 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 18474 result = ((wxEffects const *)arg1)->GetFaceColour();
d14a1e28
RD
18475
18476 wxPyEndAllowThreads(__tstate);
18477 if (PyErr_Occurred()) SWIG_fail;
18478 }
423f194a
RD
18479 {
18480 wxColour * resultptr;
18481 resultptr = new wxColour((wxColour &) result);
2f4c0a16 18482 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
423f194a 18483 }
d14a1e28
RD
18484 return resultobj;
18485 fail:
18486 return NULL;
18487}
18488
18489
423f194a 18490static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 18491 PyObject *resultobj;
423f194a
RD
18492 wxEffects *arg1 = (wxEffects *) 0 ;
18493 wxColour result;
d14a1e28
RD
18494 PyObject * obj0 = 0 ;
18495 char *kwnames[] = {
18496 (char *) "self", NULL
18497 };
18498
18499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
2f4c0a16
RD
18500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18502 {
18503 PyThreadState* __tstate = wxPyBeginAllowThreads();
18504 result = ((wxEffects const *)arg1)->GetMediumShadow();
18505
18506 wxPyEndAllowThreads(__tstate);
18507 if (PyErr_Occurred()) SWIG_fail;
18508 }
18509 {
18510 wxColour * resultptr;
18511 resultptr = new wxColour((wxColour &) result);
2f4c0a16 18512 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
18513 }
18514 return resultobj;
18515 fail:
18516 return NULL;
18517}
18518
18519
18520static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18521 PyObject *resultobj;
18522 wxEffects *arg1 = (wxEffects *) 0 ;
18523 wxColour result;
18524 PyObject * obj0 = 0 ;
18525 char *kwnames[] = {
18526 (char *) "self", NULL
18527 };
18528
18529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
2f4c0a16
RD
18530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18532 {
18533 PyThreadState* __tstate = wxPyBeginAllowThreads();
18534 result = ((wxEffects const *)arg1)->GetDarkShadow();
18535
18536 wxPyEndAllowThreads(__tstate);
18537 if (PyErr_Occurred()) SWIG_fail;
18538 }
18539 {
18540 wxColour * resultptr;
18541 resultptr = new wxColour((wxColour &) result);
2f4c0a16 18542 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
18543 }
18544 return resultobj;
18545 fail:
18546 return NULL;
18547}
18548
18549
18550static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18551 PyObject *resultobj;
18552 wxEffects *arg1 = (wxEffects *) 0 ;
18553 wxColour *arg2 = 0 ;
18554 wxColour temp2 ;
18555 PyObject * obj0 = 0 ;
18556 PyObject * obj1 = 0 ;
18557 char *kwnames[] = {
18558 (char *) "self",(char *) "c", NULL
18559 };
18560
18561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18564 {
18565 arg2 = &temp2;
18566 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18567 }
18568 {
18569 PyThreadState* __tstate = wxPyBeginAllowThreads();
18570 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18571
18572 wxPyEndAllowThreads(__tstate);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 }
18575 Py_INCREF(Py_None); resultobj = Py_None;
18576 return resultobj;
18577 fail:
18578 return NULL;
18579}
18580
18581
18582static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18583 PyObject *resultobj;
18584 wxEffects *arg1 = (wxEffects *) 0 ;
18585 wxColour *arg2 = 0 ;
18586 wxColour temp2 ;
18587 PyObject * obj0 = 0 ;
18588 PyObject * obj1 = 0 ;
18589 char *kwnames[] = {
18590 (char *) "self",(char *) "c", NULL
18591 };
18592
18593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18596 {
18597 arg2 = &temp2;
18598 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18599 }
18600 {
18601 PyThreadState* __tstate = wxPyBeginAllowThreads();
18602 (arg1)->SetLightShadow((wxColour const &)*arg2);
18603
18604 wxPyEndAllowThreads(__tstate);
18605 if (PyErr_Occurred()) SWIG_fail;
18606 }
18607 Py_INCREF(Py_None); resultobj = Py_None;
18608 return resultobj;
18609 fail:
18610 return NULL;
18611}
18612
18613
18614static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18615 PyObject *resultobj;
18616 wxEffects *arg1 = (wxEffects *) 0 ;
18617 wxColour *arg2 = 0 ;
18618 wxColour temp2 ;
18619 PyObject * obj0 = 0 ;
18620 PyObject * obj1 = 0 ;
18621 char *kwnames[] = {
18622 (char *) "self",(char *) "c", NULL
18623 };
18624
18625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18628 {
18629 arg2 = &temp2;
18630 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18631 }
18632 {
18633 PyThreadState* __tstate = wxPyBeginAllowThreads();
18634 (arg1)->SetFaceColour((wxColour const &)*arg2);
18635
18636 wxPyEndAllowThreads(__tstate);
18637 if (PyErr_Occurred()) SWIG_fail;
18638 }
18639 Py_INCREF(Py_None); resultobj = Py_None;
18640 return resultobj;
18641 fail:
18642 return NULL;
18643}
18644
18645
18646static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18647 PyObject *resultobj;
18648 wxEffects *arg1 = (wxEffects *) 0 ;
18649 wxColour *arg2 = 0 ;
18650 wxColour temp2 ;
18651 PyObject * obj0 = 0 ;
18652 PyObject * obj1 = 0 ;
18653 char *kwnames[] = {
18654 (char *) "self",(char *) "c", NULL
18655 };
18656
18657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18660 {
18661 arg2 = &temp2;
18662 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18663 }
18664 {
18665 PyThreadState* __tstate = wxPyBeginAllowThreads();
18666 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18667
18668 wxPyEndAllowThreads(__tstate);
18669 if (PyErr_Occurred()) SWIG_fail;
18670 }
18671 Py_INCREF(Py_None); resultobj = Py_None;
18672 return resultobj;
18673 fail:
18674 return NULL;
18675}
18676
18677
18678static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18679 PyObject *resultobj;
18680 wxEffects *arg1 = (wxEffects *) 0 ;
18681 wxColour *arg2 = 0 ;
18682 wxColour temp2 ;
18683 PyObject * obj0 = 0 ;
18684 PyObject * obj1 = 0 ;
18685 char *kwnames[] = {
18686 (char *) "self",(char *) "c", NULL
18687 };
18688
18689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18692 {
18693 arg2 = &temp2;
18694 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18695 }
18696 {
18697 PyThreadState* __tstate = wxPyBeginAllowThreads();
18698 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18699
18700 wxPyEndAllowThreads(__tstate);
18701 if (PyErr_Occurred()) SWIG_fail;
18702 }
18703 Py_INCREF(Py_None); resultobj = Py_None;
18704 return resultobj;
18705 fail:
18706 return NULL;
18707}
18708
18709
18710static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18711 PyObject *resultobj;
18712 wxEffects *arg1 = (wxEffects *) 0 ;
18713 wxColour *arg2 = 0 ;
18714 wxColour *arg3 = 0 ;
18715 wxColour *arg4 = 0 ;
18716 wxColour *arg5 = 0 ;
18717 wxColour *arg6 = 0 ;
18718 wxColour temp2 ;
18719 wxColour temp3 ;
18720 wxColour temp4 ;
18721 wxColour temp5 ;
18722 wxColour temp6 ;
18723 PyObject * obj0 = 0 ;
18724 PyObject * obj1 = 0 ;
18725 PyObject * obj2 = 0 ;
18726 PyObject * obj3 = 0 ;
18727 PyObject * obj4 = 0 ;
18728 PyObject * obj5 = 0 ;
18729 char *kwnames[] = {
18730 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18731 };
18732
18733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
2f4c0a16
RD
18734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18736 {
18737 arg2 = &temp2;
18738 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18739 }
18740 {
18741 arg3 = &temp3;
18742 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18743 }
18744 {
18745 arg4 = &temp4;
18746 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18747 }
18748 {
18749 arg5 = &temp5;
18750 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18751 }
18752 {
18753 arg6 = &temp6;
18754 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18755 }
18756 {
18757 PyThreadState* __tstate = wxPyBeginAllowThreads();
18758 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18759
18760 wxPyEndAllowThreads(__tstate);
18761 if (PyErr_Occurred()) SWIG_fail;
18762 }
18763 Py_INCREF(Py_None); resultobj = Py_None;
18764 return resultobj;
18765 fail:
18766 return NULL;
18767}
18768
18769
18770static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18771 PyObject *resultobj;
18772 wxEffects *arg1 = (wxEffects *) 0 ;
18773 wxDC *arg2 = 0 ;
18774 wxRect *arg3 = 0 ;
18775 int arg4 = (int) 1 ;
18776 wxRect temp3 ;
18777 PyObject * obj0 = 0 ;
18778 PyObject * obj1 = 0 ;
18779 PyObject * obj2 = 0 ;
8edf1c75 18780 PyObject * obj3 = 0 ;
d14a1e28
RD
18781 char *kwnames[] = {
18782 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18783 };
18784
8edf1c75 18785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
18786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18788 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18789 SWIG_POINTER_EXCEPTION | 0)) == -1)
18790 SWIG_fail;
d14a1e28 18791 if (arg2 == NULL) {
2f4c0a16
RD
18792 PyErr_SetString(PyExc_TypeError,"null reference");
18793 SWIG_fail;
d14a1e28
RD
18794 }
18795 {
18796 arg3 = &temp3;
18797 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18798 }
8edf1c75 18799 if (obj3) {
2f4c0a16
RD
18800 arg4 = (int) SWIG_AsInt(obj3);
18801 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 18802 }
d14a1e28
RD
18803 {
18804 PyThreadState* __tstate = wxPyBeginAllowThreads();
18805 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18806
18807 wxPyEndAllowThreads(__tstate);
18808 if (PyErr_Occurred()) SWIG_fail;
18809 }
18810 Py_INCREF(Py_None); resultobj = Py_None;
18811 return resultobj;
18812 fail:
18813 return NULL;
18814}
18815
18816
18817static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18818 PyObject *resultobj;
18819 wxEffects *arg1 = (wxEffects *) 0 ;
18820 wxRect *arg2 = 0 ;
18821 wxDC *arg3 = 0 ;
18822 wxBitmap *arg4 = 0 ;
18823 bool result;
18824 wxRect temp2 ;
18825 PyObject * obj0 = 0 ;
18826 PyObject * obj1 = 0 ;
18827 PyObject * obj2 = 0 ;
18828 PyObject * obj3 = 0 ;
18829 char *kwnames[] = {
18830 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18831 };
18832
18833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
18834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18836 {
18837 arg2 = &temp2;
18838 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18839 }
2f4c0a16
RD
18840 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18841 SWIG_POINTER_EXCEPTION | 0)) == -1)
18842 SWIG_fail;
d14a1e28 18843 if (arg3 == NULL) {
2f4c0a16
RD
18844 PyErr_SetString(PyExc_TypeError,"null reference");
18845 SWIG_fail;
d14a1e28 18846 }
2f4c0a16
RD
18847 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18848 SWIG_POINTER_EXCEPTION | 0)) == -1)
18849 SWIG_fail;
d14a1e28 18850 if (arg4 == NULL) {
2f4c0a16
RD
18851 PyErr_SetString(PyExc_TypeError,"null reference");
18852 SWIG_fail;
d14a1e28
RD
18853 }
18854 {
18855 PyThreadState* __tstate = wxPyBeginAllowThreads();
18856 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18857
18858 wxPyEndAllowThreads(__tstate);
18859 if (PyErr_Occurred()) SWIG_fail;
18860 }
4f89f6a3
RD
18861 {
18862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18863 }
d14a1e28
RD
18864 return resultobj;
18865 fail:
18866 return NULL;
18867}
18868
18869
18870static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18871 PyObject *obj;
18872 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18873 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18874 Py_INCREF(obj);
18875 return Py_BuildValue((char *)"");
18876}
18877static PyMethodDef SwigMethods[] = {
18878 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18879 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18880 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18881 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18882 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18883 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18884 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18885 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18886 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
328fcd84 18887 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18888 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18889 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18890 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18891 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18892 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
9fd4be55 18893 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
328fcd84
RD
18894 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18895 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18896 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18897 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18898 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
328fcd84 18899 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18900 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18901 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18902 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18903 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18904 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18905 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18906 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18907 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18908 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18909 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18910 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18911 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18912 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18913 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18914 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18915 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18916 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18917 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18918 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18919 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18920 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18921 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
db914595 18922 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
328fcd84 18923 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
9fd4be55 18924 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18925 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
18926 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
18927 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18928 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
18929 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
18930 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18931 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
18932 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18933 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18934 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18935 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18936 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18937 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18938 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18939 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18940 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18941 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18942 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18943 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18944 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18945 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18946 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18947 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18948 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18949 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
18950 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
18951 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
18952 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18953 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18954 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18955 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18956 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18957 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18958 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18959 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18960 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18961 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18962 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18963 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18964 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18965 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18966 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18967 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
18968 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
18969 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
fe763115
RD
18970 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18971 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18972 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18973 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18974 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18975 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18976 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18977 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18978 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18979 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18980 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18981 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18982 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
18983 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
18984 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18985 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18986 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18987 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18988 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18989 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18990 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18991 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
18992 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18993 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18994 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18995 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18996 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18997 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18998 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18999 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
19000 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
19001 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
19002 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
19003 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
19004 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
19005 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
19006 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
19007 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
19008 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
19009 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
19010 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
19011 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
19012 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
19013 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
19014 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
19015 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
19016 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
19017 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
19018 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
19019 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
19020 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
19021 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
19022 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
19023 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
19024 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
19025 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
19026 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
19027 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
19028 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
19029 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
19030 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
19031 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
19032 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
19033 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
19034 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
19035 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
19036 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
19037 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
19038 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
19039 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
19040 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
19041 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
19042 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
19043 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
19044 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
19045 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
19046 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
19047 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
19048 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
19049 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
19050 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
19051 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
19052 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19053 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19054 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
19055 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
19056 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
19057 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
19058 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
19059 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
19060 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
19061 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
19062 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
19063 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
19064 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
19065 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
19066 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19067 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19068 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
19069 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
19070 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19071 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
19072 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
19073 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19074 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19075 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
19076 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19077 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19078 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
19079 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
19080 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19081 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19082 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
19083 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19084 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19085 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19086 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
19087 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
19088 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
19089 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
19090 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
19091 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
19092 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
19093 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
19094 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19095 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19096 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19097 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19098 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
19099 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
19100 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
19101 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
19102 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
19103 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
19104 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
19105 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
19106 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
19107 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19108 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
19109 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
19110 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
19111 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
19112 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
19113 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
19114 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
19115 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
19116 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
19117 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
19118 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
19119 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
19120 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
19121 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
19122 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
19123 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
19124 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
19125 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
19126 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19127 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
19128 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
19129 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
19130 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19131 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19132 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19133 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19134 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
19135 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
19136 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19137 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19138 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
19139 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
19140 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
19141 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19142 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19143 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19144 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19145 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
19146 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19147 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
19148 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
19149 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
19150 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19151 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19152 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19153 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19154 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
19155 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19156 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19157 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
19158 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
19159 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
19160 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
19161 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
19162 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
19163 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
19164 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
19165 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
19166 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
19167 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
19168 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
19169 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
19170 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
19171 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
19172 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
19173 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
19174 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
19175 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
19176 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
19177 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
19178 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
19179 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
19180 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
19181 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
19182 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
19183 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
19184 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
19185 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19186 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
19187 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19188 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
19189 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
19190 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
19191 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
19192 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
19193 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
19194 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19195 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19196 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
19197 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
19198 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
19199 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
19200 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
19201 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
19202 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
19203 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
19204 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
19205 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
19206 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
19207 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
19208 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
19209 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
19210 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
19211 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
19212 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
19213 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
19214 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
19215 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
19216 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
19217 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
19218 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
19219 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
19220 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
19221 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
19222 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
19223 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
19224 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
19225 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
19226 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
19227 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
19228 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
19229 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
19230 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
19231 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
19232 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
19233 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
19234 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
19235 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
19236 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
19237 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
19238 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
19239 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
19240 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
19241 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
19242 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
19243 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
19244 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
19245 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
19246 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
19247 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
19248 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
19249 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
19250 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
19251 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
19252 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
19253 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
19254 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
19255 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
19256 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19257 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
f0983263 19258 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
19259 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
19260 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
19261 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
19262 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
19263 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
19264 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
19265 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
19266 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
19267 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
19268 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
19269 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
db914595 19270 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
d14a1e28 19271 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
44127b65 19272 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 19273 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
44127b65 19274 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
19275 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
19276 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
19277 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
19278 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
19279 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
19280 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
19281 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
19282 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
19283 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
19284 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
19285 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
19286 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
19287 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
19288 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19289 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
19290 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
19291 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
19292 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
19293 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
19294 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
19295 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
19296 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
19297 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
19298 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
19299 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
19300 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
19301 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19302 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
d14a1e28 19303 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
44127b65 19304 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 19305 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
d14a1e28 19306 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
44127b65 19307 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
19308 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19309 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
19310 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19311 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19312 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
19313 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
19314 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
19315 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19316 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
19317 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
19318 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
19319 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
19320 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19321 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
19322 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
19323 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
19324 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
19325 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
19326 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
19327 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
19328 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
19329 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
19330 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
19331 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
db914595
RD
19332 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
19333 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
328fcd84 19334 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
19335 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
19336 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
328fcd84 19337 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
19338 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
19339 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
19340 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
19341 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19342 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19343 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
19344 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
19345 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
19346 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
19347 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
19348 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
19349 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
19350 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
19351 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
19352 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
19353 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
19354 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
19355 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
19356 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
19357 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
19358 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
19359 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
19360 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
19361 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
19362 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
19363 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
19364 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
19365 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
19366 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
19367 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
19368 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
19369 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
19370 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
19371 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
19372 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
19373 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
19374 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
19375 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
19376 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
19377 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
19378 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
19379 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
19380 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
19381 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
19382 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
19383 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
19384 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
19385 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
19386 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
19387 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
19388 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
19389 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
19390 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
19391 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
19392 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
19393 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
19394 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19395 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19396 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
19397 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
19398 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
19399 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
19400 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
19401 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
19402 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
19403 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
19404 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
19405 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
d14a1e28
RD
19406 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
19407 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19408 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
19409 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
19410 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19411 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19412 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19413 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
19414 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
19415 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19416 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19417 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
19418 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
19419 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
19420 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
19421 { NULL, NULL }
19422};
19423
19424
19425/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19426
423f194a
RD
19427static void *_p_wxControlTo_p_wxWindow(void *x) {
19428 return (void *)((wxWindow *) ((wxControl *) x));
19429}
19430static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19431 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19432}
19433static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19434 return (void *)((wxWindow *) ((wxMenuBar *) x));
19435}
d14a1e28
RD
19436static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19437 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19438}
19439static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19440 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19441}
d14a1e28
RD
19442static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19443 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19444}
19445static void *_p_wxPenTo_p_wxObject(void *x) {
19446 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19447}
19448static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19449 return (void *)((wxObject *) ((wxRegionIterator *) x));
19450}
19451static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19452 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19453}
19454static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19455 return (void *)((wxObject *) ((wxSizerItem *) x));
19456}
19457static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19458 return (void *)((wxObject *) ((wxColourDatabase *) x));
19459}
19460static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19461 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19462}
19463static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19464 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19465}
19466static void *_p_wxIconTo_p_wxObject(void *x) {
19467 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19468}
19469static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19470 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19471}
19472static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19473 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19474}
19475static void *_p_wxSizerTo_p_wxObject(void *x) {
19476 return (void *)((wxObject *) ((wxSizer *) x));
19477}
19478static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19479 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19480}
19481static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19482 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19483}
19484static void *_p_wxPenListTo_p_wxObject(void *x) {
19485 return (void *)((wxObject *) ((wxPenList *) x));
19486}
19487static void *_p_wxEventTo_p_wxObject(void *x) {
19488 return (void *)((wxObject *) ((wxEvent *) x));
19489}
19490static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19491 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19492}
19493static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19494 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19495}
19496static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19497 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19498}
19499static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19500 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19501}
19502static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19503 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19504}
19505static void *_p_wxDCTo_p_wxObject(void *x) {
19506 return (void *)((wxObject *) ((wxDC *) x));
19507}
19508static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19509 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19510}
19511static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19512 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19513}
19514static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19515 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19516}
19517static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19518 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19519}
19520static void *_p_wxControlTo_p_wxObject(void *x) {
19521 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19522}
19523static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19524 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19525}
19526static void *_p_wxClientDCTo_p_wxObject(void *x) {
19527 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19528}
19529static void *_p_wxFSFileTo_p_wxObject(void *x) {
19530 return (void *)((wxObject *) ((wxFSFile *) x));
19531}
19532static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19533 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19534}
19535static void *_p_wxRegionTo_p_wxObject(void *x) {
19536 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19537}
19538static void *_p_wxPySizerTo_p_wxObject(void *x) {
19539 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19540}
19541static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19542 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19543}
19544static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19545 return (void *)((wxObject *) ((wxGDIObject *) x));
19546}
19547static void *_p_wxEffectsTo_p_wxObject(void *x) {
19548 return (void *)((wxObject *) ((wxEffects *) x));
19549}
19550static void *_p_wxPyEventTo_p_wxObject(void *x) {
19551 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19552}
19553static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19554 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19555}
19556static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19557 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19558}
19559static void *_p_wxShowEventTo_p_wxObject(void *x) {
19560 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19561}
19562static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19563 return (void *)((wxObject *) ((wxMenuItem *) x));
19564}
19565static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19566 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19567}
19568static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19569 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19570}
19571static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19572 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19573}
19574static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19575 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19576}
19577static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19578 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19579}
19580static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19581 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19582}
19583static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19584 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19585}
19586static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19587 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19588}
19589static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19590 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19591}
19592static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19593 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19594}
19595static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19596 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19597}
19598static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19599 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19600}
19601static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19602 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19603}
19604static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19605 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19606}
19607static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19608 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19609}
19610static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19611 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19612}
19613static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19614 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19615}
19616static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19617 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19618}
19619static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19620 return (void *)((wxObject *) ((wxImageHandler *) x));
19621}
19622static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19623 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19624}
19625static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19626 return (void *)((wxObject *) ((wxEvtHandler *) x));
19627}
19628static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19629 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19630}
19631static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19632 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19633}
19634static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19635 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19636}
19637static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19638 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19639}
41f1cec7
RD
19640static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19641 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19642}
d14a1e28
RD
19643static void *_p_wxImageTo_p_wxObject(void *x) {
19644 return (void *)((wxObject *) ((wxImage *) x));
19645}
19646static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19647 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19648}
d14a1e28
RD
19649static void *_p_wxPaletteTo_p_wxObject(void *x) {
19650 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19651}
19652static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19653 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19654}
19655static void *_p_wxImageListTo_p_wxObject(void *x) {
19656 return (void *)((wxObject *) ((wxImageList *) x));
19657}
19658static void *_p_wxCursorTo_p_wxObject(void *x) {
19659 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19660}
19661static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19662 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19663}
19664static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19665 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19666}
19667static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19668 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19669}
19670static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19671 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19672}
19673static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19674 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19675}
19676static void *_p_wxWindowTo_p_wxObject(void *x) {
19677 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19678}
19679static void *_p_wxMenuTo_p_wxObject(void *x) {
19680 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19681}
19682static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19683 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19684}
19685static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19686 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19687}
19688static void *_p_wxBrushListTo_p_wxObject(void *x) {
19689 return (void *)((wxObject *) ((wxBrushList *) x));
19690}
19691static void *_p_wxPyPenTo_p_wxObject(void *x) {
19692 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19693}
19694static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19695 return (void *)((wxObject *) ((wxFileSystem *) x));
19696}
19697static void *_p_wxBitmapTo_p_wxObject(void *x) {
19698 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19699}
19700static void *_p_wxMaskTo_p_wxObject(void *x) {
19701 return (void *)((wxObject *) ((wxMask *) x));
19702}
19703static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19704 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19705}
19706static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19707 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19708}
19709static void *_p_wxPyAppTo_p_wxObject(void *x) {
19710 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19711}
19712static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19713 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19714}
19715static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19716 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19717}
19718static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19719 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19720}
19721static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19722 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19723}
19724static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19725 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19726}
19727static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19728 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19729}
19730static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19731 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19732}
19733static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19734 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19735}
19736static void *_p_wxFontTo_p_wxObject(void *x) {
19737 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19738}
19739static void *_p_wxBrushTo_p_wxObject(void *x) {
19740 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19741}
19742static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19743 return (void *)((wxObject *) ((wxMetaFile *) x));
19744}
19745static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19746 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19747}
19748static void *_p_wxColourTo_p_wxObject(void *x) {
19749 return (void *)((wxObject *) ((wxColour *) x));
19750}
19751static void *_p_wxFontListTo_p_wxObject(void *x) {
19752 return (void *)((wxObject *) ((wxFontList *) x));
19753}
19754static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19755 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19756}
19757static void *_p_wxValidatorTo_p_wxObject(void *x) {
19758 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19759}
423f194a
RD
19760static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19761 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
d14a1e28 19762}
423f194a
RD
19763static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19764 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
d14a1e28 19765}
423f194a
RD
19766static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19767 return (void *)((wxDC *) ((wxScreenDC *) x));
19768}
19769static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19770 return (void *)((wxDC *) ((wxMirrorDC *) x));
19771}
19772static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19773 return (void *)((wxDC *) ((wxMemoryDC *) x));
19774}
19775static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19776 return (void *)((wxDC *) ((wxWindowDC *) x));
19777}
19778static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19779 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19780}
19781static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19782 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19783}
19784static void *_p_wxClientDCTo_p_wxDC(void *x) {
19785 return (void *)((wxDC *) ((wxClientDC *) x));
19786}
19787static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19788 return (void *)((wxDC *) ((wxPaintDC *) x));
19789}
19790static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19791 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19792}
19793static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19794 return (void *)((wxDC *) ((wxPrinterDC *) x));
19795}
19796static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19797 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19798}
19799static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19800 return (void *)((wxGDIObject *) ((wxIcon *) x));
19801}
19802static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19803 return (void *)((wxGDIObject *) ((wxPalette *) x));
19804}
19805static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19806 return (void *)((wxGDIObject *) ((wxPen *) x));
19807}
19808static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19809 return (void *)((wxGDIObject *) ((wxFont *) x));
19810}
19811static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19812 return (void *)((wxGDIObject *) ((wxCursor *) x));
19813}
19814static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19815 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19816}
19817static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19818 return (void *)((wxGDIObject *) ((wxRegion *) x));
19819}
19820static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19821 return (void *)((wxGDIObject *) ((wxBrush *) x));
19822}
19823static void *_p_wxPyPenTo_p_wxPen(void *x) {
19824 return (void *)((wxPen *) ((wxPyPen *) x));
d14a1e28 19825}
2f4c0a16
RD
19826static 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}};
19827static 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}};
19828static 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}};
19829static 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}};
19830static 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}};
19831static 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}};
19832static 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}};
19833static 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}};
19834static 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}};
19835static 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}};
19836static 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}};
19837static 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}};
19838static 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}};
19839static 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}};
19840static 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}};
19841static 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}};
19842static 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}};
19843static 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}};
19844static 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}};
19845static 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}};
19846static 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}};
19847static 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}};
19848static 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_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_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_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_wxPyPen", _p_wxPyPenTo_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}};
19849static 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}};
19850static 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}};
19851static 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}};
19852static 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}};
19853static 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}};
19854static 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}};
19855static 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}};
19856static 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}};
19857static 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}};
19858static 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}};
19859static 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}};
19860static 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}};
19861static 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}};
19862static 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_wxPyPen", _p_wxPyPenTo_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}};
19863static 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}};
19864static 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}};
19865static 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}};
19866static 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}};
19867static 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}};
19868static 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}};
19869static 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}};
19870static 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}};
19871static 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}};
19872static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen, 0, 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19873static 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}};
19874static 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}};
19875static 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}};
19876static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0, 0, 0, 0},{"_p_wxPyPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19877static 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}};
19878static 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}};
19879static 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}};
19880static 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}};
19881static 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}};
d14a1e28
RD
19882
19883static swig_type_info *swig_types_initial[] = {
19884_swigt__p_wxPostScriptDC,
d14a1e28
RD
19885_swigt__p_wxBrush,
19886_swigt__p_wxColour,
d14a1e28
RD
19887_swigt__p_wxDC,
19888_swigt__p_wxMirrorDC,
19889_swigt__p_byte,
19890_swigt__p_wxPyFontEnumerator,
8edf1c75 19891_swigt__p_char,
d14a1e28
RD
19892_swigt__p_wxIconLocation,
19893_swigt__p_wxImage,
19894_swigt__p_wxMetaFileDC,
19895_swigt__p_wxMask,
19896_swigt__p_wxFont,
19897_swigt__p_wxWindow,
19898_swigt__p_wxSize,
19899_swigt__p_double,
19900_swigt__p_wxMemoryDC,
19901_swigt__p_wxFontMapper,
d14a1e28
RD
19902_swigt__p_wxEffects,
19903_swigt__p_wxNativeEncodingInfo,
19904_swigt__p_wxPalette,
19905_swigt__p_wxBitmap,
19906_swigt__p_wxObject,
19907_swigt__p_wxRegionIterator,
19908_swigt__p_wxRect,
19909_swigt__p_wxString,
19910_swigt__p_wxPrinterDC,
19911_swigt__p_wxIconBundle,
19912_swigt__p_wxPoint,
19913_swigt__p_wxDash,
19914_swigt__p_wxScreenDC,
19915_swigt__p_wxCursor,
19916_swigt__p_wxClientDC,
d14a1e28
RD
19917_swigt__p_wxBufferedDC,
19918_swigt__p_wxImageList,
19919_swigt__p_unsigned_char,
19920_swigt__p_wxGDIObject,
d14a1e28 19921_swigt__p_wxIcon,
8edf1c75 19922_swigt__p_wxLocale,
d14a1e28
RD
19923_swigt__p_wxRegion,
19924_swigt__p_wxLanguageInfo,
19925_swigt__p_wxConfigBase,
19926_swigt__p_wxWindowDC,
19927_swigt__p_wxPrintData,
19928_swigt__p_wxBrushList,
19929_swigt__p_wxFontList,
19930_swigt__p_wxPen,
19931_swigt__p_wxBufferedPaintDC,
19932_swigt__p_wxPaintDC,
19933_swigt__p_wxPenList,
d14a1e28
RD
19934_swigt__p_wxPyPen,
19935_swigt__p_int,
19936_swigt__p_wxMetaFile,
19937_swigt__p_wxNativeFontInfo,
19938_swigt__p_wxEncodingConverter,
19939_swigt__p_wxColourDatabase,
199400
19941};
19942
19943
19944/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19945
19946static swig_const_info swig_const_table[] = {
d14a1e28
RD
19947{0}};
19948
19949#ifdef __cplusplus
19950}
19951#endif
19952
19953#ifdef __cplusplus
19954extern "C"
19955#endif
19956SWIGEXPORT(void) SWIG_init(void) {
19957 static PyObject *SWIG_globals = 0;
19958 static int typeinit = 0;
19959 PyObject *m, *d;
19960 int i;
19961 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19962 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19963 d = PyModule_GetDict(m);
19964
19965 if (!typeinit) {
19966 for (i = 0; swig_types_initial[i]; i++) {
19967 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19968 }
19969 typeinit = 1;
19970 }
19971 SWIG_InstallConstants(d,swig_const_table);
19972
2f4c0a16
RD
19973 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19974 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19975 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19976 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19977 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19978 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19979 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19980 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19981 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19982 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19983 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19984 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19985 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19986 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19987 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19988 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19989 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19990 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19991 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19992 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19993 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19994 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19995 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19996 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19997 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19998 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19999 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
20000 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
20001 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
20002 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
20003 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
20004 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
20005 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
20006 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
20007 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
20008 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
20009 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
20010 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
20011 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
20012 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
20013 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
20014 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
20015 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
20016 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
20017 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
20018 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
20019 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
20020 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
20021 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
20022 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
20023 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
20024 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
20025 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
20026 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
20027 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
20028 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
20029 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
20030 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
20031 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
20032 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
20033 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
20034 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
20035 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
20036 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
20037 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
20038 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
20039 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
20040 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
20041 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
20042 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
20043 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
20044 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
20045 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
20046 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
20047 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
20048 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
20049 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
20050 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
20051 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
20052 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
20053 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
20054 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
20055 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
20056 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
20057 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
20058 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
20059 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
20060 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
20061 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
20062 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
20063 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
20064 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
20065 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
20066 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
20067 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
20068 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
20069 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
20070 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
20071 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
20072 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
20073 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
20074 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
20075 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
20076 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
20077 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
20078 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
20079 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
20080 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
20081 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
20082 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
20083 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
20084 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
20085 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
20086 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
20087 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
20088 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
20089 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
20090 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
20091 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
20092 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
20093 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
20094 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
20095 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
20096 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
20097 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
20098 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
d14a1e28
RD
20099
20100 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
20101
2f4c0a16
RD
20102 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
20103 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
20104 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
20105 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
20106 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
20107 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
20108 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
20109 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
20110 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
20111 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
20112 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
20113 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
20114 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
20115 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
20116 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
20117 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
20118 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
20119 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
20120 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
20121 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
20122 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
20123 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
20124 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
20125 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
20126 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
20127 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
20128 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
20129 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
20130 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
20131 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
20132 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
20133 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
20134 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
20135 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
20136 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
20137 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
20138 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
20139 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
20140 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
20141 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
20142 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
20143 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
20144 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
20145 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
20146 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
20147 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
20148 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
20149 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
20150 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
20151 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
20152 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
20153 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
20154 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
20155 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
20156 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
20157 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
20158 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
20159 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
20160 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
20161 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
20162 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
20163 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20164 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
20165 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20166 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
20167 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
20168 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
20169 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20170 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20171 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20172 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20173 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20174 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
20175 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
20176 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
20177 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
20178 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
20179 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
20180 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
20181 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
20182 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
20183 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20184 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
20185 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
20186 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
20187 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
20188 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
20189 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
20190 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20191 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
20192 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20193 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20194 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
20195 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
20196 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
20197 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
20198 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
20199 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
20200 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
20201 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
20202 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
20203 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
20204 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
20205 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
20206 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
20207 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
20208 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
20209 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
20210 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
20211 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
20212 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
20213 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
20214 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
20215 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
20216 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
20217 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
20218 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
20219 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
20220 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
20221 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
20222 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
20223 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
20224 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
20225 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
20226 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
20227 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
20228 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
20229 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
20230 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
20231 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
20232 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
20233 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
20234 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20235 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
20236 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
20237 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
20238 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
20239 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
20240 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
20241 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
20242 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
20243 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
20244 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
20245 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20246 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20247 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
20248 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
20249 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
20250 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
20251 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
20252 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
20253 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20254 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
20255 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
20256 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
20257 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
20258 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
20259 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20260 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
20261 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
20262 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
20263 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
20264 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
20265 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20266 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
20267 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
20268 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
20269 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
20270 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
20271 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
20272 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
20273 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
20274 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
20275 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
20276 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
20277 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
20278 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
20279 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
20280 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
20281 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
20282 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20283 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20284 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
20285 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20286 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
20287 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
20288 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
20289 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
20290 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
20291 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
20292 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
20293 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
20294 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20295 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
20296 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
20297 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
20298 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
20299 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
20300 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
20301 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
20302 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
20303 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
20304 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
20305 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
20306 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
20307 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
20308 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
20309 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
20310 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
20311 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
20312 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
20313 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
20314 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
20315 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
20316 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
20317 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
20318 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
20319 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
20320 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
20321 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
20322 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
20323 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
20324 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
20325 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
20326 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
20327 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
20328 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
20329 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
20330 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
20331 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
20332 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
20333 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
20334 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
20335 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
20336 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
20337 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
20338 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
20339 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
20340 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
20341 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
20342 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
20343 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
20344 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
20345 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
20346 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
20347 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
20348 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
20349 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
20350 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
20351 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
20352 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
20353 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
20354 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
d14a1e28
RD
20355 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20356 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20357 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20358 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20359 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20360 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20361 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20362 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20363 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20364 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20365 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20366 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20367 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20368 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20369 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20370 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20371 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20372 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20373 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20374 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20375 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20376 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20377 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20378 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20379 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20380 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20381 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20382 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20383 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20384 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20385 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20386 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20387 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20388 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20389 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20390 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20391 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20392 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20393 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20394 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20395 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20396 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20397 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20398 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20399 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20400 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20401 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
44127b65
RD
20402
20403 // Work around a chicken/egg problem in drawlist.cpp
20404 wxPyDrawList_SetAPIPtr();
20405
d14a1e28
RD
20406}
20407