]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/gdi_wrap.cpp
Fixes so bg colors in a notebook on XP are visible again
[wxWidgets.git] / wxPython / src / gtk / gdi_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
a41e16b6 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
c9c7117a
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
cc6dd355
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
cc6dd355
RD
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
d14a1e28
RD
85#endif
86
87#ifdef SWIG_GLOBAL
cc6dd355 88# define SWIGRUNTIME(a) SWIGEXPORT(a)
d14a1e28 89#else
cc6dd355 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 {
cc6dd355 101 const char *name;
d14a1e28
RD
102 swig_converter_func converter;
103 const char *str;
cc6dd355 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 *);
cc6dd355
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)
a41e16b6 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
994141e6 186typedef double (*py_objasdbl_conv)(PyObject *obj);
d14a1e28 187
cc6dd355
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
9d1d5697 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]
e811c8ce
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]
994141e6
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]
e811c8ce 246#define SWIGTYPE_p_wxIcon swig_types[37]
994141e6
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
15afbcd0 277/* Auxiliar swig macros */
994141e6 278
994141e6 279#ifdef __cplusplus
15afbcd0 280#define SWIGSTATICINLINE(a) static inline a
994141e6 281#define SWIGSTATIC(a) static a
15afbcd0
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)
994141e6 287
994141e6 288#ifdef HAVE_NUMERIC_CAST
15afbcd0 289#define swig_numeric_cast(type,a) numeric_cast<type>(a)
994141e6 290#else
15afbcd0 291#define swig_numeric_cast(type,a) static_cast<type>(a)
994141e6
RD
292#endif
293
15afbcd0
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 */
994141e6
RD
306
307
15afbcd0
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
994141e6
RD
318
319
d14a1e28
RD
320#include "wx/wxPython/wxPython.h"
321#include "wx/wxPython/pyclasses.h"
322
d14a1e28 323
b2dc1044 324 static const wxString wxPyEmptyString(wxEmptyString);
994141e6 325
15afbcd0
RD
326SWIGSTATICINLINE(bool)
327SWIG_AsBool(PyObject *obj)
994141e6
RD
328{
329 return PyObject_IsTrue(obj) ? true : false;
330}
331
332
15afbcd0
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
15afbcd0
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);
15afbcd0 388 if ( !PyErr_Occurred() && (i < 0)) {
69223c70 389 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
15afbcd0
RD
390 }
391 return i;
392 }
393}
394
395
396SWIGSTATICINLINE(unsigned char)
397SWIG_AsUnsignedChar(PyObject *obj)
994141e6 398{
15afbcd0
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 }
994141e6
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 }
b88bce5f
RD
445unsigned long wxColour_GetRGB(wxColour *self){
446 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
447 }
448
15afbcd0
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
15afbcd0
RD
482#if INT_MAX != LONG_MAX
483SWIGSTATICINLINE(int)
484SWIG_AsInt(PyObject *obj)
994141e6 485{
15afbcd0
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 }
994141e6
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 }
22faec7d
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 }
603void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
604 wxMask *mask = new wxMask(*self, colour);
605 self->SetMask(mask);
606 }
4276dc52
RD
607bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
608bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
0482c494
RD
609wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
610 if ( !colour.Ok() )
611 return new wxMask(bitmap, *wxBLACK);
612 else
613 return new wxMask(bitmap, colour);
614 }
d14a1e28
RD
615
616#include <wx/iconbndl.h>
617
618wxIcon *new_wxIcon(wxBitmap const &bmp){
619 wxIcon* icon = new wxIcon();
620 icon->CopyFromBitmap(bmp);
621 return icon;
622 }
623wxIcon *new_wxIcon(PyObject *listOfStrings){
624 char** cArray = NULL;
625 wxIcon* icon;
626
627 cArray = ConvertListOfStrings(listOfStrings);
628 if (! cArray)
629 return NULL;
630 icon = new wxIcon(cArray);
631 delete [] cArray;
632 return icon;
633 }
634wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
635
636
637
638 return new wxIconLocation(*filename);
639
640 }
641void wxIconLocation_SetIndex(wxIconLocation *self,int num){
642
643
644
645 // do nothing
646
647 }
648int wxIconLocation_GetIndex(wxIconLocation *self){
649
650
651
652 return -1;
653
654 }
994141e6 655
15afbcd0
RD
656SWIGSTATICINLINE(int)
657SWIG_CheckLong(PyObject* obj)
994141e6 658{
15afbcd0
RD
659 SWIG_AsLong(obj);
660 if (PyErr_Occurred()) {
661 PyErr_Clear();
662 return 0;
663 } else {
664 return 1;
665 }
994141e6
RD
666}
667
15afbcd0
RD
668wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
669#ifdef __WXGTK__
e811c8ce 670 wxCHECK_MSG(False, NULL,
15afbcd0
RD
671 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
672#else
673 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
674#endif
d14a1e28
RD
675 }
676
677
678void wxRegionIterator_Next(wxRegionIterator *self){
679 (*self) ++;
680 }
681bool wxRegionIterator___nonzero__(wxRegionIterator *self){
682 return self->operator bool();
683 }
684
685#include <wx/fontutil.h>
686#include <wx/fontmap.h>
687#include <wx/fontenum.h>
688
689wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
690 return self->ToString();
691 }
692
693 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
694 static wxNativeEncodingInfo info;
695 if ( wxGetNativeFontEncoding(encoding, &info) )
696 return &info;
697 else
698 return NULL;
699 }
700
701PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
702 wxFontEncoding alt_enc;
703 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
704 return PyInt_FromLong(alt_enc);
705 else {
706 Py_INCREF(Py_None);
707 return Py_None;
708 }
709 }
710wxFont *new_wxFont(wxString const &info){
711 wxNativeFontInfo nfi;
712 nfi.FromString(info);
713 return new wxFont(nfi);
714 }
715wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
716 return wxFont::New(pointSize, family, flags, face, encoding);
717 }
22faec7d
RD
718bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
719bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
d14a1e28
RD
720
721class wxPyFontEnumerator : public wxFontEnumerator {
722public:
723 wxPyFontEnumerator() {}
724 ~wxPyFontEnumerator() {}
725
726 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
727 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
728
729 PYPRIVATE;
730};
731
732IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
733IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
734
735
736PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
737 wxArrayString* arr = self->GetEncodings();
738 return wxArrayString2PyList_helper(*arr);
739 }
740PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
741 wxArrayString* arr = self->GetFacenames();
742 return wxArrayString2PyList_helper(*arr);
743 }
744
745
746
747#include "wx/wxPython/pydrawxxx.h"
748
e811c8ce 749wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
d14a1e28
RD
750 wxColour col;
751 self->GetPixel(x, y, &col);
752 return col;
753 }
754wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
755 wxColour col;
756 self->GetPixel(pt, &col);
757 return col;
758 }
994141e6 759
15afbcd0
RD
760SWIGSTATICINLINE(double)
761SWIG_AsDouble(PyObject *obj)
994141e6 762{
69223c70
RD
763 if (PyNumber_Check(obj))
764 return PyFloat_AsDouble(obj);
765 else {
766 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
767 obj->ob_type->tp_name);
768 PyErr_SetObject(PyExc_TypeError, errmsg);
769 Py_DECREF(errmsg);
770 return 0;
771 }
15afbcd0
RD
772}
773
774
775SWIGSTATICINLINE(int)
776SWIG_CheckDouble(PyObject* obj)
777{
778 SWIG_AsDouble(obj);
779 if (PyErr_Occurred()) {
780 PyErr_Clear();
781 return 0;
782 } else {
783 return 1;
784 }
994141e6
RD
785}
786
d14a1e28
RD
787wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
788 wxRect rv;
789 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
790 return rv;
791 }
792wxRect wxDC_GetClippingRect(wxDC *self){
793 wxRect rect;
794 self->GetClippingBox(rect);
795 return rect;
796 }
db914595
RD
797wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
798 wxArrayInt widths;
799 self->GetPartialTextExtents(text, widths);
800 return widths;
801 }
d14a1e28
RD
802PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
803 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
804 }
805PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
806 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
807 }
808PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
809 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
810 }
811PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
812 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
813 }
814PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
815 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
816 }
817PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
818 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
819 }
820
821static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
822 *x1 = dc->MinX();
823 *y1 = dc->MinY();
824 *x2 = dc->MaxX();
825 *y2 = dc->MaxY();
826}
827
828
b88bce5f 829//-=-=-=-=-=-=-=-=-=-=-
15afbcd0
RD
830
831#if 1
832// Use the standard wxBufferedDC
b88bce5f 833#include <wx/dcbuffer.h>
b88bce5f 834
15afbcd0 835#else
b88bce5f 836
15afbcd0 837// Or, temporarily put a set of classes here similar to the old buffered DC
b88bce5f
RD
838// classes until the real ones can be fixed to work "correctly" again.
839
840class wxBufferedDC : public wxMemoryDC
841{
842private:
843 wxDC *m_dc;
844 wxBitmap m_buffer;
845
846public:
847
848 wxBufferedDC() : m_dc( 0 ) {}
849
850 wxBufferedDC( wxDC *dc, const wxBitmap &buffer )
851 : m_dc( dc ), m_buffer( buffer )
852 {
853 SelectObject( m_buffer );
854 }
855
856 wxBufferedDC( wxDC *dc, const wxSize &area )
857 : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() )
858 {
859 SelectObject( m_buffer );
860 }
861
862 ~wxBufferedDC() {
863 if( m_dc != 0 )
864 UnMask();
865 }
866
867
868 void Init( wxDC *dc, const wxBitmap &buffer ) {
869 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
870 _T("wxBufferedDC already initialised") );
871 m_dc = dc;
872 m_buffer = buffer;
873 SelectObject( m_buffer );
874 }
875
876 void Init( wxDC *dc, const wxSize &area ) {
877 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
878 _T("wxBufferedDC already initialised") );
879 m_dc = dc;
880 m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() );
881 SelectObject( m_buffer );
882 }
883
884 void UnMask() {
885 wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") );
886 m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 );
887 m_dc = 0;
888 }
889};
890
891
892class wxBufferedPaintDC : public wxBufferedDC
893{
894private:
895 wxPaintDC m_paintdc;
896
897public:
898 wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap )
899 : m_paintdc( window )
900 {
901 window->PrepareDC( m_paintdc );
902
903 if( buffer != wxNullBitmap )
904 Init( &m_paintdc, buffer );
905 else
906 Init( &m_paintdc, window->GetClientSize() );
907 }
908
909 ~wxBufferedPaintDC() {
910 UnMask();
911 }
912};
913
914#endif
915//-=-=-=-=-=-=-=-=-=-=-
916
917
d14a1e28
RD
918#include <wx/dcps.h>
919
920
921class wxMetaFile : public wxObject {
922public:
923 wxMetaFile(const wxString&)
39f61e25 924 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
925};
926
927class wxMetaFileDC : public wxClientDC {
928public:
929 wxMetaFileDC(const wxString&, int, int, const wxString&)
39f61e25 930 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
931};
932
933
934
935class wxPrinterDC : public wxClientDC {
936public:
937 wxPrinterDC(const wxPrintData&)
39f61e25 938 { wxPyRaiseNotImplemented(); }
33b885b9 939
d14a1e28 940// wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
39f61e25 941// { wxPyRaiseNotImplemented(); }
d14a1e28
RD
942};
943
944
945
946void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
947 self->AddColour(name, wxColour(red, green, blue));
948 }
949
d14a1e28
RD
950#include <wx/effects.h>
951
952#ifdef __cplusplus
953extern "C" {
954#endif
955static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
956 PyObject *resultobj;
957 wxGDIObject *result;
958 char *kwnames[] = {
959 NULL
960 };
961
962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
963 {
964 PyThreadState* __tstate = wxPyBeginAllowThreads();
965 result = (wxGDIObject *)new wxGDIObject();
966
967 wxPyEndAllowThreads(__tstate);
968 if (PyErr_Occurred()) SWIG_fail;
969 }
15afbcd0 970 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
d14a1e28
RD
971 return resultobj;
972 fail:
973 return NULL;
974}
975
976
977static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
978 PyObject *resultobj;
979 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
980 PyObject * obj0 = 0 ;
981 char *kwnames[] = {
982 (char *) "self", NULL
983 };
984
985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
15afbcd0
RD
986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
988 {
989 PyThreadState* __tstate = wxPyBeginAllowThreads();
990 delete arg1;
991
992 wxPyEndAllowThreads(__tstate);
993 if (PyErr_Occurred()) SWIG_fail;
994 }
995 Py_INCREF(Py_None); resultobj = Py_None;
996 return resultobj;
997 fail:
998 return NULL;
999}
1000
1001
1002static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1003 PyObject *resultobj;
1004 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1005 bool result;
1006 PyObject * obj0 = 0 ;
1007 char *kwnames[] = {
1008 (char *) "self", NULL
1009 };
1010
1011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
15afbcd0
RD
1012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1014 {
1015 PyThreadState* __tstate = wxPyBeginAllowThreads();
1016 result = (bool)(arg1)->GetVisible();
1017
1018 wxPyEndAllowThreads(__tstate);
1019 if (PyErr_Occurred()) SWIG_fail;
1020 }
4f89f6a3
RD
1021 {
1022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1023 }
d14a1e28
RD
1024 return resultobj;
1025 fail:
1026 return NULL;
1027}
1028
1029
1030static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1031 PyObject *resultobj;
1032 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1033 bool arg2 ;
1034 PyObject * obj0 = 0 ;
1035 PyObject * obj1 = 0 ;
1036 char *kwnames[] = {
1037 (char *) "self",(char *) "visible", NULL
1038 };
1039
1040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1043 arg2 = (bool) SWIG_AsBool(obj1);
1044 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1045 {
1046 PyThreadState* __tstate = wxPyBeginAllowThreads();
1047 (arg1)->SetVisible(arg2);
1048
1049 wxPyEndAllowThreads(__tstate);
1050 if (PyErr_Occurred()) SWIG_fail;
1051 }
1052 Py_INCREF(Py_None); resultobj = Py_None;
1053 return resultobj;
1054 fail:
1055 return NULL;
1056}
1057
1058
1059static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1060 PyObject *resultobj;
1061 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1062 bool result;
1063 PyObject * obj0 = 0 ;
1064 char *kwnames[] = {
1065 (char *) "self", NULL
1066 };
1067
1068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
15afbcd0
RD
1069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1071 {
1072 PyThreadState* __tstate = wxPyBeginAllowThreads();
1073 result = (bool)(arg1)->IsNull();
1074
1075 wxPyEndAllowThreads(__tstate);
1076 if (PyErr_Occurred()) SWIG_fail;
1077 }
4f89f6a3
RD
1078 {
1079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1080 }
d14a1e28
RD
1081 return resultobj;
1082 fail:
1083 return NULL;
1084}
1085
1086
1087static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1088 PyObject *obj;
1089 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1090 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1091 Py_INCREF(obj);
1092 return Py_BuildValue((char *)"");
1093}
1094static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1095 PyObject *resultobj;
1096 unsigned char arg1 = (unsigned char) 0 ;
1097 unsigned char arg2 = (unsigned char) 0 ;
1098 unsigned char arg3 = (unsigned char) 0 ;
1099 wxColour *result;
1100 PyObject * obj0 = 0 ;
1101 PyObject * obj1 = 0 ;
1102 PyObject * obj2 = 0 ;
1103 char *kwnames[] = {
1104 (char *) "red",(char *) "green",(char *) "blue", NULL
1105 };
1106
1107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1108 if (obj0) {
15afbcd0
RD
1109 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1110 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1111 }
1112 if (obj1) {
15afbcd0
RD
1113 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1114 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1115 }
1116 if (obj2) {
15afbcd0
RD
1117 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1118 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1119 }
1120 {
1121 PyThreadState* __tstate = wxPyBeginAllowThreads();
1122 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1123
1124 wxPyEndAllowThreads(__tstate);
1125 if (PyErr_Occurred()) SWIG_fail;
1126 }
15afbcd0 1127 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1128 return resultobj;
1129 fail:
1130 return NULL;
1131}
1132
1133
d14a1e28
RD
1134static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1135 PyObject *resultobj;
1136 wxString *arg1 = 0 ;
1137 wxColour *result;
e811c8ce 1138 bool temp1 = False ;
d14a1e28
RD
1139 PyObject * obj0 = 0 ;
1140 char *kwnames[] = {
1141 (char *) "colorName", NULL
1142 };
1143
1144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1145 {
1146 arg1 = wxString_in_helper(obj0);
1147 if (arg1 == NULL) SWIG_fail;
e811c8ce 1148 temp1 = True;
d14a1e28
RD
1149 }
1150 {
1151 PyThreadState* __tstate = wxPyBeginAllowThreads();
1152 result = (wxColour *)new wxColour((wxString const &)*arg1);
1153
1154 wxPyEndAllowThreads(__tstate);
1155 if (PyErr_Occurred()) SWIG_fail;
1156 }
15afbcd0 1157 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1158 {
1159 if (temp1)
1160 delete arg1;
1161 }
1162 return resultobj;
1163 fail:
1164 {
1165 if (temp1)
1166 delete arg1;
1167 }
1168 return NULL;
1169}
1170
1171
1172static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1173 PyObject *resultobj;
1174 unsigned long arg1 ;
1175 wxColour *result;
1176 PyObject * obj0 = 0 ;
1177 char *kwnames[] = {
1178 (char *) "colRGB", NULL
1179 };
1180
1181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
15afbcd0
RD
1182 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1183 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1184 {
1185 PyThreadState* __tstate = wxPyBeginAllowThreads();
1186 result = (wxColour *)new wxColour(arg1);
1187
1188 wxPyEndAllowThreads(__tstate);
1189 if (PyErr_Occurred()) SWIG_fail;
1190 }
15afbcd0 1191 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1192 return resultobj;
1193 fail:
1194 return NULL;
1195}
1196
1197
b88bce5f
RD
1198static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1199 PyObject *resultobj;
1200 wxColour *arg1 = (wxColour *) 0 ;
1201 PyObject * obj0 = 0 ;
1202 char *kwnames[] = {
1203 (char *) "self", NULL
1204 };
1205
1206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
15afbcd0
RD
1207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
b88bce5f
RD
1209 {
1210 PyThreadState* __tstate = wxPyBeginAllowThreads();
1211 delete arg1;
1212
1213 wxPyEndAllowThreads(__tstate);
1214 if (PyErr_Occurred()) SWIG_fail;
1215 }
1216 Py_INCREF(Py_None); resultobj = Py_None;
1217 return resultobj;
1218 fail:
1219 return NULL;
1220}
1221
1222
d14a1e28
RD
1223static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1224 PyObject *resultobj;
1225 wxColour *arg1 = (wxColour *) 0 ;
1226 unsigned char result;
1227 PyObject * obj0 = 0 ;
1228 char *kwnames[] = {
1229 (char *) "self", NULL
1230 };
1231
1232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
15afbcd0
RD
1233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1235 {
1236 PyThreadState* __tstate = wxPyBeginAllowThreads();
1237 result = (unsigned char)(arg1)->Red();
1238
1239 wxPyEndAllowThreads(__tstate);
1240 if (PyErr_Occurred()) SWIG_fail;
1241 }
15afbcd0 1242 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1243 return resultobj;
1244 fail:
1245 return NULL;
1246}
1247
1248
1249static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1250 PyObject *resultobj;
1251 wxColour *arg1 = (wxColour *) 0 ;
1252 unsigned char result;
1253 PyObject * obj0 = 0 ;
1254 char *kwnames[] = {
1255 (char *) "self", NULL
1256 };
1257
1258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
15afbcd0
RD
1259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1261 {
1262 PyThreadState* __tstate = wxPyBeginAllowThreads();
1263 result = (unsigned char)(arg1)->Green();
1264
1265 wxPyEndAllowThreads(__tstate);
1266 if (PyErr_Occurred()) SWIG_fail;
1267 }
15afbcd0 1268 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1269 return resultobj;
1270 fail:
1271 return NULL;
1272}
1273
1274
1275static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1276 PyObject *resultobj;
1277 wxColour *arg1 = (wxColour *) 0 ;
1278 unsigned char result;
1279 PyObject * obj0 = 0 ;
1280 char *kwnames[] = {
1281 (char *) "self", NULL
1282 };
1283
1284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
15afbcd0
RD
1285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1287 {
1288 PyThreadState* __tstate = wxPyBeginAllowThreads();
1289 result = (unsigned char)(arg1)->Blue();
1290
1291 wxPyEndAllowThreads(__tstate);
1292 if (PyErr_Occurred()) SWIG_fail;
1293 }
15afbcd0 1294 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1295 return resultobj;
1296 fail:
1297 return NULL;
1298}
1299
1300
1301static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1302 PyObject *resultobj;
1303 wxColour *arg1 = (wxColour *) 0 ;
1304 bool result;
1305 PyObject * obj0 = 0 ;
1306 char *kwnames[] = {
1307 (char *) "self", NULL
1308 };
1309
1310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
1311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1313 {
1314 PyThreadState* __tstate = wxPyBeginAllowThreads();
1315 result = (bool)(arg1)->Ok();
1316
1317 wxPyEndAllowThreads(__tstate);
1318 if (PyErr_Occurred()) SWIG_fail;
1319 }
4f89f6a3
RD
1320 {
1321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1322 }
d14a1e28
RD
1323 return resultobj;
1324 fail:
1325 return NULL;
1326}
1327
1328
1329static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1330 PyObject *resultobj;
1331 wxColour *arg1 = (wxColour *) 0 ;
1332 unsigned char arg2 ;
1333 unsigned char arg3 ;
1334 unsigned char arg4 ;
1335 PyObject * obj0 = 0 ;
1336 PyObject * obj1 = 0 ;
1337 PyObject * obj2 = 0 ;
1338 PyObject * obj3 = 0 ;
1339 char *kwnames[] = {
1340 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1341 };
1342
1343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
1344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1346 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1347 if (PyErr_Occurred()) SWIG_fail;
1348 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1349 if (PyErr_Occurred()) SWIG_fail;
1350 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1351 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1352 {
1353 PyThreadState* __tstate = wxPyBeginAllowThreads();
1354 (arg1)->Set(arg2,arg3,arg4);
1355
1356 wxPyEndAllowThreads(__tstate);
1357 if (PyErr_Occurred()) SWIG_fail;
1358 }
1359 Py_INCREF(Py_None); resultobj = Py_None;
1360 return resultobj;
1361 fail:
1362 return NULL;
1363}
1364
1365
c9c7117a 1366static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1367 PyObject *resultobj;
1368 wxColour *arg1 = (wxColour *) 0 ;
1369 unsigned long arg2 ;
1370 PyObject * obj0 = 0 ;
1371 PyObject * obj1 = 0 ;
1372 char *kwnames[] = {
1373 (char *) "self",(char *) "colRGB", NULL
1374 };
1375
c9c7117a 1376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1379 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1380 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1381 {
1382 PyThreadState* __tstate = wxPyBeginAllowThreads();
1383 (arg1)->Set(arg2);
1384
1385 wxPyEndAllowThreads(__tstate);
1386 if (PyErr_Occurred()) SWIG_fail;
1387 }
1388 Py_INCREF(Py_None); resultobj = Py_None;
1389 return resultobj;
1390 fail:
1391 return NULL;
1392}
1393
1394
b88bce5f
RD
1395static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1396 PyObject *resultobj;
1397 wxColour *arg1 = (wxColour *) 0 ;
1398 wxString *arg2 = 0 ;
1399 bool temp2 = False ;
1400 PyObject * obj0 = 0 ;
1401 PyObject * obj1 = 0 ;
1402 char *kwnames[] = {
1403 (char *) "self",(char *) "colourName", NULL
1404 };
1405
1406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
b88bce5f
RD
1409 {
1410 arg2 = wxString_in_helper(obj1);
1411 if (arg2 == NULL) SWIG_fail;
1412 temp2 = True;
1413 }
1414 {
1415 PyThreadState* __tstate = wxPyBeginAllowThreads();
1416 (arg1)->InitFromName((wxString const &)*arg2);
1417
1418 wxPyEndAllowThreads(__tstate);
1419 if (PyErr_Occurred()) SWIG_fail;
1420 }
1421 Py_INCREF(Py_None); resultobj = Py_None;
1422 {
1423 if (temp2)
1424 delete arg2;
1425 }
1426 return resultobj;
1427 fail:
1428 {
1429 if (temp2)
1430 delete arg2;
1431 }
1432 return NULL;
1433}
1434
1435
1436static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1437 PyObject *resultobj;
1438 wxColour *arg1 = (wxColour *) 0 ;
1439 long result;
1440 PyObject * obj0 = 0 ;
1441 char *kwnames[] = {
1442 (char *) "self", NULL
1443 };
1444
1445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
15afbcd0
RD
1446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
b88bce5f
RD
1448 {
1449 PyThreadState* __tstate = wxPyBeginAllowThreads();
1450 result = (long)((wxColour const *)arg1)->GetPixel();
1451
1452 wxPyEndAllowThreads(__tstate);
1453 if (PyErr_Occurred()) SWIG_fail;
1454 }
15afbcd0 1455 resultobj = SWIG_FromLong((long)result);
b88bce5f
RD
1456 return resultobj;
1457 fail:
1458 return NULL;
1459}
1460
1461
d14a1e28
RD
1462static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1463 PyObject *resultobj;
1464 wxColour *arg1 = (wxColour *) 0 ;
1465 wxColour *arg2 = 0 ;
1466 bool result;
1467 wxColour temp2 ;
1468 PyObject * obj0 = 0 ;
1469 PyObject * obj1 = 0 ;
1470 char *kwnames[] = {
1471 (char *) "self",(char *) "colour", NULL
1472 };
1473
1474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1477 {
1478 arg2 = &temp2;
1479 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1480 }
1481 {
1482 PyThreadState* __tstate = wxPyBeginAllowThreads();
1483 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1484
1485 wxPyEndAllowThreads(__tstate);
1486 if (PyErr_Occurred()) SWIG_fail;
1487 }
4f89f6a3
RD
1488 {
1489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1490 }
d14a1e28
RD
1491 return resultobj;
1492 fail:
1493 return NULL;
1494}
1495
1496
1497static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1498 PyObject *resultobj;
1499 wxColour *arg1 = (wxColour *) 0 ;
1500 wxColour *arg2 = 0 ;
1501 bool result;
1502 wxColour temp2 ;
1503 PyObject * obj0 = 0 ;
1504 PyObject * obj1 = 0 ;
1505 char *kwnames[] = {
1506 (char *) "self",(char *) "colour", NULL
1507 };
1508
1509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1512 {
1513 arg2 = &temp2;
1514 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1515 }
1516 {
1517 PyThreadState* __tstate = wxPyBeginAllowThreads();
1518 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1519
1520 wxPyEndAllowThreads(__tstate);
1521 if (PyErr_Occurred()) SWIG_fail;
1522 }
4f89f6a3
RD
1523 {
1524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1525 }
d14a1e28
RD
1526 return resultobj;
1527 fail:
1528 return NULL;
1529}
1530
1531
b88bce5f 1532static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
c9c7117a
RD
1533 PyObject *resultobj;
1534 wxColour *arg1 = (wxColour *) 0 ;
b88bce5f 1535 PyObject *result;
c9c7117a 1536 PyObject * obj0 = 0 ;
c9c7117a 1537 char *kwnames[] = {
b88bce5f 1538 (char *) "self", NULL
c9c7117a
RD
1539 };
1540
b88bce5f 1541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
15afbcd0
RD
1542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c9c7117a
RD
1544 {
1545 PyThreadState* __tstate = wxPyBeginAllowThreads();
b88bce5f 1546 result = (PyObject *)wxColour_Get(arg1);
c9c7117a
RD
1547
1548 wxPyEndAllowThreads(__tstate);
1549 if (PyErr_Occurred()) SWIG_fail;
1550 }
b88bce5f 1551 resultobj = result;
c9c7117a
RD
1552 return resultobj;
1553 fail:
c9c7117a
RD
1554 return NULL;
1555}
1556
1557
b88bce5f 1558static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1559 PyObject *resultobj;
1560 wxColour *arg1 = (wxColour *) 0 ;
b88bce5f 1561 unsigned long result;
d14a1e28
RD
1562 PyObject * obj0 = 0 ;
1563 char *kwnames[] = {
1564 (char *) "self", NULL
1565 };
1566
b88bce5f 1567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
15afbcd0
RD
1568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1570 {
1571 PyThreadState* __tstate = wxPyBeginAllowThreads();
b88bce5f 1572 result = (unsigned long)wxColour_GetRGB(arg1);
d14a1e28
RD
1573
1574 wxPyEndAllowThreads(__tstate);
1575 if (PyErr_Occurred()) SWIG_fail;
1576 }
15afbcd0 1577 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
1578 return resultobj;
1579 fail:
1580 return NULL;
1581}
1582
1583
1584static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1585 PyObject *obj;
1586 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1587 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1588 Py_INCREF(obj);
1589 return Py_BuildValue((char *)"");
1590}
1591static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1592 PyObject *resultobj;
1593 int arg1 ;
1594 unsigned char *arg2 = (unsigned char *) 0 ;
1595 unsigned char *arg3 = (unsigned char *) 0 ;
1596 unsigned char *arg4 = (unsigned char *) 0 ;
1597 wxPalette *result;
994141e6 1598 PyObject * obj0 = 0 ;
d14a1e28
RD
1599 PyObject * obj1 = 0 ;
1600 PyObject * obj2 = 0 ;
1601 PyObject * obj3 = 0 ;
1602 char *kwnames[] = {
1603 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1604 };
1605
994141e6 1606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
1607 arg1 = (int) SWIG_AsInt(obj0);
1608 if (PyErr_Occurred()) SWIG_fail;
1609 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1611 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1613 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1615 {
1616 PyThreadState* __tstate = wxPyBeginAllowThreads();
1617 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1618
1619 wxPyEndAllowThreads(__tstate);
1620 if (PyErr_Occurred()) SWIG_fail;
1621 }
15afbcd0 1622 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
d14a1e28
RD
1623 return resultobj;
1624 fail:
1625 return NULL;
1626}
1627
1628
1629static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1630 PyObject *resultobj;
1631 wxPalette *arg1 = (wxPalette *) 0 ;
1632 PyObject * obj0 = 0 ;
1633 char *kwnames[] = {
1634 (char *) "self", NULL
1635 };
1636
1637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
15afbcd0
RD
1638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1640 {
1641 PyThreadState* __tstate = wxPyBeginAllowThreads();
1642 delete arg1;
1643
1644 wxPyEndAllowThreads(__tstate);
1645 if (PyErr_Occurred()) SWIG_fail;
1646 }
1647 Py_INCREF(Py_None); resultobj = Py_None;
1648 return resultobj;
1649 fail:
1650 return NULL;
1651}
1652
1653
1654static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1655 PyObject *resultobj;
1656 wxPalette *arg1 = (wxPalette *) 0 ;
1657 byte arg2 ;
1658 byte arg3 ;
1659 byte arg4 ;
1660 int result;
1661 PyObject * obj0 = 0 ;
1662 PyObject * obj1 = 0 ;
1663 PyObject * obj2 = 0 ;
1664 PyObject * obj3 = 0 ;
1665 char *kwnames[] = {
1666 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1667 };
1668
1669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
1670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1672 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1673 if (PyErr_Occurred()) SWIG_fail;
1674 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1675 if (PyErr_Occurred()) SWIG_fail;
1676 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1677 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1678 {
1679 PyThreadState* __tstate = wxPyBeginAllowThreads();
1680 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1681
1682 wxPyEndAllowThreads(__tstate);
1683 if (PyErr_Occurred()) SWIG_fail;
1684 }
15afbcd0 1685 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1686 return resultobj;
1687 fail:
1688 return NULL;
1689}
1690
1691
1692static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1693 PyObject *resultobj;
1694 wxPalette *arg1 = (wxPalette *) 0 ;
1695 int arg2 ;
1696 byte *arg3 = (byte *) 0 ;
1697 byte *arg4 = (byte *) 0 ;
1698 byte *arg5 = (byte *) 0 ;
1699 bool result;
1700 byte temp3 ;
1701 byte temp4 ;
1702 byte temp5 ;
1703 PyObject * obj0 = 0 ;
994141e6 1704 PyObject * obj1 = 0 ;
d14a1e28
RD
1705 char *kwnames[] = {
1706 (char *) "self",(char *) "pixel", NULL
1707 };
1708
1709 arg3 = &temp3;
1710 arg4 = &temp4;
1711 arg5 = &temp5;
994141e6 1712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1715 arg2 = (int) SWIG_AsInt(obj1);
1716 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1717 {
1718 PyThreadState* __tstate = wxPyBeginAllowThreads();
1719 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1720
1721 wxPyEndAllowThreads(__tstate);
1722 if (PyErr_Occurred()) SWIG_fail;
1723 }
4f89f6a3
RD
1724 {
1725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1726 }
d14a1e28
RD
1727 {
1728 PyObject *o = PyInt_FromLong((long) (*arg3));
1729 resultobj = t_output_helper(resultobj,o);
1730 }
1731 {
1732 PyObject *o = PyInt_FromLong((long) (*arg4));
1733 resultobj = t_output_helper(resultobj,o);
1734 }
1735 {
1736 PyObject *o = PyInt_FromLong((long) (*arg5));
1737 resultobj = t_output_helper(resultobj,o);
1738 }
1739 return resultobj;
1740 fail:
1741 return NULL;
1742}
1743
1744
1745static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1746 PyObject *resultobj;
1747 wxPalette *arg1 = (wxPalette *) 0 ;
1748 bool result;
1749 PyObject * obj0 = 0 ;
1750 char *kwnames[] = {
1751 (char *) "self", NULL
1752 };
1753
1754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
1755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1757 {
1758 PyThreadState* __tstate = wxPyBeginAllowThreads();
1759 result = (bool)(arg1)->Ok();
1760
1761 wxPyEndAllowThreads(__tstate);
1762 if (PyErr_Occurred()) SWIG_fail;
1763 }
4f89f6a3
RD
1764 {
1765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1766 }
d14a1e28
RD
1767 return resultobj;
1768 fail:
1769 return NULL;
1770}
1771
1772
1773static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1774 PyObject *obj;
1775 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1776 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1777 Py_INCREF(obj);
1778 return Py_BuildValue((char *)"");
1779}
1780static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1781 PyObject *resultobj;
1782 wxColour *arg1 = 0 ;
1783 int arg2 = (int) 1 ;
1784 int arg3 = (int) wxSOLID ;
1785 wxPen *result;
1786 wxColour temp1 ;
1787 PyObject * obj0 = 0 ;
994141e6
RD
1788 PyObject * obj1 = 0 ;
1789 PyObject * obj2 = 0 ;
d14a1e28
RD
1790 char *kwnames[] = {
1791 (char *) "colour",(char *) "width",(char *) "style", NULL
1792 };
1793
994141e6 1794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
1795 {
1796 arg1 = &temp1;
1797 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1798 }
994141e6 1799 if (obj1) {
15afbcd0
RD
1800 arg2 = (int) SWIG_AsInt(obj1);
1801 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
1802 }
1803 if (obj2) {
15afbcd0
RD
1804 arg3 = (int) SWIG_AsInt(obj2);
1805 if (PyErr_Occurred()) SWIG_fail;
994141e6 1806 }
d14a1e28
RD
1807 {
1808 PyThreadState* __tstate = wxPyBeginAllowThreads();
1809 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1810
1811 wxPyEndAllowThreads(__tstate);
1812 if (PyErr_Occurred()) SWIG_fail;
1813 }
15afbcd0 1814 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
d14a1e28
RD
1815 return resultobj;
1816 fail:
1817 return NULL;
1818}
1819
1820
1821static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1822 PyObject *resultobj;
1823 wxPen *arg1 = (wxPen *) 0 ;
1824 PyObject * obj0 = 0 ;
1825 char *kwnames[] = {
1826 (char *) "self", NULL
1827 };
1828
1829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
15afbcd0
RD
1830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1832 {
1833 PyThreadState* __tstate = wxPyBeginAllowThreads();
1834 delete arg1;
1835
1836 wxPyEndAllowThreads(__tstate);
1837 if (PyErr_Occurred()) SWIG_fail;
1838 }
1839 Py_INCREF(Py_None); resultobj = Py_None;
1840 return resultobj;
1841 fail:
1842 return NULL;
1843}
1844
1845
1846static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1847 PyObject *resultobj;
1848 wxPen *arg1 = (wxPen *) 0 ;
1849 int result;
1850 PyObject * obj0 = 0 ;
1851 char *kwnames[] = {
1852 (char *) "self", NULL
1853 };
1854
1855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
15afbcd0
RD
1856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1858 {
1859 PyThreadState* __tstate = wxPyBeginAllowThreads();
1860 result = (int)(arg1)->GetCap();
1861
1862 wxPyEndAllowThreads(__tstate);
1863 if (PyErr_Occurred()) SWIG_fail;
1864 }
15afbcd0 1865 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1866 return resultobj;
1867 fail:
1868 return NULL;
1869}
1870
1871
1872static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1873 PyObject *resultobj;
1874 wxPen *arg1 = (wxPen *) 0 ;
1875 wxColour result;
1876 PyObject * obj0 = 0 ;
1877 char *kwnames[] = {
1878 (char *) "self", NULL
1879 };
1880
1881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
15afbcd0
RD
1882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1884 {
1885 PyThreadState* __tstate = wxPyBeginAllowThreads();
1886 result = (arg1)->GetColour();
1887
1888 wxPyEndAllowThreads(__tstate);
1889 if (PyErr_Occurred()) SWIG_fail;
1890 }
1891 {
1892 wxColour * resultptr;
1893 resultptr = new wxColour((wxColour &) result);
15afbcd0 1894 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1895 }
1896 return resultobj;
1897 fail:
1898 return NULL;
1899}
1900
1901
1902static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1903 PyObject *resultobj;
1904 wxPen *arg1 = (wxPen *) 0 ;
1905 int result;
1906 PyObject * obj0 = 0 ;
1907 char *kwnames[] = {
1908 (char *) "self", NULL
1909 };
1910
1911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
15afbcd0
RD
1912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1914 {
1915 PyThreadState* __tstate = wxPyBeginAllowThreads();
1916 result = (int)(arg1)->GetJoin();
1917
1918 wxPyEndAllowThreads(__tstate);
1919 if (PyErr_Occurred()) SWIG_fail;
1920 }
15afbcd0 1921 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1922 return resultobj;
1923 fail:
1924 return NULL;
1925}
1926
1927
1928static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1929 PyObject *resultobj;
1930 wxPen *arg1 = (wxPen *) 0 ;
1931 int result;
1932 PyObject * obj0 = 0 ;
1933 char *kwnames[] = {
1934 (char *) "self", NULL
1935 };
1936
1937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
15afbcd0
RD
1938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1940 {
1941 PyThreadState* __tstate = wxPyBeginAllowThreads();
1942 result = (int)(arg1)->GetStyle();
1943
1944 wxPyEndAllowThreads(__tstate);
1945 if (PyErr_Occurred()) SWIG_fail;
1946 }
15afbcd0 1947 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1948 return resultobj;
1949 fail:
1950 return NULL;
1951}
1952
1953
1954static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1955 PyObject *resultobj;
1956 wxPen *arg1 = (wxPen *) 0 ;
1957 int result;
1958 PyObject * obj0 = 0 ;
1959 char *kwnames[] = {
1960 (char *) "self", NULL
1961 };
1962
1963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
1964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1966 {
1967 PyThreadState* __tstate = wxPyBeginAllowThreads();
1968 result = (int)(arg1)->GetWidth();
1969
1970 wxPyEndAllowThreads(__tstate);
1971 if (PyErr_Occurred()) SWIG_fail;
1972 }
15afbcd0 1973 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1974 return resultobj;
1975 fail:
1976 return NULL;
1977}
1978
1979
1980static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1981 PyObject *resultobj;
1982 wxPen *arg1 = (wxPen *) 0 ;
1983 bool result;
1984 PyObject * obj0 = 0 ;
1985 char *kwnames[] = {
1986 (char *) "self", NULL
1987 };
1988
1989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
1990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1992 {
1993 PyThreadState* __tstate = wxPyBeginAllowThreads();
1994 result = (bool)(arg1)->Ok();
1995
1996 wxPyEndAllowThreads(__tstate);
1997 if (PyErr_Occurred()) SWIG_fail;
1998 }
4f89f6a3
RD
1999 {
2000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2001 }
d14a1e28
RD
2002 return resultobj;
2003 fail:
2004 return NULL;
2005}
2006
2007
2008static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
2009 PyObject *resultobj;
2010 wxPen *arg1 = (wxPen *) 0 ;
2011 int arg2 ;
2012 PyObject * obj0 = 0 ;
994141e6 2013 PyObject * obj1 = 0 ;
d14a1e28
RD
2014 char *kwnames[] = {
2015 (char *) "self",(char *) "cap_style", NULL
2016 };
2017
994141e6 2018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2021 arg2 = (int) SWIG_AsInt(obj1);
2022 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2023 {
2024 PyThreadState* __tstate = wxPyBeginAllowThreads();
2025 (arg1)->SetCap(arg2);
2026
2027 wxPyEndAllowThreads(__tstate);
2028 if (PyErr_Occurred()) SWIG_fail;
2029 }
2030 Py_INCREF(Py_None); resultobj = Py_None;
2031 return resultobj;
2032 fail:
2033 return NULL;
2034}
2035
2036
2037static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2038 PyObject *resultobj;
2039 wxPen *arg1 = (wxPen *) 0 ;
2040 wxColour *arg2 = 0 ;
2041 wxColour temp2 ;
2042 PyObject * obj0 = 0 ;
2043 PyObject * obj1 = 0 ;
2044 char *kwnames[] = {
2045 (char *) "self",(char *) "colour", NULL
2046 };
2047
2048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2051 {
2052 arg2 = &temp2;
2053 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2054 }
2055 {
2056 PyThreadState* __tstate = wxPyBeginAllowThreads();
2057 (arg1)->SetColour(*arg2);
2058
2059 wxPyEndAllowThreads(__tstate);
2060 if (PyErr_Occurred()) SWIG_fail;
2061 }
2062 Py_INCREF(Py_None); resultobj = Py_None;
2063 return resultobj;
2064 fail:
2065 return NULL;
2066}
2067
2068
2069static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2070 PyObject *resultobj;
2071 wxPen *arg1 = (wxPen *) 0 ;
2072 int arg2 ;
2073 PyObject * obj0 = 0 ;
994141e6 2074 PyObject * obj1 = 0 ;
d14a1e28
RD
2075 char *kwnames[] = {
2076 (char *) "self",(char *) "join_style", NULL
2077 };
2078
994141e6 2079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2082 arg2 = (int) SWIG_AsInt(obj1);
2083 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2084 {
2085 PyThreadState* __tstate = wxPyBeginAllowThreads();
2086 (arg1)->SetJoin(arg2);
2087
2088 wxPyEndAllowThreads(__tstate);
2089 if (PyErr_Occurred()) SWIG_fail;
2090 }
2091 Py_INCREF(Py_None); resultobj = Py_None;
2092 return resultobj;
2093 fail:
2094 return NULL;
2095}
2096
2097
2098static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2099 PyObject *resultobj;
2100 wxPen *arg1 = (wxPen *) 0 ;
2101 int arg2 ;
2102 PyObject * obj0 = 0 ;
994141e6 2103 PyObject * obj1 = 0 ;
d14a1e28
RD
2104 char *kwnames[] = {
2105 (char *) "self",(char *) "style", NULL
2106 };
2107
994141e6 2108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2111 arg2 = (int) SWIG_AsInt(obj1);
2112 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2113 {
2114 PyThreadState* __tstate = wxPyBeginAllowThreads();
2115 (arg1)->SetStyle(arg2);
2116
2117 wxPyEndAllowThreads(__tstate);
2118 if (PyErr_Occurred()) SWIG_fail;
2119 }
2120 Py_INCREF(Py_None); resultobj = Py_None;
2121 return resultobj;
2122 fail:
2123 return NULL;
2124}
2125
2126
2127static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2128 PyObject *resultobj;
2129 wxPen *arg1 = (wxPen *) 0 ;
2130 int arg2 ;
2131 PyObject * obj0 = 0 ;
994141e6 2132 PyObject * obj1 = 0 ;
d14a1e28
RD
2133 char *kwnames[] = {
2134 (char *) "self",(char *) "width", NULL
2135 };
2136
994141e6 2137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2140 arg2 = (int) SWIG_AsInt(obj1);
2141 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2142 {
2143 PyThreadState* __tstate = wxPyBeginAllowThreads();
2144 (arg1)->SetWidth(arg2);
2145
2146 wxPyEndAllowThreads(__tstate);
2147 if (PyErr_Occurred()) SWIG_fail;
2148 }
2149 Py_INCREF(Py_None); resultobj = Py_None;
2150 return resultobj;
2151 fail:
2152 return NULL;
2153}
2154
2155
2156static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2157 PyObject *resultobj;
2158 wxPen *arg1 = (wxPen *) 0 ;
2159 int arg2 ;
2160 wxDash *arg3 = (wxDash *) 0 ;
2161 PyObject * obj0 = 0 ;
2162 PyObject * obj1 = 0 ;
2163 char *kwnames[] = {
2164 (char *) "self",(char *) "dashes", NULL
2165 };
2166
2167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2170 {
2171 arg2 = PyList_Size(obj1);
2172 arg3 = (wxDash*)byte_LIST_helper(obj1);
2173 if (arg3 == NULL) SWIG_fail;
2174 }
2175 {
2176 PyThreadState* __tstate = wxPyBeginAllowThreads();
2177 (arg1)->SetDashes(arg2,arg3);
2178
2179 wxPyEndAllowThreads(__tstate);
2180 if (PyErr_Occurred()) SWIG_fail;
2181 }
2182 Py_INCREF(Py_None); resultobj = Py_None;
2183 {
2184 if (arg3) delete [] arg3;
2185 }
2186 return resultobj;
2187 fail:
2188 {
2189 if (arg3) delete [] arg3;
2190 }
2191 return NULL;
2192}
2193
2194
2195static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2196 PyObject *resultobj;
2197 wxPen *arg1 = (wxPen *) 0 ;
2198 PyObject *result;
2199 PyObject * obj0 = 0 ;
2200 char *kwnames[] = {
2201 (char *) "self", NULL
2202 };
2203
2204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
15afbcd0
RD
2205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2207 {
2208 PyThreadState* __tstate = wxPyBeginAllowThreads();
2209 result = (PyObject *)wxPen_GetDashes(arg1);
2210
2211 wxPyEndAllowThreads(__tstate);
2212 if (PyErr_Occurred()) SWIG_fail;
2213 }
2214 resultobj = result;
2215 return resultobj;
2216 fail:
2217 return NULL;
2218}
2219
2220
3adfb63b
RD
2221static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2222 PyObject *resultobj;
2223 wxPen *arg1 = (wxPen *) 0 ;
22faec7d 2224 wxPen *arg2 = (wxPen *) 0 ;
3adfb63b
RD
2225 bool result;
2226 PyObject * obj0 = 0 ;
2227 PyObject * obj1 = 0 ;
2228 char *kwnames[] = {
22faec7d 2229 (char *) "self",(char *) "other", NULL
3adfb63b
RD
2230 };
2231
2232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2235 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22faec7d
RD
2237 {
2238 PyThreadState* __tstate = wxPyBeginAllowThreads();
2239 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2240
2241 wxPyEndAllowThreads(__tstate);
2242 if (PyErr_Occurred()) SWIG_fail;
3adfb63b 2243 }
4f89f6a3
RD
2244 {
2245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2246 }
22faec7d
RD
2247 return resultobj;
2248 fail:
2249 return NULL;
2250}
2251
2252
2253static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2254 PyObject *resultobj;
2255 wxPen *arg1 = (wxPen *) 0 ;
2256 wxPen *arg2 = (wxPen *) 0 ;
2257 bool result;
2258 PyObject * obj0 = 0 ;
2259 PyObject * obj1 = 0 ;
2260 char *kwnames[] = {
2261 (char *) "self",(char *) "other", NULL
2262 };
2263
2264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2267 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3adfb63b
RD
2269 {
2270 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 2271 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
3adfb63b
RD
2272
2273 wxPyEndAllowThreads(__tstate);
2274 if (PyErr_Occurred()) SWIG_fail;
2275 }
4f89f6a3
RD
2276 {
2277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2278 }
3adfb63b
RD
2279 return resultobj;
2280 fail:
2281 return NULL;
2282}
2283
2284
c9c7117a
RD
2285static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2286 PyObject *resultobj;
2287 wxPen *arg1 = (wxPen *) 0 ;
2288 int result;
2289 PyObject * obj0 = 0 ;
2290 char *kwnames[] = {
2291 (char *) "self", NULL
2292 };
2293
2294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
2295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c9c7117a
RD
2297 {
2298 PyThreadState* __tstate = wxPyBeginAllowThreads();
2299 result = (int)((wxPen const *)arg1)->GetDashCount();
2300
2301 wxPyEndAllowThreads(__tstate);
2302 if (PyErr_Occurred()) SWIG_fail;
2303 }
15afbcd0 2304 resultobj = SWIG_FromInt((int)result);
c9c7117a
RD
2305 return resultobj;
2306 fail:
2307 return NULL;
2308}
2309
2310
d14a1e28
RD
2311static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2312 PyObject *obj;
2313 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2314 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2315 Py_INCREF(obj);
2316 return Py_BuildValue((char *)"");
2317}
2318static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2319 PyObject *resultobj;
2320 wxColour *arg1 = 0 ;
2321 int arg2 = (int) 1 ;
2322 int arg3 = (int) wxSOLID ;
2323 wxPyPen *result;
2324 wxColour temp1 ;
2325 PyObject * obj0 = 0 ;
994141e6
RD
2326 PyObject * obj1 = 0 ;
2327 PyObject * obj2 = 0 ;
d14a1e28
RD
2328 char *kwnames[] = {
2329 (char *) "colour",(char *) "width",(char *) "style", NULL
2330 };
2331
994141e6 2332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
2333 {
2334 arg1 = &temp1;
2335 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2336 }
994141e6 2337 if (obj1) {
15afbcd0
RD
2338 arg2 = (int) SWIG_AsInt(obj1);
2339 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
2340 }
2341 if (obj2) {
15afbcd0
RD
2342 arg3 = (int) SWIG_AsInt(obj2);
2343 if (PyErr_Occurred()) SWIG_fail;
994141e6 2344 }
d14a1e28
RD
2345 {
2346 PyThreadState* __tstate = wxPyBeginAllowThreads();
2347 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2348
2349 wxPyEndAllowThreads(__tstate);
2350 if (PyErr_Occurred()) SWIG_fail;
2351 }
15afbcd0 2352 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
d14a1e28
RD
2353 return resultobj;
2354 fail:
2355 return NULL;
2356}
2357
2358
2359static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2360 PyObject *resultobj;
2361 wxPyPen *arg1 = (wxPyPen *) 0 ;
2362 PyObject * obj0 = 0 ;
2363 char *kwnames[] = {
2364 (char *) "self", NULL
2365 };
2366
2367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
15afbcd0
RD
2368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2370 {
2371 PyThreadState* __tstate = wxPyBeginAllowThreads();
2372 delete arg1;
2373
2374 wxPyEndAllowThreads(__tstate);
2375 if (PyErr_Occurred()) SWIG_fail;
2376 }
2377 Py_INCREF(Py_None); resultobj = Py_None;
2378 return resultobj;
2379 fail:
2380 return NULL;
2381}
2382
2383
2384static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2385 PyObject *resultobj;
2386 wxPyPen *arg1 = (wxPyPen *) 0 ;
2387 int arg2 ;
2388 wxDash *arg3 = (wxDash *) 0 ;
2389 PyObject * obj0 = 0 ;
2390 PyObject * obj1 = 0 ;
2391 char *kwnames[] = {
2392 (char *) "self",(char *) "dashes", NULL
2393 };
2394
2395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2398 {
2399 arg2 = PyList_Size(obj1);
2400 arg3 = (wxDash*)byte_LIST_helper(obj1);
2401 if (arg3 == NULL) SWIG_fail;
2402 }
2403 {
2404 PyThreadState* __tstate = wxPyBeginAllowThreads();
2405 (arg1)->SetDashes(arg2,arg3);
2406
2407 wxPyEndAllowThreads(__tstate);
2408 if (PyErr_Occurred()) SWIG_fail;
2409 }
2410 Py_INCREF(Py_None); resultobj = Py_None;
2411 {
2412 if (arg3) delete [] arg3;
2413 }
2414 return resultobj;
2415 fail:
2416 {
2417 if (arg3) delete [] arg3;
2418 }
2419 return NULL;
2420}
2421
2422
2423static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2424 PyObject *obj;
2425 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2426 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2427 Py_INCREF(obj);
2428 return Py_BuildValue((char *)"");
2429}
2430static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2431 PyObject *resultobj;
2432 wxColour *arg1 = 0 ;
2433 int arg2 = (int) wxSOLID ;
2434 wxBrush *result;
2435 wxColour temp1 ;
2436 PyObject * obj0 = 0 ;
994141e6 2437 PyObject * obj1 = 0 ;
d14a1e28
RD
2438 char *kwnames[] = {
2439 (char *) "colour",(char *) "style", NULL
2440 };
2441
994141e6 2442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2443 {
2444 arg1 = &temp1;
2445 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2446 }
994141e6 2447 if (obj1) {
15afbcd0
RD
2448 arg2 = (int) SWIG_AsInt(obj1);
2449 if (PyErr_Occurred()) SWIG_fail;
994141e6 2450 }
d14a1e28
RD
2451 {
2452 PyThreadState* __tstate = wxPyBeginAllowThreads();
2453 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2454
2455 wxPyEndAllowThreads(__tstate);
2456 if (PyErr_Occurred()) SWIG_fail;
2457 }
15afbcd0 2458 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
d14a1e28
RD
2459 return resultobj;
2460 fail:
2461 return NULL;
2462}
2463
2464
2465static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2466 PyObject *resultobj;
2467 wxBrush *arg1 = (wxBrush *) 0 ;
2468 PyObject * obj0 = 0 ;
2469 char *kwnames[] = {
2470 (char *) "self", NULL
2471 };
2472
2473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
15afbcd0
RD
2474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2476 {
2477 PyThreadState* __tstate = wxPyBeginAllowThreads();
2478 delete arg1;
2479
2480 wxPyEndAllowThreads(__tstate);
2481 if (PyErr_Occurred()) SWIG_fail;
2482 }
2483 Py_INCREF(Py_None); resultobj = Py_None;
2484 return resultobj;
2485 fail:
2486 return NULL;
2487}
2488
2489
2490static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2491 PyObject *resultobj;
2492 wxBrush *arg1 = (wxBrush *) 0 ;
2493 wxColour *arg2 = 0 ;
2494 wxColour temp2 ;
2495 PyObject * obj0 = 0 ;
2496 PyObject * obj1 = 0 ;
2497 char *kwnames[] = {
2498 (char *) "self",(char *) "col", NULL
2499 };
2500
2501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2504 {
2505 arg2 = &temp2;
2506 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2507 }
2508 {
2509 PyThreadState* __tstate = wxPyBeginAllowThreads();
2510 (arg1)->SetColour((wxColour const &)*arg2);
2511
2512 wxPyEndAllowThreads(__tstate);
2513 if (PyErr_Occurred()) SWIG_fail;
2514 }
2515 Py_INCREF(Py_None); resultobj = Py_None;
2516 return resultobj;
2517 fail:
2518 return NULL;
2519}
2520
2521
2522static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2523 PyObject *resultobj;
2524 wxBrush *arg1 = (wxBrush *) 0 ;
2525 int arg2 ;
2526 PyObject * obj0 = 0 ;
994141e6 2527 PyObject * obj1 = 0 ;
d14a1e28
RD
2528 char *kwnames[] = {
2529 (char *) "self",(char *) "style", NULL
2530 };
2531
994141e6 2532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2535 arg2 = (int) SWIG_AsInt(obj1);
2536 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2537 {
2538 PyThreadState* __tstate = wxPyBeginAllowThreads();
2539 (arg1)->SetStyle(arg2);
2540
2541 wxPyEndAllowThreads(__tstate);
2542 if (PyErr_Occurred()) SWIG_fail;
2543 }
2544 Py_INCREF(Py_None); resultobj = Py_None;
2545 return resultobj;
2546 fail:
2547 return NULL;
2548}
2549
2550
2551static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2552 PyObject *resultobj;
2553 wxBrush *arg1 = (wxBrush *) 0 ;
2554 wxBitmap *arg2 = 0 ;
2555 PyObject * obj0 = 0 ;
2556 PyObject * obj1 = 0 ;
2557 char *kwnames[] = {
2558 (char *) "self",(char *) "stipple", NULL
2559 };
2560
2561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2564 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2565 SWIG_POINTER_EXCEPTION | 0)) == -1)
2566 SWIG_fail;
d14a1e28 2567 if (arg2 == NULL) {
15afbcd0
RD
2568 PyErr_SetString(PyExc_TypeError,"null reference");
2569 SWIG_fail;
d14a1e28
RD
2570 }
2571 {
2572 PyThreadState* __tstate = wxPyBeginAllowThreads();
2573 (arg1)->SetStipple((wxBitmap const &)*arg2);
2574
2575 wxPyEndAllowThreads(__tstate);
2576 if (PyErr_Occurred()) SWIG_fail;
2577 }
2578 Py_INCREF(Py_None); resultobj = Py_None;
2579 return resultobj;
2580 fail:
2581 return NULL;
2582}
2583
2584
2585static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2586 PyObject *resultobj;
2587 wxBrush *arg1 = (wxBrush *) 0 ;
2588 wxColour result;
2589 PyObject * obj0 = 0 ;
2590 char *kwnames[] = {
2591 (char *) "self", NULL
2592 };
2593
2594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
15afbcd0
RD
2595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2597 {
2598 PyThreadState* __tstate = wxPyBeginAllowThreads();
2599 result = ((wxBrush const *)arg1)->GetColour();
2600
2601 wxPyEndAllowThreads(__tstate);
2602 if (PyErr_Occurred()) SWIG_fail;
2603 }
2604 {
2605 wxColour * resultptr;
2606 resultptr = new wxColour((wxColour &) result);
15afbcd0 2607 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
2608 }
2609 return resultobj;
2610 fail:
2611 return NULL;
2612}
2613
2614
2615static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2616 PyObject *resultobj;
2617 wxBrush *arg1 = (wxBrush *) 0 ;
2618 int result;
2619 PyObject * obj0 = 0 ;
2620 char *kwnames[] = {
2621 (char *) "self", NULL
2622 };
2623
2624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
15afbcd0
RD
2625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2627 {
2628 PyThreadState* __tstate = wxPyBeginAllowThreads();
2629 result = (int)((wxBrush const *)arg1)->GetStyle();
2630
2631 wxPyEndAllowThreads(__tstate);
2632 if (PyErr_Occurred()) SWIG_fail;
2633 }
15afbcd0 2634 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
2635 return resultobj;
2636 fail:
2637 return NULL;
2638}
2639
2640
2641static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2642 PyObject *resultobj;
2643 wxBrush *arg1 = (wxBrush *) 0 ;
2644 wxBitmap *result;
2645 PyObject * obj0 = 0 ;
2646 char *kwnames[] = {
2647 (char *) "self", NULL
2648 };
2649
2650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
15afbcd0
RD
2651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2653 {
2654 PyThreadState* __tstate = wxPyBeginAllowThreads();
2655 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2656
2657 wxPyEndAllowThreads(__tstate);
2658 if (PyErr_Occurred()) SWIG_fail;
2659 }
15afbcd0 2660 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
d14a1e28
RD
2661 return resultobj;
2662 fail:
2663 return NULL;
2664}
2665
2666
2667static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2668 PyObject *resultobj;
2669 wxBrush *arg1 = (wxBrush *) 0 ;
2670 bool result;
2671 PyObject * obj0 = 0 ;
2672 char *kwnames[] = {
2673 (char *) "self", NULL
2674 };
2675
2676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
2677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2679 {
2680 PyThreadState* __tstate = wxPyBeginAllowThreads();
2681 result = (bool)(arg1)->Ok();
2682
2683 wxPyEndAllowThreads(__tstate);
2684 if (PyErr_Occurred()) SWIG_fail;
2685 }
4f89f6a3
RD
2686 {
2687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2688 }
d14a1e28
RD
2689 return resultobj;
2690 fail:
2691 return NULL;
2692}
2693
2694
2695static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2696 PyObject *obj;
2697 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2698 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2699 Py_INCREF(obj);
2700 return Py_BuildValue((char *)"");
2701}
2702static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2703 PyObject *resultobj;
2704 wxString *arg1 = 0 ;
2705 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2706 wxBitmap *result;
e811c8ce 2707 bool temp1 = False ;
d14a1e28 2708 PyObject * obj0 = 0 ;
994141e6 2709 PyObject * obj1 = 0 ;
d14a1e28
RD
2710 char *kwnames[] = {
2711 (char *) "name",(char *) "type", NULL
2712 };
2713
994141e6 2714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2715 {
2716 arg1 = wxString_in_helper(obj0);
2717 if (arg1 == NULL) SWIG_fail;
e811c8ce 2718 temp1 = True;
d14a1e28 2719 }
994141e6 2720 if (obj1) {
15afbcd0
RD
2721 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2722 if (PyErr_Occurred()) SWIG_fail;
994141e6 2723 }
d14a1e28
RD
2724 {
2725 PyThreadState* __tstate = wxPyBeginAllowThreads();
2726 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2727
2728 wxPyEndAllowThreads(__tstate);
2729 if (PyErr_Occurred()) SWIG_fail;
2730 }
15afbcd0 2731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2732 {
2733 if (temp1)
2734 delete arg1;
2735 }
2736 return resultobj;
2737 fail:
2738 {
2739 if (temp1)
2740 delete arg1;
2741 }
2742 return NULL;
2743}
2744
2745
2746static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2747 PyObject *resultobj;
2748 wxBitmap *arg1 = (wxBitmap *) 0 ;
2749 PyObject * obj0 = 0 ;
2750 char *kwnames[] = {
2751 (char *) "self", NULL
2752 };
2753
2754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
15afbcd0
RD
2755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2757 {
2758 PyThreadState* __tstate = wxPyBeginAllowThreads();
2759 delete arg1;
2760
2761 wxPyEndAllowThreads(__tstate);
2762 if (PyErr_Occurred()) SWIG_fail;
2763 }
2764 Py_INCREF(Py_None); resultobj = Py_None;
2765 return resultobj;
2766 fail:
2767 return NULL;
2768}
2769
2770
2771static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2772 PyObject *resultobj;
2773 int arg1 ;
2774 int arg2 ;
2775 int arg3 = (int) -1 ;
2776 wxBitmap *result;
994141e6
RD
2777 PyObject * obj0 = 0 ;
2778 PyObject * obj1 = 0 ;
2779 PyObject * obj2 = 0 ;
d14a1e28
RD
2780 char *kwnames[] = {
2781 (char *) "width",(char *) "height",(char *) "depth", NULL
2782 };
2783
994141e6 2784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
2785 arg1 = (int) SWIG_AsInt(obj0);
2786 if (PyErr_Occurred()) SWIG_fail;
2787 arg2 = (int) SWIG_AsInt(obj1);
2788 if (PyErr_Occurred()) SWIG_fail;
994141e6 2789 if (obj2) {
15afbcd0
RD
2790 arg3 = (int) SWIG_AsInt(obj2);
2791 if (PyErr_Occurred()) SWIG_fail;
994141e6 2792 }
d14a1e28
RD
2793 {
2794 PyThreadState* __tstate = wxPyBeginAllowThreads();
2795 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2796
2797 wxPyEndAllowThreads(__tstate);
2798 if (PyErr_Occurred()) SWIG_fail;
2799 }
15afbcd0 2800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2801 return resultobj;
2802 fail:
2803 return NULL;
2804}
2805
2806
2807static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2808 PyObject *resultobj;
2809 wxIcon *arg1 = 0 ;
2810 wxBitmap *result;
2811 PyObject * obj0 = 0 ;
2812 char *kwnames[] = {
2813 (char *) "icon", NULL
2814 };
2815
2816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
15afbcd0
RD
2817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2818 SWIG_POINTER_EXCEPTION | 0)) == -1)
2819 SWIG_fail;
d14a1e28 2820 if (arg1 == NULL) {
15afbcd0
RD
2821 PyErr_SetString(PyExc_TypeError,"null reference");
2822 SWIG_fail;
d14a1e28
RD
2823 }
2824 {
2825 PyThreadState* __tstate = wxPyBeginAllowThreads();
2826 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2827
2828 wxPyEndAllowThreads(__tstate);
2829 if (PyErr_Occurred()) SWIG_fail;
2830 }
15afbcd0 2831 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2832 return resultobj;
2833 fail:
2834 return NULL;
2835}
2836
2837
2838static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2839 PyObject *resultobj;
2840 wxImage *arg1 = 0 ;
2841 int arg2 = (int) -1 ;
2842 wxBitmap *result;
2843 PyObject * obj0 = 0 ;
994141e6 2844 PyObject * obj1 = 0 ;
d14a1e28
RD
2845 char *kwnames[] = {
2846 (char *) "image",(char *) "depth", NULL
2847 };
2848
994141e6 2849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2851 SWIG_POINTER_EXCEPTION | 0)) == -1)
2852 SWIG_fail;
d14a1e28 2853 if (arg1 == NULL) {
15afbcd0
RD
2854 PyErr_SetString(PyExc_TypeError,"null reference");
2855 SWIG_fail;
d14a1e28 2856 }
994141e6 2857 if (obj1) {
15afbcd0
RD
2858 arg2 = (int) SWIG_AsInt(obj1);
2859 if (PyErr_Occurred()) SWIG_fail;
994141e6 2860 }
d14a1e28
RD
2861 {
2862 PyThreadState* __tstate = wxPyBeginAllowThreads();
2863 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2864
2865 wxPyEndAllowThreads(__tstate);
2866 if (PyErr_Occurred()) SWIG_fail;
2867 }
15afbcd0 2868 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2869 return resultobj;
2870 fail:
2871 return NULL;
2872}
2873
2874
2875static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2876 PyObject *resultobj;
2877 PyObject *arg1 = (PyObject *) 0 ;
2878 wxBitmap *result;
2879 PyObject * obj0 = 0 ;
2880 char *kwnames[] = {
2881 (char *) "listOfStrings", NULL
2882 };
2883
2884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2885 arg1 = obj0;
2886 {
2887 PyThreadState* __tstate = wxPyBeginAllowThreads();
2888 result = (wxBitmap *)new_wxBitmap(arg1);
2889
2890 wxPyEndAllowThreads(__tstate);
2891 if (PyErr_Occurred()) SWIG_fail;
2892 }
15afbcd0 2893 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2894 return resultobj;
2895 fail:
2896 return NULL;
2897}
2898
2899
2900static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2901 PyObject *resultobj;
2902 PyObject *arg1 = (PyObject *) 0 ;
2903 int arg2 ;
2904 int arg3 ;
2905 int arg4 = (int) 1 ;
2906 wxBitmap *result;
2907 PyObject * obj0 = 0 ;
994141e6
RD
2908 PyObject * obj1 = 0 ;
2909 PyObject * obj2 = 0 ;
2910 PyObject * obj3 = 0 ;
d14a1e28
RD
2911 char *kwnames[] = {
2912 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2913 };
2914
994141e6 2915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 2916 arg1 = obj0;
15afbcd0
RD
2917 arg2 = (int) SWIG_AsInt(obj1);
2918 if (PyErr_Occurred()) SWIG_fail;
2919 arg3 = (int) SWIG_AsInt(obj2);
2920 if (PyErr_Occurred()) SWIG_fail;
994141e6 2921 if (obj3) {
15afbcd0
RD
2922 arg4 = (int) SWIG_AsInt(obj3);
2923 if (PyErr_Occurred()) SWIG_fail;
994141e6 2924 }
d14a1e28
RD
2925 {
2926 PyThreadState* __tstate = wxPyBeginAllowThreads();
2927 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2928
2929 wxPyEndAllowThreads(__tstate);
2930 if (PyErr_Occurred()) SWIG_fail;
2931 }
15afbcd0 2932 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2933 return resultobj;
2934 fail:
2935 return NULL;
2936}
2937
2938
2939static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2940 PyObject *resultobj;
2941 wxBitmap *arg1 = (wxBitmap *) 0 ;
2942 bool result;
2943 PyObject * obj0 = 0 ;
2944 char *kwnames[] = {
2945 (char *) "self", NULL
2946 };
2947
2948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
2949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2951 {
2952 PyThreadState* __tstate = wxPyBeginAllowThreads();
2953 result = (bool)(arg1)->Ok();
2954
2955 wxPyEndAllowThreads(__tstate);
2956 if (PyErr_Occurred()) SWIG_fail;
2957 }
4f89f6a3
RD
2958 {
2959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2960 }
d14a1e28
RD
2961 return resultobj;
2962 fail:
2963 return NULL;
2964}
2965
2966
2967static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2968 PyObject *resultobj;
2969 wxBitmap *arg1 = (wxBitmap *) 0 ;
2970 int result;
2971 PyObject * obj0 = 0 ;
2972 char *kwnames[] = {
2973 (char *) "self", NULL
2974 };
2975
2976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
2977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2979 {
2980 PyThreadState* __tstate = wxPyBeginAllowThreads();
2981 result = (int)(arg1)->GetWidth();
2982
2983 wxPyEndAllowThreads(__tstate);
2984 if (PyErr_Occurred()) SWIG_fail;
2985 }
15afbcd0 2986 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
2987 return resultobj;
2988 fail:
2989 return NULL;
2990}
2991
2992
2993static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2994 PyObject *resultobj;
2995 wxBitmap *arg1 = (wxBitmap *) 0 ;
2996 int result;
2997 PyObject * obj0 = 0 ;
2998 char *kwnames[] = {
2999 (char *) "self", NULL
3000 };
3001
3002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
3003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3005 {
3006 PyThreadState* __tstate = wxPyBeginAllowThreads();
3007 result = (int)(arg1)->GetHeight();
3008
3009 wxPyEndAllowThreads(__tstate);
3010 if (PyErr_Occurred()) SWIG_fail;
3011 }
15afbcd0 3012 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3013 return resultobj;
3014 fail:
3015 return NULL;
3016}
3017
3018
3019static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3020 PyObject *resultobj;
3021 wxBitmap *arg1 = (wxBitmap *) 0 ;
3022 int result;
3023 PyObject * obj0 = 0 ;
3024 char *kwnames[] = {
3025 (char *) "self", NULL
3026 };
3027
3028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
15afbcd0
RD
3029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3031 {
3032 PyThreadState* __tstate = wxPyBeginAllowThreads();
3033 result = (int)(arg1)->GetDepth();
3034
3035 wxPyEndAllowThreads(__tstate);
3036 if (PyErr_Occurred()) SWIG_fail;
3037 }
15afbcd0 3038 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3039 return resultobj;
3040 fail:
3041 return NULL;
3042}
3043
3044
3045static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3046 PyObject *resultobj;
3047 wxBitmap *arg1 = (wxBitmap *) 0 ;
3048 SwigValueWrapper< wxImage > result;
3049 PyObject * obj0 = 0 ;
3050 char *kwnames[] = {
3051 (char *) "self", NULL
3052 };
3053
3054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
15afbcd0
RD
3055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3057 {
3058 PyThreadState* __tstate = wxPyBeginAllowThreads();
3059 result = ((wxBitmap const *)arg1)->ConvertToImage();
3060
3061 wxPyEndAllowThreads(__tstate);
3062 if (PyErr_Occurred()) SWIG_fail;
3063 }
3064 {
3065 wxImage * resultptr;
3066 resultptr = new wxImage((wxImage &) result);
15afbcd0 3067 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
d14a1e28
RD
3068 }
3069 return resultobj;
3070 fail:
3071 return NULL;
3072}
3073
3074
3075static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3076 PyObject *resultobj;
3077 wxBitmap *arg1 = (wxBitmap *) 0 ;
3078 wxMask *result;
3079 PyObject * obj0 = 0 ;
3080 char *kwnames[] = {
3081 (char *) "self", NULL
3082 };
3083
3084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
15afbcd0
RD
3085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3087 {
3088 PyThreadState* __tstate = wxPyBeginAllowThreads();
3089 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3090
3091 wxPyEndAllowThreads(__tstate);
3092 if (PyErr_Occurred()) SWIG_fail;
3093 }
15afbcd0 3094 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
d14a1e28
RD
3095 return resultobj;
3096 fail:
3097 return NULL;
3098}
3099
3100
3101static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3102 PyObject *resultobj;
3103 wxBitmap *arg1 = (wxBitmap *) 0 ;
3104 wxMask *arg2 = (wxMask *) 0 ;
3105 PyObject * obj0 = 0 ;
3106 PyObject * obj1 = 0 ;
3107 char *kwnames[] = {
3108 (char *) "self",(char *) "mask", NULL
3109 };
3110
3111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3114 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3116 {
3117 PyThreadState* __tstate = wxPyBeginAllowThreads();
3118 (arg1)->SetMask(arg2);
3119
3120 wxPyEndAllowThreads(__tstate);
3121 if (PyErr_Occurred()) SWIG_fail;
3122 }
3123 Py_INCREF(Py_None); resultobj = Py_None;
3124 return resultobj;
3125 fail:
3126 return NULL;
3127}
3128
3129
3130static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3131 PyObject *resultobj;
3132 wxBitmap *arg1 = (wxBitmap *) 0 ;
3133 wxColour *arg2 = 0 ;
3134 wxColour temp2 ;
3135 PyObject * obj0 = 0 ;
3136 PyObject * obj1 = 0 ;
3137 char *kwnames[] = {
3138 (char *) "self",(char *) "colour", NULL
3139 };
3140
3141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3144 {
3145 arg2 = &temp2;
3146 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3147 }
3148 {
3149 PyThreadState* __tstate = wxPyBeginAllowThreads();
3150 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3151
3152 wxPyEndAllowThreads(__tstate);
3153 if (PyErr_Occurred()) SWIG_fail;
3154 }
3155 Py_INCREF(Py_None); resultobj = Py_None;
3156 return resultobj;
3157 fail:
3158 return NULL;
3159}
3160
3161
3162static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3163 PyObject *resultobj;
3164 wxBitmap *arg1 = (wxBitmap *) 0 ;
3165 wxRect *arg2 = 0 ;
3166 SwigValueWrapper< wxBitmap > result;
3167 wxRect temp2 ;
3168 PyObject * obj0 = 0 ;
3169 PyObject * obj1 = 0 ;
3170 char *kwnames[] = {
3171 (char *) "self",(char *) "rect", NULL
3172 };
3173
3174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3177 {
3178 arg2 = &temp2;
3179 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3180 }
3181 {
3182 PyThreadState* __tstate = wxPyBeginAllowThreads();
3183 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3184
3185 wxPyEndAllowThreads(__tstate);
3186 if (PyErr_Occurred()) SWIG_fail;
3187 }
3188 {
3189 wxBitmap * resultptr;
3190 resultptr = new wxBitmap((wxBitmap &) result);
15afbcd0 3191 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
3192 }
3193 return resultobj;
3194 fail:
3195 return NULL;
3196}
3197
3198
3199static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3200 PyObject *resultobj;
3201 wxBitmap *arg1 = (wxBitmap *) 0 ;
3202 wxString *arg2 = 0 ;
3203 int arg3 ;
3204 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3205 bool result;
e811c8ce 3206 bool temp2 = False ;
d14a1e28
RD
3207 PyObject * obj0 = 0 ;
3208 PyObject * obj1 = 0 ;
994141e6 3209 PyObject * obj2 = 0 ;
d14a1e28
RD
3210 PyObject * obj3 = 0 ;
3211 char *kwnames[] = {
3212 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3213 };
3214
994141e6 3215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
3216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3218 {
3219 arg2 = wxString_in_helper(obj1);
3220 if (arg2 == NULL) SWIG_fail;
e811c8ce 3221 temp2 = True;
d14a1e28 3222 }
15afbcd0
RD
3223 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3224 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3225 if (obj3) {
15afbcd0
RD
3226 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3228 }
3229 {
3230 PyThreadState* __tstate = wxPyBeginAllowThreads();
3231 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3232
3233 wxPyEndAllowThreads(__tstate);
3234 if (PyErr_Occurred()) SWIG_fail;
3235 }
4f89f6a3
RD
3236 {
3237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3238 }
d14a1e28
RD
3239 {
3240 if (temp2)
3241 delete arg2;
3242 }
3243 return resultobj;
3244 fail:
3245 {
3246 if (temp2)
3247 delete arg2;
3248 }
3249 return NULL;
3250}
3251
3252
3253static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3254 PyObject *resultobj;
3255 wxBitmap *arg1 = (wxBitmap *) 0 ;
3256 wxString *arg2 = 0 ;
3257 int arg3 ;
3258 bool result;
e811c8ce 3259 bool temp2 = False ;
d14a1e28
RD
3260 PyObject * obj0 = 0 ;
3261 PyObject * obj1 = 0 ;
994141e6 3262 PyObject * obj2 = 0 ;
d14a1e28
RD
3263 char *kwnames[] = {
3264 (char *) "self",(char *) "name",(char *) "type", NULL
3265 };
3266
994141e6 3267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
3268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3270 {
3271 arg2 = wxString_in_helper(obj1);
3272 if (arg2 == NULL) SWIG_fail;
e811c8ce 3273 temp2 = True;
d14a1e28 3274 }
15afbcd0
RD
3275 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3276 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3277 {
3278 PyThreadState* __tstate = wxPyBeginAllowThreads();
3279 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3280
3281 wxPyEndAllowThreads(__tstate);
3282 if (PyErr_Occurred()) SWIG_fail;
3283 }
4f89f6a3
RD
3284 {
3285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3286 }
d14a1e28
RD
3287 {
3288 if (temp2)
3289 delete arg2;
3290 }
3291 return resultobj;
3292 fail:
3293 {
3294 if (temp2)
3295 delete arg2;
3296 }
3297 return NULL;
3298}
3299
3300
3301static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3302 PyObject *resultobj;
3303 wxBitmap *arg1 = (wxBitmap *) 0 ;
3304 wxIcon *arg2 = 0 ;
3305 bool result;
3306 PyObject * obj0 = 0 ;
3307 PyObject * obj1 = 0 ;
3308 char *kwnames[] = {
3309 (char *) "self",(char *) "icon", NULL
3310 };
3311
3312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3315 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3316 SWIG_POINTER_EXCEPTION | 0)) == -1)
3317 SWIG_fail;
d14a1e28 3318 if (arg2 == NULL) {
15afbcd0
RD
3319 PyErr_SetString(PyExc_TypeError,"null reference");
3320 SWIG_fail;
d14a1e28
RD
3321 }
3322 {
3323 PyThreadState* __tstate = wxPyBeginAllowThreads();
3324 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3325
3326 wxPyEndAllowThreads(__tstate);
3327 if (PyErr_Occurred()) SWIG_fail;
3328 }
4f89f6a3
RD
3329 {
3330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3331 }
d14a1e28
RD
3332 return resultobj;
3333 fail:
3334 return NULL;
3335}
3336
3337
3338static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3339 PyObject *resultobj;
3340 wxBitmap *arg1 = (wxBitmap *) 0 ;
3341 int arg2 ;
3342 PyObject * obj0 = 0 ;
994141e6 3343 PyObject * obj1 = 0 ;
d14a1e28
RD
3344 char *kwnames[] = {
3345 (char *) "self",(char *) "height", NULL
3346 };
3347
994141e6 3348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3351 arg2 = (int) SWIG_AsInt(obj1);
3352 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3353 {
3354 PyThreadState* __tstate = wxPyBeginAllowThreads();
3355 (arg1)->SetHeight(arg2);
3356
3357 wxPyEndAllowThreads(__tstate);
3358 if (PyErr_Occurred()) SWIG_fail;
3359 }
3360 Py_INCREF(Py_None); resultobj = Py_None;
3361 return resultobj;
3362 fail:
3363 return NULL;
3364}
3365
3366
3367static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3368 PyObject *resultobj;
3369 wxBitmap *arg1 = (wxBitmap *) 0 ;
3370 int arg2 ;
3371 PyObject * obj0 = 0 ;
994141e6 3372 PyObject * obj1 = 0 ;
d14a1e28
RD
3373 char *kwnames[] = {
3374 (char *) "self",(char *) "width", NULL
3375 };
3376
994141e6 3377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3380 arg2 = (int) SWIG_AsInt(obj1);
3381 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3382 {
3383 PyThreadState* __tstate = wxPyBeginAllowThreads();
3384 (arg1)->SetWidth(arg2);
3385
3386 wxPyEndAllowThreads(__tstate);
3387 if (PyErr_Occurred()) SWIG_fail;
3388 }
3389 Py_INCREF(Py_None); resultobj = Py_None;
3390 return resultobj;
3391 fail:
3392 return NULL;
3393}
3394
3395
3396static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3397 PyObject *resultobj;
3398 wxBitmap *arg1 = (wxBitmap *) 0 ;
3399 int arg2 ;
3400 PyObject * obj0 = 0 ;
994141e6 3401 PyObject * obj1 = 0 ;
d14a1e28
RD
3402 char *kwnames[] = {
3403 (char *) "self",(char *) "depth", NULL
3404 };
3405
994141e6 3406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3409 arg2 = (int) SWIG_AsInt(obj1);
3410 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3411 {
3412 PyThreadState* __tstate = wxPyBeginAllowThreads();
3413 (arg1)->SetDepth(arg2);
3414
3415 wxPyEndAllowThreads(__tstate);
3416 if (PyErr_Occurred()) SWIG_fail;
3417 }
3418 Py_INCREF(Py_None); resultobj = Py_None;
3419 return resultobj;
3420 fail:
3421 return NULL;
3422}
3423
3424
4276dc52
RD
3425static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3426 PyObject *resultobj;
3427 wxBitmap *arg1 = (wxBitmap *) 0 ;
3428 wxBitmap *arg2 = (wxBitmap *) 0 ;
3429 bool result;
3430 PyObject * obj0 = 0 ;
3431 PyObject * obj1 = 0 ;
3432 char *kwnames[] = {
3433 (char *) "self",(char *) "other", NULL
3434 };
3435
3436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3439 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3441 {
3442 PyThreadState* __tstate = wxPyBeginAllowThreads();
3443 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3444
3445 wxPyEndAllowThreads(__tstate);
3446 if (PyErr_Occurred()) SWIG_fail;
3447 }
4f89f6a3
RD
3448 {
3449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3450 }
4276dc52
RD
3451 return resultobj;
3452 fail:
3453 return NULL;
3454}
3455
3456
3457static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3458 PyObject *resultobj;
3459 wxBitmap *arg1 = (wxBitmap *) 0 ;
3460 wxBitmap *arg2 = (wxBitmap *) 0 ;
3461 bool result;
3462 PyObject * obj0 = 0 ;
3463 PyObject * obj1 = 0 ;
3464 char *kwnames[] = {
3465 (char *) "self",(char *) "other", NULL
3466 };
3467
3468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3471 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3473 {
3474 PyThreadState* __tstate = wxPyBeginAllowThreads();
3475 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3476
3477 wxPyEndAllowThreads(__tstate);
3478 if (PyErr_Occurred()) SWIG_fail;
3479 }
4f89f6a3
RD
3480 {
3481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3482 }
4276dc52
RD
3483 return resultobj;
3484 fail:
3485 return NULL;
3486}
3487
3488
d14a1e28
RD
3489static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3490 PyObject *obj;
3491 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3492 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3493 Py_INCREF(obj);
3494 return Py_BuildValue((char *)"");
3495}
3496static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3497 PyObject *resultobj;
3498 wxBitmap *arg1 = 0 ;
0482c494
RD
3499 wxColour const &arg2_defvalue = wxNullColour ;
3500 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
d14a1e28
RD
3501 wxMask *result;
3502 wxColour temp2 ;
3503 PyObject * obj0 = 0 ;
3504 PyObject * obj1 = 0 ;
3505 char *kwnames[] = {
3506 (char *) "bitmap",(char *) "colour", NULL
3507 };
3508
0482c494 3509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3511 SWIG_POINTER_EXCEPTION | 0)) == -1)
3512 SWIG_fail;
d14a1e28 3513 if (arg1 == NULL) {
15afbcd0
RD
3514 PyErr_SetString(PyExc_TypeError,"null reference");
3515 SWIG_fail;
d14a1e28 3516 }
0482c494
RD
3517 if (obj1) {
3518 {
3519 arg2 = &temp2;
3520 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3521 }
d14a1e28
RD
3522 }
3523 {
3524 PyThreadState* __tstate = wxPyBeginAllowThreads();
0482c494 3525 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
d14a1e28
RD
3526
3527 wxPyEndAllowThreads(__tstate);
3528 if (PyErr_Occurred()) SWIG_fail;
3529 }
15afbcd0 3530 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
d14a1e28
RD
3531 return resultobj;
3532 fail:
3533 return NULL;
3534}
3535
3536
3537static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3538 PyObject *obj;
3539 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3540 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3541 Py_INCREF(obj);
3542 return Py_BuildValue((char *)"");
3543}
3544static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3545 PyObject *resultobj;
3546 wxString *arg1 = 0 ;
f87da722 3547 int arg2 ;
d14a1e28
RD
3548 int arg3 = (int) -1 ;
3549 int arg4 = (int) -1 ;
3550 wxIcon *result;
e811c8ce 3551 bool temp1 = False ;
d14a1e28 3552 PyObject * obj0 = 0 ;
994141e6
RD
3553 PyObject * obj1 = 0 ;
3554 PyObject * obj2 = 0 ;
3555 PyObject * obj3 = 0 ;
d14a1e28 3556 char *kwnames[] = {
f87da722 3557 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
d14a1e28
RD
3558 };
3559
994141e6 3560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
3561 {
3562 arg1 = wxString_in_helper(obj0);
3563 if (arg1 == NULL) SWIG_fail;
e811c8ce 3564 temp1 = True;
d14a1e28 3565 }
15afbcd0
RD
3566 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3567 if (PyErr_Occurred()) SWIG_fail;
994141e6 3568 if (obj2) {
15afbcd0
RD
3569 arg3 = (int) SWIG_AsInt(obj2);
3570 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3571 }
3572 if (obj3) {
15afbcd0
RD
3573 arg4 = (int) SWIG_AsInt(obj3);
3574 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3575 }
3576 {
3577 PyThreadState* __tstate = wxPyBeginAllowThreads();
3578 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3579
3580 wxPyEndAllowThreads(__tstate);
d14a1e28
RD
3581 if (PyErr_Occurred()) SWIG_fail;
3582 }
15afbcd0 3583 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3584 {
3585 if (temp1)
3586 delete arg1;
3587 }
3588 return resultobj;
3589 fail:
3590 {
3591 if (temp1)
3592 delete arg1;
3593 }
3594 return NULL;
3595}
3596
3597
3598static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3599 PyObject *resultobj;
3600 wxIcon *arg1 = (wxIcon *) 0 ;
3601 PyObject * obj0 = 0 ;
3602 char *kwnames[] = {
3603 (char *) "self", NULL
3604 };
3605
3606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
15afbcd0
RD
3607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3609 {
3610 PyThreadState* __tstate = wxPyBeginAllowThreads();
3611 delete arg1;
3612
3613 wxPyEndAllowThreads(__tstate);
3614 if (PyErr_Occurred()) SWIG_fail;
3615 }
3616 Py_INCREF(Py_None); resultobj = Py_None;
3617 return resultobj;
3618 fail:
3619 return NULL;
3620}
3621
3622
3623static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3624 PyObject *resultobj;
3625 wxIcon *result;
3626 char *kwnames[] = {
3627 NULL
3628 };
3629
3630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3631 {
3632 PyThreadState* __tstate = wxPyBeginAllowThreads();
3633 result = (wxIcon *)new wxIcon();
3634
3635 wxPyEndAllowThreads(__tstate);
3636 if (PyErr_Occurred()) SWIG_fail;
3637 }
15afbcd0 3638 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3639 return resultobj;
3640 fail:
3641 return NULL;
3642}
3643
3644
3645static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3646 PyObject *resultobj;
3647 wxIconLocation *arg1 = 0 ;
3648 wxIcon *result;
3649 PyObject * obj0 = 0 ;
3650 char *kwnames[] = {
3651 (char *) "loc", NULL
3652 };
3653
3654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
15afbcd0
RD
3655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3656 SWIG_POINTER_EXCEPTION | 0)) == -1)
3657 SWIG_fail;
d14a1e28 3658 if (arg1 == NULL) {
15afbcd0
RD
3659 PyErr_SetString(PyExc_TypeError,"null reference");
3660 SWIG_fail;
d14a1e28
RD
3661 }
3662 {
3663 PyThreadState* __tstate = wxPyBeginAllowThreads();
3664 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3665
3666 wxPyEndAllowThreads(__tstate);
3667 if (PyErr_Occurred()) SWIG_fail;
3668 }
15afbcd0 3669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3670 return resultobj;
3671 fail:
3672 return NULL;
3673}
3674
3675
3676static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3677 PyObject *resultobj;
3678 wxBitmap *arg1 = 0 ;
3679 wxIcon *result;
3680 PyObject * obj0 = 0 ;
3681 char *kwnames[] = {
3682 (char *) "bmp", NULL
3683 };
3684
3685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
15afbcd0
RD
3686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3687 SWIG_POINTER_EXCEPTION | 0)) == -1)
3688 SWIG_fail;
d14a1e28 3689 if (arg1 == NULL) {
15afbcd0
RD
3690 PyErr_SetString(PyExc_TypeError,"null reference");
3691 SWIG_fail;
d14a1e28
RD
3692 }
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3696
3697 wxPyEndAllowThreads(__tstate);
3698 if (PyErr_Occurred()) SWIG_fail;
3699 }
15afbcd0 3700 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3701 return resultobj;
3702 fail:
3703 return NULL;
3704}
3705
3706
3707static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3708 PyObject *resultobj;
3709 PyObject *arg1 = (PyObject *) 0 ;
3710 wxIcon *result;
3711 PyObject * obj0 = 0 ;
3712 char *kwnames[] = {
3713 (char *) "listOfStrings", NULL
3714 };
3715
3716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3717 arg1 = obj0;
3718 {
3719 PyThreadState* __tstate = wxPyBeginAllowThreads();
3720 result = (wxIcon *)new_wxIcon(arg1);
3721
3722 wxPyEndAllowThreads(__tstate);
3723 if (PyErr_Occurred()) SWIG_fail;
3724 }
15afbcd0 3725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3726 return resultobj;
3727 fail:
3728 return NULL;
3729}
3730
3731
3732static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3733 PyObject *resultobj;
3734 wxIcon *arg1 = (wxIcon *) 0 ;
3735 wxString *arg2 = 0 ;
f87da722 3736 int arg3 ;
d14a1e28 3737 bool result;
e811c8ce 3738 bool temp2 = False ;
d14a1e28
RD
3739 PyObject * obj0 = 0 ;
3740 PyObject * obj1 = 0 ;
994141e6 3741 PyObject * obj2 = 0 ;
d14a1e28 3742 char *kwnames[] = {
f87da722 3743 (char *) "self",(char *) "name",(char *) "type", NULL
d14a1e28
RD
3744 };
3745
994141e6 3746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
3747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3749 {
3750 arg2 = wxString_in_helper(obj1);
3751 if (arg2 == NULL) SWIG_fail;
e811c8ce 3752 temp2 = True;
d14a1e28 3753 }
15afbcd0
RD
3754 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3755 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3756 {
3757 PyThreadState* __tstate = wxPyBeginAllowThreads();
f87da722 3758 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
d14a1e28
RD
3759
3760 wxPyEndAllowThreads(__tstate);
3761 if (PyErr_Occurred()) SWIG_fail;
3762 }
4f89f6a3
RD
3763 {
3764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3765 }
d14a1e28
RD
3766 {
3767 if (temp2)
3768 delete arg2;
3769 }
3770 return resultobj;
3771 fail:
3772 {
3773 if (temp2)
3774 delete arg2;
3775 }
3776 return NULL;
3777}
3778
3779
3780static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3781 PyObject *resultobj;
3782 wxIcon *arg1 = (wxIcon *) 0 ;
3783 bool result;
3784 PyObject * obj0 = 0 ;
3785 char *kwnames[] = {
3786 (char *) "self", NULL
3787 };
3788
3789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
3790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3792 {
3793 PyThreadState* __tstate = wxPyBeginAllowThreads();
3794 result = (bool)(arg1)->Ok();
3795
3796 wxPyEndAllowThreads(__tstate);
3797 if (PyErr_Occurred()) SWIG_fail;
3798 }
4f89f6a3
RD
3799 {
3800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3801 }
d14a1e28
RD
3802 return resultobj;
3803 fail:
3804 return NULL;
3805}
3806
3807
3808static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3809 PyObject *resultobj;
3810 wxIcon *arg1 = (wxIcon *) 0 ;
3811 int result;
3812 PyObject * obj0 = 0 ;
3813 char *kwnames[] = {
3814 (char *) "self", NULL
3815 };
3816
3817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
3818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3820 {
3821 PyThreadState* __tstate = wxPyBeginAllowThreads();
3822 result = (int)(arg1)->GetWidth();
3823
3824 wxPyEndAllowThreads(__tstate);
3825 if (PyErr_Occurred()) SWIG_fail;
3826 }
15afbcd0 3827 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3828 return resultobj;
3829 fail:
3830 return NULL;
3831}
3832
3833
3834static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3835 PyObject *resultobj;
3836 wxIcon *arg1 = (wxIcon *) 0 ;
3837 int result;
3838 PyObject * obj0 = 0 ;
3839 char *kwnames[] = {
3840 (char *) "self", NULL
3841 };
3842
3843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
3844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3846 {
3847 PyThreadState* __tstate = wxPyBeginAllowThreads();
3848 result = (int)(arg1)->GetHeight();
3849
3850 wxPyEndAllowThreads(__tstate);
3851 if (PyErr_Occurred()) SWIG_fail;
3852 }
15afbcd0 3853 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3854 return resultobj;
3855 fail:
3856 return NULL;
3857}
3858
3859
3860static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3861 PyObject *resultobj;
3862 wxIcon *arg1 = (wxIcon *) 0 ;
3863 int result;
3864 PyObject * obj0 = 0 ;
3865 char *kwnames[] = {
3866 (char *) "self", NULL
3867 };
3868
3869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
15afbcd0
RD
3870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3872 {
3873 PyThreadState* __tstate = wxPyBeginAllowThreads();
3874 result = (int)(arg1)->GetDepth();
3875
3876 wxPyEndAllowThreads(__tstate);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 }
15afbcd0 3879 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3880 return resultobj;
3881 fail:
3882 return NULL;
3883}
3884
3885
3886static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3887 PyObject *resultobj;
3888 wxIcon *arg1 = (wxIcon *) 0 ;
3889 int arg2 ;
3890 PyObject * obj0 = 0 ;
994141e6 3891 PyObject * obj1 = 0 ;
d14a1e28
RD
3892 char *kwnames[] = {
3893 (char *) "self",(char *) "w", NULL
3894 };
3895
994141e6 3896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3899 arg2 = (int) SWIG_AsInt(obj1);
3900 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3901 {
3902 PyThreadState* __tstate = wxPyBeginAllowThreads();
3903 (arg1)->SetWidth(arg2);
3904
3905 wxPyEndAllowThreads(__tstate);
3906 if (PyErr_Occurred()) SWIG_fail;
3907 }
3908 Py_INCREF(Py_None); resultobj = Py_None;
3909 return resultobj;
3910 fail:
3911 return NULL;
3912}
3913
3914
3915static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3916 PyObject *resultobj;
3917 wxIcon *arg1 = (wxIcon *) 0 ;
3918 int arg2 ;
3919 PyObject * obj0 = 0 ;
994141e6 3920 PyObject * obj1 = 0 ;
d14a1e28
RD
3921 char *kwnames[] = {
3922 (char *) "self",(char *) "h", NULL
3923 };
3924
994141e6 3925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3928 arg2 = (int) SWIG_AsInt(obj1);
3929 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3930 {
3931 PyThreadState* __tstate = wxPyBeginAllowThreads();
3932 (arg1)->SetHeight(arg2);
3933
3934 wxPyEndAllowThreads(__tstate);
3935 if (PyErr_Occurred()) SWIG_fail;
3936 }
3937 Py_INCREF(Py_None); resultobj = Py_None;
3938 return resultobj;
3939 fail:
3940 return NULL;
3941}
3942
3943
3944static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3945 PyObject *resultobj;
3946 wxIcon *arg1 = (wxIcon *) 0 ;
3947 int arg2 ;
3948 PyObject * obj0 = 0 ;
994141e6 3949 PyObject * obj1 = 0 ;
d14a1e28
RD
3950 char *kwnames[] = {
3951 (char *) "self",(char *) "d", NULL
3952 };
3953
994141e6 3954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3957 arg2 = (int) SWIG_AsInt(obj1);
3958 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3959 {
3960 PyThreadState* __tstate = wxPyBeginAllowThreads();
3961 (arg1)->SetDepth(arg2);
3962
3963 wxPyEndAllowThreads(__tstate);
3964 if (PyErr_Occurred()) SWIG_fail;
3965 }
3966 Py_INCREF(Py_None); resultobj = Py_None;
3967 return resultobj;
3968 fail:
3969 return NULL;
3970}
3971
3972
3973static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3974 PyObject *resultobj;
3975 wxIcon *arg1 = (wxIcon *) 0 ;
3976 wxBitmap *arg2 = 0 ;
3977 PyObject * obj0 = 0 ;
3978 PyObject * obj1 = 0 ;
3979 char *kwnames[] = {
3980 (char *) "self",(char *) "bmp", NULL
3981 };
3982
3983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3986 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3987 SWIG_POINTER_EXCEPTION | 0)) == -1)
3988 SWIG_fail;
d14a1e28 3989 if (arg2 == NULL) {
15afbcd0
RD
3990 PyErr_SetString(PyExc_TypeError,"null reference");
3991 SWIG_fail;
d14a1e28
RD
3992 }
3993 {
3994 PyThreadState* __tstate = wxPyBeginAllowThreads();
3995 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3996
3997 wxPyEndAllowThreads(__tstate);
3998 if (PyErr_Occurred()) SWIG_fail;
3999 }
4000 Py_INCREF(Py_None); resultobj = Py_None;
4001 return resultobj;
4002 fail:
4003 return NULL;
4004}
4005
4006
4007static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4008 PyObject *obj;
4009 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4010 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4011 Py_INCREF(obj);
4012 return Py_BuildValue((char *)"");
4013}
4014static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4015 PyObject *resultobj;
4016 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4017 int arg2 = (int) 0 ;
4018 wxIconLocation *result;
7eae615b 4019 bool temp1 = False ;
d14a1e28 4020 PyObject * obj0 = 0 ;
994141e6 4021 PyObject * obj1 = 0 ;
d14a1e28
RD
4022 char *kwnames[] = {
4023 (char *) "filename",(char *) "num", NULL
4024 };
4025
994141e6 4026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 4027 if (obj0) {
7eae615b
RD
4028 {
4029 arg1 = wxString_in_helper(obj0);
4030 if (arg1 == NULL) SWIG_fail;
4031 temp1 = True;
4032 }
d14a1e28 4033 }
994141e6 4034 if (obj1) {
15afbcd0
RD
4035 arg2 = (int) SWIG_AsInt(obj1);
4036 if (PyErr_Occurred()) SWIG_fail;
994141e6 4037 }
d14a1e28
RD
4038 {
4039 PyThreadState* __tstate = wxPyBeginAllowThreads();
4040 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4041
4042 wxPyEndAllowThreads(__tstate);
4043 if (PyErr_Occurred()) SWIG_fail;
4044 }
15afbcd0 4045 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
7eae615b
RD
4046 {
4047 if (temp1)
4048 delete arg1;
4049 }
d14a1e28
RD
4050 return resultobj;
4051 fail:
7eae615b
RD
4052 {
4053 if (temp1)
4054 delete arg1;
4055 }
d14a1e28
RD
4056 return NULL;
4057}
4058
4059
4060static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4061 PyObject *resultobj;
4062 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4063 PyObject * obj0 = 0 ;
4064 char *kwnames[] = {
4065 (char *) "self", NULL
4066 };
4067
4068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
15afbcd0
RD
4069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4071 {
4072 PyThreadState* __tstate = wxPyBeginAllowThreads();
4073 delete arg1;
4074
4075 wxPyEndAllowThreads(__tstate);
4076 if (PyErr_Occurred()) SWIG_fail;
4077 }
4078 Py_INCREF(Py_None); resultobj = Py_None;
4079 return resultobj;
4080 fail:
4081 return NULL;
4082}
4083
4084
4085static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4086 PyObject *resultobj;
4087 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4088 bool result;
4089 PyObject * obj0 = 0 ;
4090 char *kwnames[] = {
4091 (char *) "self", NULL
4092 };
4093
4094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
15afbcd0
RD
4095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4097 {
4098 PyThreadState* __tstate = wxPyBeginAllowThreads();
4099 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4100
4101 wxPyEndAllowThreads(__tstate);
4102 if (PyErr_Occurred()) SWIG_fail;
4103 }
4f89f6a3
RD
4104 {
4105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4106 }
d14a1e28
RD
4107 return resultobj;
4108 fail:
4109 return NULL;
4110}
4111
4112
4113static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4114 PyObject *resultobj;
4115 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4116 wxString *arg2 = 0 ;
e811c8ce 4117 bool temp2 = False ;
d14a1e28
RD
4118 PyObject * obj0 = 0 ;
4119 PyObject * obj1 = 0 ;
4120 char *kwnames[] = {
4121 (char *) "self",(char *) "filename", NULL
4122 };
4123
4124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4127 {
4128 arg2 = wxString_in_helper(obj1);
4129 if (arg2 == NULL) SWIG_fail;
e811c8ce 4130 temp2 = True;
d14a1e28
RD
4131 }
4132 {
4133 PyThreadState* __tstate = wxPyBeginAllowThreads();
4134 (arg1)->SetFileName((wxString const &)*arg2);
4135
4136 wxPyEndAllowThreads(__tstate);
4137 if (PyErr_Occurred()) SWIG_fail;
4138 }
4139 Py_INCREF(Py_None); resultobj = Py_None;
4140 {
4141 if (temp2)
4142 delete arg2;
4143 }
4144 return resultobj;
4145 fail:
4146 {
4147 if (temp2)
4148 delete arg2;
4149 }
4150 return NULL;
4151}
4152
4153
4154static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4155 PyObject *resultobj;
4156 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4157 wxString *result;
4158 PyObject * obj0 = 0 ;
4159 char *kwnames[] = {
4160 (char *) "self", NULL
4161 };
4162
4163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
15afbcd0
RD
4164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4166 {
4167 PyThreadState* __tstate = wxPyBeginAllowThreads();
4168 {
4169 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4170 result = (wxString *) &_result_ref;
4171 }
4172
4173 wxPyEndAllowThreads(__tstate);
4174 if (PyErr_Occurred()) SWIG_fail;
4175 }
cc6dd355
RD
4176 {
4177#if wxUSE_UNICODE
4178 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4179#else
4180 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4181#endif
4182 }
d14a1e28
RD
4183 return resultobj;
4184 fail:
4185 return NULL;
4186}
4187
4188
4189static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4190 PyObject *resultobj;
4191 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4192 int arg2 ;
4193 PyObject * obj0 = 0 ;
994141e6 4194 PyObject * obj1 = 0 ;
d14a1e28
RD
4195 char *kwnames[] = {
4196 (char *) "self",(char *) "num", NULL
4197 };
4198
994141e6 4199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4202 arg2 = (int) SWIG_AsInt(obj1);
4203 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4204 {
4205 PyThreadState* __tstate = wxPyBeginAllowThreads();
4206 wxIconLocation_SetIndex(arg1,arg2);
4207
4208 wxPyEndAllowThreads(__tstate);
4209 if (PyErr_Occurred()) SWIG_fail;
4210 }
4211 Py_INCREF(Py_None); resultobj = Py_None;
4212 return resultobj;
4213 fail:
4214 return NULL;
4215}
4216
4217
4218static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4219 PyObject *resultobj;
4220 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4221 int result;
4222 PyObject * obj0 = 0 ;
4223 char *kwnames[] = {
4224 (char *) "self", NULL
4225 };
4226
4227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
15afbcd0
RD
4228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4230 {
4231 PyThreadState* __tstate = wxPyBeginAllowThreads();
4232 result = (int)wxIconLocation_GetIndex(arg1);
4233
4234 wxPyEndAllowThreads(__tstate);
4235 if (PyErr_Occurred()) SWIG_fail;
4236 }
15afbcd0 4237 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4238 return resultobj;
4239 fail:
4240 return NULL;
4241}
4242
4243
4244static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4245 PyObject *obj;
4246 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4247 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4248 Py_INCREF(obj);
4249 return Py_BuildValue((char *)"");
4250}
4251static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4252 PyObject *resultobj;
4253 wxIconBundle *result;
4254 char *kwnames[] = {
4255 NULL
4256 };
4257
4258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4259 {
4260 PyThreadState* __tstate = wxPyBeginAllowThreads();
4261 result = (wxIconBundle *)new wxIconBundle();
4262
4263 wxPyEndAllowThreads(__tstate);
4264 if (PyErr_Occurred()) SWIG_fail;
4265 }
15afbcd0 4266 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4267 return resultobj;
4268 fail:
4269 return NULL;
4270}
4271
4272
4273static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4274 PyObject *resultobj;
4275 wxString *arg1 = 0 ;
4276 long arg2 ;
4277 wxIconBundle *result;
e811c8ce 4278 bool temp1 = False ;
d14a1e28 4279 PyObject * obj0 = 0 ;
994141e6 4280 PyObject * obj1 = 0 ;
d14a1e28
RD
4281 char *kwnames[] = {
4282 (char *) "file",(char *) "type", NULL
4283 };
4284
994141e6 4285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
4286 {
4287 arg1 = wxString_in_helper(obj0);
4288 if (arg1 == NULL) SWIG_fail;
e811c8ce 4289 temp1 = True;
d14a1e28 4290 }
15afbcd0
RD
4291 arg2 = (long) SWIG_AsLong(obj1);
4292 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4293 {
4294 PyThreadState* __tstate = wxPyBeginAllowThreads();
4295 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4296
4297 wxPyEndAllowThreads(__tstate);
4298 if (PyErr_Occurred()) SWIG_fail;
4299 }
15afbcd0 4300 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4301 {
4302 if (temp1)
4303 delete arg1;
4304 }
4305 return resultobj;
4306 fail:
4307 {
4308 if (temp1)
4309 delete arg1;
4310 }
4311 return NULL;
4312}
4313
4314
4315static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4316 PyObject *resultobj;
4317 wxIcon *arg1 = 0 ;
4318 wxIconBundle *result;
4319 PyObject * obj0 = 0 ;
4320 char *kwnames[] = {
4321 (char *) "icon", NULL
4322 };
4323
4324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
15afbcd0
RD
4325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4326 SWIG_POINTER_EXCEPTION | 0)) == -1)
4327 SWIG_fail;
d14a1e28 4328 if (arg1 == NULL) {
15afbcd0
RD
4329 PyErr_SetString(PyExc_TypeError,"null reference");
4330 SWIG_fail;
d14a1e28
RD
4331 }
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4335
4336 wxPyEndAllowThreads(__tstate);
4337 if (PyErr_Occurred()) SWIG_fail;
4338 }
15afbcd0 4339 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4340 return resultobj;
4341 fail:
4342 return NULL;
4343}
4344
4345
4346static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4347 PyObject *resultobj;
4348 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4349 PyObject * obj0 = 0 ;
4350 char *kwnames[] = {
4351 (char *) "self", NULL
4352 };
4353
4354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
15afbcd0
RD
4355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4357 {
4358 PyThreadState* __tstate = wxPyBeginAllowThreads();
4359 delete arg1;
4360
4361 wxPyEndAllowThreads(__tstate);
4362 if (PyErr_Occurred()) SWIG_fail;
4363 }
4364 Py_INCREF(Py_None); resultobj = Py_None;
4365 return resultobj;
4366 fail:
4367 return NULL;
4368}
4369
4370
4371static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4372 PyObject *resultobj;
4373 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4374 wxIcon *arg2 = 0 ;
4375 PyObject * obj0 = 0 ;
4376 PyObject * obj1 = 0 ;
4377 char *kwnames[] = {
4378 (char *) "self",(char *) "icon", NULL
4379 };
4380
4381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4384 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4385 SWIG_POINTER_EXCEPTION | 0)) == -1)
4386 SWIG_fail;
d14a1e28 4387 if (arg2 == NULL) {
15afbcd0
RD
4388 PyErr_SetString(PyExc_TypeError,"null reference");
4389 SWIG_fail;
d14a1e28
RD
4390 }
4391 {
4392 PyThreadState* __tstate = wxPyBeginAllowThreads();
4393 (arg1)->AddIcon((wxIcon const &)*arg2);
4394
4395 wxPyEndAllowThreads(__tstate);
4396 if (PyErr_Occurred()) SWIG_fail;
4397 }
4398 Py_INCREF(Py_None); resultobj = Py_None;
4399 return resultobj;
4400 fail:
4401 return NULL;
4402}
4403
4404
4405static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4406 PyObject *resultobj;
4407 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4408 wxString *arg2 = 0 ;
4409 long arg3 ;
e811c8ce 4410 bool temp2 = False ;
d14a1e28
RD
4411 PyObject * obj0 = 0 ;
4412 PyObject * obj1 = 0 ;
994141e6 4413 PyObject * obj2 = 0 ;
d14a1e28
RD
4414 char *kwnames[] = {
4415 (char *) "self",(char *) "file",(char *) "type", NULL
4416 };
4417
994141e6 4418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
4419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4421 {
4422 arg2 = wxString_in_helper(obj1);
4423 if (arg2 == NULL) SWIG_fail;
e811c8ce 4424 temp2 = True;
d14a1e28 4425 }
15afbcd0
RD
4426 arg3 = (long) SWIG_AsLong(obj2);
4427 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4428 {
4429 PyThreadState* __tstate = wxPyBeginAllowThreads();
4430 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4431
4432 wxPyEndAllowThreads(__tstate);
4433 if (PyErr_Occurred()) SWIG_fail;
4434 }
4435 Py_INCREF(Py_None); resultobj = Py_None;
4436 {
4437 if (temp2)
4438 delete arg2;
4439 }
4440 return resultobj;
4441 fail:
4442 {
4443 if (temp2)
4444 delete arg2;
4445 }
4446 return NULL;
4447}
4448
4449
4450static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4451 PyObject *resultobj;
4452 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4453 wxSize *arg2 = 0 ;
4454 wxIcon *result;
4455 wxSize temp2 ;
4456 PyObject * obj0 = 0 ;
4457 PyObject * obj1 = 0 ;
4458 char *kwnames[] = {
4459 (char *) "self",(char *) "size", NULL
4460 };
4461
4462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4465 {
4466 arg2 = &temp2;
4467 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4468 }
4469 {
4470 PyThreadState* __tstate = wxPyBeginAllowThreads();
4471 {
4472 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4473 result = (wxIcon *) &_result_ref;
4474 }
4475
4476 wxPyEndAllowThreads(__tstate);
4477 if (PyErr_Occurred()) SWIG_fail;
4478 }
4276dc52
RD
4479 {
4480 wxIcon* resultptr = new wxIcon(*result);
4481 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4482 }
d14a1e28
RD
4483 return resultobj;
4484 fail:
4485 return NULL;
4486}
4487
4488
4489static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4490 PyObject *obj;
4491 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4492 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4493 Py_INCREF(obj);
4494 return Py_BuildValue((char *)"");
4495}
4496static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4497 PyObject *resultobj;
4498 wxString *arg1 = (wxString *) 0 ;
4499 long arg2 ;
4500 int arg3 = (int) 0 ;
4501 int arg4 = (int) 0 ;
4502 wxCursor *result;
7eae615b 4503 bool temp1 = False ;
d14a1e28 4504 PyObject * obj0 = 0 ;
994141e6
RD
4505 PyObject * obj1 = 0 ;
4506 PyObject * obj2 = 0 ;
4507 PyObject * obj3 = 0 ;
d14a1e28 4508 char *kwnames[] = {
15afbcd0 4509 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
d14a1e28
RD
4510 };
4511
994141e6 4512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7eae615b
RD
4513 {
4514 arg1 = wxString_in_helper(obj0);
4515 if (arg1 == NULL) SWIG_fail;
4516 temp1 = True;
4517 }
15afbcd0
RD
4518 arg2 = (long) SWIG_AsLong(obj1);
4519 if (PyErr_Occurred()) SWIG_fail;
994141e6 4520 if (obj2) {
15afbcd0
RD
4521 arg3 = (int) SWIG_AsInt(obj2);
4522 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
4523 }
4524 if (obj3) {
15afbcd0
RD
4525 arg4 = (int) SWIG_AsInt(obj3);
4526 if (PyErr_Occurred()) SWIG_fail;
994141e6 4527 }
d14a1e28
RD
4528 {
4529 PyThreadState* __tstate = wxPyBeginAllowThreads();
4530 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4531
4532 wxPyEndAllowThreads(__tstate);
4533 if (PyErr_Occurred()) SWIG_fail;
4534 }
15afbcd0 4535 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
7eae615b
RD
4536 {
4537 if (temp1)
4538 delete arg1;
4539 }
d14a1e28
RD
4540 return resultobj;
4541 fail:
7eae615b
RD
4542 {
4543 if (temp1)
4544 delete arg1;
4545 }
d14a1e28
RD
4546 return NULL;
4547}
4548
4549
4550static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4551 PyObject *resultobj;
4552 wxCursor *arg1 = (wxCursor *) 0 ;
4553 PyObject * obj0 = 0 ;
4554 char *kwnames[] = {
4555 (char *) "self", NULL
4556 };
4557
4558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
15afbcd0
RD
4559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4561 {
4562 PyThreadState* __tstate = wxPyBeginAllowThreads();
4563 delete arg1;
4564
4565 wxPyEndAllowThreads(__tstate);
4566 if (PyErr_Occurred()) SWIG_fail;
4567 }
4568 Py_INCREF(Py_None); resultobj = Py_None;
4569 return resultobj;
4570 fail:
4571 return NULL;
4572}
4573
4574
4575static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4576 PyObject *resultobj;
4577 int arg1 ;
4578 wxCursor *result;
994141e6 4579 PyObject * obj0 = 0 ;
d14a1e28
RD
4580 char *kwnames[] = {
4581 (char *) "id", NULL
4582 };
4583
994141e6 4584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
15afbcd0
RD
4585 arg1 = (int) SWIG_AsInt(obj0);
4586 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4587 {
4588 PyThreadState* __tstate = wxPyBeginAllowThreads();
4589 result = (wxCursor *)new wxCursor(arg1);
4590
4591 wxPyEndAllowThreads(__tstate);
4592 if (PyErr_Occurred()) SWIG_fail;
4593 }
15afbcd0 4594 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d14a1e28
RD
4595 return resultobj;
4596 fail:
4597 return NULL;
4598}
4599
4600
4601static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4602 PyObject *resultobj;
4603 wxImage *arg1 = 0 ;
4604 wxCursor *result;
4605 PyObject * obj0 = 0 ;
4606 char *kwnames[] = {
4607 (char *) "image", NULL
4608 };
4609
4610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
15afbcd0
RD
4611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4612 SWIG_POINTER_EXCEPTION | 0)) == -1)
4613 SWIG_fail;
d14a1e28 4614 if (arg1 == NULL) {
15afbcd0
RD
4615 PyErr_SetString(PyExc_TypeError,"null reference");
4616 SWIG_fail;
d14a1e28
RD
4617 }
4618 {
4619 PyThreadState* __tstate = wxPyBeginAllowThreads();
4620 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4621
4622 wxPyEndAllowThreads(__tstate);
4623 if (PyErr_Occurred()) SWIG_fail;
4624 }
15afbcd0 4625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d14a1e28
RD
4626 return resultobj;
4627 fail:
4628 return NULL;
4629}
4630
4631
15afbcd0 4632static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
4633 PyObject *resultobj;
4634 wxCursor *arg1 = (wxCursor *) 0 ;
4635 bool result;
4636 PyObject * obj0 = 0 ;
4637 char *kwnames[] = {
4638 (char *) "self", NULL
4639 };
4640
4641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
4642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4644 {
4645 PyThreadState* __tstate = wxPyBeginAllowThreads();
4646 result = (bool)(arg1)->Ok();
4647
4648 wxPyEndAllowThreads(__tstate);
4649 if (PyErr_Occurred()) SWIG_fail;
4650 }
4f89f6a3
RD
4651 {
4652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4653 }
d14a1e28
RD
4654 return resultobj;
4655 fail:
4656 return NULL;
4657}
4658
4659
4660static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4661 PyObject *obj;
4662 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4663 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4664 Py_INCREF(obj);
4665 return Py_BuildValue((char *)"");
4666}
4667static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4668 PyObject *resultobj;
e811c8ce
RD
4669 int arg1 = (int) 0 ;
4670 int arg2 = (int) 0 ;
4671 int arg3 = (int) 0 ;
4672 int arg4 = (int) 0 ;
d14a1e28 4673 wxRegion *result;
994141e6
RD
4674 PyObject * obj0 = 0 ;
4675 PyObject * obj1 = 0 ;
4676 PyObject * obj2 = 0 ;
4677 PyObject * obj3 = 0 ;
d14a1e28
RD
4678 char *kwnames[] = {
4679 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4680 };
4681
994141e6
RD
4682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4683 if (obj0) {
15afbcd0
RD
4684 arg1 = (int) SWIG_AsInt(obj0);
4685 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
4686 }
4687 if (obj1) {
15afbcd0
RD
4688 arg2 = (int) SWIG_AsInt(obj1);
4689 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
4690 }
4691 if (obj2) {
15afbcd0
RD
4692 arg3 = (int) SWIG_AsInt(obj2);
4693 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
4694 }
4695 if (obj3) {
15afbcd0
RD
4696 arg4 = (int) SWIG_AsInt(obj3);
4697 if (PyErr_Occurred()) SWIG_fail;
994141e6 4698 }
d14a1e28
RD
4699 {
4700 PyThreadState* __tstate = wxPyBeginAllowThreads();
4701 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4702
4703 wxPyEndAllowThreads(__tstate);
4704 if (PyErr_Occurred()) SWIG_fail;
4705 }
15afbcd0 4706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
4707 return resultobj;
4708 fail:
4709 return NULL;
4710}
4711
4712
4713static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4714 PyObject *resultobj;
4715 wxBitmap *arg1 = 0 ;
4716 wxColour const &arg2_defvalue = wxNullColour ;
4717 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4718 int arg3 = (int) 0 ;
4719 wxRegion *result;
4720 wxColour temp2 ;
4721 PyObject * obj0 = 0 ;
4722 PyObject * obj1 = 0 ;
994141e6 4723 PyObject * obj2 = 0 ;
d14a1e28
RD
4724 char *kwnames[] = {
4725 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4726 };
4727
994141e6 4728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
4729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4730 SWIG_POINTER_EXCEPTION | 0)) == -1)
4731 SWIG_fail;
d14a1e28 4732 if (arg1 == NULL) {
15afbcd0
RD
4733 PyErr_SetString(PyExc_TypeError,"null reference");
4734 SWIG_fail;
d14a1e28
RD
4735 }
4736 if (obj1) {
4737 {
4738 arg2 = &temp2;
4739 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4740 }
4741 }
994141e6 4742 if (obj2) {
15afbcd0
RD
4743 arg3 = (int) SWIG_AsInt(obj2);
4744 if (PyErr_Occurred()) SWIG_fail;
994141e6 4745 }
d14a1e28
RD
4746 {
4747 PyThreadState* __tstate = wxPyBeginAllowThreads();
4748 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4749
4750 wxPyEndAllowThreads(__tstate);
4751 if (PyErr_Occurred()) SWIG_fail;
4752 }
15afbcd0 4753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
4754 return resultobj;
4755 fail:
4756 return NULL;
4757}
4758
4759
4760static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4761 PyObject *resultobj;
4762 int arg1 ;
4763 wxPoint *arg2 = (wxPoint *) 0 ;
4764 int arg3 = (int) wxWINDING_RULE ;
4765 wxRegion *result;
4766 PyObject * obj0 = 0 ;
994141e6 4767 PyObject * obj1 = 0 ;
d14a1e28
RD
4768 char *kwnames[] = {
4769 (char *) "points",(char *) "fillStyle", NULL
4770 };
4771
994141e6 4772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
4773 {
4774 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4775 if (arg2 == NULL) SWIG_fail;
4776 }
994141e6 4777 if (obj1) {
15afbcd0
RD
4778 arg3 = (int) SWIG_AsInt(obj1);
4779 if (PyErr_Occurred()) SWIG_fail;
994141e6 4780 }
d14a1e28
RD
4781 {
4782 PyThreadState* __tstate = wxPyBeginAllowThreads();
4783 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4784
4785 wxPyEndAllowThreads(__tstate);
4786 if (PyErr_Occurred()) SWIG_fail;
4787 }
15afbcd0 4788 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
4789 {
4790 if (arg2) delete [] arg2;
4791 }
4792 return resultobj;
4793 fail:
4794 {
4795 if (arg2) delete [] arg2;
4796 }
4797 return NULL;
4798}
4799
4800
4801static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4802 PyObject *resultobj;
4803 wxRegion *arg1 = (wxRegion *) 0 ;
4804 PyObject * obj0 = 0 ;
4805 char *kwnames[] = {
4806 (char *) "self", NULL
4807 };
4808
4809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
15afbcd0
RD
4810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 delete arg1;
4815
4816 wxPyEndAllowThreads(__tstate);
4817 if (PyErr_Occurred()) SWIG_fail;
4818 }
4819 Py_INCREF(Py_None); resultobj = Py_None;
4820 return resultobj;
4821 fail:
4822 return NULL;
4823}
4824
4825
4826static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4827 PyObject *resultobj;
4828 wxRegion *arg1 = (wxRegion *) 0 ;
4829 PyObject * obj0 = 0 ;
4830 char *kwnames[] = {
4831 (char *) "self", NULL
4832 };
4833
4834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
15afbcd0
RD
4835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4837 {
4838 PyThreadState* __tstate = wxPyBeginAllowThreads();
4839 (arg1)->Clear();
4840
4841 wxPyEndAllowThreads(__tstate);
4842 if (PyErr_Occurred()) SWIG_fail;
4843 }
4844 Py_INCREF(Py_None); resultobj = Py_None;
4845 return resultobj;
4846 fail:
4847 return NULL;
4848}
4849
4850
4851static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4852 PyObject *resultobj;
4853 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
4854 int arg2 ;
4855 int arg3 ;
d14a1e28
RD
4856 bool result;
4857 PyObject * obj0 = 0 ;
994141e6
RD
4858 PyObject * obj1 = 0 ;
4859 PyObject * obj2 = 0 ;
d14a1e28
RD
4860 char *kwnames[] = {
4861 (char *) "self",(char *) "x",(char *) "y", NULL
4862 };
4863
994141e6 4864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
4865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4867 arg2 = (int) SWIG_AsInt(obj1);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 arg3 = (int) SWIG_AsInt(obj2);
4870 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4871 {
4872 PyThreadState* __tstate = wxPyBeginAllowThreads();
4873 result = (bool)(arg1)->Offset(arg2,arg3);
4874
4875 wxPyEndAllowThreads(__tstate);
4876 if (PyErr_Occurred()) SWIG_fail;
4877 }
4f89f6a3
RD
4878 {
4879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4880 }
d14a1e28
RD
4881 return resultobj;
4882 fail:
4883 return NULL;
4884}
4885
4886
4887static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4888 PyObject *resultobj;
4889 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
4890 int arg2 ;
4891 int arg3 ;
d14a1e28
RD
4892 int result;
4893 PyObject * obj0 = 0 ;
994141e6
RD
4894 PyObject * obj1 = 0 ;
4895 PyObject * obj2 = 0 ;
d14a1e28
RD
4896 char *kwnames[] = {
4897 (char *) "self",(char *) "x",(char *) "y", NULL
4898 };
4899
994141e6 4900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
4901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4903 arg2 = (int) SWIG_AsInt(obj1);
4904 if (PyErr_Occurred()) SWIG_fail;
4905 arg3 = (int) SWIG_AsInt(obj2);
4906 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4907 {
4908 PyThreadState* __tstate = wxPyBeginAllowThreads();
4909 result = (int)(arg1)->Contains(arg2,arg3);
4910
4911 wxPyEndAllowThreads(__tstate);
4912 if (PyErr_Occurred()) SWIG_fail;
4913 }
15afbcd0 4914 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4915 return resultobj;
4916 fail:
4917 return NULL;
4918}
4919
4920
4921static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4922 PyObject *resultobj;
4923 wxRegion *arg1 = (wxRegion *) 0 ;
4924 wxPoint *arg2 = 0 ;
4925 int result;
4926 wxPoint temp2 ;
4927 PyObject * obj0 = 0 ;
4928 PyObject * obj1 = 0 ;
4929 char *kwnames[] = {
4930 (char *) "self",(char *) "pt", NULL
4931 };
4932
4933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4936 {
4937 arg2 = &temp2;
4938 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4939 }
4940 {
4941 PyThreadState* __tstate = wxPyBeginAllowThreads();
4942 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4943
4944 wxPyEndAllowThreads(__tstate);
4945 if (PyErr_Occurred()) SWIG_fail;
4946 }
15afbcd0 4947 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4948 return resultobj;
4949 fail:
4950 return NULL;
4951}
4952
4953
4954static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4955 PyObject *resultobj;
4956 wxRegion *arg1 = (wxRegion *) 0 ;
4957 wxRect *arg2 = 0 ;
4958 int result;
4959 wxRect temp2 ;
4960 PyObject * obj0 = 0 ;
4961 PyObject * obj1 = 0 ;
4962 char *kwnames[] = {
4963 (char *) "self",(char *) "rect", NULL
4964 };
4965
4966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4969 {
4970 arg2 = &temp2;
4971 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4972 }
4973 {
4974 PyThreadState* __tstate = wxPyBeginAllowThreads();
4975 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4976
4977 wxPyEndAllowThreads(__tstate);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 }
15afbcd0 4980 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4981 return resultobj;
4982 fail:
4983 return NULL;
4984}
4985
4986
4987static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4988 PyObject *resultobj;
4989 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
4990 int arg2 ;
4991 int arg3 ;
4992 int arg4 ;
4993 int arg5 ;
d14a1e28
RD
4994 int result;
4995 PyObject * obj0 = 0 ;
994141e6
RD
4996 PyObject * obj1 = 0 ;
4997 PyObject * obj2 = 0 ;
4998 PyObject * obj3 = 0 ;
4999 PyObject * obj4 = 0 ;
d14a1e28
RD
5000 char *kwnames[] = {
5001 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5002 };
5003
994141e6 5004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
5005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5007 arg2 = (int) SWIG_AsInt(obj1);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 arg3 = (int) SWIG_AsInt(obj2);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 arg4 = (int) SWIG_AsInt(obj3);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 arg5 = (int) SWIG_AsInt(obj4);
5014 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5015 {
5016 PyThreadState* __tstate = wxPyBeginAllowThreads();
5017 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5018
5019 wxPyEndAllowThreads(__tstate);
5020 if (PyErr_Occurred()) SWIG_fail;
5021 }
15afbcd0 5022 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5023 return resultobj;
5024 fail:
5025 return NULL;
5026}
5027
5028
5029static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5030 PyObject *resultobj;
5031 wxRegion *arg1 = (wxRegion *) 0 ;
5032 wxRect result;
5033 PyObject * obj0 = 0 ;
5034 char *kwnames[] = {
5035 (char *) "self", NULL
5036 };
5037
5038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
15afbcd0
RD
5039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5041 {
5042 PyThreadState* __tstate = wxPyBeginAllowThreads();
5043 result = (arg1)->GetBox();
5044
5045 wxPyEndAllowThreads(__tstate);
5046 if (PyErr_Occurred()) SWIG_fail;
5047 }
5048 {
5049 wxRect * resultptr;
5050 resultptr = new wxRect((wxRect &) result);
15afbcd0 5051 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
5052 }
5053 return resultobj;
5054 fail:
5055 return NULL;
5056}
5057
5058
5059static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5060 PyObject *resultobj;
5061 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
5062 int arg2 ;
5063 int arg3 ;
5064 int arg4 ;
5065 int arg5 ;
d14a1e28
RD
5066 bool result;
5067 PyObject * obj0 = 0 ;
994141e6
RD
5068 PyObject * obj1 = 0 ;
5069 PyObject * obj2 = 0 ;
5070 PyObject * obj3 = 0 ;
5071 PyObject * obj4 = 0 ;
d14a1e28
RD
5072 char *kwnames[] = {
5073 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5074 };
5075
994141e6 5076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
5077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5079 arg2 = (int) SWIG_AsInt(obj1);
5080 if (PyErr_Occurred()) SWIG_fail;
5081 arg3 = (int) SWIG_AsInt(obj2);
5082 if (PyErr_Occurred()) SWIG_fail;
5083 arg4 = (int) SWIG_AsInt(obj3);
5084 if (PyErr_Occurred()) SWIG_fail;
5085 arg5 = (int) SWIG_AsInt(obj4);
5086 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5087 {
5088 PyThreadState* __tstate = wxPyBeginAllowThreads();
5089 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5090
5091 wxPyEndAllowThreads(__tstate);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 }
4f89f6a3
RD
5094 {
5095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5096 }
d14a1e28
RD
5097 return resultobj;
5098 fail:
5099 return NULL;
5100}
5101
5102
5103static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5104 PyObject *resultobj;
5105 wxRegion *arg1 = (wxRegion *) 0 ;
5106 wxRect *arg2 = 0 ;
5107 bool result;
5108 wxRect temp2 ;
5109 PyObject * obj0 = 0 ;
5110 PyObject * obj1 = 0 ;
5111 char *kwnames[] = {
5112 (char *) "self",(char *) "rect", NULL
5113 };
5114
5115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5118 {
5119 arg2 = &temp2;
5120 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5121 }
5122 {
5123 PyThreadState* __tstate = wxPyBeginAllowThreads();
5124 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5125
5126 wxPyEndAllowThreads(__tstate);
5127 if (PyErr_Occurred()) SWIG_fail;
5128 }
4f89f6a3
RD
5129 {
5130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5131 }
d14a1e28
RD
5132 return resultobj;
5133 fail:
5134 return NULL;
5135}
5136
5137
5138static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5139 PyObject *resultobj;
5140 wxRegion *arg1 = (wxRegion *) 0 ;
5141 wxRegion *arg2 = 0 ;
5142 bool result;
5143 PyObject * obj0 = 0 ;
5144 PyObject * obj1 = 0 ;
5145 char *kwnames[] = {
5146 (char *) "self",(char *) "region", NULL
5147 };
5148
5149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5152 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5153 SWIG_POINTER_EXCEPTION | 0)) == -1)
5154 SWIG_fail;
d14a1e28 5155 if (arg2 == NULL) {
15afbcd0
RD
5156 PyErr_SetString(PyExc_TypeError,"null reference");
5157 SWIG_fail;
d14a1e28
RD
5158 }
5159 {
5160 PyThreadState* __tstate = wxPyBeginAllowThreads();
5161 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5162
5163 wxPyEndAllowThreads(__tstate);
5164 if (PyErr_Occurred()) SWIG_fail;
5165 }
4f89f6a3
RD
5166 {
5167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5168 }
d14a1e28
RD
5169 return resultobj;
5170 fail:
5171 return NULL;
5172}
5173
5174
5175static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5176 PyObject *resultobj;
5177 wxRegion *arg1 = (wxRegion *) 0 ;
5178 bool result;
5179 PyObject * obj0 = 0 ;
5180 char *kwnames[] = {
5181 (char *) "self", NULL
5182 };
5183
5184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
15afbcd0
RD
5185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5187 {
5188 PyThreadState* __tstate = wxPyBeginAllowThreads();
5189 result = (bool)(arg1)->IsEmpty();
5190
5191 wxPyEndAllowThreads(__tstate);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
4f89f6a3
RD
5194 {
5195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5196 }
d14a1e28
RD
5197 return resultobj;
5198 fail:
5199 return NULL;
5200}
5201
5202
5203static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5204 PyObject *resultobj;
5205 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
5206 int arg2 ;
5207 int arg3 ;
5208 int arg4 ;
5209 int arg5 ;
d14a1e28
RD
5210 bool result;
5211 PyObject * obj0 = 0 ;
994141e6
RD
5212 PyObject * obj1 = 0 ;
5213 PyObject * obj2 = 0 ;
5214 PyObject * obj3 = 0 ;
5215 PyObject * obj4 = 0 ;
d14a1e28
RD
5216 char *kwnames[] = {
5217 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5218 };
5219
994141e6 5220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
5221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5223 arg2 = (int) SWIG_AsInt(obj1);
5224 if (PyErr_Occurred()) SWIG_fail;
5225 arg3 = (int) SWIG_AsInt(obj2);
5226 if (PyErr_Occurred()) SWIG_fail;
5227 arg4 = (int) SWIG_AsInt(obj3);
5228 if (PyErr_Occurred()) SWIG_fail;
5229 arg5 = (int) SWIG_AsInt(obj4);
5230 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5231 {
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5234
5235 wxPyEndAllowThreads(__tstate);
5236 if (PyErr_Occurred()) SWIG_fail;
5237 }
4f89f6a3
RD
5238 {
5239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5240 }
d14a1e28
RD
5241 return resultobj;
5242 fail:
5243 return NULL;
5244}
5245
5246
5247static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5248 PyObject *resultobj;
5249 wxRegion *arg1 = (wxRegion *) 0 ;
5250 wxRect *arg2 = 0 ;
5251 bool result;
5252 wxRect temp2 ;
5253 PyObject * obj0 = 0 ;
5254 PyObject * obj1 = 0 ;
5255 char *kwnames[] = {
5256 (char *) "self",(char *) "rect", NULL
5257 };
5258
5259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5262 {
5263 arg2 = &temp2;
5264 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5265 }
5266 {
5267 PyThreadState* __tstate = wxPyBeginAllowThreads();
5268 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5269
5270 wxPyEndAllowThreads(__tstate);
5271 if (PyErr_Occurred()) SWIG_fail;
5272 }
4f89f6a3
RD
5273 {
5274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5275 }
d14a1e28
RD
5276 return resultobj;
5277 fail:
5278 return NULL;
5279}
5280
5281
5282static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5283 PyObject *resultobj;
5284 wxRegion *arg1 = (wxRegion *) 0 ;
5285 wxRegion *arg2 = 0 ;
5286 bool result;
5287 PyObject * obj0 = 0 ;
5288 PyObject * obj1 = 0 ;
5289 char *kwnames[] = {
5290 (char *) "self",(char *) "region", NULL
5291 };
5292
5293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5296 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5297 SWIG_POINTER_EXCEPTION | 0)) == -1)
5298 SWIG_fail;
d14a1e28 5299 if (arg2 == NULL) {
15afbcd0
RD
5300 PyErr_SetString(PyExc_TypeError,"null reference");
5301 SWIG_fail;
d14a1e28
RD
5302 }
5303 {
5304 PyThreadState* __tstate = wxPyBeginAllowThreads();
5305 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5306
5307 wxPyEndAllowThreads(__tstate);
5308 if (PyErr_Occurred()) SWIG_fail;
5309 }
4f89f6a3
RD
5310 {
5311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5312 }
d14a1e28
RD
5313 return resultobj;
5314 fail:
5315 return NULL;
5316}
5317
5318
5319static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5320 PyObject *resultobj;
5321 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
5322 int arg2 ;
5323 int arg3 ;
5324 int arg4 ;
5325 int arg5 ;
d14a1e28
RD
5326 bool result;
5327 PyObject * obj0 = 0 ;
994141e6
RD
5328 PyObject * obj1 = 0 ;
5329 PyObject * obj2 = 0 ;
5330 PyObject * obj3 = 0 ;
5331 PyObject * obj4 = 0 ;
d14a1e28
RD
5332 char *kwnames[] = {
5333 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5334 };
5335
994141e6 5336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
5337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5339 arg2 = (int) SWIG_AsInt(obj1);
5340 if (PyErr_Occurred()) SWIG_fail;
5341 arg3 = (int) SWIG_AsInt(obj2);
5342 if (PyErr_Occurred()) SWIG_fail;
5343 arg4 = (int) SWIG_AsInt(obj3);
5344 if (PyErr_Occurred()) SWIG_fail;
5345 arg5 = (int) SWIG_AsInt(obj4);
5346 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5347 {
5348 PyThreadState* __tstate = wxPyBeginAllowThreads();
5349 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5350
5351 wxPyEndAllowThreads(__tstate);
5352 if (PyErr_Occurred()) SWIG_fail;
5353 }
4f89f6a3
RD
5354 {
5355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5356 }
d14a1e28
RD
5357 return resultobj;
5358 fail:
5359 return NULL;
5360}
5361
5362
5363static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5364 PyObject *resultobj;
5365 wxRegion *arg1 = (wxRegion *) 0 ;
5366 wxRect *arg2 = 0 ;
5367 bool result;
5368 wxRect temp2 ;
5369 PyObject * obj0 = 0 ;
5370 PyObject * obj1 = 0 ;
5371 char *kwnames[] = {
5372 (char *) "self",(char *) "rect", NULL
5373 };
5374
5375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5378 {
5379 arg2 = &temp2;
5380 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5381 }
5382 {
5383 PyThreadState* __tstate = wxPyBeginAllowThreads();
5384 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5385
5386 wxPyEndAllowThreads(__tstate);
5387 if (PyErr_Occurred()) SWIG_fail;
5388 }
4f89f6a3
RD
5389 {
5390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5391 }
d14a1e28
RD
5392 return resultobj;
5393 fail:
5394 return NULL;
5395}
5396
5397
5398static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5399 PyObject *resultobj;
5400 wxRegion *arg1 = (wxRegion *) 0 ;
5401 wxRegion *arg2 = 0 ;
5402 bool result;
5403 PyObject * obj0 = 0 ;
5404 PyObject * obj1 = 0 ;
5405 char *kwnames[] = {
5406 (char *) "self",(char *) "region", NULL
5407 };
5408
5409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5412 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5413 SWIG_POINTER_EXCEPTION | 0)) == -1)
5414 SWIG_fail;
d14a1e28 5415 if (arg2 == NULL) {
15afbcd0
RD
5416 PyErr_SetString(PyExc_TypeError,"null reference");
5417 SWIG_fail;
d14a1e28
RD
5418 }
5419 {
5420 PyThreadState* __tstate = wxPyBeginAllowThreads();
5421 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5422
5423 wxPyEndAllowThreads(__tstate);
5424 if (PyErr_Occurred()) SWIG_fail;
5425 }
4f89f6a3
RD
5426 {
5427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5428 }
d14a1e28
RD
5429 return resultobj;
5430 fail:
5431 return NULL;
5432}
5433
5434
5435static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5436 PyObject *resultobj;
5437 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
5438 int arg2 ;
5439 int arg3 ;
5440 int arg4 ;
5441 int arg5 ;
d14a1e28
RD
5442 bool result;
5443 PyObject * obj0 = 0 ;
994141e6
RD
5444 PyObject * obj1 = 0 ;
5445 PyObject * obj2 = 0 ;
5446 PyObject * obj3 = 0 ;
5447 PyObject * obj4 = 0 ;
d14a1e28
RD
5448 char *kwnames[] = {
5449 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5450 };
5451
994141e6 5452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
5453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5455 arg2 = (int) SWIG_AsInt(obj1);
5456 if (PyErr_Occurred()) SWIG_fail;
5457 arg3 = (int) SWIG_AsInt(obj2);
5458 if (PyErr_Occurred()) SWIG_fail;
5459 arg4 = (int) SWIG_AsInt(obj3);
5460 if (PyErr_Occurred()) SWIG_fail;
5461 arg5 = (int) SWIG_AsInt(obj4);
5462 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5463 {
5464 PyThreadState* __tstate = wxPyBeginAllowThreads();
5465 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5466
5467 wxPyEndAllowThreads(__tstate);
5468 if (PyErr_Occurred()) SWIG_fail;
5469 }
4f89f6a3
RD
5470 {
5471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5472 }
d14a1e28
RD
5473 return resultobj;
5474 fail:
5475 return NULL;
5476}
5477
5478
5479static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5480 PyObject *resultobj;
5481 wxRegion *arg1 = (wxRegion *) 0 ;
5482 wxRect *arg2 = 0 ;
5483 bool result;
5484 wxRect temp2 ;
5485 PyObject * obj0 = 0 ;
5486 PyObject * obj1 = 0 ;
5487 char *kwnames[] = {
5488 (char *) "self",(char *) "rect", NULL
5489 };
5490
5491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5494 {
5495 arg2 = &temp2;
5496 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5497 }
5498 {
5499 PyThreadState* __tstate = wxPyBeginAllowThreads();
5500 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5501
5502 wxPyEndAllowThreads(__tstate);
5503 if (PyErr_Occurred()) SWIG_fail;
5504 }
4f89f6a3
RD
5505 {
5506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5507 }
d14a1e28
RD
5508 return resultobj;
5509 fail:
5510 return NULL;
5511}
5512
5513
5514static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5515 PyObject *resultobj;
5516 wxRegion *arg1 = (wxRegion *) 0 ;
5517 wxRegion *arg2 = 0 ;
5518 bool result;
5519 PyObject * obj0 = 0 ;
5520 PyObject * obj1 = 0 ;
5521 char *kwnames[] = {
5522 (char *) "self",(char *) "region", NULL
5523 };
5524
5525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5528 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5529 SWIG_POINTER_EXCEPTION | 0)) == -1)
5530 SWIG_fail;
d14a1e28 5531 if (arg2 == NULL) {
15afbcd0
RD
5532 PyErr_SetString(PyExc_TypeError,"null reference");
5533 SWIG_fail;
d14a1e28
RD
5534 }
5535 {
5536 PyThreadState* __tstate = wxPyBeginAllowThreads();
5537 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5538
5539 wxPyEndAllowThreads(__tstate);
5540 if (PyErr_Occurred()) SWIG_fail;
5541 }
4f89f6a3
RD
5542 {
5543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5544 }
d14a1e28
RD
5545 return resultobj;
5546 fail:
5547 return NULL;
5548}
5549
5550
5551static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5552 PyObject *resultobj;
5553 wxRegion *arg1 = (wxRegion *) 0 ;
5554 SwigValueWrapper< wxBitmap > result;
5555 PyObject * obj0 = 0 ;
5556 char *kwnames[] = {
5557 (char *) "self", NULL
5558 };
5559
5560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
15afbcd0
RD
5561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5563 {
5564 PyThreadState* __tstate = wxPyBeginAllowThreads();
5565 result = (arg1)->ConvertToBitmap();
5566
5567 wxPyEndAllowThreads(__tstate);
5568 if (PyErr_Occurred()) SWIG_fail;
5569 }
5570 {
5571 wxBitmap * resultptr;
5572 resultptr = new wxBitmap((wxBitmap &) result);
15afbcd0 5573 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
5574 }
5575 return resultobj;
5576 fail:
5577 return NULL;
5578}
5579
5580
5581static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5582 PyObject *resultobj;
5583 wxRegion *arg1 = (wxRegion *) 0 ;
5584 wxBitmap *arg2 = 0 ;
5585 wxColour const &arg3_defvalue = wxNullColour ;
5586 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5587 int arg4 = (int) 0 ;
5588 bool result;
5589 wxColour temp3 ;
5590 PyObject * obj0 = 0 ;
5591 PyObject * obj1 = 0 ;
5592 PyObject * obj2 = 0 ;
994141e6 5593 PyObject * obj3 = 0 ;
d14a1e28
RD
5594 char *kwnames[] = {
5595 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5596 };
5597
994141e6 5598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
5599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5601 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5602 SWIG_POINTER_EXCEPTION | 0)) == -1)
5603 SWIG_fail;
d14a1e28 5604 if (arg2 == NULL) {
15afbcd0
RD
5605 PyErr_SetString(PyExc_TypeError,"null reference");
5606 SWIG_fail;
d14a1e28
RD
5607 }
5608 if (obj2) {
5609 {
5610 arg3 = &temp3;
5611 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5612 }
5613 }
994141e6 5614 if (obj3) {
15afbcd0
RD
5615 arg4 = (int) SWIG_AsInt(obj3);
5616 if (PyErr_Occurred()) SWIG_fail;
994141e6 5617 }
d14a1e28
RD
5618 {
5619 PyThreadState* __tstate = wxPyBeginAllowThreads();
5620 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5621
5622 wxPyEndAllowThreads(__tstate);
5623 if (PyErr_Occurred()) SWIG_fail;
5624 }
4f89f6a3
RD
5625 {
5626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5627 }
d14a1e28
RD
5628 return resultobj;
5629 fail:
5630 return NULL;
5631}
5632
5633
5634static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5635 PyObject *obj;
5636 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5637 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5638 Py_INCREF(obj);
5639 return Py_BuildValue((char *)"");
5640}
5641static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5642 PyObject *resultobj;
5643 wxRegion *arg1 = 0 ;
5644 wxRegionIterator *result;
5645 PyObject * obj0 = 0 ;
5646 char *kwnames[] = {
5647 (char *) "region", NULL
5648 };
5649
5650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
15afbcd0
RD
5651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5652 SWIG_POINTER_EXCEPTION | 0)) == -1)
5653 SWIG_fail;
d14a1e28 5654 if (arg1 == NULL) {
15afbcd0
RD
5655 PyErr_SetString(PyExc_TypeError,"null reference");
5656 SWIG_fail;
d14a1e28
RD
5657 }
5658 {
5659 PyThreadState* __tstate = wxPyBeginAllowThreads();
5660 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5661
5662 wxPyEndAllowThreads(__tstate);
5663 if (PyErr_Occurred()) SWIG_fail;
5664 }
15afbcd0 5665 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
d14a1e28
RD
5666 return resultobj;
5667 fail:
5668 return NULL;
5669}
5670
5671
5672static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5673 PyObject *resultobj;
5674 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5675 PyObject * obj0 = 0 ;
5676 char *kwnames[] = {
5677 (char *) "self", NULL
5678 };
5679
5680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
15afbcd0
RD
5681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5683 {
5684 PyThreadState* __tstate = wxPyBeginAllowThreads();
5685 delete arg1;
5686
5687 wxPyEndAllowThreads(__tstate);
5688 if (PyErr_Occurred()) SWIG_fail;
5689 }
5690 Py_INCREF(Py_None); resultobj = Py_None;
5691 return resultobj;
5692 fail:
5693 return NULL;
5694}
5695
5696
5697static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5698 PyObject *resultobj;
5699 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5700 int result;
d14a1e28
RD
5701 PyObject * obj0 = 0 ;
5702 char *kwnames[] = {
5703 (char *) "self", NULL
5704 };
5705
5706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
15afbcd0
RD
5707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5709 {
5710 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5711 result = (int)(arg1)->GetX();
d14a1e28
RD
5712
5713 wxPyEndAllowThreads(__tstate);
5714 if (PyErr_Occurred()) SWIG_fail;
5715 }
15afbcd0 5716 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5717 return resultobj;
5718 fail:
5719 return NULL;
5720}
5721
5722
5723static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5724 PyObject *resultobj;
5725 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5726 int result;
d14a1e28
RD
5727 PyObject * obj0 = 0 ;
5728 char *kwnames[] = {
5729 (char *) "self", NULL
5730 };
5731
5732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
15afbcd0
RD
5733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5735 {
5736 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5737 result = (int)(arg1)->GetY();
d14a1e28
RD
5738
5739 wxPyEndAllowThreads(__tstate);
5740 if (PyErr_Occurred()) SWIG_fail;
5741 }
15afbcd0 5742 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5743 return resultobj;
5744 fail:
5745 return NULL;
5746}
5747
5748
5749static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5750 PyObject *resultobj;
5751 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5752 int result;
d14a1e28
RD
5753 PyObject * obj0 = 0 ;
5754 char *kwnames[] = {
5755 (char *) "self", NULL
5756 };
5757
5758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
15afbcd0
RD
5759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5761 {
5762 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5763 result = (int)(arg1)->GetW();
d14a1e28
RD
5764
5765 wxPyEndAllowThreads(__tstate);
5766 if (PyErr_Occurred()) SWIG_fail;
5767 }
15afbcd0 5768 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5769 return resultobj;
5770 fail:
5771 return NULL;
5772}
5773
5774
5775static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5776 PyObject *resultobj;
5777 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5778 int result;
d14a1e28
RD
5779 PyObject * obj0 = 0 ;
5780 char *kwnames[] = {
5781 (char *) "self", NULL
5782 };
5783
5784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
5785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5787 {
5788 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5789 result = (int)(arg1)->GetWidth();
d14a1e28
RD
5790
5791 wxPyEndAllowThreads(__tstate);
5792 if (PyErr_Occurred()) SWIG_fail;
5793 }
15afbcd0 5794 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5795 return resultobj;
5796 fail:
5797 return NULL;
5798}
5799
5800
5801static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5802 PyObject *resultobj;
5803 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5804 int result;
d14a1e28
RD
5805 PyObject * obj0 = 0 ;
5806 char *kwnames[] = {
5807 (char *) "self", NULL
5808 };
5809
5810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
15afbcd0
RD
5811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5813 {
5814 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5815 result = (int)(arg1)->GetH();
d14a1e28
RD
5816
5817 wxPyEndAllowThreads(__tstate);
5818 if (PyErr_Occurred()) SWIG_fail;
5819 }
15afbcd0 5820 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5821 return resultobj;
5822 fail:
5823 return NULL;
5824}
5825
5826
5827static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5828 PyObject *resultobj;
5829 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5830 int result;
d14a1e28
RD
5831 PyObject * obj0 = 0 ;
5832 char *kwnames[] = {
5833 (char *) "self", NULL
5834 };
5835
5836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
5837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5839 {
5840 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5841 result = (int)(arg1)->GetHeight();
d14a1e28
RD
5842
5843 wxPyEndAllowThreads(__tstate);
5844 if (PyErr_Occurred()) SWIG_fail;
5845 }
15afbcd0 5846 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5847 return resultobj;
5848 fail:
5849 return NULL;
5850}
5851
5852
5853static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5854 PyObject *resultobj;
5855 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5856 wxRect result;
5857 PyObject * obj0 = 0 ;
5858 char *kwnames[] = {
5859 (char *) "self", NULL
5860 };
5861
5862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
15afbcd0
RD
5863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5865 {
5866 PyThreadState* __tstate = wxPyBeginAllowThreads();
5867 result = (arg1)->GetRect();
5868
5869 wxPyEndAllowThreads(__tstate);
5870 if (PyErr_Occurred()) SWIG_fail;
5871 }
5872 {
5873 wxRect * resultptr;
5874 resultptr = new wxRect((wxRect &) result);
15afbcd0 5875 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
5876 }
5877 return resultobj;
5878 fail:
5879 return NULL;
5880}
5881
5882
5883static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5884 PyObject *resultobj;
5885 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5886 bool result;
5887 PyObject * obj0 = 0 ;
5888 char *kwnames[] = {
5889 (char *) "self", NULL
5890 };
5891
5892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
15afbcd0
RD
5893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5895 {
5896 PyThreadState* __tstate = wxPyBeginAllowThreads();
5897 result = (bool)(arg1)->HaveRects();
5898
5899 wxPyEndAllowThreads(__tstate);
5900 if (PyErr_Occurred()) SWIG_fail;
5901 }
4f89f6a3
RD
5902 {
5903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5904 }
d14a1e28
RD
5905 return resultobj;
5906 fail:
5907 return NULL;
5908}
5909
5910
5911static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5912 PyObject *resultobj;
5913 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5914 PyObject * obj0 = 0 ;
5915 char *kwnames[] = {
5916 (char *) "self", NULL
5917 };
5918
5919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
15afbcd0
RD
5920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5922 {
5923 PyThreadState* __tstate = wxPyBeginAllowThreads();
5924 (arg1)->Reset();
5925
5926 wxPyEndAllowThreads(__tstate);
5927 if (PyErr_Occurred()) SWIG_fail;
5928 }
5929 Py_INCREF(Py_None); resultobj = Py_None;
5930 return resultobj;
5931 fail:
5932 return NULL;
5933}
5934
5935
5936static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5937 PyObject *resultobj;
5938 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5939 PyObject * obj0 = 0 ;
5940 char *kwnames[] = {
5941 (char *) "self", NULL
5942 };
5943
5944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
15afbcd0
RD
5945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5947 {
5948 PyThreadState* __tstate = wxPyBeginAllowThreads();
5949 wxRegionIterator_Next(arg1);
5950
5951 wxPyEndAllowThreads(__tstate);
5952 if (PyErr_Occurred()) SWIG_fail;
5953 }
5954 Py_INCREF(Py_None); resultobj = Py_None;
5955 return resultobj;
5956 fail:
5957 return NULL;
5958}
5959
5960
5961static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj;
5963 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5964 bool result;
5965 PyObject * obj0 = 0 ;
5966 char *kwnames[] = {
5967 (char *) "self", NULL
5968 };
5969
5970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
15afbcd0
RD
5971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 result = (bool)wxRegionIterator___nonzero__(arg1);
5976
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) SWIG_fail;
5979 }
4f89f6a3
RD
5980 {
5981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5982 }
d14a1e28
RD
5983 return resultobj;
5984 fail:
5985 return NULL;
5986}
5987
5988
5989static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5990 PyObject *obj;
5991 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5992 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5993 Py_INCREF(obj);
5994 return Py_BuildValue((char *)"");
5995}
5996static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5997 PyObject *resultobj;
5998 wxNativeFontInfo *result;
5999 char *kwnames[] = {
6000 NULL
6001 };
6002
6003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6004 {
6005 PyThreadState* __tstate = wxPyBeginAllowThreads();
6006 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6007
6008 wxPyEndAllowThreads(__tstate);
6009 if (PyErr_Occurred()) SWIG_fail;
6010 }
15afbcd0 6011 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
d14a1e28
RD
6012 return resultobj;
6013 fail:
6014 return NULL;
6015}
6016
6017
6018static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6019 PyObject *resultobj;
6020 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6021 PyObject * obj0 = 0 ;
6022 char *kwnames[] = {
6023 (char *) "self", NULL
6024 };
6025
6026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
6027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6029 {
6030 PyThreadState* __tstate = wxPyBeginAllowThreads();
6031 delete arg1;
6032
6033 wxPyEndAllowThreads(__tstate);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 }
6036 Py_INCREF(Py_None); resultobj = Py_None;
6037 return resultobj;
6038 fail:
6039 return NULL;
6040}
6041
6042
6043static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6044 PyObject *resultobj;
6045 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6046 PyObject * obj0 = 0 ;
6047 char *kwnames[] = {
6048 (char *) "self", NULL
6049 };
6050
6051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
15afbcd0
RD
6052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6054 {
6055 PyThreadState* __tstate = wxPyBeginAllowThreads();
6056 (arg1)->Init();
6057
6058 wxPyEndAllowThreads(__tstate);
6059 if (PyErr_Occurred()) SWIG_fail;
6060 }
6061 Py_INCREF(Py_None); resultobj = Py_None;
6062 return resultobj;
6063 fail:
6064 return NULL;
6065}
6066
6067
6068static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6069 PyObject *resultobj;
6070 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6071 wxFont *arg2 = 0 ;
6072 PyObject * obj0 = 0 ;
6073 PyObject * obj1 = 0 ;
6074 char *kwnames[] = {
6075 (char *) "self",(char *) "font", NULL
6076 };
6077
6078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6082 SWIG_POINTER_EXCEPTION | 0)) == -1)
6083 SWIG_fail;
d14a1e28 6084 if (arg2 == NULL) {
15afbcd0
RD
6085 PyErr_SetString(PyExc_TypeError,"null reference");
6086 SWIG_fail;
d14a1e28
RD
6087 }
6088 {
6089 PyThreadState* __tstate = wxPyBeginAllowThreads();
6090 (arg1)->InitFromFont((wxFont const &)*arg2);
6091
6092 wxPyEndAllowThreads(__tstate);
6093 if (PyErr_Occurred()) SWIG_fail;
6094 }
6095 Py_INCREF(Py_None); resultobj = Py_None;
6096 return resultobj;
6097 fail:
6098 return NULL;
6099}
6100
6101
6102static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6103 PyObject *resultobj;
6104 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6105 int result;
6106 PyObject * obj0 = 0 ;
6107 char *kwnames[] = {
6108 (char *) "self", NULL
6109 };
6110
6111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
15afbcd0
RD
6112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6114 {
6115 PyThreadState* __tstate = wxPyBeginAllowThreads();
6116 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6117
6118 wxPyEndAllowThreads(__tstate);
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
15afbcd0 6121 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6122 return resultobj;
6123 fail:
6124 return NULL;
6125}
6126
6127
6128static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6129 PyObject *resultobj;
6130 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6131 int result;
6132 PyObject * obj0 = 0 ;
6133 char *kwnames[] = {
6134 (char *) "self", NULL
6135 };
6136
6137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
15afbcd0
RD
6138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6140 {
6141 PyThreadState* __tstate = wxPyBeginAllowThreads();
6142 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6143
6144 wxPyEndAllowThreads(__tstate);
6145 if (PyErr_Occurred()) SWIG_fail;
6146 }
15afbcd0 6147 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6148 return resultobj;
6149 fail:
6150 return NULL;
6151}
6152
6153
6154static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6155 PyObject *resultobj;
6156 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6157 int result;
6158 PyObject * obj0 = 0 ;
6159 char *kwnames[] = {
6160 (char *) "self", NULL
6161 };
6162
6163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
6164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6166 {
6167 PyThreadState* __tstate = wxPyBeginAllowThreads();
6168 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6169
6170 wxPyEndAllowThreads(__tstate);
6171 if (PyErr_Occurred()) SWIG_fail;
6172 }
15afbcd0 6173 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6174 return resultobj;
6175 fail:
6176 return NULL;
6177}
6178
6179
6180static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6181 PyObject *resultobj;
6182 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6183 bool result;
6184 PyObject * obj0 = 0 ;
6185 char *kwnames[] = {
6186 (char *) "self", NULL
6187 };
6188
6189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
15afbcd0
RD
6190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6192 {
6193 PyThreadState* __tstate = wxPyBeginAllowThreads();
6194 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6195
6196 wxPyEndAllowThreads(__tstate);
6197 if (PyErr_Occurred()) SWIG_fail;
6198 }
4f89f6a3
RD
6199 {
6200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6201 }
d14a1e28
RD
6202 return resultobj;
6203 fail:
6204 return NULL;
6205}
6206
6207
6208static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6209 PyObject *resultobj;
6210 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6211 wxString result;
6212 PyObject * obj0 = 0 ;
6213 char *kwnames[] = {
6214 (char *) "self", NULL
6215 };
6216
6217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
15afbcd0
RD
6218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6220 {
6221 PyThreadState* __tstate = wxPyBeginAllowThreads();
6222 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6223
6224 wxPyEndAllowThreads(__tstate);
6225 if (PyErr_Occurred()) SWIG_fail;
6226 }
6227 {
6228#if wxUSE_UNICODE
6229 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6230#else
6231 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6232#endif
6233 }
6234 return resultobj;
6235 fail:
6236 return NULL;
6237}
6238
6239
6240static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6241 PyObject *resultobj;
6242 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6243 int result;
6244 PyObject * obj0 = 0 ;
6245 char *kwnames[] = {
6246 (char *) "self", NULL
6247 };
6248
6249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
15afbcd0
RD
6250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6252 {
6253 PyThreadState* __tstate = wxPyBeginAllowThreads();
6254 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6255
6256 wxPyEndAllowThreads(__tstate);
6257 if (PyErr_Occurred()) SWIG_fail;
6258 }
15afbcd0 6259 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6260 return resultobj;
6261 fail:
6262 return NULL;
6263}
6264
6265
6266static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6267 PyObject *resultobj;
6268 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6269 int result;
6270 PyObject * obj0 = 0 ;
6271 char *kwnames[] = {
6272 (char *) "self", NULL
6273 };
6274
6275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
6276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6278 {
6279 PyThreadState* __tstate = wxPyBeginAllowThreads();
6280 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6281
6282 wxPyEndAllowThreads(__tstate);
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
15afbcd0 6285 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6286 return resultobj;
6287 fail:
6288 return NULL;
6289}
6290
6291
6292static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6293 PyObject *resultobj;
6294 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6295 int arg2 ;
6296 PyObject * obj0 = 0 ;
994141e6 6297 PyObject * obj1 = 0 ;
d14a1e28
RD
6298 char *kwnames[] = {
6299 (char *) "self",(char *) "pointsize", NULL
6300 };
6301
994141e6 6302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6305 arg2 = (int) SWIG_AsInt(obj1);
6306 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6307 {
6308 PyThreadState* __tstate = wxPyBeginAllowThreads();
6309 (arg1)->SetPointSize(arg2);
6310
6311 wxPyEndAllowThreads(__tstate);
6312 if (PyErr_Occurred()) SWIG_fail;
6313 }
6314 Py_INCREF(Py_None); resultobj = Py_None;
6315 return resultobj;
6316 fail:
6317 return NULL;
6318}
6319
6320
6321static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6322 PyObject *resultobj;
6323 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6324 int arg2 ;
6325 PyObject * obj0 = 0 ;
994141e6 6326 PyObject * obj1 = 0 ;
d14a1e28
RD
6327 char *kwnames[] = {
6328 (char *) "self",(char *) "style", NULL
6329 };
6330
994141e6 6331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6334 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6335 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6336 {
6337 PyThreadState* __tstate = wxPyBeginAllowThreads();
6338 (arg1)->SetStyle((wxFontStyle )arg2);
6339
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
6343 Py_INCREF(Py_None); resultobj = Py_None;
6344 return resultobj;
6345 fail:
6346 return NULL;
6347}
6348
6349
6350static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6351 PyObject *resultobj;
6352 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6353 int arg2 ;
6354 PyObject * obj0 = 0 ;
994141e6 6355 PyObject * obj1 = 0 ;
d14a1e28
RD
6356 char *kwnames[] = {
6357 (char *) "self",(char *) "weight", NULL
6358 };
6359
994141e6 6360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6363 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6364 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6365 {
6366 PyThreadState* __tstate = wxPyBeginAllowThreads();
6367 (arg1)->SetWeight((wxFontWeight )arg2);
6368
6369 wxPyEndAllowThreads(__tstate);
6370 if (PyErr_Occurred()) SWIG_fail;
6371 }
6372 Py_INCREF(Py_None); resultobj = Py_None;
6373 return resultobj;
6374 fail:
6375 return NULL;
6376}
6377
6378
6379static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6380 PyObject *resultobj;
6381 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6382 bool arg2 ;
6383 PyObject * obj0 = 0 ;
6384 PyObject * obj1 = 0 ;
6385 char *kwnames[] = {
6386 (char *) "self",(char *) "underlined", NULL
6387 };
6388
6389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6392 arg2 = (bool) SWIG_AsBool(obj1);
6393 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6394 {
6395 PyThreadState* __tstate = wxPyBeginAllowThreads();
6396 (arg1)->SetUnderlined(arg2);
6397
6398 wxPyEndAllowThreads(__tstate);
6399 if (PyErr_Occurred()) SWIG_fail;
6400 }
6401 Py_INCREF(Py_None); resultobj = Py_None;
6402 return resultobj;
6403 fail:
6404 return NULL;
6405}
6406
6407
6408static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6409 PyObject *resultobj;
6410 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6411 wxString arg2 ;
d14a1e28
RD
6412 PyObject * obj0 = 0 ;
6413 PyObject * obj1 = 0 ;
6414 char *kwnames[] = {
6415 (char *) "self",(char *) "facename", NULL
6416 };
6417
6418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
e811c8ce
RD
6421 {
6422 wxString* sptr = wxString_in_helper(obj1);
6423 if (sptr == NULL) SWIG_fail;
6424 arg2 = *sptr;
6425 delete sptr;
6426 }
d14a1e28
RD
6427 {
6428 PyThreadState* __tstate = wxPyBeginAllowThreads();
6429 (arg1)->SetFaceName(arg2);
6430
6431 wxPyEndAllowThreads(__tstate);
6432 if (PyErr_Occurred()) SWIG_fail;
6433 }
6434 Py_INCREF(Py_None); resultobj = Py_None;
6435 return resultobj;
6436 fail:
6437 return NULL;
6438}
6439
6440
6441static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6442 PyObject *resultobj;
6443 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6444 int arg2 ;
6445 PyObject * obj0 = 0 ;
994141e6 6446 PyObject * obj1 = 0 ;
d14a1e28
RD
6447 char *kwnames[] = {
6448 (char *) "self",(char *) "family", NULL
6449 };
6450
994141e6 6451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6454 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6455 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6456 {
6457 PyThreadState* __tstate = wxPyBeginAllowThreads();
6458 (arg1)->SetFamily((wxFontFamily )arg2);
6459
6460 wxPyEndAllowThreads(__tstate);
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 Py_INCREF(Py_None); resultobj = Py_None;
6464 return resultobj;
6465 fail:
6466 return NULL;
6467}
6468
6469
6470static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6471 PyObject *resultobj;
6472 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6473 int arg2 ;
6474 PyObject * obj0 = 0 ;
994141e6 6475 PyObject * obj1 = 0 ;
d14a1e28
RD
6476 char *kwnames[] = {
6477 (char *) "self",(char *) "encoding", NULL
6478 };
6479
994141e6 6480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6483 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6484 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6485 {
6486 PyThreadState* __tstate = wxPyBeginAllowThreads();
6487 (arg1)->SetEncoding((wxFontEncoding )arg2);
6488
6489 wxPyEndAllowThreads(__tstate);
6490 if (PyErr_Occurred()) SWIG_fail;
6491 }
6492 Py_INCREF(Py_None); resultobj = Py_None;
6493 return resultobj;
6494 fail:
6495 return NULL;
6496}
6497
6498
6499static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6500 PyObject *resultobj;
6501 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6502 wxString *arg2 = 0 ;
6503 bool result;
e811c8ce 6504 bool temp2 = False ;
d14a1e28
RD
6505 PyObject * obj0 = 0 ;
6506 PyObject * obj1 = 0 ;
6507 char *kwnames[] = {
6508 (char *) "self",(char *) "s", NULL
6509 };
6510
6511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6514 {
6515 arg2 = wxString_in_helper(obj1);
6516 if (arg2 == NULL) SWIG_fail;
e811c8ce 6517 temp2 = True;
d14a1e28
RD
6518 }
6519 {
6520 PyThreadState* __tstate = wxPyBeginAllowThreads();
6521 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6522
6523 wxPyEndAllowThreads(__tstate);
6524 if (PyErr_Occurred()) SWIG_fail;
6525 }
4f89f6a3
RD
6526 {
6527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6528 }
d14a1e28
RD
6529 {
6530 if (temp2)
6531 delete arg2;
6532 }
6533 return resultobj;
6534 fail:
6535 {
6536 if (temp2)
6537 delete arg2;
6538 }
6539 return NULL;
6540}
6541
6542
6543static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6544 PyObject *resultobj;
6545 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6546 wxString result;
6547 PyObject * obj0 = 0 ;
6548 char *kwnames[] = {
6549 (char *) "self", NULL
6550 };
6551
6552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
15afbcd0
RD
6553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6555 {
6556 PyThreadState* __tstate = wxPyBeginAllowThreads();
6557 result = ((wxNativeFontInfo const *)arg1)->ToString();
6558
6559 wxPyEndAllowThreads(__tstate);
6560 if (PyErr_Occurred()) SWIG_fail;
6561 }
6562 {
6563#if wxUSE_UNICODE
6564 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6565#else
6566 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6567#endif
6568 }
6569 return resultobj;
6570 fail:
6571 return NULL;
6572}
6573
6574
6575static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6576 PyObject *resultobj;
6577 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6578 wxString result;
6579 PyObject * obj0 = 0 ;
6580 char *kwnames[] = {
6581 (char *) "self", NULL
6582 };
6583
6584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
15afbcd0
RD
6585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6587 {
6588 PyThreadState* __tstate = wxPyBeginAllowThreads();
6589 result = wxNativeFontInfo___str__(arg1);
6590
6591 wxPyEndAllowThreads(__tstate);
6592 if (PyErr_Occurred()) SWIG_fail;
6593 }
6594 {
6595#if wxUSE_UNICODE
6596 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6597#else
6598 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6599#endif
6600 }
6601 return resultobj;
6602 fail:
6603 return NULL;
6604}
6605
6606
6607static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6608 PyObject *resultobj;
6609 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6610 wxString *arg2 = 0 ;
6611 bool result;
e811c8ce 6612 bool temp2 = False ;
d14a1e28
RD
6613 PyObject * obj0 = 0 ;
6614 PyObject * obj1 = 0 ;
6615 char *kwnames[] = {
6616 (char *) "self",(char *) "s", NULL
6617 };
6618
6619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6622 {
6623 arg2 = wxString_in_helper(obj1);
6624 if (arg2 == NULL) SWIG_fail;
e811c8ce 6625 temp2 = True;
d14a1e28
RD
6626 }
6627 {
6628 PyThreadState* __tstate = wxPyBeginAllowThreads();
6629 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6630
6631 wxPyEndAllowThreads(__tstate);
6632 if (PyErr_Occurred()) SWIG_fail;
6633 }
4f89f6a3
RD
6634 {
6635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6636 }
d14a1e28
RD
6637 {
6638 if (temp2)
6639 delete arg2;
6640 }
6641 return resultobj;
6642 fail:
6643 {
6644 if (temp2)
6645 delete arg2;
6646 }
6647 return NULL;
6648}
6649
6650
6651static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6652 PyObject *resultobj;
6653 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6654 wxString result;
6655 PyObject * obj0 = 0 ;
6656 char *kwnames[] = {
6657 (char *) "self", NULL
6658 };
6659
6660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
15afbcd0
RD
6661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6663 {
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6666
6667 wxPyEndAllowThreads(__tstate);
6668 if (PyErr_Occurred()) SWIG_fail;
6669 }
6670 {
6671#if wxUSE_UNICODE
6672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6673#else
6674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6675#endif
6676 }
6677 return resultobj;
6678 fail:
6679 return NULL;
6680}
6681
6682
6683static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6684 PyObject *obj;
6685 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6686 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6687 Py_INCREF(obj);
6688 return Py_BuildValue((char *)"");
6689}
6690static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6691 PyObject *resultobj;
6692 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
196addbf 6693 wxString *arg2 = (wxString *) 0 ;
7eae615b 6694 bool temp2 = False ;
d14a1e28
RD
6695 PyObject * obj0 = 0 ;
6696 PyObject * obj1 = 0 ;
6697 char *kwnames[] = {
6698 (char *) "self",(char *) "facename", NULL
6699 };
6700
6701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7eae615b
RD
6704 {
6705 arg2 = wxString_in_helper(obj1);
6706 if (arg2 == NULL) SWIG_fail;
6707 temp2 = True;
6708 }
196addbf 6709 if (arg1) (arg1)->facename = *arg2;
d14a1e28
RD
6710
6711 Py_INCREF(Py_None); resultobj = Py_None;
7eae615b
RD
6712 {
6713 if (temp2)
6714 delete arg2;
6715 }
d14a1e28
RD
6716 return resultobj;
6717 fail:
7eae615b
RD
6718 {
6719 if (temp2)
6720 delete arg2;
6721 }
d14a1e28
RD
6722 return NULL;
6723}
6724
6725
6726static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6727 PyObject *resultobj;
6728 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
196addbf 6729 wxString *result;
d14a1e28
RD
6730 PyObject * obj0 = 0 ;
6731 char *kwnames[] = {
6732 (char *) "self", NULL
6733 };
6734
6735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
6736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
196addbf 6738 result = (wxString *)& ((arg1)->facename);
d14a1e28
RD
6739
6740 {
6741#if wxUSE_UNICODE
196addbf 6742 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 6743#else
196addbf 6744 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
6745#endif
6746 }
6747 return resultobj;
6748 fail:
6749 return NULL;
6750}
6751
6752
6753static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6754 PyObject *resultobj;
6755 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6756 int arg2 ;
6757 PyObject * obj0 = 0 ;
994141e6 6758 PyObject * obj1 = 0 ;
d14a1e28
RD
6759 char *kwnames[] = {
6760 (char *) "self",(char *) "encoding", NULL
6761 };
6762
994141e6 6763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6766 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6767 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6768 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6769
6770 Py_INCREF(Py_None); resultobj = Py_None;
6771 return resultobj;
6772 fail:
6773 return NULL;
6774}
6775
6776
6777static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6778 PyObject *resultobj;
6779 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6780 int result;
6781 PyObject * obj0 = 0 ;
6782 char *kwnames[] = {
6783 (char *) "self", NULL
6784 };
6785
6786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
6787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6789 result = (int) ((arg1)->encoding);
6790
15afbcd0 6791 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6792 return resultobj;
6793 fail:
6794 return NULL;
6795}
6796
6797
6798static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6799 PyObject *resultobj;
6800 wxNativeEncodingInfo *result;
6801 char *kwnames[] = {
6802 NULL
6803 };
6804
6805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6806 {
6807 PyThreadState* __tstate = wxPyBeginAllowThreads();
6808 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6809
6810 wxPyEndAllowThreads(__tstate);
6811 if (PyErr_Occurred()) SWIG_fail;
6812 }
15afbcd0 6813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
d14a1e28
RD
6814 return resultobj;
6815 fail:
6816 return NULL;
6817}
6818
6819
6820static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6821 PyObject *resultobj;
6822 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6823 PyObject * obj0 = 0 ;
6824 char *kwnames[] = {
6825 (char *) "self", NULL
6826 };
6827
6828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
6829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6831 {
6832 PyThreadState* __tstate = wxPyBeginAllowThreads();
6833 delete arg1;
6834
6835 wxPyEndAllowThreads(__tstate);
6836 if (PyErr_Occurred()) SWIG_fail;
6837 }
6838 Py_INCREF(Py_None); resultobj = Py_None;
6839 return resultobj;
6840 fail:
6841 return NULL;
6842}
6843
6844
6845static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6846 PyObject *resultobj;
6847 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6848 wxString *arg2 = 0 ;
6849 bool result;
e811c8ce 6850 bool temp2 = False ;
d14a1e28
RD
6851 PyObject * obj0 = 0 ;
6852 PyObject * obj1 = 0 ;
6853 char *kwnames[] = {
6854 (char *) "self",(char *) "s", NULL
6855 };
6856
6857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6860 {
6861 arg2 = wxString_in_helper(obj1);
6862 if (arg2 == NULL) SWIG_fail;
e811c8ce 6863 temp2 = True;
d14a1e28
RD
6864 }
6865 {
6866 PyThreadState* __tstate = wxPyBeginAllowThreads();
6867 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6868
6869 wxPyEndAllowThreads(__tstate);
6870 if (PyErr_Occurred()) SWIG_fail;
6871 }
4f89f6a3
RD
6872 {
6873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6874 }
d14a1e28
RD
6875 {
6876 if (temp2)
6877 delete arg2;
6878 }
6879 return resultobj;
6880 fail:
6881 {
6882 if (temp2)
6883 delete arg2;
6884 }
6885 return NULL;
6886}
6887
6888
6889static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6890 PyObject *resultobj;
6891 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6892 wxString result;
6893 PyObject * obj0 = 0 ;
6894 char *kwnames[] = {
6895 (char *) "self", NULL
6896 };
6897
6898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
15afbcd0
RD
6899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6901 {
6902 PyThreadState* __tstate = wxPyBeginAllowThreads();
6903 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6904
6905 wxPyEndAllowThreads(__tstate);
6906 if (PyErr_Occurred()) SWIG_fail;
6907 }
6908 {
6909#if wxUSE_UNICODE
6910 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6911#else
6912 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6913#endif
6914 }
6915 return resultobj;
6916 fail:
6917 return NULL;
6918}
6919
6920
6921static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6922 PyObject *obj;
6923 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6924 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6925 Py_INCREF(obj);
6926 return Py_BuildValue((char *)"");
6927}
6928static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6929 PyObject *resultobj;
6930 int arg1 ;
6931 wxNativeEncodingInfo *result;
994141e6 6932 PyObject * obj0 = 0 ;
d14a1e28
RD
6933 char *kwnames[] = {
6934 (char *) "encoding", NULL
6935 };
6936
994141e6 6937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
6938 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6939 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
6940 {
6941 PyThreadState* __tstate = wxPyBeginAllowThreads();
6942 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
d14a1e28
RD
6943
6944 wxPyEndAllowThreads(__tstate);
6945 if (PyErr_Occurred()) SWIG_fail;
6946 }
15afbcd0 6947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
d14a1e28
RD
6948 return resultobj;
6949 fail:
6950 return NULL;
6951}
6952
6953
6954static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6955 PyObject *resultobj;
6956 wxNativeEncodingInfo *arg1 = 0 ;
6957 bool result;
6958 PyObject * obj0 = 0 ;
6959 char *kwnames[] = {
6960 (char *) "info", NULL
6961 };
6962
6963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
6964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6965 SWIG_POINTER_EXCEPTION | 0)) == -1)
6966 SWIG_fail;
d14a1e28 6967 if (arg1 == NULL) {
15afbcd0
RD
6968 PyErr_SetString(PyExc_TypeError,"null reference");
6969 SWIG_fail;
d14a1e28
RD
6970 }
6971 {
6972 PyThreadState* __tstate = wxPyBeginAllowThreads();
6973 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6974
6975 wxPyEndAllowThreads(__tstate);
6976 if (PyErr_Occurred()) SWIG_fail;
6977 }
4f89f6a3
RD
6978 {
6979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6980 }
d14a1e28
RD
6981 return resultobj;
6982 fail:
6983 return NULL;
6984}
6985
6986
6987static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6988 PyObject *resultobj;
6989 wxFontMapper *result;
6990 char *kwnames[] = {
6991 NULL
6992 };
6993
6994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6995 {
6996 PyThreadState* __tstate = wxPyBeginAllowThreads();
6997 result = (wxFontMapper *)new wxFontMapper();
6998
6999 wxPyEndAllowThreads(__tstate);
7000 if (PyErr_Occurred()) SWIG_fail;
7001 }
15afbcd0 7002 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
d14a1e28
RD
7003 return resultobj;
7004 fail:
7005 return NULL;
7006}
7007
7008
7009static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7010 PyObject *resultobj;
7011 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7012 PyObject * obj0 = 0 ;
7013 char *kwnames[] = {
7014 (char *) "self", NULL
7015 };
7016
7017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
15afbcd0
RD
7018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7020 {
7021 PyThreadState* __tstate = wxPyBeginAllowThreads();
7022 delete arg1;
7023
7024 wxPyEndAllowThreads(__tstate);
7025 if (PyErr_Occurred()) SWIG_fail;
7026 }
7027 Py_INCREF(Py_None); resultobj = Py_None;
7028 return resultobj;
7029 fail:
7030 return NULL;
7031}
7032
7033
7034static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7035 PyObject *resultobj;
7036 wxFontMapper *result;
7037 char *kwnames[] = {
7038 NULL
7039 };
7040
7041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7042 {
7043 PyThreadState* __tstate = wxPyBeginAllowThreads();
7044 result = (wxFontMapper *)wxFontMapper::Get();
7045
7046 wxPyEndAllowThreads(__tstate);
7047 if (PyErr_Occurred()) SWIG_fail;
7048 }
15afbcd0 7049 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
d14a1e28
RD
7050 return resultobj;
7051 fail:
7052 return NULL;
7053}
7054
7055
7056static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7057 PyObject *resultobj;
7058 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7059 wxFontMapper *result;
7060 PyObject * obj0 = 0 ;
7061 char *kwnames[] = {
7062 (char *) "mapper", NULL
7063 };
7064
7065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
15afbcd0
RD
7066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7068 {
7069 PyThreadState* __tstate = wxPyBeginAllowThreads();
7070 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7071
7072 wxPyEndAllowThreads(__tstate);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
15afbcd0 7075 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
d14a1e28
RD
7076 return resultobj;
7077 fail:
7078 return NULL;
7079}
7080
7081
7082static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7083 PyObject *resultobj;
7084 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7085 wxString *arg2 = 0 ;
e811c8ce 7086 bool arg3 = (bool) True ;
d14a1e28 7087 int result;
e811c8ce 7088 bool temp2 = False ;
d14a1e28
RD
7089 PyObject * obj0 = 0 ;
7090 PyObject * obj1 = 0 ;
7091 PyObject * obj2 = 0 ;
7092 char *kwnames[] = {
7093 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7094 };
7095
7096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
7097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7099 {
7100 arg2 = wxString_in_helper(obj1);
7101 if (arg2 == NULL) SWIG_fail;
e811c8ce 7102 temp2 = True;
d14a1e28
RD
7103 }
7104 if (obj2) {
15afbcd0
RD
7105 arg3 = (bool) SWIG_AsBool(obj2);
7106 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7107 }
7108 {
7109 PyThreadState* __tstate = wxPyBeginAllowThreads();
7110 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7111
7112 wxPyEndAllowThreads(__tstate);
7113 if (PyErr_Occurred()) SWIG_fail;
7114 }
15afbcd0 7115 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7116 {
7117 if (temp2)
7118 delete arg2;
7119 }
7120 return resultobj;
7121 fail:
7122 {
7123 if (temp2)
7124 delete arg2;
7125 }
7126 return NULL;
7127}
7128
7129
7130static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7131 PyObject *resultobj;
7132 size_t result;
7133 char *kwnames[] = {
7134 NULL
7135 };
7136
7137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7138 {
7139 PyThreadState* __tstate = wxPyBeginAllowThreads();
7140 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7141
7142 wxPyEndAllowThreads(__tstate);
7143 if (PyErr_Occurred()) SWIG_fail;
7144 }
15afbcd0 7145 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
7146 return resultobj;
7147 fail:
7148 return NULL;
7149}
7150
7151
7152static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7153 PyObject *resultobj;
7154 size_t arg1 ;
7155 int result;
7156 PyObject * obj0 = 0 ;
7157 char *kwnames[] = {
7158 (char *) "n", NULL
7159 };
7160
7161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
7162 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7163 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7164 {
7165 PyThreadState* __tstate = wxPyBeginAllowThreads();
7166 result = (int)wxFontMapper::GetEncoding(arg1);
7167
7168 wxPyEndAllowThreads(__tstate);
7169 if (PyErr_Occurred()) SWIG_fail;
7170 }
15afbcd0 7171 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7172 return resultobj;
7173 fail:
7174 return NULL;
7175}
7176
7177
7178static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7179 PyObject *resultobj;
7180 int arg1 ;
7181 wxString result;
994141e6 7182 PyObject * obj0 = 0 ;
d14a1e28
RD
7183 char *kwnames[] = {
7184 (char *) "encoding", NULL
7185 };
7186
994141e6 7187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
15afbcd0
RD
7188 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7189 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7190 {
7191 PyThreadState* __tstate = wxPyBeginAllowThreads();
7192 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7193
7194 wxPyEndAllowThreads(__tstate);
7195 if (PyErr_Occurred()) SWIG_fail;
7196 }
7197 {
7198#if wxUSE_UNICODE
7199 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7200#else
7201 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7202#endif
7203 }
7204 return resultobj;
7205 fail:
7206 return NULL;
7207}
7208
7209
7210static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7211 PyObject *resultobj;
7212 int arg1 ;
7213 wxString result;
994141e6 7214 PyObject * obj0 = 0 ;
d14a1e28
RD
7215 char *kwnames[] = {
7216 (char *) "encoding", NULL
7217 };
7218
994141e6 7219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
15afbcd0
RD
7220 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7221 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7222 {
7223 PyThreadState* __tstate = wxPyBeginAllowThreads();
7224 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7225
7226 wxPyEndAllowThreads(__tstate);
7227 if (PyErr_Occurred()) SWIG_fail;
7228 }
7229 {
7230#if wxUSE_UNICODE
7231 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7232#else
7233 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7234#endif
7235 }
7236 return resultobj;
7237 fail:
7238 return NULL;
7239}
7240
7241
7242static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7243 PyObject *resultobj;
7244 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7245 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7246 PyObject * obj0 = 0 ;
7247 PyObject * obj1 = 0 ;
7248 char *kwnames[] = {
7249 (char *) "self",(char *) "config", NULL
7250 };
7251
7252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7255 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7257 {
7258 PyThreadState* __tstate = wxPyBeginAllowThreads();
7259 (arg1)->SetConfig(arg2);
7260
7261 wxPyEndAllowThreads(__tstate);
7262 if (PyErr_Occurred()) SWIG_fail;
7263 }
7264 Py_INCREF(Py_None); resultobj = Py_None;
7265 return resultobj;
7266 fail:
7267 return NULL;
7268}
7269
7270
7271static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7272 PyObject *resultobj;
7273 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7274 wxString *arg2 = 0 ;
e811c8ce 7275 bool temp2 = False ;
d14a1e28
RD
7276 PyObject * obj0 = 0 ;
7277 PyObject * obj1 = 0 ;
7278 char *kwnames[] = {
7279 (char *) "self",(char *) "prefix", NULL
7280 };
7281
7282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7285 {
7286 arg2 = wxString_in_helper(obj1);
7287 if (arg2 == NULL) SWIG_fail;
e811c8ce 7288 temp2 = True;
d14a1e28
RD
7289 }
7290 {
7291 PyThreadState* __tstate = wxPyBeginAllowThreads();
7292 (arg1)->SetConfigPath((wxString const &)*arg2);
7293
7294 wxPyEndAllowThreads(__tstate);
7295 if (PyErr_Occurred()) SWIG_fail;
7296 }
7297 Py_INCREF(Py_None); resultobj = Py_None;
7298 {
7299 if (temp2)
7300 delete arg2;
7301 }
7302 return resultobj;
7303 fail:
7304 {
7305 if (temp2)
7306 delete arg2;
7307 }
7308 return NULL;
7309}
7310
7311
7312static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7313 PyObject *resultobj;
7314 wxString result;
7315 char *kwnames[] = {
7316 NULL
7317 };
7318
7319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7320 {
7321 PyThreadState* __tstate = wxPyBeginAllowThreads();
7322 result = wxFontMapper::GetDefaultConfigPath();
7323
7324 wxPyEndAllowThreads(__tstate);
7325 if (PyErr_Occurred()) SWIG_fail;
7326 }
7327 {
7328#if wxUSE_UNICODE
7329 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7330#else
7331 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7332#endif
7333 }
7334 return resultobj;
7335 fail:
7336 return NULL;
7337}
7338
7339
7340static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7341 PyObject *resultobj;
7342 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7343 int arg2 ;
7344 wxString const &arg3_defvalue = wxPyEmptyString ;
7345 wxString *arg3 = (wxString *) &arg3_defvalue ;
e811c8ce 7346 bool arg4 = (bool) True ;
d14a1e28 7347 PyObject *result;
e811c8ce 7348 bool temp3 = False ;
d14a1e28 7349 PyObject * obj0 = 0 ;
994141e6 7350 PyObject * obj1 = 0 ;
d14a1e28
RD
7351 PyObject * obj2 = 0 ;
7352 PyObject * obj3 = 0 ;
7353 char *kwnames[] = {
7354 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7355 };
7356
994141e6 7357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
7358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7360 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7361 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7362 if (obj2) {
7363 {
7364 arg3 = wxString_in_helper(obj2);
7365 if (arg3 == NULL) SWIG_fail;
e811c8ce 7366 temp3 = True;
d14a1e28
RD
7367 }
7368 }
7369 if (obj3) {
15afbcd0
RD
7370 arg4 = (bool) SWIG_AsBool(obj3);
7371 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7372 }
7373 {
7374 PyThreadState* __tstate = wxPyBeginAllowThreads();
7375 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7376
7377 wxPyEndAllowThreads(__tstate);
7378 if (PyErr_Occurred()) SWIG_fail;
7379 }
7380 resultobj = result;
7381 {
7382 if (temp3)
7383 delete arg3;
7384 }
7385 return resultobj;
7386 fail:
7387 {
7388 if (temp3)
7389 delete arg3;
7390 }
7391 return NULL;
7392}
7393
7394
7395static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7396 PyObject *resultobj;
7397 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7398 int arg2 ;
7399 wxString const &arg3_defvalue = wxPyEmptyString ;
7400 wxString *arg3 = (wxString *) &arg3_defvalue ;
7401 bool result;
e811c8ce 7402 bool temp3 = False ;
d14a1e28 7403 PyObject * obj0 = 0 ;
994141e6 7404 PyObject * obj1 = 0 ;
d14a1e28
RD
7405 PyObject * obj2 = 0 ;
7406 char *kwnames[] = {
7407 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7408 };
7409
994141e6 7410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
7411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7413 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7414 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7415 if (obj2) {
7416 {
7417 arg3 = wxString_in_helper(obj2);
7418 if (arg3 == NULL) SWIG_fail;
e811c8ce 7419 temp3 = True;
d14a1e28
RD
7420 }
7421 }
7422 {
7423 PyThreadState* __tstate = wxPyBeginAllowThreads();
7424 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7425
7426 wxPyEndAllowThreads(__tstate);
7427 if (PyErr_Occurred()) SWIG_fail;
7428 }
4f89f6a3
RD
7429 {
7430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7431 }
d14a1e28
RD
7432 {
7433 if (temp3)
7434 delete arg3;
7435 }
7436 return resultobj;
7437 fail:
7438 {
7439 if (temp3)
7440 delete arg3;
7441 }
7442 return NULL;
7443}
7444
7445
7446static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7447 PyObject *resultobj;
7448 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7449 wxWindow *arg2 = (wxWindow *) 0 ;
7450 PyObject * obj0 = 0 ;
7451 PyObject * obj1 = 0 ;
7452 char *kwnames[] = {
7453 (char *) "self",(char *) "parent", NULL
7454 };
7455
7456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7459 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7461 {
7462 PyThreadState* __tstate = wxPyBeginAllowThreads();
7463 (arg1)->SetDialogParent(arg2);
7464
7465 wxPyEndAllowThreads(__tstate);
7466 if (PyErr_Occurred()) SWIG_fail;
7467 }
7468 Py_INCREF(Py_None); resultobj = Py_None;
7469 return resultobj;
7470 fail:
7471 return NULL;
7472}
7473
7474
7475static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7476 PyObject *resultobj;
7477 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7478 wxString *arg2 = 0 ;
e811c8ce 7479 bool temp2 = False ;
d14a1e28
RD
7480 PyObject * obj0 = 0 ;
7481 PyObject * obj1 = 0 ;
7482 char *kwnames[] = {
7483 (char *) "self",(char *) "title", NULL
7484 };
7485
7486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7489 {
7490 arg2 = wxString_in_helper(obj1);
7491 if (arg2 == NULL) SWIG_fail;
e811c8ce 7492 temp2 = True;
d14a1e28
RD
7493 }
7494 {
7495 PyThreadState* __tstate = wxPyBeginAllowThreads();
7496 (arg1)->SetDialogTitle((wxString const &)*arg2);
7497
7498 wxPyEndAllowThreads(__tstate);
7499 if (PyErr_Occurred()) SWIG_fail;
7500 }
7501 Py_INCREF(Py_None); resultobj = Py_None;
7502 {
7503 if (temp2)
7504 delete arg2;
7505 }
7506 return resultobj;
7507 fail:
7508 {
7509 if (temp2)
7510 delete arg2;
7511 }
7512 return NULL;
7513}
7514
7515
7516static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7517 PyObject *obj;
7518 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7519 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7520 Py_INCREF(obj);
7521 return Py_BuildValue((char *)"");
7522}
7523static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7524 PyObject *resultobj;
7525 int arg1 ;
7526 int arg2 ;
7527 int arg3 ;
7528 int arg4 ;
e811c8ce 7529 bool arg5 = (bool) False ;
d14a1e28
RD
7530 wxString const &arg6_defvalue = wxPyEmptyString ;
7531 wxString *arg6 = (wxString *) &arg6_defvalue ;
7532 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7533 wxFont *result;
e811c8ce 7534 bool temp6 = False ;
994141e6
RD
7535 PyObject * obj0 = 0 ;
7536 PyObject * obj1 = 0 ;
7537 PyObject * obj2 = 0 ;
7538 PyObject * obj3 = 0 ;
d14a1e28
RD
7539 PyObject * obj4 = 0 ;
7540 PyObject * obj5 = 0 ;
994141e6 7541 PyObject * obj6 = 0 ;
d14a1e28
RD
7542 char *kwnames[] = {
7543 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7544 };
7545
994141e6 7546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15afbcd0
RD
7547 arg1 = (int) SWIG_AsInt(obj0);
7548 if (PyErr_Occurred()) SWIG_fail;
7549 arg2 = (int) SWIG_AsInt(obj1);
7550 if (PyErr_Occurred()) SWIG_fail;
7551 arg3 = (int) SWIG_AsInt(obj2);
7552 if (PyErr_Occurred()) SWIG_fail;
7553 arg4 = (int) SWIG_AsInt(obj3);
7554 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 7555 if (obj4) {
15afbcd0
RD
7556 arg5 = (bool) SWIG_AsBool(obj4);
7557 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7558 }
7559 if (obj5) {
7560 {
7561 arg6 = wxString_in_helper(obj5);
7562 if (arg6 == NULL) SWIG_fail;
e811c8ce 7563 temp6 = True;
d14a1e28
RD
7564 }
7565 }
994141e6 7566 if (obj6) {
15afbcd0
RD
7567 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7568 if (PyErr_Occurred()) SWIG_fail;
994141e6 7569 }
d14a1e28
RD
7570 {
7571 PyThreadState* __tstate = wxPyBeginAllowThreads();
7572 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7573
7574 wxPyEndAllowThreads(__tstate);
7575 if (PyErr_Occurred()) SWIG_fail;
7576 }
15afbcd0 7577 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
7578 {
7579 if (temp6)
7580 delete arg6;
7581 }
7582 return resultobj;
7583 fail:
7584 {
7585 if (temp6)
7586 delete arg6;
7587 }
7588 return NULL;
7589}
7590
7591
7592static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7593 PyObject *resultobj;
7594 wxFont *arg1 = (wxFont *) 0 ;
7595 PyObject * obj0 = 0 ;
7596 char *kwnames[] = {
7597 (char *) "self", NULL
7598 };
7599
7600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
15afbcd0
RD
7601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7603 {
7604 PyThreadState* __tstate = wxPyBeginAllowThreads();
7605 delete arg1;
7606
7607 wxPyEndAllowThreads(__tstate);
7608 if (PyErr_Occurred()) SWIG_fail;
7609 }
7610 Py_INCREF(Py_None); resultobj = Py_None;
7611 return resultobj;
7612 fail:
7613 return NULL;
7614}
7615
7616
7617static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7618 PyObject *resultobj;
7619 wxNativeFontInfo *arg1 = 0 ;
7620 wxFont *result;
7621 PyObject * obj0 = 0 ;
7622 char *kwnames[] = {
7623 (char *) "info", NULL
7624 };
7625
7626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
7627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7628 SWIG_POINTER_EXCEPTION | 0)) == -1)
7629 SWIG_fail;
d14a1e28 7630 if (arg1 == NULL) {
15afbcd0
RD
7631 PyErr_SetString(PyExc_TypeError,"null reference");
7632 SWIG_fail;
d14a1e28
RD
7633 }
7634 {
7635 PyThreadState* __tstate = wxPyBeginAllowThreads();
7636 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7637
7638 wxPyEndAllowThreads(__tstate);
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
15afbcd0 7641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
7642 return resultobj;
7643 fail:
7644 return NULL;
7645}
7646
7647
7648static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7649 PyObject *resultobj;
7650 wxString *arg1 = 0 ;
7651 wxFont *result;
e811c8ce 7652 bool temp1 = False ;
d14a1e28
RD
7653 PyObject * obj0 = 0 ;
7654 char *kwnames[] = {
7655 (char *) "info", NULL
7656 };
7657
7658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7659 {
7660 arg1 = wxString_in_helper(obj0);
7661 if (arg1 == NULL) SWIG_fail;
e811c8ce 7662 temp1 = True;
d14a1e28
RD
7663 }
7664 {
7665 PyThreadState* __tstate = wxPyBeginAllowThreads();
7666 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7667
7668 wxPyEndAllowThreads(__tstate);
7669 if (PyErr_Occurred()) SWIG_fail;
7670 }
15afbcd0 7671 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
7672 {
7673 if (temp1)
7674 delete arg1;
7675 }
7676 return resultobj;
7677 fail:
7678 {
7679 if (temp1)
7680 delete arg1;
7681 }
7682 return NULL;
7683}
7684
7685
7686static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7687 PyObject *resultobj;
7688 int arg1 ;
7689 int arg2 ;
7690 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7691 wxString const &arg4_defvalue = wxPyEmptyString ;
7692 wxString *arg4 = (wxString *) &arg4_defvalue ;
7693 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7694 wxFont *result;
e811c8ce 7695 bool temp4 = False ;
994141e6
RD
7696 PyObject * obj0 = 0 ;
7697 PyObject * obj1 = 0 ;
7698 PyObject * obj2 = 0 ;
d14a1e28 7699 PyObject * obj3 = 0 ;
994141e6 7700 PyObject * obj4 = 0 ;
d14a1e28
RD
7701 char *kwnames[] = {
7702 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7703 };
7704
994141e6 7705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
7706 arg1 = (int) SWIG_AsInt(obj0);
7707 if (PyErr_Occurred()) SWIG_fail;
7708 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7709 if (PyErr_Occurred()) SWIG_fail;
994141e6 7710 if (obj2) {
15afbcd0
RD
7711 arg3 = (int) SWIG_AsInt(obj2);
7712 if (PyErr_Occurred()) SWIG_fail;
994141e6 7713 }
d14a1e28
RD
7714 if (obj3) {
7715 {
7716 arg4 = wxString_in_helper(obj3);
7717 if (arg4 == NULL) SWIG_fail;
e811c8ce 7718 temp4 = True;
d14a1e28
RD
7719 }
7720 }
994141e6 7721 if (obj4) {
15afbcd0
RD
7722 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7723 if (PyErr_Occurred()) SWIG_fail;
994141e6 7724 }
d14a1e28
RD
7725 {
7726 PyThreadState* __tstate = wxPyBeginAllowThreads();
7727 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7728
7729 wxPyEndAllowThreads(__tstate);
7730 if (PyErr_Occurred()) SWIG_fail;
7731 }
15afbcd0 7732 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
7733 {
7734 if (temp4)
7735 delete arg4;
7736 }
7737 return resultobj;
7738 fail:
7739 {
7740 if (temp4)
7741 delete arg4;
7742 }
7743 return NULL;
7744}
7745
7746
7747static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7748 PyObject *resultobj;
7749 wxFont *arg1 = (wxFont *) 0 ;
7750 bool result;
7751 PyObject * obj0 = 0 ;
7752 char *kwnames[] = {
7753 (char *) "self", NULL
7754 };
7755
7756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
7757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7759 {
7760 PyThreadState* __tstate = wxPyBeginAllowThreads();
7761 result = (bool)((wxFont const *)arg1)->Ok();
7762
7763 wxPyEndAllowThreads(__tstate);
7764 if (PyErr_Occurred()) SWIG_fail;
7765 }
4f89f6a3
RD
7766 {
7767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7768 }
d14a1e28
RD
7769 return resultobj;
7770 fail:
7771 return NULL;
7772}
7773
7774
7775static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7776 PyObject *resultobj;
7777 wxFont *arg1 = (wxFont *) 0 ;
22faec7d 7778 wxFont *arg2 = (wxFont *) 0 ;
d14a1e28
RD
7779 bool result;
7780 PyObject * obj0 = 0 ;
7781 PyObject * obj1 = 0 ;
7782 char *kwnames[] = {
22faec7d 7783 (char *) "self",(char *) "other", NULL
d14a1e28
RD
7784 };
7785
7786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7789 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7791 {
7792 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 7793 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
d14a1e28
RD
7794
7795 wxPyEndAllowThreads(__tstate);
7796 if (PyErr_Occurred()) SWIG_fail;
7797 }
4f89f6a3
RD
7798 {
7799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7800 }
d14a1e28
RD
7801 return resultobj;
7802 fail:
7803 return NULL;
7804}
7805
7806
7807static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7808 PyObject *resultobj;
7809 wxFont *arg1 = (wxFont *) 0 ;
22faec7d 7810 wxFont *arg2 = (wxFont *) 0 ;
d14a1e28
RD
7811 bool result;
7812 PyObject * obj0 = 0 ;
7813 PyObject * obj1 = 0 ;
7814 char *kwnames[] = {
22faec7d 7815 (char *) "self",(char *) "other", NULL
d14a1e28
RD
7816 };
7817
7818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7821 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7823 {
7824 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 7825 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
d14a1e28
RD
7826
7827 wxPyEndAllowThreads(__tstate);
7828 if (PyErr_Occurred()) SWIG_fail;
7829 }
4f89f6a3
RD
7830 {
7831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7832 }
d14a1e28
RD
7833 return resultobj;
7834 fail:
7835 return NULL;
7836}
7837
7838
7839static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7840 PyObject *resultobj;
7841 wxFont *arg1 = (wxFont *) 0 ;
7842 int result;
7843 PyObject * obj0 = 0 ;
7844 char *kwnames[] = {
7845 (char *) "self", NULL
7846 };
7847
7848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
15afbcd0
RD
7849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7851 {
7852 PyThreadState* __tstate = wxPyBeginAllowThreads();
7853 result = (int)((wxFont const *)arg1)->GetPointSize();
7854
7855 wxPyEndAllowThreads(__tstate);
7856 if (PyErr_Occurred()) SWIG_fail;
7857 }
15afbcd0 7858 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7859 return resultobj;
7860 fail:
7861 return NULL;
7862}
7863
7864
7865static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7866 PyObject *resultobj;
7867 wxFont *arg1 = (wxFont *) 0 ;
7868 int result;
7869 PyObject * obj0 = 0 ;
7870 char *kwnames[] = {
7871 (char *) "self", NULL
7872 };
7873
7874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
15afbcd0
RD
7875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7877 {
7878 PyThreadState* __tstate = wxPyBeginAllowThreads();
7879 result = (int)((wxFont const *)arg1)->GetFamily();
7880
7881 wxPyEndAllowThreads(__tstate);
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
15afbcd0 7884 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7885 return resultobj;
7886 fail:
7887 return NULL;
7888}
7889
7890
7891static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7892 PyObject *resultobj;
7893 wxFont *arg1 = (wxFont *) 0 ;
7894 int result;
7895 PyObject * obj0 = 0 ;
7896 char *kwnames[] = {
7897 (char *) "self", NULL
7898 };
7899
7900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
15afbcd0
RD
7901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7903 {
7904 PyThreadState* __tstate = wxPyBeginAllowThreads();
7905 result = (int)((wxFont const *)arg1)->GetStyle();
7906
7907 wxPyEndAllowThreads(__tstate);
7908 if (PyErr_Occurred()) SWIG_fail;
7909 }
15afbcd0 7910 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7911 return resultobj;
7912 fail:
7913 return NULL;
7914}
7915
7916
7917static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7918 PyObject *resultobj;
7919 wxFont *arg1 = (wxFont *) 0 ;
7920 int result;
7921 PyObject * obj0 = 0 ;
7922 char *kwnames[] = {
7923 (char *) "self", NULL
7924 };
7925
7926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
7927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7929 {
7930 PyThreadState* __tstate = wxPyBeginAllowThreads();
7931 result = (int)((wxFont const *)arg1)->GetWeight();
7932
7933 wxPyEndAllowThreads(__tstate);
7934 if (PyErr_Occurred()) SWIG_fail;
7935 }
15afbcd0 7936 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7937 return resultobj;
7938 fail:
7939 return NULL;
7940}
7941
7942
7943static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7944 PyObject *resultobj;
7945 wxFont *arg1 = (wxFont *) 0 ;
7946 bool result;
7947 PyObject * obj0 = 0 ;
7948 char *kwnames[] = {
7949 (char *) "self", NULL
7950 };
7951
7952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
15afbcd0
RD
7953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7955 {
7956 PyThreadState* __tstate = wxPyBeginAllowThreads();
7957 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7958
7959 wxPyEndAllowThreads(__tstate);
7960 if (PyErr_Occurred()) SWIG_fail;
7961 }
4f89f6a3
RD
7962 {
7963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7964 }
d14a1e28
RD
7965 return resultobj;
7966 fail:
7967 return NULL;
7968}
7969
7970
7971static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7972 PyObject *resultobj;
7973 wxFont *arg1 = (wxFont *) 0 ;
7974 wxString result;
7975 PyObject * obj0 = 0 ;
7976 char *kwnames[] = {
7977 (char *) "self", NULL
7978 };
7979
7980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
15afbcd0
RD
7981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7983 {
7984 PyThreadState* __tstate = wxPyBeginAllowThreads();
7985 result = ((wxFont const *)arg1)->GetFaceName();
7986
7987 wxPyEndAllowThreads(__tstate);
7988 if (PyErr_Occurred()) SWIG_fail;
7989 }
7990 {
7991#if wxUSE_UNICODE
7992 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7993#else
7994 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7995#endif
7996 }
7997 return resultobj;
7998 fail:
7999 return NULL;
8000}
8001
8002
8003static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8004 PyObject *resultobj;
8005 wxFont *arg1 = (wxFont *) 0 ;
8006 int result;
8007 PyObject * obj0 = 0 ;
8008 char *kwnames[] = {
8009 (char *) "self", NULL
8010 };
8011
8012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
8013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8015 {
8016 PyThreadState* __tstate = wxPyBeginAllowThreads();
8017 result = (int)((wxFont const *)arg1)->GetEncoding();
8018
8019 wxPyEndAllowThreads(__tstate);
8020 if (PyErr_Occurred()) SWIG_fail;
8021 }
15afbcd0 8022 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8023 return resultobj;
8024 fail:
8025 return NULL;
8026}
8027
8028
8029static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8030 PyObject *resultobj;
8031 wxFont *arg1 = (wxFont *) 0 ;
8032 wxNativeFontInfo *result;
8033 PyObject * obj0 = 0 ;
8034 char *kwnames[] = {
8035 (char *) "self", NULL
8036 };
8037
8038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
8039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8041 {
8042 PyThreadState* __tstate = wxPyBeginAllowThreads();
8043 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8044
8045 wxPyEndAllowThreads(__tstate);
8046 if (PyErr_Occurred()) SWIG_fail;
8047 }
15afbcd0 8048 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
d14a1e28
RD
8049 return resultobj;
8050 fail:
8051 return NULL;
8052}
8053
8054
8055static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8056 PyObject *resultobj;
8057 wxFont *arg1 = (wxFont *) 0 ;
8058 bool result;
8059 PyObject * obj0 = 0 ;
8060 char *kwnames[] = {
8061 (char *) "self", NULL
8062 };
8063
8064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
8065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8067 {
8068 PyThreadState* __tstate = wxPyBeginAllowThreads();
8069 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8070
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
4f89f6a3
RD
8074 {
8075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8076 }
d14a1e28
RD
8077 return resultobj;
8078 fail:
8079 return NULL;
8080}
8081
8082
8083static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8084 PyObject *resultobj;
8085 wxFont *arg1 = (wxFont *) 0 ;
8086 wxString result;
8087 PyObject * obj0 = 0 ;
8088 char *kwnames[] = {
8089 (char *) "self", NULL
8090 };
8091
8092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
15afbcd0
RD
8093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8095 {
8096 PyThreadState* __tstate = wxPyBeginAllowThreads();
8097 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8098
8099 wxPyEndAllowThreads(__tstate);
8100 if (PyErr_Occurred()) SWIG_fail;
8101 }
8102 {
8103#if wxUSE_UNICODE
8104 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8105#else
8106 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8107#endif
8108 }
8109 return resultobj;
8110 fail:
8111 return NULL;
8112}
8113
8114
8115static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8116 PyObject *resultobj;
8117 wxFont *arg1 = (wxFont *) 0 ;
8118 wxString result;
8119 PyObject * obj0 = 0 ;
8120 char *kwnames[] = {
8121 (char *) "self", NULL
8122 };
8123
8124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
15afbcd0
RD
8125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8127 {
8128 PyThreadState* __tstate = wxPyBeginAllowThreads();
8129 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8130
8131 wxPyEndAllowThreads(__tstate);
8132 if (PyErr_Occurred()) SWIG_fail;
8133 }
8134 {
8135#if wxUSE_UNICODE
8136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8137#else
8138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8139#endif
8140 }
8141 return resultobj;
8142 fail:
8143 return NULL;
8144}
8145
8146
8147static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8148 PyObject *resultobj;
8149 wxFont *arg1 = (wxFont *) 0 ;
8150 int arg2 ;
8151 PyObject * obj0 = 0 ;
994141e6 8152 PyObject * obj1 = 0 ;
d14a1e28
RD
8153 char *kwnames[] = {
8154 (char *) "self",(char *) "pointSize", NULL
8155 };
8156
994141e6 8157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8160 arg2 = (int) SWIG_AsInt(obj1);
8161 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8162 {
8163 PyThreadState* __tstate = wxPyBeginAllowThreads();
8164 (arg1)->SetPointSize(arg2);
8165
8166 wxPyEndAllowThreads(__tstate);
8167 if (PyErr_Occurred()) SWIG_fail;
8168 }
8169 Py_INCREF(Py_None); resultobj = Py_None;
8170 return resultobj;
8171 fail:
8172 return NULL;
8173}
8174
8175
8176static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8177 PyObject *resultobj;
8178 wxFont *arg1 = (wxFont *) 0 ;
8179 int arg2 ;
8180 PyObject * obj0 = 0 ;
994141e6 8181 PyObject * obj1 = 0 ;
d14a1e28
RD
8182 char *kwnames[] = {
8183 (char *) "self",(char *) "family", NULL
8184 };
8185
994141e6 8186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8189 arg2 = (int) SWIG_AsInt(obj1);
8190 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8191 {
8192 PyThreadState* __tstate = wxPyBeginAllowThreads();
8193 (arg1)->SetFamily(arg2);
8194
8195 wxPyEndAllowThreads(__tstate);
8196 if (PyErr_Occurred()) SWIG_fail;
8197 }
8198 Py_INCREF(Py_None); resultobj = Py_None;
8199 return resultobj;
8200 fail:
8201 return NULL;
8202}
8203
8204
8205static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8206 PyObject *resultobj;
8207 wxFont *arg1 = (wxFont *) 0 ;
8208 int arg2 ;
8209 PyObject * obj0 = 0 ;
994141e6 8210 PyObject * obj1 = 0 ;
d14a1e28
RD
8211 char *kwnames[] = {
8212 (char *) "self",(char *) "style", NULL
8213 };
8214
994141e6 8215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8218 arg2 = (int) SWIG_AsInt(obj1);
8219 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8220 {
8221 PyThreadState* __tstate = wxPyBeginAllowThreads();
8222 (arg1)->SetStyle(arg2);
8223
8224 wxPyEndAllowThreads(__tstate);
8225 if (PyErr_Occurred()) SWIG_fail;
8226 }
8227 Py_INCREF(Py_None); resultobj = Py_None;
8228 return resultobj;
8229 fail:
8230 return NULL;
8231}
8232
8233
8234static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8235 PyObject *resultobj;
8236 wxFont *arg1 = (wxFont *) 0 ;
8237 int arg2 ;
8238 PyObject * obj0 = 0 ;
994141e6 8239 PyObject * obj1 = 0 ;
d14a1e28
RD
8240 char *kwnames[] = {
8241 (char *) "self",(char *) "weight", NULL
8242 };
8243
994141e6 8244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8247 arg2 = (int) SWIG_AsInt(obj1);
8248 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8249 {
8250 PyThreadState* __tstate = wxPyBeginAllowThreads();
8251 (arg1)->SetWeight(arg2);
8252
8253 wxPyEndAllowThreads(__tstate);
8254 if (PyErr_Occurred()) SWIG_fail;
8255 }
8256 Py_INCREF(Py_None); resultobj = Py_None;
8257 return resultobj;
8258 fail:
8259 return NULL;
8260}
8261
8262
8263static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8264 PyObject *resultobj;
8265 wxFont *arg1 = (wxFont *) 0 ;
8266 wxString *arg2 = 0 ;
e811c8ce 8267 bool temp2 = False ;
d14a1e28
RD
8268 PyObject * obj0 = 0 ;
8269 PyObject * obj1 = 0 ;
8270 char *kwnames[] = {
8271 (char *) "self",(char *) "faceName", NULL
8272 };
8273
8274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8277 {
8278 arg2 = wxString_in_helper(obj1);
8279 if (arg2 == NULL) SWIG_fail;
e811c8ce 8280 temp2 = True;
d14a1e28
RD
8281 }
8282 {
8283 PyThreadState* __tstate = wxPyBeginAllowThreads();
8284 (arg1)->SetFaceName((wxString const &)*arg2);
8285
8286 wxPyEndAllowThreads(__tstate);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 Py_INCREF(Py_None); resultobj = Py_None;
8290 {
8291 if (temp2)
8292 delete arg2;
8293 }
8294 return resultobj;
8295 fail:
8296 {
8297 if (temp2)
8298 delete arg2;
8299 }
8300 return NULL;
8301}
8302
8303
8304static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8305 PyObject *resultobj;
8306 wxFont *arg1 = (wxFont *) 0 ;
8307 bool arg2 ;
8308 PyObject * obj0 = 0 ;
8309 PyObject * obj1 = 0 ;
8310 char *kwnames[] = {
8311 (char *) "self",(char *) "underlined", NULL
8312 };
8313
8314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8317 arg2 = (bool) SWIG_AsBool(obj1);
8318 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8319 {
8320 PyThreadState* __tstate = wxPyBeginAllowThreads();
8321 (arg1)->SetUnderlined(arg2);
8322
8323 wxPyEndAllowThreads(__tstate);
8324 if (PyErr_Occurred()) SWIG_fail;
8325 }
8326 Py_INCREF(Py_None); resultobj = Py_None;
8327 return resultobj;
8328 fail:
8329 return NULL;
8330}
8331
8332
8333static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8334 PyObject *resultobj;
8335 wxFont *arg1 = (wxFont *) 0 ;
8336 int arg2 ;
8337 PyObject * obj0 = 0 ;
994141e6 8338 PyObject * obj1 = 0 ;
d14a1e28
RD
8339 char *kwnames[] = {
8340 (char *) "self",(char *) "encoding", NULL
8341 };
8342
994141e6 8343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8346 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8347 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8348 {
8349 PyThreadState* __tstate = wxPyBeginAllowThreads();
8350 (arg1)->SetEncoding((wxFontEncoding )arg2);
8351
8352 wxPyEndAllowThreads(__tstate);
8353 if (PyErr_Occurred()) SWIG_fail;
8354 }
8355 Py_INCREF(Py_None); resultobj = Py_None;
8356 return resultobj;
8357 fail:
8358 return NULL;
8359}
8360
8361
8362static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8363 PyObject *resultobj;
8364 wxFont *arg1 = (wxFont *) 0 ;
8365 wxNativeFontInfo *arg2 = 0 ;
8366 PyObject * obj0 = 0 ;
8367 PyObject * obj1 = 0 ;
8368 char *kwnames[] = {
8369 (char *) "self",(char *) "info", NULL
8370 };
8371
8372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8375 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8376 SWIG_POINTER_EXCEPTION | 0)) == -1)
8377 SWIG_fail;
d14a1e28 8378 if (arg2 == NULL) {
15afbcd0
RD
8379 PyErr_SetString(PyExc_TypeError,"null reference");
8380 SWIG_fail;
d14a1e28
RD
8381 }
8382 {
8383 PyThreadState* __tstate = wxPyBeginAllowThreads();
8384 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8385
8386 wxPyEndAllowThreads(__tstate);
8387 if (PyErr_Occurred()) SWIG_fail;
8388 }
8389 Py_INCREF(Py_None); resultobj = Py_None;
8390 return resultobj;
8391 fail:
8392 return NULL;
8393}
8394
8395
8396static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8397 PyObject *resultobj;
8398 wxFont *arg1 = (wxFont *) 0 ;
8399 wxString *arg2 = 0 ;
e811c8ce 8400 bool temp2 = False ;
d14a1e28
RD
8401 PyObject * obj0 = 0 ;
8402 PyObject * obj1 = 0 ;
8403 char *kwnames[] = {
8404 (char *) "self",(char *) "info", NULL
8405 };
8406
8407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8410 {
8411 arg2 = wxString_in_helper(obj1);
8412 if (arg2 == NULL) SWIG_fail;
e811c8ce 8413 temp2 = True;
d14a1e28
RD
8414 }
8415 {
8416 PyThreadState* __tstate = wxPyBeginAllowThreads();
8417 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8418
8419 wxPyEndAllowThreads(__tstate);
8420 if (PyErr_Occurred()) SWIG_fail;
8421 }
8422 Py_INCREF(Py_None); resultobj = Py_None;
8423 {
8424 if (temp2)
8425 delete arg2;
8426 }
8427 return resultobj;
8428 fail:
8429 {
8430 if (temp2)
8431 delete arg2;
8432 }
8433 return NULL;
8434}
8435
8436
8437static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8438 PyObject *resultobj;
8439 wxFont *arg1 = (wxFont *) 0 ;
8440 wxString *arg2 = 0 ;
e811c8ce 8441 bool temp2 = False ;
d14a1e28
RD
8442 PyObject * obj0 = 0 ;
8443 PyObject * obj1 = 0 ;
8444 char *kwnames[] = {
8445 (char *) "self",(char *) "info", NULL
8446 };
8447
8448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8451 {
8452 arg2 = wxString_in_helper(obj1);
8453 if (arg2 == NULL) SWIG_fail;
e811c8ce 8454 temp2 = True;
d14a1e28
RD
8455 }
8456 {
8457 PyThreadState* __tstate = wxPyBeginAllowThreads();
8458 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8459
8460 wxPyEndAllowThreads(__tstate);
8461 if (PyErr_Occurred()) SWIG_fail;
8462 }
8463 Py_INCREF(Py_None); resultobj = Py_None;
8464 {
8465 if (temp2)
8466 delete arg2;
8467 }
8468 return resultobj;
8469 fail:
8470 {
8471 if (temp2)
8472 delete arg2;
8473 }
8474 return NULL;
8475}
8476
8477
8478static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8479 PyObject *resultobj;
8480 wxFont *arg1 = (wxFont *) 0 ;
8481 wxString result;
8482 PyObject * obj0 = 0 ;
8483 char *kwnames[] = {
8484 (char *) "self", NULL
8485 };
8486
8487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
15afbcd0
RD
8488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8490 {
8491 PyThreadState* __tstate = wxPyBeginAllowThreads();
8492 result = ((wxFont const *)arg1)->GetFamilyString();
8493
8494 wxPyEndAllowThreads(__tstate);
8495 if (PyErr_Occurred()) SWIG_fail;
8496 }
8497 {
8498#if wxUSE_UNICODE
8499 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8500#else
8501 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8502#endif
8503 }
8504 return resultobj;
8505 fail:
8506 return NULL;
8507}
8508
8509
8510static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8511 PyObject *resultobj;
8512 wxFont *arg1 = (wxFont *) 0 ;
8513 wxString result;
8514 PyObject * obj0 = 0 ;
8515 char *kwnames[] = {
8516 (char *) "self", NULL
8517 };
8518
8519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
15afbcd0
RD
8520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8522 {
8523 PyThreadState* __tstate = wxPyBeginAllowThreads();
8524 result = ((wxFont const *)arg1)->GetStyleString();
8525
8526 wxPyEndAllowThreads(__tstate);
8527 if (PyErr_Occurred()) SWIG_fail;
8528 }
8529 {
8530#if wxUSE_UNICODE
8531 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8532#else
8533 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8534#endif
8535 }
8536 return resultobj;
8537 fail:
8538 return NULL;
8539}
8540
8541
8542static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8543 PyObject *resultobj;
8544 wxFont *arg1 = (wxFont *) 0 ;
8545 wxString result;
8546 PyObject * obj0 = 0 ;
8547 char *kwnames[] = {
8548 (char *) "self", NULL
8549 };
8550
8551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
15afbcd0
RD
8552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8554 {
8555 PyThreadState* __tstate = wxPyBeginAllowThreads();
8556 result = ((wxFont const *)arg1)->GetWeightString();
8557
8558 wxPyEndAllowThreads(__tstate);
8559 if (PyErr_Occurred()) SWIG_fail;
8560 }
8561 {
8562#if wxUSE_UNICODE
8563 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8564#else
8565 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8566#endif
8567 }
8568 return resultobj;
8569 fail:
8570 return NULL;
8571}
8572
8573
8574static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8575 PyObject *resultobj;
8576 wxFont *arg1 = (wxFont *) 0 ;
e811c8ce 8577 bool arg2 = (bool) True ;
d14a1e28
RD
8578 PyObject * obj0 = 0 ;
8579 PyObject * obj1 = 0 ;
8580 char *kwnames[] = {
8581 (char *) "self",(char *) "no", NULL
8582 };
8583
8584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 8587 if (obj1) {
15afbcd0
RD
8588 arg2 = (bool) SWIG_AsBool(obj1);
8589 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8590 }
8591 {
8592 PyThreadState* __tstate = wxPyBeginAllowThreads();
8593 (arg1)->SetNoAntiAliasing(arg2);
8594
8595 wxPyEndAllowThreads(__tstate);
8596 if (PyErr_Occurred()) SWIG_fail;
8597 }
8598 Py_INCREF(Py_None); resultobj = Py_None;
8599 return resultobj;
8600 fail:
8601 return NULL;
8602}
8603
8604
8605static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8606 PyObject *resultobj;
8607 wxFont *arg1 = (wxFont *) 0 ;
8608 bool result;
8609 PyObject * obj0 = 0 ;
8610 char *kwnames[] = {
8611 (char *) "self", NULL
8612 };
8613
8614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
15afbcd0
RD
8615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8617 {
8618 PyThreadState* __tstate = wxPyBeginAllowThreads();
8619 result = (bool)(arg1)->GetNoAntiAliasing();
8620
8621 wxPyEndAllowThreads(__tstate);
8622 if (PyErr_Occurred()) SWIG_fail;
8623 }
4f89f6a3
RD
8624 {
8625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8626 }
d14a1e28
RD
8627 return resultobj;
8628 fail:
8629 return NULL;
8630}
8631
8632
8633static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8634 PyObject *resultobj;
8635 int result;
8636 char *kwnames[] = {
8637 NULL
8638 };
8639
8640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8641 {
8642 PyThreadState* __tstate = wxPyBeginAllowThreads();
8643 result = (int)wxFont::GetDefaultEncoding();
8644
8645 wxPyEndAllowThreads(__tstate);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
15afbcd0 8648 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8649 return resultobj;
8650 fail:
8651 return NULL;
8652}
8653
8654
8655static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8656 PyObject *resultobj;
8657 int arg1 ;
994141e6 8658 PyObject * obj0 = 0 ;
d14a1e28
RD
8659 char *kwnames[] = {
8660 (char *) "encoding", NULL
8661 };
8662
994141e6 8663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
8664 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8665 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8666 {
8667 PyThreadState* __tstate = wxPyBeginAllowThreads();
8668 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8669
8670 wxPyEndAllowThreads(__tstate);
8671 if (PyErr_Occurred()) SWIG_fail;
8672 }
8673 Py_INCREF(Py_None); resultobj = Py_None;
8674 return resultobj;
8675 fail:
8676 return NULL;
8677}
8678
8679
8680static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8681 PyObject *obj;
8682 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8683 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8684 Py_INCREF(obj);
8685 return Py_BuildValue((char *)"");
8686}
8687static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8688 PyObject *resultobj;
8689 wxPyFontEnumerator *result;
8690 char *kwnames[] = {
8691 NULL
8692 };
8693
8694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8695 {
8696 PyThreadState* __tstate = wxPyBeginAllowThreads();
8697 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8698
8699 wxPyEndAllowThreads(__tstate);
8700 if (PyErr_Occurred()) SWIG_fail;
8701 }
15afbcd0 8702 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
d14a1e28
RD
8703 return resultobj;
8704 fail:
8705 return NULL;
8706}
8707
8708
8709static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8710 PyObject *resultobj;
8711 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8712 PyObject * obj0 = 0 ;
8713 char *kwnames[] = {
8714 (char *) "self", NULL
8715 };
8716
8717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
15afbcd0
RD
8718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8720 {
8721 PyThreadState* __tstate = wxPyBeginAllowThreads();
8722 delete arg1;
8723
8724 wxPyEndAllowThreads(__tstate);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 }
8727 Py_INCREF(Py_None); resultobj = Py_None;
8728 return resultobj;
8729 fail:
8730 return NULL;
8731}
8732
8733
8734static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8735 PyObject *resultobj;
8736 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8737 PyObject *arg2 = (PyObject *) 0 ;
8738 PyObject *arg3 = (PyObject *) 0 ;
8739 bool arg4 ;
8740 PyObject * obj0 = 0 ;
8741 PyObject * obj1 = 0 ;
8742 PyObject * obj2 = 0 ;
8743 PyObject * obj3 = 0 ;
8744 char *kwnames[] = {
8745 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8746 };
8747
8748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
8749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8751 arg2 = obj1;
8752 arg3 = obj2;
15afbcd0
RD
8753 arg4 = (bool) SWIG_AsBool(obj3);
8754 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8755 {
8756 PyThreadState* __tstate = wxPyBeginAllowThreads();
8757 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8758
8759 wxPyEndAllowThreads(__tstate);
8760 if (PyErr_Occurred()) SWIG_fail;
8761 }
8762 Py_INCREF(Py_None); resultobj = Py_None;
8763 return resultobj;
8764 fail:
8765 return NULL;
8766}
8767
8768
8769static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8770 PyObject *resultobj;
8771 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8772 int arg2 = (int) wxFONTENCODING_SYSTEM ;
e811c8ce 8773 bool arg3 = (bool) False ;
d14a1e28
RD
8774 bool result;
8775 PyObject * obj0 = 0 ;
994141e6 8776 PyObject * obj1 = 0 ;
d14a1e28
RD
8777 PyObject * obj2 = 0 ;
8778 char *kwnames[] = {
8779 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8780 };
8781
994141e6 8782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
8783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 8785 if (obj1) {
15afbcd0
RD
8786 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8787 if (PyErr_Occurred()) SWIG_fail;
994141e6 8788 }
d14a1e28 8789 if (obj2) {
15afbcd0
RD
8790 arg3 = (bool) SWIG_AsBool(obj2);
8791 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8792 }
8793 {
8794 PyThreadState* __tstate = wxPyBeginAllowThreads();
8795 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8796
8797 wxPyEndAllowThreads(__tstate);
8798 if (PyErr_Occurred()) SWIG_fail;
8799 }
4f89f6a3
RD
8800 {
8801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8802 }
d14a1e28
RD
8803 return resultobj;
8804 fail:
8805 return NULL;
8806}
8807
8808
8809static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8810 PyObject *resultobj;
8811 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8812 wxString const &arg2_defvalue = wxPyEmptyString ;
8813 wxString *arg2 = (wxString *) &arg2_defvalue ;
8814 bool result;
e811c8ce 8815 bool temp2 = False ;
d14a1e28
RD
8816 PyObject * obj0 = 0 ;
8817 PyObject * obj1 = 0 ;
8818 char *kwnames[] = {
8819 (char *) "self",(char *) "facename", NULL
8820 };
8821
8822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8825 if (obj1) {
8826 {
8827 arg2 = wxString_in_helper(obj1);
8828 if (arg2 == NULL) SWIG_fail;
e811c8ce 8829 temp2 = True;
d14a1e28
RD
8830 }
8831 }
8832 {
8833 PyThreadState* __tstate = wxPyBeginAllowThreads();
8834 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8835
8836 wxPyEndAllowThreads(__tstate);
8837 if (PyErr_Occurred()) SWIG_fail;
8838 }
4f89f6a3
RD
8839 {
8840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8841 }
d14a1e28
RD
8842 {
8843 if (temp2)
8844 delete arg2;
8845 }
8846 return resultobj;
8847 fail:
8848 {
8849 if (temp2)
8850 delete arg2;
8851 }
8852 return NULL;
8853}
8854
8855
8856static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8857 PyObject *resultobj;
8858 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8859 PyObject *result;
8860 PyObject * obj0 = 0 ;
8861 char *kwnames[] = {
8862 (char *) "self", NULL
8863 };
8864
8865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
15afbcd0
RD
8866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8868 {
8869 PyThreadState* __tstate = wxPyBeginAllowThreads();
8870 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8871
8872 wxPyEndAllowThreads(__tstate);
8873 if (PyErr_Occurred()) SWIG_fail;
8874 }
8875 resultobj = result;
8876 return resultobj;
8877 fail:
8878 return NULL;
8879}
8880
8881
8882static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8883 PyObject *resultobj;
8884 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8885 PyObject *result;
8886 PyObject * obj0 = 0 ;
8887 char *kwnames[] = {
8888 (char *) "self", NULL
8889 };
8890
8891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
15afbcd0
RD
8892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8894 {
8895 PyThreadState* __tstate = wxPyBeginAllowThreads();
8896 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8897
8898 wxPyEndAllowThreads(__tstate);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 }
8901 resultobj = result;
8902 return resultobj;
8903 fail:
8904 return NULL;
8905}
8906
8907
8908static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8909 PyObject *obj;
8910 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8911 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8912 Py_INCREF(obj);
8913 return Py_BuildValue((char *)"");
8914}
8915static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8916 PyObject *resultobj;
8917 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8918 int arg2 ;
8919 PyObject * obj0 = 0 ;
994141e6 8920 PyObject * obj1 = 0 ;
d14a1e28
RD
8921 char *kwnames[] = {
8922 (char *) "self",(char *) "Language", NULL
8923 };
8924
994141e6 8925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8928 arg2 = (int) SWIG_AsInt(obj1);
8929 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8930 if (arg1) (arg1)->Language = arg2;
8931
8932 Py_INCREF(Py_None); resultobj = Py_None;
8933 return resultobj;
8934 fail:
8935 return NULL;
8936}
8937
8938
8939static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8940 PyObject *resultobj;
8941 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8942 int result;
8943 PyObject * obj0 = 0 ;
8944 char *kwnames[] = {
8945 (char *) "self", NULL
8946 };
8947
8948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
8949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8951 result = (int) ((arg1)->Language);
8952
15afbcd0 8953 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8954 return resultobj;
8955 fail:
8956 return NULL;
8957}
8958
8959
8960static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8961 PyObject *resultobj;
8962 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
196addbf 8963 wxString *arg2 = (wxString *) 0 ;
7eae615b 8964 bool temp2 = False ;
d14a1e28
RD
8965 PyObject * obj0 = 0 ;
8966 PyObject * obj1 = 0 ;
8967 char *kwnames[] = {
8968 (char *) "self",(char *) "CanonicalName", NULL
8969 };
8970
8971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7eae615b
RD
8974 {
8975 arg2 = wxString_in_helper(obj1);
8976 if (arg2 == NULL) SWIG_fail;
8977 temp2 = True;
8978 }
196addbf 8979 if (arg1) (arg1)->CanonicalName = *arg2;
d14a1e28
RD
8980
8981 Py_INCREF(Py_None); resultobj = Py_None;
7eae615b
RD
8982 {
8983 if (temp2)
8984 delete arg2;
8985 }
d14a1e28
RD
8986 return resultobj;
8987 fail:
7eae615b
RD
8988 {
8989 if (temp2)
8990 delete arg2;
8991 }
d14a1e28
RD
8992 return NULL;
8993}
8994
8995
8996static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8997 PyObject *resultobj;
8998 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
196addbf 8999 wxString *result;
d14a1e28
RD
9000 PyObject * obj0 = 0 ;
9001 char *kwnames[] = {
9002 (char *) "self", NULL
9003 };
9004
9005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
9006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
196addbf 9008 result = (wxString *)& ((arg1)->CanonicalName);
d14a1e28
RD
9009
9010 {
9011#if wxUSE_UNICODE
196addbf 9012 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 9013#else
196addbf 9014 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
9015#endif
9016 }
9017 return resultobj;
9018 fail:
9019 return NULL;
9020}
9021
9022
9023static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9024 PyObject *resultobj;
9025 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
196addbf 9026 wxString *arg2 = (wxString *) 0 ;
7eae615b 9027 bool temp2 = False ;
d14a1e28
RD
9028 PyObject * obj0 = 0 ;
9029 PyObject * obj1 = 0 ;
9030 char *kwnames[] = {
9031 (char *) "self",(char *) "Description", NULL
9032 };
9033
9034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
9035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7eae615b
RD
9037 {
9038 arg2 = wxString_in_helper(obj1);
9039 if (arg2 == NULL) SWIG_fail;
9040 temp2 = True;
9041 }
196addbf 9042 if (arg1) (arg1)->Description = *arg2;
d14a1e28
RD
9043
9044 Py_INCREF(Py_None); resultobj = Py_None;
7eae615b
RD
9045 {
9046 if (temp2)
9047 delete arg2;
9048 }
d14a1e28
RD
9049 return resultobj;
9050 fail:
7eae615b
RD
9051 {
9052 if (temp2)
9053 delete arg2;
9054 }
d14a1e28
RD
9055 return NULL;
9056}
9057
9058
9059static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9060 PyObject *resultobj;
9061 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
196addbf 9062 wxString *result;
d14a1e28
RD
9063 PyObject * obj0 = 0 ;
9064 char *kwnames[] = {
9065 (char *) "self", NULL
9066 };
9067
9068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
9069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
196addbf 9071 result = (wxString *)& ((arg1)->Description);
d14a1e28
RD
9072
9073 {
9074#if wxUSE_UNICODE
196addbf 9075 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 9076#else
196addbf 9077 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
9078#endif
9079 }
9080 return resultobj;
9081 fail:
9082 return NULL;
9083}
9084
9085
9086static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9087 PyObject *obj;
9088 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9089 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9090 Py_INCREF(obj);
9091 return Py_BuildValue((char *)"");
9092}
9093static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9094 PyObject *resultobj;
9095 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9096 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9097 wxLocale *result;
994141e6
RD
9098 PyObject * obj0 = 0 ;
9099 PyObject * obj1 = 0 ;
d14a1e28
RD
9100 char *kwnames[] = {
9101 (char *) "language",(char *) "flags", NULL
9102 };
9103
994141e6
RD
9104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9105 if (obj0) {
15afbcd0
RD
9106 arg1 = (int) SWIG_AsInt(obj0);
9107 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
9108 }
9109 if (obj1) {
15afbcd0
RD
9110 arg2 = (int) SWIG_AsInt(obj1);
9111 if (PyErr_Occurred()) SWIG_fail;
994141e6 9112 }
d14a1e28
RD
9113 {
9114 PyThreadState* __tstate = wxPyBeginAllowThreads();
9115 result = (wxLocale *)new wxLocale(arg1,arg2);
9116
9117 wxPyEndAllowThreads(__tstate);
9118 if (PyErr_Occurred()) SWIG_fail;
9119 }
15afbcd0 9120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
d14a1e28
RD
9121 return resultobj;
9122 fail:
9123 return NULL;
9124}
9125
9126
9127static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9128 PyObject *resultobj;
9129 wxLocale *arg1 = (wxLocale *) 0 ;
9130 PyObject * obj0 = 0 ;
9131 char *kwnames[] = {
9132 (char *) "self", NULL
9133 };
9134
9135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
15afbcd0
RD
9136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9138 {
9139 PyThreadState* __tstate = wxPyBeginAllowThreads();
9140 delete arg1;
9141
9142 wxPyEndAllowThreads(__tstate);
9143 if (PyErr_Occurred()) SWIG_fail;
9144 }
9145 Py_INCREF(Py_None); resultobj = Py_None;
9146 return resultobj;
9147 fail:
9148 return NULL;
9149}
9150
9151
9152static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9153 PyObject *resultobj;
9154 wxLocale *arg1 = (wxLocale *) 0 ;
9155 wxString *arg2 = 0 ;
9156 wxString const &arg3_defvalue = wxPyEmptyString ;
9157 wxString *arg3 = (wxString *) &arg3_defvalue ;
9158 wxString const &arg4_defvalue = wxPyEmptyString ;
9159 wxString *arg4 = (wxString *) &arg4_defvalue ;
e811c8ce
RD
9160 bool arg5 = (bool) True ;
9161 bool arg6 = (bool) False ;
d14a1e28 9162 bool result;
e811c8ce
RD
9163 bool temp2 = False ;
9164 bool temp3 = False ;
9165 bool temp4 = False ;
d14a1e28
RD
9166 PyObject * obj0 = 0 ;
9167 PyObject * obj1 = 0 ;
9168 PyObject * obj2 = 0 ;
9169 PyObject * obj3 = 0 ;
9170 PyObject * obj4 = 0 ;
9171 PyObject * obj5 = 0 ;
9172 char *kwnames[] = {
9173 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9174 };
9175
9176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15afbcd0
RD
9177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9179 {
9180 arg2 = wxString_in_helper(obj1);
9181 if (arg2 == NULL) SWIG_fail;
e811c8ce 9182 temp2 = True;
d14a1e28
RD
9183 }
9184 if (obj2) {
9185 {
9186 arg3 = wxString_in_helper(obj2);
9187 if (arg3 == NULL) SWIG_fail;
e811c8ce 9188 temp3 = True;
d14a1e28
RD
9189 }
9190 }
9191 if (obj3) {
9192 {
9193 arg4 = wxString_in_helper(obj3);
9194 if (arg4 == NULL) SWIG_fail;
e811c8ce 9195 temp4 = True;
d14a1e28
RD
9196 }
9197 }
9198 if (obj4) {
15afbcd0
RD
9199 arg5 = (bool) SWIG_AsBool(obj4);
9200 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9201 }
9202 if (obj5) {
15afbcd0
RD
9203 arg6 = (bool) SWIG_AsBool(obj5);
9204 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9205 }
9206 {
9207 PyThreadState* __tstate = wxPyBeginAllowThreads();
9208 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9209
9210 wxPyEndAllowThreads(__tstate);
9211 if (PyErr_Occurred()) SWIG_fail;
9212 }
4f89f6a3
RD
9213 {
9214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9215 }
d14a1e28
RD
9216 {
9217 if (temp2)
9218 delete arg2;
9219 }
9220 {
9221 if (temp3)
9222 delete arg3;
9223 }
9224 {
9225 if (temp4)
9226 delete arg4;
9227 }
9228 return resultobj;
9229 fail:
9230 {
9231 if (temp2)
9232 delete arg2;
9233 }
9234 {
9235 if (temp3)
9236 delete arg3;
9237 }
9238 {
9239 if (temp4)
9240 delete arg4;
9241 }
9242 return NULL;
9243}
9244
9245
9246static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9247 PyObject *resultobj;
9248 wxLocale *arg1 = (wxLocale *) 0 ;
9249 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9250 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9251 bool result;
9252 PyObject * obj0 = 0 ;
994141e6
RD
9253 PyObject * obj1 = 0 ;
9254 PyObject * obj2 = 0 ;
d14a1e28
RD
9255 char *kwnames[] = {
9256 (char *) "self",(char *) "language",(char *) "flags", NULL
9257 };
9258
994141e6 9259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
9260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 9262 if (obj1) {
15afbcd0
RD
9263 arg2 = (int) SWIG_AsInt(obj1);
9264 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
9265 }
9266 if (obj2) {
15afbcd0
RD
9267 arg3 = (int) SWIG_AsInt(obj2);
9268 if (PyErr_Occurred()) SWIG_fail;
994141e6 9269 }
d14a1e28
RD
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9272 result = (bool)(arg1)->Init(arg2,arg3);
9273
9274 wxPyEndAllowThreads(__tstate);
9275 if (PyErr_Occurred()) SWIG_fail;
9276 }
4f89f6a3
RD
9277 {
9278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9279 }
d14a1e28
RD
9280 return resultobj;
9281 fail:
9282 return NULL;
9283}
9284
9285
9286static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9287 PyObject *resultobj;
9288 int result;
9289 char *kwnames[] = {
9290 NULL
9291 };
9292
9293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9294 {
9295 PyThreadState* __tstate = wxPyBeginAllowThreads();
9296 result = (int)wxLocale::GetSystemLanguage();
9297
9298 wxPyEndAllowThreads(__tstate);
9299 if (PyErr_Occurred()) SWIG_fail;
9300 }
15afbcd0 9301 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9302 return resultobj;
9303 fail:
9304 return NULL;
9305}
9306
9307
9308static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9309 PyObject *resultobj;
9310 int result;
9311 char *kwnames[] = {
9312 NULL
9313 };
9314
9315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9316 {
9317 PyThreadState* __tstate = wxPyBeginAllowThreads();
9318 result = (int)wxLocale::GetSystemEncoding();
9319
9320 wxPyEndAllowThreads(__tstate);
9321 if (PyErr_Occurred()) SWIG_fail;
9322 }
15afbcd0 9323 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9324 return resultobj;
9325 fail:
9326 return NULL;
9327}
9328
9329
9330static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9331 PyObject *resultobj;
9332 wxString result;
9333 char *kwnames[] = {
9334 NULL
9335 };
9336
9337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9338 {
9339 PyThreadState* __tstate = wxPyBeginAllowThreads();
9340 result = wxLocale::GetSystemEncodingName();
9341
9342 wxPyEndAllowThreads(__tstate);
9343 if (PyErr_Occurred()) SWIG_fail;
9344 }
9345 {
9346#if wxUSE_UNICODE
9347 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9348#else
9349 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9350#endif
9351 }
9352 return resultobj;
9353 fail:
9354 return NULL;
9355}
9356
9357
9358static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9359 PyObject *resultobj;
9360 wxLocale *arg1 = (wxLocale *) 0 ;
9361 bool result;
9362 PyObject * obj0 = 0 ;
9363 char *kwnames[] = {
9364 (char *) "self", NULL
9365 };
9366
9367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
15afbcd0
RD
9368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9370 {
9371 PyThreadState* __tstate = wxPyBeginAllowThreads();
9372 result = (bool)((wxLocale const *)arg1)->IsOk();
9373
9374 wxPyEndAllowThreads(__tstate);
9375 if (PyErr_Occurred()) SWIG_fail;
9376 }
4f89f6a3
RD
9377 {
9378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9379 }
d14a1e28
RD
9380 return resultobj;
9381 fail:
9382 return NULL;
9383}
9384
9385
9386static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9387 PyObject *resultobj;
9388 wxLocale *arg1 = (wxLocale *) 0 ;
9389 wxString result;
9390 PyObject * obj0 = 0 ;
9391 char *kwnames[] = {
9392 (char *) "self", NULL
9393 };
9394
9395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
15afbcd0
RD
9396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9398 {
9399 PyThreadState* __tstate = wxPyBeginAllowThreads();
9400 result = ((wxLocale const *)arg1)->GetLocale();
9401
9402 wxPyEndAllowThreads(__tstate);
9403 if (PyErr_Occurred()) SWIG_fail;
9404 }
9405 {
9406#if wxUSE_UNICODE
9407 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9408#else
9409 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9410#endif
9411 }
9412 return resultobj;
9413 fail:
9414 return NULL;
9415}
9416
9417
9418static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9419 PyObject *resultobj;
9420 wxLocale *arg1 = (wxLocale *) 0 ;
9421 int result;
9422 PyObject * obj0 = 0 ;
9423 char *kwnames[] = {
9424 (char *) "self", NULL
9425 };
9426
9427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
15afbcd0
RD
9428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9430 {
9431 PyThreadState* __tstate = wxPyBeginAllowThreads();
9432 result = (int)((wxLocale const *)arg1)->GetLanguage();
9433
9434 wxPyEndAllowThreads(__tstate);
9435 if (PyErr_Occurred()) SWIG_fail;
9436 }
15afbcd0 9437 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9438 return resultobj;
9439 fail:
9440 return NULL;
9441}
9442
9443
9444static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9445 PyObject *resultobj;
9446 wxLocale *arg1 = (wxLocale *) 0 ;
9447 wxString result;
9448 PyObject * obj0 = 0 ;
9449 char *kwnames[] = {
9450 (char *) "self", NULL
9451 };
9452
9453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
15afbcd0
RD
9454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9456 {
9457 PyThreadState* __tstate = wxPyBeginAllowThreads();
9458 result = ((wxLocale const *)arg1)->GetSysName();
9459
9460 wxPyEndAllowThreads(__tstate);
9461 if (PyErr_Occurred()) SWIG_fail;
9462 }
9463 {
9464#if wxUSE_UNICODE
9465 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9466#else
9467 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9468#endif
9469 }
9470 return resultobj;
9471 fail:
9472 return NULL;
9473}
9474
9475
9476static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9477 PyObject *resultobj;
9478 wxLocale *arg1 = (wxLocale *) 0 ;
9479 wxString result;
9480 PyObject * obj0 = 0 ;
9481 char *kwnames[] = {
9482 (char *) "self", NULL
9483 };
9484
9485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
15afbcd0
RD
9486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9488 {
9489 PyThreadState* __tstate = wxPyBeginAllowThreads();
9490 result = ((wxLocale const *)arg1)->GetCanonicalName();
9491
9492 wxPyEndAllowThreads(__tstate);
9493 if (PyErr_Occurred()) SWIG_fail;
9494 }
9495 {
9496#if wxUSE_UNICODE
9497 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9498#else
9499 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9500#endif
9501 }
9502 return resultobj;
9503 fail:
9504 return NULL;
9505}
9506
9507
9508static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9509 PyObject *resultobj;
9510 wxString *arg1 = 0 ;
e811c8ce 9511 bool temp1 = False ;
d14a1e28
RD
9512 PyObject * obj0 = 0 ;
9513 char *kwnames[] = {
9514 (char *) "prefix", NULL
9515 };
9516
9517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9518 {
9519 arg1 = wxString_in_helper(obj0);
9520 if (arg1 == NULL) SWIG_fail;
e811c8ce 9521 temp1 = True;
d14a1e28
RD
9522 }
9523 {
9524 PyThreadState* __tstate = wxPyBeginAllowThreads();
9525 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9526
9527 wxPyEndAllowThreads(__tstate);
9528 if (PyErr_Occurred()) SWIG_fail;
9529 }
9530 Py_INCREF(Py_None); resultobj = Py_None;
9531 {
9532 if (temp1)
9533 delete arg1;
9534 }
9535 return resultobj;
9536 fail:
9537 {
9538 if (temp1)
9539 delete arg1;
9540 }
9541 return NULL;
9542}
9543
9544
9545static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9546 PyObject *resultobj;
9547 wxLocale *arg1 = (wxLocale *) 0 ;
9548 wxString *arg2 = 0 ;
9549 bool result;
e811c8ce 9550 bool temp2 = False ;
d14a1e28
RD
9551 PyObject * obj0 = 0 ;
9552 PyObject * obj1 = 0 ;
9553 char *kwnames[] = {
9554 (char *) "self",(char *) "szDomain", NULL
9555 };
9556
9557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
9558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9560 {
9561 arg2 = wxString_in_helper(obj1);
9562 if (arg2 == NULL) SWIG_fail;
e811c8ce 9563 temp2 = True;
d14a1e28
RD
9564 }
9565 {
9566 PyThreadState* __tstate = wxPyBeginAllowThreads();
9567 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9568
9569 wxPyEndAllowThreads(__tstate);
9570 if (PyErr_Occurred()) SWIG_fail;
9571 }
4f89f6a3
RD
9572 {
9573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9574 }
d14a1e28
RD
9575 {
9576 if (temp2)
9577 delete arg2;
9578 }
9579 return resultobj;
9580 fail:
9581 {
9582 if (temp2)
9583 delete arg2;
9584 }
9585 return NULL;
9586}
9587
9588
9589static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9590 PyObject *resultobj;
9591 wxLocale *arg1 = (wxLocale *) 0 ;
9592 wxString *arg2 = 0 ;
9593 bool result;
e811c8ce 9594 bool temp2 = False ;
d14a1e28
RD
9595 PyObject * obj0 = 0 ;
9596 PyObject * obj1 = 0 ;
9597 char *kwnames[] = {
9598 (char *) "self",(char *) "szDomain", NULL
9599 };
9600
9601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
9602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9604 {
9605 arg2 = wxString_in_helper(obj1);
9606 if (arg2 == NULL) SWIG_fail;
e811c8ce 9607 temp2 = True;
d14a1e28
RD
9608 }
9609 {
9610 PyThreadState* __tstate = wxPyBeginAllowThreads();
9611 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9612
9613 wxPyEndAllowThreads(__tstate);
9614 if (PyErr_Occurred()) SWIG_fail;
9615 }
4f89f6a3
RD
9616 {
9617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9618 }
d14a1e28
RD
9619 {
9620 if (temp2)
9621 delete arg2;
9622 }
9623 return resultobj;
9624 fail:
9625 {
9626 if (temp2)
9627 delete arg2;
9628 }
9629 return NULL;
9630}
9631
9632
9633static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9634 PyObject *resultobj;
9635 int arg1 ;
9636 wxLanguageInfo *result;
994141e6 9637 PyObject * obj0 = 0 ;
d14a1e28
RD
9638 char *kwnames[] = {
9639 (char *) "lang", NULL
9640 };
9641
994141e6 9642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
9643 arg1 = (int) SWIG_AsInt(obj0);
9644 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9645 {
9646 PyThreadState* __tstate = wxPyBeginAllowThreads();
9647 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9648
9649 wxPyEndAllowThreads(__tstate);
9650 if (PyErr_Occurred()) SWIG_fail;
9651 }
15afbcd0 9652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
d14a1e28
RD
9653 return resultobj;
9654 fail:
9655 return NULL;
9656}
9657
9658
9659static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9660 PyObject *resultobj;
9661 int arg1 ;
9662 wxString result;
994141e6 9663 PyObject * obj0 = 0 ;
d14a1e28
RD
9664 char *kwnames[] = {
9665 (char *) "lang", NULL
9666 };
9667
994141e6 9668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
15afbcd0
RD
9669 arg1 = (int) SWIG_AsInt(obj0);
9670 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9671 {
9672 PyThreadState* __tstate = wxPyBeginAllowThreads();
9673 result = wxLocale::GetLanguageName(arg1);
9674
9675 wxPyEndAllowThreads(__tstate);
9676 if (PyErr_Occurred()) SWIG_fail;
9677 }
9678 {
9679#if wxUSE_UNICODE
9680 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9681#else
9682 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9683#endif
9684 }
9685 return resultobj;
9686 fail:
9687 return NULL;
9688}
9689
9690
9691static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9692 PyObject *resultobj;
9693 wxString *arg1 = 0 ;
9694 wxLanguageInfo *result;
e811c8ce 9695 bool temp1 = False ;
d14a1e28
RD
9696 PyObject * obj0 = 0 ;
9697 char *kwnames[] = {
9698 (char *) "locale", NULL
9699 };
9700
9701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9702 {
9703 arg1 = wxString_in_helper(obj0);
9704 if (arg1 == NULL) SWIG_fail;
e811c8ce 9705 temp1 = True;
d14a1e28
RD
9706 }
9707 {
9708 PyThreadState* __tstate = wxPyBeginAllowThreads();
9709 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9710
9711 wxPyEndAllowThreads(__tstate);
9712 if (PyErr_Occurred()) SWIG_fail;
9713 }
15afbcd0 9714 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
d14a1e28
RD
9715 {
9716 if (temp1)
9717 delete arg1;
9718 }
9719 return resultobj;
9720 fail:
9721 {
9722 if (temp1)
9723 delete arg1;
9724 }
9725 return NULL;
9726}
9727
9728
9729static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9730 PyObject *resultobj;
9731 wxLanguageInfo *arg1 = 0 ;
9732 PyObject * obj0 = 0 ;
9733 char *kwnames[] = {
9734 (char *) "info", NULL
9735 };
9736
9737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
15afbcd0
RD
9738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9739 SWIG_POINTER_EXCEPTION | 0)) == -1)
9740 SWIG_fail;
d14a1e28 9741 if (arg1 == NULL) {
15afbcd0
RD
9742 PyErr_SetString(PyExc_TypeError,"null reference");
9743 SWIG_fail;
d14a1e28
RD
9744 }
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9748
9749 wxPyEndAllowThreads(__tstate);
9750 if (PyErr_Occurred()) SWIG_fail;
9751 }
9752 Py_INCREF(Py_None); resultobj = Py_None;
9753 return resultobj;
9754 fail:
9755 return NULL;
9756}
9757
9758
9759static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9760 PyObject *resultobj;
9761 wxLocale *arg1 = (wxLocale *) 0 ;
9762 wxString *arg2 = 0 ;
9763 wxString const &arg3_defvalue = wxPyEmptyString ;
9764 wxString *arg3 = (wxString *) &arg3_defvalue ;
9765 wxString result;
e811c8ce
RD
9766 bool temp2 = False ;
9767 bool temp3 = False ;
d14a1e28
RD
9768 PyObject * obj0 = 0 ;
9769 PyObject * obj1 = 0 ;
9770 PyObject * obj2 = 0 ;
9771 char *kwnames[] = {
9772 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9773 };
9774
9775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
9776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9778 {
9779 arg2 = wxString_in_helper(obj1);
9780 if (arg2 == NULL) SWIG_fail;
e811c8ce 9781 temp2 = True;
d14a1e28
RD
9782 }
9783 if (obj2) {
9784 {
9785 arg3 = wxString_in_helper(obj2);
9786 if (arg3 == NULL) SWIG_fail;
e811c8ce 9787 temp3 = True;
d14a1e28
RD
9788 }
9789 }
9790 {
9791 PyThreadState* __tstate = wxPyBeginAllowThreads();
9792 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9793
9794 wxPyEndAllowThreads(__tstate);
9795 if (PyErr_Occurred()) SWIG_fail;
9796 }
9797 {
9798#if wxUSE_UNICODE
9799 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9800#else
9801 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9802#endif
9803 }
9804 {
9805 if (temp2)
9806 delete arg2;
9807 }
9808 {
9809 if (temp3)
9810 delete arg3;
9811 }
9812 return resultobj;
9813 fail:
9814 {
9815 if (temp2)
9816 delete arg2;
9817 }
9818 {
9819 if (temp3)
9820 delete arg3;
9821 }
9822 return NULL;
9823}
9824
9825
9826static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9827 PyObject *resultobj;
9828 wxLocale *arg1 = (wxLocale *) 0 ;
9829 wxString *result;
9830 PyObject * obj0 = 0 ;
9831 char *kwnames[] = {
9832 (char *) "self", NULL
9833 };
9834
9835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
15afbcd0
RD
9836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9838 {
9839 PyThreadState* __tstate = wxPyBeginAllowThreads();
9840 {
9841 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9842 result = (wxString *) &_result_ref;
9843 }
9844
9845 wxPyEndAllowThreads(__tstate);
9846 if (PyErr_Occurred()) SWIG_fail;
9847 }
cc6dd355
RD
9848 {
9849#if wxUSE_UNICODE
9850 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9851#else
9852 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9853#endif
9854 }
d14a1e28
RD
9855 return resultobj;
9856 fail:
9857 return NULL;
9858}
9859
9860
9861static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9862 PyObject *obj;
9863 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9864 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9865 Py_INCREF(obj);
9866 return Py_BuildValue((char *)"");
9867}
9868static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9869 PyObject *resultobj;
9870 wxLocale *result;
9871 char *kwnames[] = {
9872 NULL
9873 };
9874
9875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9876 {
9877 PyThreadState* __tstate = wxPyBeginAllowThreads();
9878 result = (wxLocale *)wxGetLocale();
9879
9880 wxPyEndAllowThreads(__tstate);
9881 if (PyErr_Occurred()) SWIG_fail;
9882 }
15afbcd0 9883 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
d14a1e28
RD
9884 return resultobj;
9885 fail:
9886 return NULL;
9887}
9888
9889
9890static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9891 PyObject *resultobj;
9892 wxString *arg1 = 0 ;
9893 wxString result;
e811c8ce 9894 bool temp1 = False ;
d14a1e28
RD
9895 PyObject * obj0 = 0 ;
9896
9897 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9898 {
9899 arg1 = wxString_in_helper(obj0);
9900 if (arg1 == NULL) SWIG_fail;
e811c8ce 9901 temp1 = True;
d14a1e28
RD
9902 }
9903 {
9904 PyThreadState* __tstate = wxPyBeginAllowThreads();
9905 result = wxGetTranslation((wxString const &)*arg1);
9906
9907 wxPyEndAllowThreads(__tstate);
9908 if (PyErr_Occurred()) SWIG_fail;
9909 }
9910 {
9911#if wxUSE_UNICODE
9912 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9913#else
9914 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9915#endif
9916 }
9917 {
9918 if (temp1)
9919 delete arg1;
9920 }
9921 return resultobj;
9922 fail:
9923 {
9924 if (temp1)
9925 delete arg1;
9926 }
9927 return NULL;
9928}
9929
9930
9931static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9932 PyObject *resultobj;
9933 wxString *arg1 = 0 ;
9934 wxString *arg2 = 0 ;
9935 size_t arg3 ;
9936 wxString result;
e811c8ce
RD
9937 bool temp1 = False ;
9938 bool temp2 = False ;
d14a1e28
RD
9939 PyObject * obj0 = 0 ;
9940 PyObject * obj1 = 0 ;
9941 PyObject * obj2 = 0 ;
9942
9943 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9944 {
9945 arg1 = wxString_in_helper(obj0);
9946 if (arg1 == NULL) SWIG_fail;
e811c8ce 9947 temp1 = True;
d14a1e28
RD
9948 }
9949 {
9950 arg2 = wxString_in_helper(obj1);
9951 if (arg2 == NULL) SWIG_fail;
e811c8ce 9952 temp2 = True;
d14a1e28 9953 }
15afbcd0
RD
9954 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
9955 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9956 {
9957 PyThreadState* __tstate = wxPyBeginAllowThreads();
9958 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9959
9960 wxPyEndAllowThreads(__tstate);
9961 if (PyErr_Occurred()) SWIG_fail;
9962 }
9963 {
9964#if wxUSE_UNICODE
9965 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9966#else
9967 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9968#endif
9969 }
9970 {
9971 if (temp1)
9972 delete arg1;
9973 }
9974 {
9975 if (temp2)
9976 delete arg2;
9977 }
9978 return resultobj;
9979 fail:
9980 {
9981 if (temp1)
9982 delete arg1;
9983 }
9984 {
9985 if (temp2)
9986 delete arg2;
9987 }
9988 return NULL;
9989}
9990
9991
9992static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9993 int argc;
9994 PyObject *argv[4];
9995 int ii;
9996
9997 argc = PyObject_Length(args);
9998 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9999 argv[ii] = PyTuple_GetItem(args,ii);
10000 }
10001 if (argc == 1) {
10002 int _v;
10003 {
4d5c3d91 10004 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
d14a1e28
RD
10005 }
10006 if (_v) {
10007 return _wrap_GetTranslation__SWIG_0(self,args);
10008 }
10009 }
10010 if (argc == 3) {
10011 int _v;
10012 {
4d5c3d91 10013 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
d14a1e28
RD
10014 }
10015 if (_v) {
10016 {
4d5c3d91 10017 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
d14a1e28
RD
10018 }
10019 if (_v) {
15afbcd0 10020 _v = SWIG_CheckUnsignedLong(argv[2]);
d14a1e28
RD
10021 if (_v) {
10022 return _wrap_GetTranslation__SWIG_1(self,args);
10023 }
10024 }
10025 }
10026 }
10027
10028 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10029 return NULL;
10030}
10031
10032
10033static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10034 PyObject *resultobj;
10035 wxEncodingConverter *result;
10036 char *kwnames[] = {
10037 NULL
10038 };
10039
10040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10041 {
10042 PyThreadState* __tstate = wxPyBeginAllowThreads();
10043 result = (wxEncodingConverter *)new wxEncodingConverter();
10044
10045 wxPyEndAllowThreads(__tstate);
10046 if (PyErr_Occurred()) SWIG_fail;
10047 }
15afbcd0 10048 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
d14a1e28
RD
10049 return resultobj;
10050 fail:
10051 return NULL;
10052}
10053
10054
10055static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10056 PyObject *resultobj;
10057 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10058 PyObject * obj0 = 0 ;
10059 char *kwnames[] = {
10060 (char *) "self", NULL
10061 };
10062
10063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
15afbcd0
RD
10064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10066 {
10067 PyThreadState* __tstate = wxPyBeginAllowThreads();
10068 delete arg1;
10069
10070 wxPyEndAllowThreads(__tstate);
10071 if (PyErr_Occurred()) SWIG_fail;
10072 }
10073 Py_INCREF(Py_None); resultobj = Py_None;
10074 return resultobj;
10075 fail:
10076 return NULL;
10077}
10078
10079
10080static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10081 PyObject *resultobj;
10082 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10083 int arg2 ;
10084 int arg3 ;
10085 int arg4 = (int) wxCONVERT_STRICT ;
10086 bool result;
10087 PyObject * obj0 = 0 ;
994141e6
RD
10088 PyObject * obj1 = 0 ;
10089 PyObject * obj2 = 0 ;
10090 PyObject * obj3 = 0 ;
d14a1e28
RD
10091 char *kwnames[] = {
10092 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10093 };
10094
994141e6 10095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
10096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10098 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10099 if (PyErr_Occurred()) SWIG_fail;
10100 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10101 if (PyErr_Occurred()) SWIG_fail;
994141e6 10102 if (obj3) {
15afbcd0
RD
10103 arg4 = (int) SWIG_AsInt(obj3);
10104 if (PyErr_Occurred()) SWIG_fail;
994141e6 10105 }
d14a1e28
RD
10106 {
10107 PyThreadState* __tstate = wxPyBeginAllowThreads();
10108 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10109
10110 wxPyEndAllowThreads(__tstate);
10111 if (PyErr_Occurred()) SWIG_fail;
10112 }
4f89f6a3
RD
10113 {
10114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10115 }
d14a1e28
RD
10116 return resultobj;
10117 fail:
10118 return NULL;
10119}
10120
10121
10122static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10123 PyObject *resultobj;
10124 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10125 wxString *arg2 = 0 ;
10126 wxString result;
e811c8ce 10127 bool temp2 = False ;
d14a1e28
RD
10128 PyObject * obj0 = 0 ;
10129 PyObject * obj1 = 0 ;
10130 char *kwnames[] = {
10131 (char *) "self",(char *) "input", NULL
10132 };
10133
10134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10137 {
10138 arg2 = wxString_in_helper(obj1);
10139 if (arg2 == NULL) SWIG_fail;
e811c8ce 10140 temp2 = True;
d14a1e28
RD
10141 }
10142 {
10143 PyThreadState* __tstate = wxPyBeginAllowThreads();
10144 result = (arg1)->Convert((wxString const &)*arg2);
10145
10146 wxPyEndAllowThreads(__tstate);
10147 if (PyErr_Occurred()) SWIG_fail;
10148 }
10149 {
10150#if wxUSE_UNICODE
10151 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10152#else
10153 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10154#endif
10155 }
10156 {
10157 if (temp2)
10158 delete arg2;
10159 }
10160 return resultobj;
10161 fail:
10162 {
10163 if (temp2)
10164 delete arg2;
10165 }
10166 return NULL;
10167}
10168
10169
10170static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10171 PyObject *resultobj;
10172 int arg1 ;
10173 int arg2 = (int) wxPLATFORM_CURRENT ;
10174 wxFontEncodingArray result;
994141e6
RD
10175 PyObject * obj0 = 0 ;
10176 PyObject * obj1 = 0 ;
d14a1e28
RD
10177 char *kwnames[] = {
10178 (char *) "enc",(char *) "platform", NULL
10179 };
10180
994141e6 10181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10182 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10183 if (PyErr_Occurred()) SWIG_fail;
994141e6 10184 if (obj1) {
15afbcd0
RD
10185 arg2 = (int) SWIG_AsInt(obj1);
10186 if (PyErr_Occurred()) SWIG_fail;
994141e6 10187 }
d14a1e28
RD
10188 {
10189 PyThreadState* __tstate = wxPyBeginAllowThreads();
10190 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10191
10192 wxPyEndAllowThreads(__tstate);
10193 if (PyErr_Occurred()) SWIG_fail;
10194 }
10195 {
10196 resultobj = PyList_New(0);
10197 for (size_t i=0; i < (&result)->GetCount(); i++) {
10198 PyObject* number = PyInt_FromLong((&result)->Item(i));
10199 PyList_Append(resultobj, number);
10200 Py_DECREF(number);
10201 }
10202 }
10203 return resultobj;
10204 fail:
10205 return NULL;
10206}
10207
10208
10209static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10210 PyObject *resultobj;
10211 int arg1 ;
10212 wxFontEncodingArray result;
994141e6 10213 PyObject * obj0 = 0 ;
d14a1e28
RD
10214 char *kwnames[] = {
10215 (char *) "enc", NULL
10216 };
10217
994141e6 10218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
15afbcd0
RD
10219 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10220 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10221 {
10222 PyThreadState* __tstate = wxPyBeginAllowThreads();
10223 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10224
10225 wxPyEndAllowThreads(__tstate);
10226 if (PyErr_Occurred()) SWIG_fail;
10227 }
10228 {
10229 resultobj = PyList_New(0);
10230 for (size_t i=0; i < (&result)->GetCount(); i++) {
10231 PyObject* number = PyInt_FromLong((&result)->Item(i));
10232 PyList_Append(resultobj, number);
10233 Py_DECREF(number);
10234 }
10235 }
10236 return resultobj;
10237 fail:
10238 return NULL;
10239}
10240
10241
10242static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10243 PyObject *resultobj;
10244 int arg1 ;
10245 int arg2 ;
10246 bool result;
994141e6
RD
10247 PyObject * obj0 = 0 ;
10248 PyObject * obj1 = 0 ;
d14a1e28
RD
10249 char *kwnames[] = {
10250 (char *) "encIn",(char *) "encOut", NULL
10251 };
10252
994141e6 10253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10254 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10255 if (PyErr_Occurred()) SWIG_fail;
10256 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10257 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10258 {
10259 PyThreadState* __tstate = wxPyBeginAllowThreads();
10260 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10261
10262 wxPyEndAllowThreads(__tstate);
10263 if (PyErr_Occurred()) SWIG_fail;
10264 }
4f89f6a3
RD
10265 {
10266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10267 }
d14a1e28
RD
10268 return resultobj;
10269 fail:
10270 return NULL;
10271}
10272
10273
10274static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10275 PyObject *obj;
10276 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10277 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10278 Py_INCREF(obj);
10279 return Py_BuildValue((char *)"");
10280}
10281static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10282 PyObject *resultobj;
10283 wxDC *arg1 = (wxDC *) 0 ;
10284 PyObject * obj0 = 0 ;
10285 char *kwnames[] = {
10286 (char *) "self", NULL
10287 };
10288
10289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
15afbcd0
RD
10290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10292 {
10293 PyThreadState* __tstate = wxPyBeginAllowThreads();
10294 delete arg1;
10295
10296 wxPyEndAllowThreads(__tstate);
10297 if (PyErr_Occurred()) SWIG_fail;
10298 }
10299 Py_INCREF(Py_None); resultobj = Py_None;
10300 return resultobj;
10301 fail:
10302 return NULL;
10303}
10304
10305
10306static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10307 PyObject *resultobj;
10308 wxDC *arg1 = (wxDC *) 0 ;
10309 PyObject * obj0 = 0 ;
10310 char *kwnames[] = {
10311 (char *) "self", NULL
10312 };
10313
10314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
15afbcd0
RD
10315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10317 {
10318 PyThreadState* __tstate = wxPyBeginAllowThreads();
10319 (arg1)->BeginDrawing();
10320
10321 wxPyEndAllowThreads(__tstate);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 }
10324 Py_INCREF(Py_None); resultobj = Py_None;
10325 return resultobj;
10326 fail:
10327 return NULL;
10328}
10329
10330
10331static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10332 PyObject *resultobj;
10333 wxDC *arg1 = (wxDC *) 0 ;
10334 PyObject * obj0 = 0 ;
10335 char *kwnames[] = {
10336 (char *) "self", NULL
10337 };
10338
10339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
15afbcd0
RD
10340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10342 {
10343 PyThreadState* __tstate = wxPyBeginAllowThreads();
10344 (arg1)->EndDrawing();
10345
10346 wxPyEndAllowThreads(__tstate);
10347 if (PyErr_Occurred()) SWIG_fail;
10348 }
10349 Py_INCREF(Py_None); resultobj = Py_None;
10350 return resultobj;
10351 fail:
10352 return NULL;
10353}
10354
10355
10356static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10357 PyObject *resultobj;
10358 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10359 int arg2 ;
10360 int arg3 ;
d14a1e28
RD
10361 wxColour *arg4 = 0 ;
10362 int arg5 = (int) wxFLOOD_SURFACE ;
10363 bool result;
10364 wxColour temp4 ;
10365 PyObject * obj0 = 0 ;
994141e6
RD
10366 PyObject * obj1 = 0 ;
10367 PyObject * obj2 = 0 ;
d14a1e28 10368 PyObject * obj3 = 0 ;
994141e6 10369 PyObject * obj4 = 0 ;
d14a1e28
RD
10370 char *kwnames[] = {
10371 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10372 };
10373
994141e6 10374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
10375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10377 arg2 = (int) SWIG_AsInt(obj1);
10378 if (PyErr_Occurred()) SWIG_fail;
10379 arg3 = (int) SWIG_AsInt(obj2);
10380 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10381 {
10382 arg4 = &temp4;
10383 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10384 }
994141e6 10385 if (obj4) {
15afbcd0
RD
10386 arg5 = (int) SWIG_AsInt(obj4);
10387 if (PyErr_Occurred()) SWIG_fail;
994141e6 10388 }
d14a1e28
RD
10389 {
10390 PyThreadState* __tstate = wxPyBeginAllowThreads();
10391 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10392
10393 wxPyEndAllowThreads(__tstate);
10394 if (PyErr_Occurred()) SWIG_fail;
10395 }
4f89f6a3
RD
10396 {
10397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10398 }
d14a1e28
RD
10399 return resultobj;
10400 fail:
10401 return NULL;
10402}
10403
10404
10405static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10406 PyObject *resultobj;
10407 wxDC *arg1 = (wxDC *) 0 ;
10408 wxPoint *arg2 = 0 ;
10409 wxColour *arg3 = 0 ;
10410 int arg4 = (int) wxFLOOD_SURFACE ;
10411 bool result;
10412 wxPoint temp2 ;
10413 wxColour temp3 ;
10414 PyObject * obj0 = 0 ;
10415 PyObject * obj1 = 0 ;
10416 PyObject * obj2 = 0 ;
994141e6 10417 PyObject * obj3 = 0 ;
d14a1e28
RD
10418 char *kwnames[] = {
10419 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10420 };
10421
994141e6 10422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
10423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10425 {
10426 arg2 = &temp2;
10427 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10428 }
10429 {
10430 arg3 = &temp3;
10431 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10432 }
994141e6 10433 if (obj3) {
15afbcd0
RD
10434 arg4 = (int) SWIG_AsInt(obj3);
10435 if (PyErr_Occurred()) SWIG_fail;
994141e6 10436 }
d14a1e28
RD
10437 {
10438 PyThreadState* __tstate = wxPyBeginAllowThreads();
10439 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10440
10441 wxPyEndAllowThreads(__tstate);
10442 if (PyErr_Occurred()) SWIG_fail;
10443 }
4f89f6a3
RD
10444 {
10445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10446 }
d14a1e28
RD
10447 return resultobj;
10448 fail:
10449 return NULL;
10450}
10451
10452
10453static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10454 PyObject *resultobj;
10455 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10456 int arg2 ;
10457 int arg3 ;
d14a1e28
RD
10458 wxColour result;
10459 PyObject * obj0 = 0 ;
994141e6
RD
10460 PyObject * obj1 = 0 ;
10461 PyObject * obj2 = 0 ;
d14a1e28
RD
10462 char *kwnames[] = {
10463 (char *) "self",(char *) "x",(char *) "y", NULL
10464 };
10465
994141e6 10466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
10467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10469 arg2 = (int) SWIG_AsInt(obj1);
10470 if (PyErr_Occurred()) SWIG_fail;
10471 arg3 = (int) SWIG_AsInt(obj2);
10472 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10473 {
10474 PyThreadState* __tstate = wxPyBeginAllowThreads();
10475 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10476
10477 wxPyEndAllowThreads(__tstate);
10478 if (PyErr_Occurred()) SWIG_fail;
10479 }
10480 {
10481 wxColour * resultptr;
10482 resultptr = new wxColour((wxColour &) result);
15afbcd0 10483 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
10484 }
10485 return resultobj;
10486 fail:
10487 return NULL;
10488}
10489
10490
10491static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10492 PyObject *resultobj;
10493 wxDC *arg1 = (wxDC *) 0 ;
10494 wxPoint *arg2 = 0 ;
10495 wxColour result;
10496 wxPoint temp2 ;
10497 PyObject * obj0 = 0 ;
10498 PyObject * obj1 = 0 ;
10499 char *kwnames[] = {
10500 (char *) "self",(char *) "pt", NULL
10501 };
10502
10503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10506 {
10507 arg2 = &temp2;
10508 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10509 }
10510 {
10511 PyThreadState* __tstate = wxPyBeginAllowThreads();
10512 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10513
10514 wxPyEndAllowThreads(__tstate);
10515 if (PyErr_Occurred()) SWIG_fail;
10516 }
10517 {
10518 wxColour * resultptr;
10519 resultptr = new wxColour((wxColour &) result);
15afbcd0 10520 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
10521 }
10522 return resultobj;
10523 fail:
10524 return NULL;
10525}
10526
10527
10528static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10529 PyObject *resultobj;
10530 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10531 int arg2 ;
10532 int arg3 ;
10533 int arg4 ;
10534 int arg5 ;
d14a1e28 10535 PyObject * obj0 = 0 ;
994141e6
RD
10536 PyObject * obj1 = 0 ;
10537 PyObject * obj2 = 0 ;
10538 PyObject * obj3 = 0 ;
10539 PyObject * obj4 = 0 ;
d14a1e28
RD
10540 char *kwnames[] = {
10541 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10542 };
10543
994141e6 10544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
10545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10547 arg2 = (int) SWIG_AsInt(obj1);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 arg3 = (int) SWIG_AsInt(obj2);
10550 if (PyErr_Occurred()) SWIG_fail;
10551 arg4 = (int) SWIG_AsInt(obj3);
10552 if (PyErr_Occurred()) SWIG_fail;
10553 arg5 = (int) SWIG_AsInt(obj4);
10554 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10555 {
10556 PyThreadState* __tstate = wxPyBeginAllowThreads();
10557 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10558
10559 wxPyEndAllowThreads(__tstate);
10560 if (PyErr_Occurred()) SWIG_fail;
10561 }
10562 Py_INCREF(Py_None); resultobj = Py_None;
10563 return resultobj;
10564 fail:
10565 return NULL;
10566}
10567
10568
10569static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10570 PyObject *resultobj;
10571 wxDC *arg1 = (wxDC *) 0 ;
10572 wxPoint *arg2 = 0 ;
10573 wxPoint *arg3 = 0 ;
10574 wxPoint temp2 ;
10575 wxPoint temp3 ;
10576 PyObject * obj0 = 0 ;
10577 PyObject * obj1 = 0 ;
10578 PyObject * obj2 = 0 ;
10579 char *kwnames[] = {
10580 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10581 };
10582
10583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
10584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10586 {
10587 arg2 = &temp2;
10588 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10589 }
10590 {
10591 arg3 = &temp3;
10592 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10593 }
10594 {
10595 PyThreadState* __tstate = wxPyBeginAllowThreads();
10596 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10597
10598 wxPyEndAllowThreads(__tstate);
10599 if (PyErr_Occurred()) SWIG_fail;
10600 }
10601 Py_INCREF(Py_None); resultobj = Py_None;
10602 return resultobj;
10603 fail:
10604 return NULL;
10605}
10606
10607
10608static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10609 PyObject *resultobj;
10610 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10611 int arg2 ;
10612 int arg3 ;
d14a1e28 10613 PyObject * obj0 = 0 ;
994141e6
RD
10614 PyObject * obj1 = 0 ;
10615 PyObject * obj2 = 0 ;
d14a1e28
RD
10616 char *kwnames[] = {
10617 (char *) "self",(char *) "x",(char *) "y", NULL
10618 };
10619
994141e6 10620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
10621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10623 arg2 = (int) SWIG_AsInt(obj1);
10624 if (PyErr_Occurred()) SWIG_fail;
10625 arg3 = (int) SWIG_AsInt(obj2);
10626 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10627 {
10628 PyThreadState* __tstate = wxPyBeginAllowThreads();
10629 (arg1)->CrossHair(arg2,arg3);
10630
10631 wxPyEndAllowThreads(__tstate);
10632 if (PyErr_Occurred()) SWIG_fail;
10633 }
10634 Py_INCREF(Py_None); resultobj = Py_None;
10635 return resultobj;
10636 fail:
10637 return NULL;
10638}
10639
10640
10641static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10642 PyObject *resultobj;
10643 wxDC *arg1 = (wxDC *) 0 ;
10644 wxPoint *arg2 = 0 ;
10645 wxPoint temp2 ;
10646 PyObject * obj0 = 0 ;
10647 PyObject * obj1 = 0 ;
10648 char *kwnames[] = {
10649 (char *) "self",(char *) "pt", NULL
10650 };
10651
10652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10655 {
10656 arg2 = &temp2;
10657 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10658 }
10659 {
10660 PyThreadState* __tstate = wxPyBeginAllowThreads();
10661 (arg1)->CrossHair((wxPoint const &)*arg2);
10662
10663 wxPyEndAllowThreads(__tstate);
10664 if (PyErr_Occurred()) SWIG_fail;
10665 }
10666 Py_INCREF(Py_None); resultobj = Py_None;
10667 return resultobj;
10668 fail:
10669 return NULL;
10670}
10671
10672
10673static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10674 PyObject *resultobj;
10675 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10676 int arg2 ;
10677 int arg3 ;
10678 int arg4 ;
10679 int arg5 ;
10680 int arg6 ;
10681 int arg7 ;
d14a1e28 10682 PyObject * obj0 = 0 ;
994141e6
RD
10683 PyObject * obj1 = 0 ;
10684 PyObject * obj2 = 0 ;
10685 PyObject * obj3 = 0 ;
10686 PyObject * obj4 = 0 ;
10687 PyObject * obj5 = 0 ;
10688 PyObject * obj6 = 0 ;
d14a1e28
RD
10689 char *kwnames[] = {
10690 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10691 };
10692
994141e6 10693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15afbcd0
RD
10694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10696 arg2 = (int) SWIG_AsInt(obj1);
10697 if (PyErr_Occurred()) SWIG_fail;
10698 arg3 = (int) SWIG_AsInt(obj2);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 arg4 = (int) SWIG_AsInt(obj3);
10701 if (PyErr_Occurred()) SWIG_fail;
10702 arg5 = (int) SWIG_AsInt(obj4);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 arg6 = (int) SWIG_AsInt(obj5);
10705 if (PyErr_Occurred()) SWIG_fail;
10706 arg7 = (int) SWIG_AsInt(obj6);
10707 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10708 {
10709 PyThreadState* __tstate = wxPyBeginAllowThreads();
10710 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10711
10712 wxPyEndAllowThreads(__tstate);
10713 if (PyErr_Occurred()) SWIG_fail;
10714 }
10715 Py_INCREF(Py_None); resultobj = Py_None;
10716 return resultobj;
10717 fail:
10718 return NULL;
10719}
10720
10721
10722static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10723 PyObject *resultobj;
10724 wxDC *arg1 = (wxDC *) 0 ;
10725 wxPoint *arg2 = 0 ;
10726 wxPoint *arg3 = 0 ;
10727 wxPoint *arg4 = 0 ;
10728 wxPoint temp2 ;
10729 wxPoint temp3 ;
10730 wxPoint temp4 ;
10731 PyObject * obj0 = 0 ;
10732 PyObject * obj1 = 0 ;
10733 PyObject * obj2 = 0 ;
10734 PyObject * obj3 = 0 ;
10735 char *kwnames[] = {
10736 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10737 };
10738
10739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
10740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10742 {
10743 arg2 = &temp2;
10744 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10745 }
10746 {
10747 arg3 = &temp3;
10748 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10749 }
10750 {
10751 arg4 = &temp4;
10752 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10753 }
10754 {
10755 PyThreadState* __tstate = wxPyBeginAllowThreads();
10756 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10757
10758 wxPyEndAllowThreads(__tstate);
10759 if (PyErr_Occurred()) SWIG_fail;
10760 }
10761 Py_INCREF(Py_None); resultobj = Py_None;
10762 return resultobj;
10763 fail:
10764 return NULL;
10765}
10766
10767
10768static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10769 PyObject *resultobj;
10770 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10771 int arg2 ;
10772 int arg3 ;
10773 int arg4 ;
10774 int arg5 ;
d14a1e28 10775 PyObject * obj0 = 0 ;
994141e6
RD
10776 PyObject * obj1 = 0 ;
10777 PyObject * obj2 = 0 ;
10778 PyObject * obj3 = 0 ;
10779 PyObject * obj4 = 0 ;
d14a1e28
RD
10780 char *kwnames[] = {
10781 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10782 };
10783
994141e6 10784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
10785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10787 arg2 = (int) SWIG_AsInt(obj1);
10788 if (PyErr_Occurred()) SWIG_fail;
10789 arg3 = (int) SWIG_AsInt(obj2);
10790 if (PyErr_Occurred()) SWIG_fail;
10791 arg4 = (int) SWIG_AsInt(obj3);
10792 if (PyErr_Occurred()) SWIG_fail;
10793 arg5 = (int) SWIG_AsInt(obj4);
10794 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
10795 {
10796 PyThreadState* __tstate = wxPyBeginAllowThreads();
10797 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10798
10799 wxPyEndAllowThreads(__tstate);
10800 if (PyErr_Occurred()) SWIG_fail;
10801 }
10802 Py_INCREF(Py_None); resultobj = Py_None;
10803 return resultobj;
10804 fail:
10805 return NULL;
10806}
10807
10808
d14a1e28
RD
10809static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10810 PyObject *resultobj;
10811 wxDC *arg1 = (wxDC *) 0 ;
10812 wxRect *arg2 = 0 ;
10813 wxRect temp2 ;
10814 PyObject * obj0 = 0 ;
10815 PyObject * obj1 = 0 ;
10816 char *kwnames[] = {
10817 (char *) "self",(char *) "rect", NULL
10818 };
10819
10820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10823 {
10824 arg2 = &temp2;
10825 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10826 }
10827 {
10828 PyThreadState* __tstate = wxPyBeginAllowThreads();
10829 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10830
10831 wxPyEndAllowThreads(__tstate);
10832 if (PyErr_Occurred()) SWIG_fail;
10833 }
10834 Py_INCREF(Py_None); resultobj = Py_None;
10835 return resultobj;
10836 fail:
10837 return NULL;
10838}
10839
10840
10841static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10842 PyObject *resultobj;
10843 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10844 int arg2 ;
10845 int arg3 ;
10846 int arg4 ;
10847 int arg5 ;
d14a1e28
RD
10848 double arg6 ;
10849 double arg7 ;
10850 PyObject * obj0 = 0 ;
994141e6
RD
10851 PyObject * obj1 = 0 ;
10852 PyObject * obj2 = 0 ;
10853 PyObject * obj3 = 0 ;
10854 PyObject * obj4 = 0 ;
10855 PyObject * obj5 = 0 ;
10856 PyObject * obj6 = 0 ;
d14a1e28
RD
10857 char *kwnames[] = {
10858 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10859 };
10860
994141e6 10861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15afbcd0
RD
10862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10864 arg2 = (int) SWIG_AsInt(obj1);
10865 if (PyErr_Occurred()) SWIG_fail;
10866 arg3 = (int) SWIG_AsInt(obj2);
10867 if (PyErr_Occurred()) SWIG_fail;
10868 arg4 = (int) SWIG_AsInt(obj3);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 arg5 = (int) SWIG_AsInt(obj4);
10871 if (PyErr_Occurred()) SWIG_fail;
10872 arg6 = (double) SWIG_AsDouble(obj5);
10873 if (PyErr_Occurred()) SWIG_fail;
10874 arg7 = (double) SWIG_AsDouble(obj6);
10875 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10876 {
10877 PyThreadState* __tstate = wxPyBeginAllowThreads();
10878 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10879
10880 wxPyEndAllowThreads(__tstate);
10881 if (PyErr_Occurred()) SWIG_fail;
10882 }
10883 Py_INCREF(Py_None); resultobj = Py_None;
10884 return resultobj;
10885 fail:
10886 return NULL;
10887}
10888
10889
10890static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10891 PyObject *resultobj;
10892 wxDC *arg1 = (wxDC *) 0 ;
10893 wxPoint *arg2 = 0 ;
10894 wxSize *arg3 = 0 ;
10895 double arg4 ;
10896 double arg5 ;
10897 wxPoint temp2 ;
10898 wxSize temp3 ;
10899 PyObject * obj0 = 0 ;
10900 PyObject * obj1 = 0 ;
10901 PyObject * obj2 = 0 ;
994141e6
RD
10902 PyObject * obj3 = 0 ;
10903 PyObject * obj4 = 0 ;
d14a1e28
RD
10904 char *kwnames[] = {
10905 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10906 };
10907
994141e6 10908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
10909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10911 {
10912 arg2 = &temp2;
10913 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10914 }
10915 {
10916 arg3 = &temp3;
10917 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10918 }
15afbcd0
RD
10919 arg4 = (double) SWIG_AsDouble(obj3);
10920 if (PyErr_Occurred()) SWIG_fail;
10921 arg5 = (double) SWIG_AsDouble(obj4);
10922 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10923 {
10924 PyThreadState* __tstate = wxPyBeginAllowThreads();
10925 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10926
10927 wxPyEndAllowThreads(__tstate);
10928 if (PyErr_Occurred()) SWIG_fail;
10929 }
10930 Py_INCREF(Py_None); resultobj = Py_None;
10931 return resultobj;
10932 fail:
10933 return NULL;
10934}
10935
10936
10937static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10938 PyObject *resultobj;
10939 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10940 int arg2 ;
10941 int arg3 ;
d14a1e28 10942 PyObject * obj0 = 0 ;
994141e6
RD
10943 PyObject * obj1 = 0 ;
10944 PyObject * obj2 = 0 ;
d14a1e28
RD
10945 char *kwnames[] = {
10946 (char *) "self",(char *) "x",(char *) "y", NULL
10947 };
10948
994141e6 10949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
10950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10952 arg2 = (int) SWIG_AsInt(obj1);
10953 if (PyErr_Occurred()) SWIG_fail;
10954 arg3 = (int) SWIG_AsInt(obj2);
10955 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10956 {
10957 PyThreadState* __tstate = wxPyBeginAllowThreads();
10958 (arg1)->DrawPoint(arg2,arg3);
10959
10960 wxPyEndAllowThreads(__tstate);
10961 if (PyErr_Occurred()) SWIG_fail;
10962 }
10963 Py_INCREF(Py_None); resultobj = Py_None;
10964 return resultobj;
10965 fail:
10966 return NULL;
10967}
10968
10969
10970static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10971 PyObject *resultobj;
10972 wxDC *arg1 = (wxDC *) 0 ;
10973 wxPoint *arg2 = 0 ;
10974 wxPoint temp2 ;
10975 PyObject * obj0 = 0 ;
10976 PyObject * obj1 = 0 ;
10977 char *kwnames[] = {
10978 (char *) "self",(char *) "pt", NULL
10979 };
10980
10981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10984 {
10985 arg2 = &temp2;
10986 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10987 }
10988 {
10989 PyThreadState* __tstate = wxPyBeginAllowThreads();
10990 (arg1)->DrawPoint((wxPoint const &)*arg2);
10991
10992 wxPyEndAllowThreads(__tstate);
10993 if (PyErr_Occurred()) SWIG_fail;
10994 }
10995 Py_INCREF(Py_None); resultobj = Py_None;
10996 return resultobj;
10997 fail:
10998 return NULL;
10999}
11000
11001
11002static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11003 PyObject *resultobj;
11004 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11005 int arg2 ;
11006 int arg3 ;
11007 int arg4 ;
11008 int arg5 ;
d14a1e28 11009 PyObject * obj0 = 0 ;
994141e6
RD
11010 PyObject * obj1 = 0 ;
11011 PyObject * obj2 = 0 ;
11012 PyObject * obj3 = 0 ;
11013 PyObject * obj4 = 0 ;
d14a1e28
RD
11014 char *kwnames[] = {
11015 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11016 };
11017
994141e6 11018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
11019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11021 arg2 = (int) SWIG_AsInt(obj1);
11022 if (PyErr_Occurred()) SWIG_fail;
11023 arg3 = (int) SWIG_AsInt(obj2);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 arg4 = (int) SWIG_AsInt(obj3);
11026 if (PyErr_Occurred()) SWIG_fail;
11027 arg5 = (int) SWIG_AsInt(obj4);
11028 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11029 {
11030 PyThreadState* __tstate = wxPyBeginAllowThreads();
11031 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11032
11033 wxPyEndAllowThreads(__tstate);
11034 if (PyErr_Occurred()) SWIG_fail;
11035 }
11036 Py_INCREF(Py_None); resultobj = Py_None;
11037 return resultobj;
11038 fail:
11039 return NULL;
11040}
11041
11042
11043static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11044 PyObject *resultobj;
11045 wxDC *arg1 = (wxDC *) 0 ;
11046 wxPoint *arg2 = 0 ;
11047 wxSize *arg3 = 0 ;
11048 wxPoint temp2 ;
11049 wxSize temp3 ;
11050 PyObject * obj0 = 0 ;
11051 PyObject * obj1 = 0 ;
11052 PyObject * obj2 = 0 ;
11053 char *kwnames[] = {
11054 (char *) "self",(char *) "pt",(char *) "sz", NULL
11055 };
11056
11057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11060 {
11061 arg2 = &temp2;
11062 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11063 }
11064 {
11065 arg3 = &temp3;
11066 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11067 }
11068 {
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11071
11072 wxPyEndAllowThreads(__tstate);
11073 if (PyErr_Occurred()) SWIG_fail;
11074 }
11075 Py_INCREF(Py_None); resultobj = Py_None;
11076 return resultobj;
11077 fail:
11078 return NULL;
11079}
11080
11081
11082static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11083 PyObject *resultobj;
11084 wxDC *arg1 = (wxDC *) 0 ;
11085 wxRect *arg2 = 0 ;
11086 wxRect temp2 ;
11087 PyObject * obj0 = 0 ;
11088 PyObject * obj1 = 0 ;
11089 char *kwnames[] = {
11090 (char *) "self",(char *) "rect", NULL
11091 };
11092
11093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
11094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11096 {
11097 arg2 = &temp2;
11098 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11099 }
11100 {
11101 PyThreadState* __tstate = wxPyBeginAllowThreads();
11102 (arg1)->DrawRectangle((wxRect const &)*arg2);
11103
11104 wxPyEndAllowThreads(__tstate);
11105 if (PyErr_Occurred()) SWIG_fail;
11106 }
11107 Py_INCREF(Py_None); resultobj = Py_None;
11108 return resultobj;
11109 fail:
11110 return NULL;
11111}
11112
11113
11114static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11115 PyObject *resultobj;
11116 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11117 int arg2 ;
11118 int arg3 ;
11119 int arg4 ;
11120 int arg5 ;
d14a1e28
RD
11121 double arg6 ;
11122 PyObject * obj0 = 0 ;
994141e6
RD
11123 PyObject * obj1 = 0 ;
11124 PyObject * obj2 = 0 ;
11125 PyObject * obj3 = 0 ;
11126 PyObject * obj4 = 0 ;
11127 PyObject * obj5 = 0 ;
d14a1e28
RD
11128 char *kwnames[] = {
11129 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11130 };
11131
994141e6 11132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15afbcd0
RD
11133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11135 arg2 = (int) SWIG_AsInt(obj1);
11136 if (PyErr_Occurred()) SWIG_fail;
11137 arg3 = (int) SWIG_AsInt(obj2);
11138 if (PyErr_Occurred()) SWIG_fail;
11139 arg4 = (int) SWIG_AsInt(obj3);
11140 if (PyErr_Occurred()) SWIG_fail;
11141 arg5 = (int) SWIG_AsInt(obj4);
11142 if (PyErr_Occurred()) SWIG_fail;
11143 arg6 = (double) SWIG_AsDouble(obj5);
11144 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11145 {
11146 PyThreadState* __tstate = wxPyBeginAllowThreads();
11147 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11148
11149 wxPyEndAllowThreads(__tstate);
11150 if (PyErr_Occurred()) SWIG_fail;
11151 }
11152 Py_INCREF(Py_None); resultobj = Py_None;
11153 return resultobj;
11154 fail:
11155 return NULL;
11156}
11157
11158
11159static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11160 PyObject *resultobj;
11161 wxDC *arg1 = (wxDC *) 0 ;
11162 wxPoint *arg2 = 0 ;
11163 wxSize *arg3 = 0 ;
11164 double arg4 ;
11165 wxPoint temp2 ;
11166 wxSize temp3 ;
11167 PyObject * obj0 = 0 ;
11168 PyObject * obj1 = 0 ;
11169 PyObject * obj2 = 0 ;
994141e6 11170 PyObject * obj3 = 0 ;
d14a1e28
RD
11171 char *kwnames[] = {
11172 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11173 };
11174
994141e6 11175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11178 {
11179 arg2 = &temp2;
11180 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11181 }
11182 {
11183 arg3 = &temp3;
11184 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11185 }
15afbcd0
RD
11186 arg4 = (double) SWIG_AsDouble(obj3);
11187 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11188 {
11189 PyThreadState* __tstate = wxPyBeginAllowThreads();
11190 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11191
11192 wxPyEndAllowThreads(__tstate);
11193 if (PyErr_Occurred()) SWIG_fail;
11194 }
11195 Py_INCREF(Py_None); resultobj = Py_None;
11196 return resultobj;
11197 fail:
11198 return NULL;
11199}
11200
11201
11202static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11203 PyObject *resultobj;
11204 wxDC *arg1 = (wxDC *) 0 ;
11205 wxRect *arg2 = 0 ;
11206 double arg3 ;
11207 wxRect temp2 ;
11208 PyObject * obj0 = 0 ;
11209 PyObject * obj1 = 0 ;
994141e6 11210 PyObject * obj2 = 0 ;
d14a1e28
RD
11211 char *kwnames[] = {
11212 (char *) "self",(char *) "r",(char *) "radius", NULL
11213 };
11214
994141e6 11215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11218 {
11219 arg2 = &temp2;
11220 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11221 }
15afbcd0
RD
11222 arg3 = (double) SWIG_AsDouble(obj2);
11223 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11224 {
11225 PyThreadState* __tstate = wxPyBeginAllowThreads();
11226 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11227
11228 wxPyEndAllowThreads(__tstate);
11229 if (PyErr_Occurred()) SWIG_fail;
11230 }
11231 Py_INCREF(Py_None); resultobj = Py_None;
11232 return resultobj;
11233 fail:
11234 return NULL;
11235}
11236
11237
11238static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11239 PyObject *resultobj;
11240 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11241 int arg2 ;
11242 int arg3 ;
11243 int arg4 ;
d14a1e28 11244 PyObject * obj0 = 0 ;
994141e6
RD
11245 PyObject * obj1 = 0 ;
11246 PyObject * obj2 = 0 ;
11247 PyObject * obj3 = 0 ;
d14a1e28
RD
11248 char *kwnames[] = {
11249 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11250 };
11251
994141e6 11252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11255 arg2 = (int) SWIG_AsInt(obj1);
11256 if (PyErr_Occurred()) SWIG_fail;
11257 arg3 = (int) SWIG_AsInt(obj2);
11258 if (PyErr_Occurred()) SWIG_fail;
11259 arg4 = (int) SWIG_AsInt(obj3);
11260 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11261 {
11262 PyThreadState* __tstate = wxPyBeginAllowThreads();
11263 (arg1)->DrawCircle(arg2,arg3,arg4);
11264
11265 wxPyEndAllowThreads(__tstate);
11266 if (PyErr_Occurred()) SWIG_fail;
11267 }
11268 Py_INCREF(Py_None); resultobj = Py_None;
11269 return resultobj;
11270 fail:
11271 return NULL;
11272}
11273
11274
11275static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11276 PyObject *resultobj;
11277 wxDC *arg1 = (wxDC *) 0 ;
11278 wxPoint *arg2 = 0 ;
e811c8ce 11279 int arg3 ;
d14a1e28
RD
11280 wxPoint temp2 ;
11281 PyObject * obj0 = 0 ;
11282 PyObject * obj1 = 0 ;
994141e6 11283 PyObject * obj2 = 0 ;
d14a1e28
RD
11284 char *kwnames[] = {
11285 (char *) "self",(char *) "pt",(char *) "radius", NULL
11286 };
11287
994141e6 11288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11291 {
11292 arg2 = &temp2;
11293 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11294 }
15afbcd0
RD
11295 arg3 = (int) SWIG_AsInt(obj2);
11296 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11297 {
11298 PyThreadState* __tstate = wxPyBeginAllowThreads();
11299 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11300
11301 wxPyEndAllowThreads(__tstate);
11302 if (PyErr_Occurred()) SWIG_fail;
11303 }
11304 Py_INCREF(Py_None); resultobj = Py_None;
11305 return resultobj;
11306 fail:
11307 return NULL;
11308}
11309
11310
11311static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11312 PyObject *resultobj;
11313 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11314 int arg2 ;
11315 int arg3 ;
11316 int arg4 ;
11317 int arg5 ;
d14a1e28 11318 PyObject * obj0 = 0 ;
994141e6
RD
11319 PyObject * obj1 = 0 ;
11320 PyObject * obj2 = 0 ;
11321 PyObject * obj3 = 0 ;
11322 PyObject * obj4 = 0 ;
d14a1e28
RD
11323 char *kwnames[] = {
11324 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11325 };
11326
994141e6 11327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
11328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11330 arg2 = (int) SWIG_AsInt(obj1);
11331 if (PyErr_Occurred()) SWIG_fail;
11332 arg3 = (int) SWIG_AsInt(obj2);
11333 if (PyErr_Occurred()) SWIG_fail;
11334 arg4 = (int) SWIG_AsInt(obj3);
11335 if (PyErr_Occurred()) SWIG_fail;
11336 arg5 = (int) SWIG_AsInt(obj4);
11337 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11338 {
11339 PyThreadState* __tstate = wxPyBeginAllowThreads();
11340 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11341
11342 wxPyEndAllowThreads(__tstate);
11343 if (PyErr_Occurred()) SWIG_fail;
11344 }
11345 Py_INCREF(Py_None); resultobj = Py_None;
11346 return resultobj;
11347 fail:
11348 return NULL;
11349}
11350
11351
11352static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11353 PyObject *resultobj;
11354 wxDC *arg1 = (wxDC *) 0 ;
11355 wxPoint *arg2 = 0 ;
11356 wxSize *arg3 = 0 ;
11357 wxPoint temp2 ;
11358 wxSize temp3 ;
11359 PyObject * obj0 = 0 ;
11360 PyObject * obj1 = 0 ;
11361 PyObject * obj2 = 0 ;
11362 char *kwnames[] = {
11363 (char *) "self",(char *) "pt",(char *) "sz", NULL
11364 };
11365
11366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11369 {
11370 arg2 = &temp2;
11371 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11372 }
11373 {
11374 arg3 = &temp3;
11375 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11376 }
11377 {
11378 PyThreadState* __tstate = wxPyBeginAllowThreads();
11379 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11380
11381 wxPyEndAllowThreads(__tstate);
11382 if (PyErr_Occurred()) SWIG_fail;
11383 }
11384 Py_INCREF(Py_None); resultobj = Py_None;
11385 return resultobj;
11386 fail:
11387 return NULL;
11388}
11389
11390
11391static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11392 PyObject *resultobj;
11393 wxDC *arg1 = (wxDC *) 0 ;
11394 wxRect *arg2 = 0 ;
11395 wxRect temp2 ;
11396 PyObject * obj0 = 0 ;
11397 PyObject * obj1 = 0 ;
11398 char *kwnames[] = {
11399 (char *) "self",(char *) "rect", NULL
11400 };
11401
11402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
11403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11405 {
11406 arg2 = &temp2;
11407 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11408 }
11409 {
11410 PyThreadState* __tstate = wxPyBeginAllowThreads();
11411 (arg1)->DrawEllipse((wxRect const &)*arg2);
11412
11413 wxPyEndAllowThreads(__tstate);
11414 if (PyErr_Occurred()) SWIG_fail;
11415 }
11416 Py_INCREF(Py_None); resultobj = Py_None;
11417 return resultobj;
11418 fail:
11419 return NULL;
11420}
11421
11422
11423static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11424 PyObject *resultobj;
11425 wxDC *arg1 = (wxDC *) 0 ;
11426 wxIcon *arg2 = 0 ;
e811c8ce
RD
11427 int arg3 ;
11428 int arg4 ;
d14a1e28
RD
11429 PyObject * obj0 = 0 ;
11430 PyObject * obj1 = 0 ;
994141e6
RD
11431 PyObject * obj2 = 0 ;
11432 PyObject * obj3 = 0 ;
d14a1e28
RD
11433 char *kwnames[] = {
11434 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11435 };
11436
994141e6 11437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11440 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11441 SWIG_POINTER_EXCEPTION | 0)) == -1)
11442 SWIG_fail;
d14a1e28 11443 if (arg2 == NULL) {
15afbcd0
RD
11444 PyErr_SetString(PyExc_TypeError,"null reference");
11445 SWIG_fail;
994141e6 11446 }
15afbcd0
RD
11447 arg3 = (int) SWIG_AsInt(obj2);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 arg4 = (int) SWIG_AsInt(obj3);
11450 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11451 {
11452 PyThreadState* __tstate = wxPyBeginAllowThreads();
11453 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11454
11455 wxPyEndAllowThreads(__tstate);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 }
11458 Py_INCREF(Py_None); resultobj = Py_None;
11459 return resultobj;
11460 fail:
11461 return NULL;
11462}
11463
11464
11465static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11466 PyObject *resultobj;
11467 wxDC *arg1 = (wxDC *) 0 ;
11468 wxIcon *arg2 = 0 ;
11469 wxPoint *arg3 = 0 ;
11470 wxPoint temp3 ;
11471 PyObject * obj0 = 0 ;
11472 PyObject * obj1 = 0 ;
11473 PyObject * obj2 = 0 ;
11474 char *kwnames[] = {
11475 (char *) "self",(char *) "icon",(char *) "pt", NULL
11476 };
11477
11478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11481 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11482 SWIG_POINTER_EXCEPTION | 0)) == -1)
11483 SWIG_fail;
d14a1e28 11484 if (arg2 == NULL) {
15afbcd0
RD
11485 PyErr_SetString(PyExc_TypeError,"null reference");
11486 SWIG_fail;
d14a1e28
RD
11487 }
11488 {
11489 arg3 = &temp3;
11490 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11491 }
11492 {
11493 PyThreadState* __tstate = wxPyBeginAllowThreads();
11494 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11495
11496 wxPyEndAllowThreads(__tstate);
11497 if (PyErr_Occurred()) SWIG_fail;
11498 }
11499 Py_INCREF(Py_None); resultobj = Py_None;
11500 return resultobj;
11501 fail:
11502 return NULL;
11503}
11504
11505
11506static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11507 PyObject *resultobj;
11508 wxDC *arg1 = (wxDC *) 0 ;
11509 wxBitmap *arg2 = 0 ;
e811c8ce
RD
11510 int arg3 ;
11511 int arg4 ;
11512 bool arg5 = (bool) False ;
d14a1e28
RD
11513 PyObject * obj0 = 0 ;
11514 PyObject * obj1 = 0 ;
994141e6
RD
11515 PyObject * obj2 = 0 ;
11516 PyObject * obj3 = 0 ;
d14a1e28
RD
11517 PyObject * obj4 = 0 ;
11518 char *kwnames[] = {
11519 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11520 };
11521
994141e6 11522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
11523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11525 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11526 SWIG_POINTER_EXCEPTION | 0)) == -1)
11527 SWIG_fail;
d14a1e28 11528 if (arg2 == NULL) {
15afbcd0
RD
11529 PyErr_SetString(PyExc_TypeError,"null reference");
11530 SWIG_fail;
994141e6 11531 }
15afbcd0
RD
11532 arg3 = (int) SWIG_AsInt(obj2);
11533 if (PyErr_Occurred()) SWIG_fail;
11534 arg4 = (int) SWIG_AsInt(obj3);
11535 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 11536 if (obj4) {
15afbcd0
RD
11537 arg5 = (bool) SWIG_AsBool(obj4);
11538 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11539 }
11540 {
11541 PyThreadState* __tstate = wxPyBeginAllowThreads();
11542 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11543
11544 wxPyEndAllowThreads(__tstate);
11545 if (PyErr_Occurred()) SWIG_fail;
11546 }
11547 Py_INCREF(Py_None); resultobj = Py_None;
11548 return resultobj;
11549 fail:
11550 return NULL;
11551}
11552
11553
11554static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11555 PyObject *resultobj;
11556 wxDC *arg1 = (wxDC *) 0 ;
11557 wxBitmap *arg2 = 0 ;
11558 wxPoint *arg3 = 0 ;
e811c8ce 11559 bool arg4 = (bool) False ;
d14a1e28
RD
11560 wxPoint temp3 ;
11561 PyObject * obj0 = 0 ;
11562 PyObject * obj1 = 0 ;
11563 PyObject * obj2 = 0 ;
11564 PyObject * obj3 = 0 ;
11565 char *kwnames[] = {
11566 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11567 };
11568
11569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11572 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11573 SWIG_POINTER_EXCEPTION | 0)) == -1)
11574 SWIG_fail;
d14a1e28 11575 if (arg2 == NULL) {
15afbcd0
RD
11576 PyErr_SetString(PyExc_TypeError,"null reference");
11577 SWIG_fail;
d14a1e28
RD
11578 }
11579 {
11580 arg3 = &temp3;
11581 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11582 }
11583 if (obj3) {
15afbcd0
RD
11584 arg4 = (bool) SWIG_AsBool(obj3);
11585 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11586 }
11587 {
11588 PyThreadState* __tstate = wxPyBeginAllowThreads();
11589 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11590
11591 wxPyEndAllowThreads(__tstate);
11592 if (PyErr_Occurred()) SWIG_fail;
11593 }
11594 Py_INCREF(Py_None); resultobj = Py_None;
11595 return resultobj;
11596 fail:
11597 return NULL;
11598}
11599
11600
11601static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11602 PyObject *resultobj;
11603 wxDC *arg1 = (wxDC *) 0 ;
11604 wxString *arg2 = 0 ;
e811c8ce
RD
11605 int arg3 ;
11606 int arg4 ;
11607 bool temp2 = False ;
d14a1e28
RD
11608 PyObject * obj0 = 0 ;
11609 PyObject * obj1 = 0 ;
994141e6
RD
11610 PyObject * obj2 = 0 ;
11611 PyObject * obj3 = 0 ;
d14a1e28
RD
11612 char *kwnames[] = {
11613 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11614 };
11615
994141e6 11616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11619 {
11620 arg2 = wxString_in_helper(obj1);
11621 if (arg2 == NULL) SWIG_fail;
e811c8ce 11622 temp2 = True;
d14a1e28 11623 }
15afbcd0
RD
11624 arg3 = (int) SWIG_AsInt(obj2);
11625 if (PyErr_Occurred()) SWIG_fail;
11626 arg4 = (int) SWIG_AsInt(obj3);
11627 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11628 {
11629 PyThreadState* __tstate = wxPyBeginAllowThreads();
11630 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11631
11632 wxPyEndAllowThreads(__tstate);
11633 if (PyErr_Occurred()) SWIG_fail;
11634 }
11635 Py_INCREF(Py_None); resultobj = Py_None;
11636 {
11637 if (temp2)
11638 delete arg2;
11639 }
11640 return resultobj;
11641 fail:
11642 {
11643 if (temp2)
11644 delete arg2;
11645 }
11646 return NULL;
11647}
11648
11649
11650static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11651 PyObject *resultobj;
11652 wxDC *arg1 = (wxDC *) 0 ;
11653 wxString *arg2 = 0 ;
11654 wxPoint *arg3 = 0 ;
e811c8ce 11655 bool temp2 = False ;
d14a1e28
RD
11656 wxPoint temp3 ;
11657 PyObject * obj0 = 0 ;
11658 PyObject * obj1 = 0 ;
11659 PyObject * obj2 = 0 ;
11660 char *kwnames[] = {
11661 (char *) "self",(char *) "text",(char *) "pt", NULL
11662 };
11663
11664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11667 {
11668 arg2 = wxString_in_helper(obj1);
11669 if (arg2 == NULL) SWIG_fail;
e811c8ce 11670 temp2 = True;
d14a1e28
RD
11671 }
11672 {
11673 arg3 = &temp3;
11674 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11675 }
11676 {
11677 PyThreadState* __tstate = wxPyBeginAllowThreads();
11678 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11679
11680 wxPyEndAllowThreads(__tstate);
11681 if (PyErr_Occurred()) SWIG_fail;
11682 }
11683 Py_INCREF(Py_None); resultobj = Py_None;
11684 {
11685 if (temp2)
11686 delete arg2;
11687 }
11688 return resultobj;
11689 fail:
11690 {
11691 if (temp2)
11692 delete arg2;
11693 }
11694 return NULL;
11695}
11696
11697
11698static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11699 PyObject *resultobj;
11700 wxDC *arg1 = (wxDC *) 0 ;
11701 wxString *arg2 = 0 ;
e811c8ce
RD
11702 int arg3 ;
11703 int arg4 ;
d14a1e28 11704 double arg5 ;
e811c8ce 11705 bool temp2 = False ;
d14a1e28
RD
11706 PyObject * obj0 = 0 ;
11707 PyObject * obj1 = 0 ;
994141e6
RD
11708 PyObject * obj2 = 0 ;
11709 PyObject * obj3 = 0 ;
11710 PyObject * obj4 = 0 ;
d14a1e28
RD
11711 char *kwnames[] = {
11712 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11713 };
11714
994141e6 11715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
11716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11718 {
11719 arg2 = wxString_in_helper(obj1);
11720 if (arg2 == NULL) SWIG_fail;
e811c8ce 11721 temp2 = True;
d14a1e28 11722 }
15afbcd0
RD
11723 arg3 = (int) SWIG_AsInt(obj2);
11724 if (PyErr_Occurred()) SWIG_fail;
11725 arg4 = (int) SWIG_AsInt(obj3);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 arg5 = (double) SWIG_AsDouble(obj4);
11728 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11732
11733 wxPyEndAllowThreads(__tstate);
11734 if (PyErr_Occurred()) SWIG_fail;
11735 }
11736 Py_INCREF(Py_None); resultobj = Py_None;
11737 {
11738 if (temp2)
11739 delete arg2;
11740 }
11741 return resultobj;
11742 fail:
11743 {
11744 if (temp2)
11745 delete arg2;
11746 }
11747 return NULL;
11748}
11749
11750
11751static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11752 PyObject *resultobj;
11753 wxDC *arg1 = (wxDC *) 0 ;
11754 wxString *arg2 = 0 ;
11755 wxPoint *arg3 = 0 ;
11756 double arg4 ;
e811c8ce 11757 bool temp2 = False ;
d14a1e28
RD
11758 wxPoint temp3 ;
11759 PyObject * obj0 = 0 ;
11760 PyObject * obj1 = 0 ;
11761 PyObject * obj2 = 0 ;
994141e6 11762 PyObject * obj3 = 0 ;
d14a1e28
RD
11763 char *kwnames[] = {
11764 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11765 };
11766
994141e6 11767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11770 {
11771 arg2 = wxString_in_helper(obj1);
11772 if (arg2 == NULL) SWIG_fail;
e811c8ce 11773 temp2 = True;
d14a1e28
RD
11774 }
11775 {
11776 arg3 = &temp3;
11777 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11778 }
15afbcd0
RD
11779 arg4 = (double) SWIG_AsDouble(obj3);
11780 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11781 {
11782 PyThreadState* __tstate = wxPyBeginAllowThreads();
11783 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11784
11785 wxPyEndAllowThreads(__tstate);
11786 if (PyErr_Occurred()) SWIG_fail;
11787 }
11788 Py_INCREF(Py_None); resultobj = Py_None;
11789 {
11790 if (temp2)
11791 delete arg2;
11792 }
11793 return resultobj;
11794 fail:
11795 {
11796 if (temp2)
11797 delete arg2;
11798 }
11799 return NULL;
11800}
11801
11802
11803static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11804 PyObject *resultobj;
11805 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11806 int arg2 ;
11807 int arg3 ;
11808 int arg4 ;
11809 int arg5 ;
d14a1e28 11810 wxDC *arg6 = (wxDC *) 0 ;
e811c8ce
RD
11811 int arg7 ;
11812 int arg8 ;
d14a1e28 11813 int arg9 = (int) wxCOPY ;
e811c8ce
RD
11814 bool arg10 = (bool) False ;
11815 int arg11 = (int) -1 ;
11816 int arg12 = (int) -1 ;
d14a1e28
RD
11817 bool result;
11818 PyObject * obj0 = 0 ;
994141e6
RD
11819 PyObject * obj1 = 0 ;
11820 PyObject * obj2 = 0 ;
11821 PyObject * obj3 = 0 ;
11822 PyObject * obj4 = 0 ;
d14a1e28 11823 PyObject * obj5 = 0 ;
994141e6
RD
11824 PyObject * obj6 = 0 ;
11825 PyObject * obj7 = 0 ;
11826 PyObject * obj8 = 0 ;
d14a1e28 11827 PyObject * obj9 = 0 ;
994141e6
RD
11828 PyObject * obj10 = 0 ;
11829 PyObject * obj11 = 0 ;
d14a1e28
RD
11830 char *kwnames[] = {
11831 (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
11832 };
11833
994141e6 11834 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;
15afbcd0
RD
11835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11837 arg2 = (int) SWIG_AsInt(obj1);
11838 if (PyErr_Occurred()) SWIG_fail;
11839 arg3 = (int) SWIG_AsInt(obj2);
11840 if (PyErr_Occurred()) SWIG_fail;
11841 arg4 = (int) SWIG_AsInt(obj3);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 arg5 = (int) SWIG_AsInt(obj4);
11844 if (PyErr_Occurred()) SWIG_fail;
11845 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11847 arg7 = (int) SWIG_AsInt(obj6);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 arg8 = (int) SWIG_AsInt(obj7);
11850 if (PyErr_Occurred()) SWIG_fail;
994141e6 11851 if (obj8) {
15afbcd0
RD
11852 arg9 = (int) SWIG_AsInt(obj8);
11853 if (PyErr_Occurred()) SWIG_fail;
994141e6 11854 }
d14a1e28 11855 if (obj9) {
15afbcd0
RD
11856 arg10 = (bool) SWIG_AsBool(obj9);
11857 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
11858 }
11859 if (obj10) {
15afbcd0
RD
11860 arg11 = (int) SWIG_AsInt(obj10);
11861 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
11862 }
11863 if (obj11) {
15afbcd0
RD
11864 arg12 = (int) SWIG_AsInt(obj11);
11865 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11866 }
11867 {
11868 PyThreadState* __tstate = wxPyBeginAllowThreads();
11869 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11870
11871 wxPyEndAllowThreads(__tstate);
11872 if (PyErr_Occurred()) SWIG_fail;
11873 }
4f89f6a3
RD
11874 {
11875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11876 }
d14a1e28
RD
11877 return resultobj;
11878 fail:
11879 return NULL;
11880}
11881
11882
11883static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11884 PyObject *resultobj;
11885 wxDC *arg1 = (wxDC *) 0 ;
11886 wxPoint *arg2 = 0 ;
11887 wxSize *arg3 = 0 ;
11888 wxDC *arg4 = (wxDC *) 0 ;
11889 wxPoint *arg5 = 0 ;
11890 int arg6 = (int) wxCOPY ;
e811c8ce 11891 bool arg7 = (bool) False ;
d14a1e28
RD
11892 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11893 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11894 bool result;
11895 wxPoint temp2 ;
11896 wxSize temp3 ;
11897 wxPoint temp5 ;
11898 wxPoint temp8 ;
11899 PyObject * obj0 = 0 ;
11900 PyObject * obj1 = 0 ;
11901 PyObject * obj2 = 0 ;
11902 PyObject * obj3 = 0 ;
11903 PyObject * obj4 = 0 ;
994141e6 11904 PyObject * obj5 = 0 ;
d14a1e28
RD
11905 PyObject * obj6 = 0 ;
11906 PyObject * obj7 = 0 ;
11907 char *kwnames[] = {
11908 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11909 };
11910
994141e6 11911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
15afbcd0
RD
11912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11914 {
11915 arg2 = &temp2;
11916 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11917 }
11918 {
11919 arg3 = &temp3;
11920 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11921 }
15afbcd0
RD
11922 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11924 {
11925 arg5 = &temp5;
11926 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11927 }
994141e6 11928 if (obj5) {
15afbcd0
RD
11929 arg6 = (int) SWIG_AsInt(obj5);
11930 if (PyErr_Occurred()) SWIG_fail;
994141e6 11931 }
d14a1e28 11932 if (obj6) {
15afbcd0
RD
11933 arg7 = (bool) SWIG_AsBool(obj6);
11934 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11935 }
11936 if (obj7) {
11937 {
11938 arg8 = &temp8;
11939 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11940 }
11941 }
11942 {
11943 PyThreadState* __tstate = wxPyBeginAllowThreads();
11944 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11945
11946 wxPyEndAllowThreads(__tstate);
11947 if (PyErr_Occurred()) SWIG_fail;
11948 }
4f89f6a3
RD
11949 {
11950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11951 }
d14a1e28
RD
11952 return resultobj;
11953 fail:
11954 return NULL;
11955}
11956
11957
11958static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
11959 PyObject *resultobj;
11960 wxDC *arg1 = (wxDC *) 0 ;
11961 int arg2 ;
11962 wxPoint *arg3 = (wxPoint *) 0 ;
e811c8ce
RD
11963 int arg4 = (int) 0 ;
11964 int arg5 = (int) 0 ;
d14a1e28
RD
11965 PyObject * obj0 = 0 ;
11966 PyObject * obj1 = 0 ;
994141e6
RD
11967 PyObject * obj2 = 0 ;
11968 PyObject * obj3 = 0 ;
d14a1e28
RD
11969 char *kwnames[] = {
11970 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
11971 };
11972
994141e6 11973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11976 {
11977 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11978 if (arg3 == NULL) SWIG_fail;
11979 }
994141e6 11980 if (obj2) {
15afbcd0
RD
11981 arg4 = (int) SWIG_AsInt(obj2);
11982 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
11983 }
11984 if (obj3) {
15afbcd0
RD
11985 arg5 = (int) SWIG_AsInt(obj3);
11986 if (PyErr_Occurred()) SWIG_fail;
994141e6 11987 }
d14a1e28
RD
11988 {
11989 PyThreadState* __tstate = wxPyBeginAllowThreads();
11990 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
11991
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 Py_INCREF(Py_None); resultobj = Py_None;
11996 {
11997 if (arg3) delete [] arg3;
11998 }
11999 return resultobj;
12000 fail:
12001 {
12002 if (arg3) delete [] arg3;
12003 }
12004 return NULL;
12005}
12006
12007
12008static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12009 PyObject *resultobj;
12010 wxDC *arg1 = (wxDC *) 0 ;
12011 int arg2 ;
12012 wxPoint *arg3 = (wxPoint *) 0 ;
e811c8ce
RD
12013 int arg4 = (int) 0 ;
12014 int arg5 = (int) 0 ;
d14a1e28
RD
12015 int arg6 = (int) wxODDEVEN_RULE ;
12016 PyObject * obj0 = 0 ;
12017 PyObject * obj1 = 0 ;
994141e6
RD
12018 PyObject * obj2 = 0 ;
12019 PyObject * obj3 = 0 ;
12020 PyObject * obj4 = 0 ;
d14a1e28
RD
12021 char *kwnames[] = {
12022 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12023 };
12024
994141e6 12025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
12026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12028 {
12029 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12030 if (arg3 == NULL) SWIG_fail;
12031 }
994141e6 12032 if (obj2) {
15afbcd0
RD
12033 arg4 = (int) SWIG_AsInt(obj2);
12034 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
12035 }
12036 if (obj3) {
15afbcd0
RD
12037 arg5 = (int) SWIG_AsInt(obj3);
12038 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
12039 }
12040 if (obj4) {
15afbcd0
RD
12041 arg6 = (int) SWIG_AsInt(obj4);
12042 if (PyErr_Occurred()) SWIG_fail;
994141e6 12043 }
d14a1e28
RD
12044 {
12045 PyThreadState* __tstate = wxPyBeginAllowThreads();
12046 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12047
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 Py_INCREF(Py_None); resultobj = Py_None;
12052 {
12053 if (arg3) delete [] arg3;
12054 }
12055 return resultobj;
12056 fail:
12057 {
12058 if (arg3) delete [] arg3;
12059 }
12060 return NULL;
12061}
12062
12063
12064static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12065 PyObject *resultobj;
12066 wxDC *arg1 = (wxDC *) 0 ;
12067 wxString *arg2 = 0 ;
12068 wxRect *arg3 = 0 ;
12069 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12070 int arg5 = (int) -1 ;
e811c8ce 12071 bool temp2 = False ;
d14a1e28
RD
12072 wxRect temp3 ;
12073 PyObject * obj0 = 0 ;
12074 PyObject * obj1 = 0 ;
12075 PyObject * obj2 = 0 ;
994141e6
RD
12076 PyObject * obj3 = 0 ;
12077 PyObject * obj4 = 0 ;
d14a1e28
RD
12078 char *kwnames[] = {
12079 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12080 };
12081
994141e6 12082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
12083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12085 {
12086 arg2 = wxString_in_helper(obj1);
12087 if (arg2 == NULL) SWIG_fail;
e811c8ce 12088 temp2 = True;
d14a1e28
RD
12089 }
12090 {
12091 arg3 = &temp3;
12092 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12093 }
994141e6 12094 if (obj3) {
15afbcd0
RD
12095 arg4 = (int) SWIG_AsInt(obj3);
12096 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
12097 }
12098 if (obj4) {
15afbcd0
RD
12099 arg5 = (int) SWIG_AsInt(obj4);
12100 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
12101 }
12102 {
12103 PyThreadState* __tstate = wxPyBeginAllowThreads();
12104 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
d14a1e28
RD
12105
12106 wxPyEndAllowThreads(__tstate);
12107 if (PyErr_Occurred()) SWIG_fail;
12108 }
12109 Py_INCREF(Py_None); resultobj = Py_None;
12110 {
12111 if (temp2)
12112 delete arg2;
12113 }
12114 return resultobj;
12115 fail:
12116 {
12117 if (temp2)
12118 delete arg2;
12119 }
12120 return NULL;
12121}
12122
12123
12124static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12125 PyObject *resultobj;
12126 wxDC *arg1 = (wxDC *) 0 ;
12127 wxString *arg2 = 0 ;
12128 wxBitmap *arg3 = 0 ;
12129 wxRect *arg4 = 0 ;
12130 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12131 int arg6 = (int) -1 ;
12132 wxRect result;
e811c8ce 12133 bool temp2 = False ;
d14a1e28
RD
12134 wxRect temp4 ;
12135 PyObject * obj0 = 0 ;
12136 PyObject * obj1 = 0 ;
12137 PyObject * obj2 = 0 ;
12138 PyObject * obj3 = 0 ;
994141e6
RD
12139 PyObject * obj4 = 0 ;
12140 PyObject * obj5 = 0 ;
d14a1e28
RD
12141 char *kwnames[] = {
12142 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12143 };
12144
994141e6 12145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15afbcd0
RD
12146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12148 {
12149 arg2 = wxString_in_helper(obj1);
12150 if (arg2 == NULL) SWIG_fail;
e811c8ce 12151 temp2 = True;
d14a1e28 12152 }
15afbcd0
RD
12153 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12154 SWIG_POINTER_EXCEPTION | 0)) == -1)
12155 SWIG_fail;
d14a1e28 12156 if (arg3 == NULL) {
15afbcd0
RD
12157 PyErr_SetString(PyExc_TypeError,"null reference");
12158 SWIG_fail;
d14a1e28
RD
12159 }
12160 {
12161 arg4 = &temp4;
12162 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12163 }
994141e6 12164 if (obj4) {
15afbcd0
RD
12165 arg5 = (int) SWIG_AsInt(obj4);
12166 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
12167 }
12168 if (obj5) {
15afbcd0
RD
12169 arg6 = (int) SWIG_AsInt(obj5);
12170 if (PyErr_Occurred()) SWIG_fail;
994141e6 12171 }
d14a1e28
RD
12172 {
12173 PyThreadState* __tstate = wxPyBeginAllowThreads();
12174 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12175
12176 wxPyEndAllowThreads(__tstate);
12177 if (PyErr_Occurred()) SWIG_fail;
12178 }
12179 {
12180 wxRect * resultptr;
12181 resultptr = new wxRect((wxRect &) result);
15afbcd0 12182 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
12183 }
12184 {
12185 if (temp2)
12186 delete arg2;
12187 }
12188 return resultobj;
12189 fail:
12190 {
12191 if (temp2)
12192 delete arg2;
12193 }
12194 return NULL;
12195}
12196
12197
12198static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12199 PyObject *resultobj;
12200 wxDC *arg1 = (wxDC *) 0 ;
12201 int arg2 ;
12202 wxPoint *arg3 = (wxPoint *) 0 ;
12203 PyObject * obj0 = 0 ;
12204 PyObject * obj1 = 0 ;
12205 char *kwnames[] = {
12206 (char *) "self",(char *) "points", NULL
12207 };
12208
12209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12212 {
12213 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12214 if (arg3 == NULL) SWIG_fail;
12215 }
12216 {
12217 PyThreadState* __tstate = wxPyBeginAllowThreads();
12218 (arg1)->DrawSpline(arg2,arg3);
12219
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 Py_INCREF(Py_None); resultobj = Py_None;
12224 {
12225 if (arg3) delete [] arg3;
12226 }
12227 return resultobj;
12228 fail:
12229 {
12230 if (arg3) delete [] arg3;
12231 }
12232 return NULL;
12233}
12234
12235
12236static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12237 PyObject *resultobj;
12238 wxDC *arg1 = (wxDC *) 0 ;
12239 PyObject * obj0 = 0 ;
12240 char *kwnames[] = {
12241 (char *) "self", NULL
12242 };
12243
12244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
15afbcd0
RD
12245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12247 {
12248 PyThreadState* __tstate = wxPyBeginAllowThreads();
12249 (arg1)->Clear();
12250
12251 wxPyEndAllowThreads(__tstate);
12252 if (PyErr_Occurred()) SWIG_fail;
12253 }
12254 Py_INCREF(Py_None); resultobj = Py_None;
12255 return resultobj;
12256 fail:
12257 return NULL;
12258}
12259
12260
12261static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12262 PyObject *resultobj;
12263 wxDC *arg1 = (wxDC *) 0 ;
12264 wxString *arg2 = 0 ;
12265 bool result;
e811c8ce 12266 bool temp2 = False ;
d14a1e28
RD
12267 PyObject * obj0 = 0 ;
12268 PyObject * obj1 = 0 ;
12269 char *kwnames[] = {
12270 (char *) "self",(char *) "message", NULL
12271 };
12272
12273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12276 {
12277 arg2 = wxString_in_helper(obj1);
12278 if (arg2 == NULL) SWIG_fail;
e811c8ce 12279 temp2 = True;
d14a1e28
RD
12280 }
12281 {
12282 PyThreadState* __tstate = wxPyBeginAllowThreads();
12283 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12284
12285 wxPyEndAllowThreads(__tstate);
12286 if (PyErr_Occurred()) SWIG_fail;
12287 }
4f89f6a3
RD
12288 {
12289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12290 }
d14a1e28
RD
12291 {
12292 if (temp2)
12293 delete arg2;
12294 }
12295 return resultobj;
12296 fail:
12297 {
12298 if (temp2)
12299 delete arg2;
12300 }
12301 return NULL;
12302}
12303
12304
12305static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12306 PyObject *resultobj;
12307 wxDC *arg1 = (wxDC *) 0 ;
12308 PyObject * obj0 = 0 ;
12309 char *kwnames[] = {
12310 (char *) "self", NULL
12311 };
12312
12313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
15afbcd0
RD
12314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12316 {
12317 PyThreadState* __tstate = wxPyBeginAllowThreads();
12318 (arg1)->EndDoc();
12319
12320 wxPyEndAllowThreads(__tstate);
12321 if (PyErr_Occurred()) SWIG_fail;
12322 }
12323 Py_INCREF(Py_None); resultobj = Py_None;
12324 return resultobj;
12325 fail:
12326 return NULL;
12327}
12328
12329
12330static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12331 PyObject *resultobj;
12332 wxDC *arg1 = (wxDC *) 0 ;
12333 PyObject * obj0 = 0 ;
12334 char *kwnames[] = {
12335 (char *) "self", NULL
12336 };
12337
12338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
15afbcd0
RD
12339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12341 {
12342 PyThreadState* __tstate = wxPyBeginAllowThreads();
12343 (arg1)->StartPage();
12344
12345 wxPyEndAllowThreads(__tstate);
12346 if (PyErr_Occurred()) SWIG_fail;
12347 }
12348 Py_INCREF(Py_None); resultobj = Py_None;
12349 return resultobj;
12350 fail:
12351 return NULL;
12352}
12353
12354
12355static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12356 PyObject *resultobj;
12357 wxDC *arg1 = (wxDC *) 0 ;
12358 PyObject * obj0 = 0 ;
12359 char *kwnames[] = {
12360 (char *) "self", NULL
12361 };
12362
12363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
15afbcd0
RD
12364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12366 {
12367 PyThreadState* __tstate = wxPyBeginAllowThreads();
12368 (arg1)->EndPage();
12369
12370 wxPyEndAllowThreads(__tstate);
12371 if (PyErr_Occurred()) SWIG_fail;
12372 }
12373 Py_INCREF(Py_None); resultobj = Py_None;
12374 return resultobj;
12375 fail:
12376 return NULL;
12377}
12378
12379
12380static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12381 PyObject *resultobj;
12382 wxDC *arg1 = (wxDC *) 0 ;
12383 wxFont *arg2 = 0 ;
12384 PyObject * obj0 = 0 ;
12385 PyObject * obj1 = 0 ;
12386 char *kwnames[] = {
12387 (char *) "self",(char *) "font", NULL
12388 };
12389
12390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12393 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12394 SWIG_POINTER_EXCEPTION | 0)) == -1)
12395 SWIG_fail;
d14a1e28 12396 if (arg2 == NULL) {
15afbcd0
RD
12397 PyErr_SetString(PyExc_TypeError,"null reference");
12398 SWIG_fail;
d14a1e28
RD
12399 }
12400 {
12401 PyThreadState* __tstate = wxPyBeginAllowThreads();
12402 (arg1)->SetFont((wxFont const &)*arg2);
12403
12404 wxPyEndAllowThreads(__tstate);
12405 if (PyErr_Occurred()) SWIG_fail;
12406 }
12407 Py_INCREF(Py_None); resultobj = Py_None;
12408 return resultobj;
12409 fail:
12410 return NULL;
12411}
12412
12413
12414static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12415 PyObject *resultobj;
12416 wxDC *arg1 = (wxDC *) 0 ;
12417 wxPen *arg2 = 0 ;
12418 PyObject * obj0 = 0 ;
12419 PyObject * obj1 = 0 ;
12420 char *kwnames[] = {
12421 (char *) "self",(char *) "pen", NULL
12422 };
12423
12424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12427 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12428 SWIG_POINTER_EXCEPTION | 0)) == -1)
12429 SWIG_fail;
d14a1e28 12430 if (arg2 == NULL) {
15afbcd0
RD
12431 PyErr_SetString(PyExc_TypeError,"null reference");
12432 SWIG_fail;
d14a1e28
RD
12433 }
12434 {
12435 PyThreadState* __tstate = wxPyBeginAllowThreads();
12436 (arg1)->SetPen((wxPen const &)*arg2);
12437
12438 wxPyEndAllowThreads(__tstate);
12439 if (PyErr_Occurred()) SWIG_fail;
12440 }
12441 Py_INCREF(Py_None); resultobj = Py_None;
12442 return resultobj;
12443 fail:
12444 return NULL;
12445}
12446
12447
12448static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12449 PyObject *resultobj;
12450 wxDC *arg1 = (wxDC *) 0 ;
12451 wxBrush *arg2 = 0 ;
12452 PyObject * obj0 = 0 ;
12453 PyObject * obj1 = 0 ;
12454 char *kwnames[] = {
12455 (char *) "self",(char *) "brush", NULL
12456 };
12457
12458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12461 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12462 SWIG_POINTER_EXCEPTION | 0)) == -1)
12463 SWIG_fail;
d14a1e28 12464 if (arg2 == NULL) {
15afbcd0
RD
12465 PyErr_SetString(PyExc_TypeError,"null reference");
12466 SWIG_fail;
d14a1e28
RD
12467 }
12468 {
12469 PyThreadState* __tstate = wxPyBeginAllowThreads();
12470 (arg1)->SetBrush((wxBrush const &)*arg2);
12471
12472 wxPyEndAllowThreads(__tstate);
12473 if (PyErr_Occurred()) SWIG_fail;
12474 }
12475 Py_INCREF(Py_None); resultobj = Py_None;
12476 return resultobj;
12477 fail:
12478 return NULL;
12479}
12480
12481
12482static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12483 PyObject *resultobj;
12484 wxDC *arg1 = (wxDC *) 0 ;
12485 wxBrush *arg2 = 0 ;
12486 PyObject * obj0 = 0 ;
12487 PyObject * obj1 = 0 ;
12488 char *kwnames[] = {
12489 (char *) "self",(char *) "brush", NULL
12490 };
12491
12492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12495 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12496 SWIG_POINTER_EXCEPTION | 0)) == -1)
12497 SWIG_fail;
d14a1e28 12498 if (arg2 == NULL) {
15afbcd0
RD
12499 PyErr_SetString(PyExc_TypeError,"null reference");
12500 SWIG_fail;
d14a1e28
RD
12501 }
12502 {
12503 PyThreadState* __tstate = wxPyBeginAllowThreads();
12504 (arg1)->SetBackground((wxBrush const &)*arg2);
12505
12506 wxPyEndAllowThreads(__tstate);
12507 if (PyErr_Occurred()) SWIG_fail;
12508 }
12509 Py_INCREF(Py_None); resultobj = Py_None;
12510 return resultobj;
12511 fail:
12512 return NULL;
12513}
12514
12515
12516static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12517 PyObject *resultobj;
12518 wxDC *arg1 = (wxDC *) 0 ;
12519 int arg2 ;
12520 PyObject * obj0 = 0 ;
994141e6 12521 PyObject * obj1 = 0 ;
d14a1e28
RD
12522 char *kwnames[] = {
12523 (char *) "self",(char *) "mode", NULL
12524 };
12525
994141e6 12526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12529 arg2 = (int) SWIG_AsInt(obj1);
12530 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12531 {
12532 PyThreadState* __tstate = wxPyBeginAllowThreads();
12533 (arg1)->SetBackgroundMode(arg2);
12534
12535 wxPyEndAllowThreads(__tstate);
12536 if (PyErr_Occurred()) SWIG_fail;
12537 }
12538 Py_INCREF(Py_None); resultobj = Py_None;
12539 return resultobj;
12540 fail:
12541 return NULL;
12542}
12543
12544
12545static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12546 PyObject *resultobj;
12547 wxDC *arg1 = (wxDC *) 0 ;
12548 wxPalette *arg2 = 0 ;
12549 PyObject * obj0 = 0 ;
12550 PyObject * obj1 = 0 ;
12551 char *kwnames[] = {
12552 (char *) "self",(char *) "palette", NULL
12553 };
12554
12555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12558 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12559 SWIG_POINTER_EXCEPTION | 0)) == -1)
12560 SWIG_fail;
d14a1e28 12561 if (arg2 == NULL) {
15afbcd0
RD
12562 PyErr_SetString(PyExc_TypeError,"null reference");
12563 SWIG_fail;
d14a1e28
RD
12564 }
12565 {
12566 PyThreadState* __tstate = wxPyBeginAllowThreads();
12567 (arg1)->SetPalette((wxPalette const &)*arg2);
12568
12569 wxPyEndAllowThreads(__tstate);
12570 if (PyErr_Occurred()) SWIG_fail;
12571 }
12572 Py_INCREF(Py_None); resultobj = Py_None;
12573 return resultobj;
12574 fail:
12575 return NULL;
12576}
12577
12578
242b7b46 12579static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12580 PyObject *resultobj;
12581 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
12582 int arg2 ;
12583 int arg3 ;
12584 int arg4 ;
12585 int arg5 ;
d14a1e28 12586 PyObject * obj0 = 0 ;
994141e6
RD
12587 PyObject * obj1 = 0 ;
12588 PyObject * obj2 = 0 ;
12589 PyObject * obj3 = 0 ;
12590 PyObject * obj4 = 0 ;
d14a1e28
RD
12591 char *kwnames[] = {
12592 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12593 };
12594
994141e6 12595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
12596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12598 arg2 = (int) SWIG_AsInt(obj1);
12599 if (PyErr_Occurred()) SWIG_fail;
12600 arg3 = (int) SWIG_AsInt(obj2);
12601 if (PyErr_Occurred()) SWIG_fail;
12602 arg4 = (int) SWIG_AsInt(obj3);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 arg5 = (int) SWIG_AsInt(obj4);
12605 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12606 {
12607 PyThreadState* __tstate = wxPyBeginAllowThreads();
12608 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12609
12610 wxPyEndAllowThreads(__tstate);
12611 if (PyErr_Occurred()) SWIG_fail;
12612 }
12613 Py_INCREF(Py_None); resultobj = Py_None;
12614 return resultobj;
12615 fail:
12616 return NULL;
12617}
12618
12619
242b7b46
RD
12620static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12621 PyObject *resultobj;
12622 wxDC *arg1 = (wxDC *) 0 ;
12623 wxPoint *arg2 = 0 ;
12624 wxSize *arg3 = 0 ;
12625 wxPoint temp2 ;
12626 wxSize temp3 ;
12627 PyObject * obj0 = 0 ;
12628 PyObject * obj1 = 0 ;
12629 PyObject * obj2 = 0 ;
12630 char *kwnames[] = {
12631 (char *) "self",(char *) "pt",(char *) "sz", NULL
12632 };
12633
12634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
12635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
242b7b46
RD
12637 {
12638 arg2 = &temp2;
12639 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12640 }
12641 {
12642 arg3 = &temp3;
12643 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12644 }
12645 {
12646 PyThreadState* __tstate = wxPyBeginAllowThreads();
12647 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12648
12649 wxPyEndAllowThreads(__tstate);
12650 if (PyErr_Occurred()) SWIG_fail;
12651 }
12652 Py_INCREF(Py_None); resultobj = Py_None;
12653 return resultobj;
12654 fail:
12655 return NULL;
12656}
12657
12658
d14a1e28
RD
12659static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12660 PyObject *resultobj;
12661 wxDC *arg1 = (wxDC *) 0 ;
12662 wxRect *arg2 = 0 ;
12663 wxRect temp2 ;
12664 PyObject * obj0 = 0 ;
12665 PyObject * obj1 = 0 ;
12666 char *kwnames[] = {
12667 (char *) "self",(char *) "rect", NULL
12668 };
12669
12670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12673 {
12674 arg2 = &temp2;
12675 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12676 }
12677 {
12678 PyThreadState* __tstate = wxPyBeginAllowThreads();
12679 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12680
12681 wxPyEndAllowThreads(__tstate);
12682 if (PyErr_Occurred()) SWIG_fail;
12683 }
12684 Py_INCREF(Py_None); resultobj = Py_None;
12685 return resultobj;
12686 fail:
12687 return NULL;
12688}
12689
12690
12691static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12692 PyObject *resultobj;
12693 wxDC *arg1 = (wxDC *) 0 ;
12694 wxRegion *arg2 = 0 ;
12695 PyObject * obj0 = 0 ;
12696 PyObject * obj1 = 0 ;
12697 char *kwnames[] = {
12698 (char *) "self",(char *) "region", NULL
12699 };
12700
12701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12704 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12705 SWIG_POINTER_EXCEPTION | 0)) == -1)
12706 SWIG_fail;
d14a1e28 12707 if (arg2 == NULL) {
15afbcd0
RD
12708 PyErr_SetString(PyExc_TypeError,"null reference");
12709 SWIG_fail;
d14a1e28
RD
12710 }
12711 {
12712 PyThreadState* __tstate = wxPyBeginAllowThreads();
12713 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12714
12715 wxPyEndAllowThreads(__tstate);
12716 if (PyErr_Occurred()) SWIG_fail;
12717 }
12718 Py_INCREF(Py_None); resultobj = Py_None;
12719 return resultobj;
12720 fail:
12721 return NULL;
12722}
12723
12724
12725static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12726 PyObject *resultobj;
12727 wxDC *arg1 = (wxDC *) 0 ;
12728 PyObject * obj0 = 0 ;
12729 char *kwnames[] = {
12730 (char *) "self", NULL
12731 };
12732
12733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
15afbcd0
RD
12734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12736 {
12737 PyThreadState* __tstate = wxPyBeginAllowThreads();
12738 (arg1)->DestroyClippingRegion();
12739
12740 wxPyEndAllowThreads(__tstate);
12741 if (PyErr_Occurred()) SWIG_fail;
12742 }
12743 Py_INCREF(Py_None); resultobj = Py_None;
12744 return resultobj;
12745 fail:
12746 return NULL;
12747}
12748
12749
12750static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12751 PyObject *resultobj;
12752 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
12753 int *arg2 = (int *) 0 ;
12754 int *arg3 = (int *) 0 ;
12755 int *arg4 = (int *) 0 ;
12756 int *arg5 = (int *) 0 ;
12757 int temp2 ;
12758 int temp3 ;
12759 int temp4 ;
12760 int temp5 ;
d14a1e28
RD
12761 PyObject * obj0 = 0 ;
12762 char *kwnames[] = {
12763 (char *) "self", NULL
12764 };
12765
12766 arg2 = &temp2;
12767 arg3 = &temp3;
12768 arg4 = &temp4;
12769 arg5 = &temp5;
12770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
15afbcd0
RD
12771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12773 {
12774 PyThreadState* __tstate = wxPyBeginAllowThreads();
12775 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12776
12777 wxPyEndAllowThreads(__tstate);
12778 if (PyErr_Occurred()) SWIG_fail;
12779 }
12780 Py_INCREF(Py_None); resultobj = Py_None;
12781 {
12782 PyObject *o = PyInt_FromLong((long) (*arg2));
12783 resultobj = t_output_helper(resultobj,o);
12784 }
12785 {
12786 PyObject *o = PyInt_FromLong((long) (*arg3));
12787 resultobj = t_output_helper(resultobj,o);
12788 }
12789 {
12790 PyObject *o = PyInt_FromLong((long) (*arg4));
12791 resultobj = t_output_helper(resultobj,o);
12792 }
12793 {
12794 PyObject *o = PyInt_FromLong((long) (*arg5));
12795 resultobj = t_output_helper(resultobj,o);
12796 }
12797 return resultobj;
12798 fail:
12799 return NULL;
12800}
12801
12802
12803static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12804 PyObject *resultobj;
12805 wxDC *arg1 = (wxDC *) 0 ;
12806 wxRect result;
12807 PyObject * obj0 = 0 ;
12808 char *kwnames[] = {
12809 (char *) "self", NULL
12810 };
12811
12812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
15afbcd0
RD
12813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12815 {
12816 PyThreadState* __tstate = wxPyBeginAllowThreads();
12817 result = wxDC_GetClippingRect(arg1);
12818
12819 wxPyEndAllowThreads(__tstate);
12820 if (PyErr_Occurred()) SWIG_fail;
12821 }
12822 {
12823 wxRect * resultptr;
12824 resultptr = new wxRect((wxRect &) result);
15afbcd0 12825 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
12826 }
12827 return resultobj;
12828 fail:
12829 return NULL;
12830}
12831
12832
12833static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12834 PyObject *resultobj;
12835 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 12836 int result;
d14a1e28
RD
12837 PyObject * obj0 = 0 ;
12838 char *kwnames[] = {
12839 (char *) "self", NULL
12840 };
12841
12842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
12843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12845 {
12846 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 12847 result = (int)((wxDC const *)arg1)->GetCharHeight();
d14a1e28
RD
12848
12849 wxPyEndAllowThreads(__tstate);
12850 if (PyErr_Occurred()) SWIG_fail;
12851 }
15afbcd0 12852 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
12853 return resultobj;
12854 fail:
12855 return NULL;
12856}
12857
12858
12859static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12860 PyObject *resultobj;
12861 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 12862 int result;
d14a1e28
RD
12863 PyObject * obj0 = 0 ;
12864 char *kwnames[] = {
12865 (char *) "self", NULL
12866 };
12867
12868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
12869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12871 {
12872 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 12873 result = (int)((wxDC const *)arg1)->GetCharWidth();
d14a1e28
RD
12874
12875 wxPyEndAllowThreads(__tstate);
12876 if (PyErr_Occurred()) SWIG_fail;
12877 }
15afbcd0 12878 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
12879 return resultobj;
12880 fail:
12881 return NULL;
12882}
12883
12884
12885static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12886 PyObject *resultobj;
12887 wxDC *arg1 = (wxDC *) 0 ;
12888 wxString *arg2 = 0 ;
e811c8ce
RD
12889 int *arg3 = (int *) 0 ;
12890 int *arg4 = (int *) 0 ;
12891 bool temp2 = False ;
12892 int temp3 ;
12893 int temp4 ;
d14a1e28
RD
12894 PyObject * obj0 = 0 ;
12895 PyObject * obj1 = 0 ;
12896 char *kwnames[] = {
12897 (char *) "self",(char *) "string", NULL
12898 };
12899
12900 arg3 = &temp3;
12901 arg4 = &temp4;
12902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12905 {
12906 arg2 = wxString_in_helper(obj1);
12907 if (arg2 == NULL) SWIG_fail;
e811c8ce 12908 temp2 = True;
d14a1e28
RD
12909 }
12910 {
12911 PyThreadState* __tstate = wxPyBeginAllowThreads();
12912 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12913
12914 wxPyEndAllowThreads(__tstate);
12915 if (PyErr_Occurred()) SWIG_fail;
12916 }
12917 Py_INCREF(Py_None); resultobj = Py_None;
12918 {
12919 PyObject *o = PyInt_FromLong((long) (*arg3));
12920 resultobj = t_output_helper(resultobj,o);
12921 }
12922 {
12923 PyObject *o = PyInt_FromLong((long) (*arg4));
12924 resultobj = t_output_helper(resultobj,o);
12925 }
12926 {
12927 if (temp2)
12928 delete arg2;
12929 }
12930 return resultobj;
12931 fail:
12932 {
12933 if (temp2)
12934 delete arg2;
12935 }
12936 return NULL;
12937}
12938
12939
12940static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12941 PyObject *resultobj;
12942 wxDC *arg1 = (wxDC *) 0 ;
12943 wxString *arg2 = 0 ;
e811c8ce
RD
12944 int *arg3 = (int *) 0 ;
12945 int *arg4 = (int *) 0 ;
12946 int *arg5 = (int *) 0 ;
12947 int *arg6 = (int *) 0 ;
d14a1e28 12948 wxFont *arg7 = (wxFont *) NULL ;
e811c8ce
RD
12949 bool temp2 = False ;
12950 int temp3 ;
12951 int temp4 ;
12952 int temp5 ;
12953 int temp6 ;
d14a1e28
RD
12954 PyObject * obj0 = 0 ;
12955 PyObject * obj1 = 0 ;
12956 PyObject * obj2 = 0 ;
12957 char *kwnames[] = {
12958 (char *) "self",(char *) "string",(char *) "font", NULL
12959 };
12960
12961 arg3 = &temp3;
12962 arg4 = &temp4;
12963 arg5 = &temp5;
12964 arg6 = &temp6;
12965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
12966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12968 {
12969 arg2 = wxString_in_helper(obj1);
12970 if (arg2 == NULL) SWIG_fail;
e811c8ce 12971 temp2 = True;
d14a1e28
RD
12972 }
12973 if (obj2) {
15afbcd0
RD
12974 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
12975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12976 }
12977 {
12978 PyThreadState* __tstate = wxPyBeginAllowThreads();
12979 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12980
12981 wxPyEndAllowThreads(__tstate);
12982 if (PyErr_Occurred()) SWIG_fail;
12983 }
12984 Py_INCREF(Py_None); resultobj = Py_None;
12985 {
12986 PyObject *o = PyInt_FromLong((long) (*arg3));
12987 resultobj = t_output_helper(resultobj,o);
12988 }
12989 {
12990 PyObject *o = PyInt_FromLong((long) (*arg4));
12991 resultobj = t_output_helper(resultobj,o);
12992 }
12993 {
12994 PyObject *o = PyInt_FromLong((long) (*arg5));
12995 resultobj = t_output_helper(resultobj,o);
12996 }
12997 {
12998 PyObject *o = PyInt_FromLong((long) (*arg6));
12999 resultobj = t_output_helper(resultobj,o);
13000 }
13001 {
13002 if (temp2)
13003 delete arg2;
13004 }
13005 return resultobj;
13006 fail:
13007 {
13008 if (temp2)
13009 delete arg2;
13010 }
13011 return NULL;
13012}
13013
13014
13015static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13016 PyObject *resultobj;
13017 wxDC *arg1 = (wxDC *) 0 ;
13018 wxString *arg2 = 0 ;
e811c8ce
RD
13019 int *arg3 = (int *) 0 ;
13020 int *arg4 = (int *) 0 ;
13021 int *arg5 = (int *) 0 ;
d14a1e28 13022 wxFont *arg6 = (wxFont *) NULL ;
e811c8ce
RD
13023 bool temp2 = False ;
13024 int temp3 ;
13025 int temp4 ;
13026 int temp5 ;
d14a1e28
RD
13027 PyObject * obj0 = 0 ;
13028 PyObject * obj1 = 0 ;
13029 PyObject * obj2 = 0 ;
13030 char *kwnames[] = {
13031 (char *) "self",(char *) "text",(char *) "font", NULL
13032 };
13033
13034 arg3 = &temp3;
13035 arg4 = &temp4;
13036 arg5 = &temp5;
13037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
13038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13040 {
13041 arg2 = wxString_in_helper(obj1);
13042 if (arg2 == NULL) SWIG_fail;
e811c8ce 13043 temp2 = True;
d14a1e28
RD
13044 }
13045 if (obj2) {
15afbcd0
RD
13046 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13048 }
13049 {
13050 PyThreadState* __tstate = wxPyBeginAllowThreads();
13051 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13052
13053 wxPyEndAllowThreads(__tstate);
13054 if (PyErr_Occurred()) SWIG_fail;
13055 }
13056 Py_INCREF(Py_None); resultobj = Py_None;
13057 {
13058 PyObject *o = PyInt_FromLong((long) (*arg3));
13059 resultobj = t_output_helper(resultobj,o);
13060 }
13061 {
13062 PyObject *o = PyInt_FromLong((long) (*arg4));
13063 resultobj = t_output_helper(resultobj,o);
13064 }
13065 {
13066 PyObject *o = PyInt_FromLong((long) (*arg5));
13067 resultobj = t_output_helper(resultobj,o);
13068 }
13069 {
13070 if (temp2)
13071 delete arg2;
13072 }
13073 return resultobj;
13074 fail:
13075 {
13076 if (temp2)
13077 delete arg2;
13078 }
13079 return NULL;
13080}
13081
13082
db914595
RD
13083static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13084 PyObject *resultobj;
13085 wxDC *arg1 = (wxDC *) 0 ;
13086 wxString *arg2 = 0 ;
13087 wxArrayInt result;
13088 bool temp2 = False ;
13089 PyObject * obj0 = 0 ;
13090 PyObject * obj1 = 0 ;
13091 char *kwnames[] = {
13092 (char *) "self",(char *) "text", NULL
13093 };
13094
13095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
db914595
RD
13098 {
13099 arg2 = wxString_in_helper(obj1);
13100 if (arg2 == NULL) SWIG_fail;
13101 temp2 = True;
13102 }
13103 {
13104 PyThreadState* __tstate = wxPyBeginAllowThreads();
13105 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13106
13107 wxPyEndAllowThreads(__tstate);
13108 if (PyErr_Occurred()) SWIG_fail;
13109 }
13110 {
13111 resultobj = PyList_New(0);
13112 size_t idx;
13113 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13114 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13115 PyList_Append(resultobj, val);
13116 Py_DECREF(val);
13117 }
13118 }
13119 {
13120 if (temp2)
13121 delete arg2;
13122 }
13123 return resultobj;
13124 fail:
13125 {
13126 if (temp2)
13127 delete arg2;
13128 }
13129 return NULL;
13130}
13131
13132
322913ce
RD
13133static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13134 PyObject *resultobj;
13135 wxDC *arg1 = (wxDC *) 0 ;
13136 wxSize result;
13137 PyObject * obj0 = 0 ;
13138 char *kwnames[] = {
13139 (char *) "self", NULL
13140 };
13141
13142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
15afbcd0
RD
13143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
322913ce
RD
13145 {
13146 PyThreadState* __tstate = wxPyBeginAllowThreads();
13147 result = (arg1)->GetSize();
13148
13149 wxPyEndAllowThreads(__tstate);
13150 if (PyErr_Occurred()) SWIG_fail;
13151 }
13152 {
13153 wxSize * resultptr;
13154 resultptr = new wxSize((wxSize &) result);
15afbcd0 13155 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
322913ce
RD
13156 }
13157 return resultobj;
13158 fail:
13159 return NULL;
13160}
13161
13162
d14a1e28
RD
13163static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13164 PyObject *resultobj;
13165 wxDC *arg1 = (wxDC *) 0 ;
13166 int *arg2 = (int *) 0 ;
13167 int *arg3 = (int *) 0 ;
13168 int temp2 ;
13169 int temp3 ;
13170 PyObject * obj0 = 0 ;
13171 char *kwnames[] = {
13172 (char *) "self", NULL
13173 };
13174
13175 arg2 = &temp2;
13176 arg3 = &temp3;
13177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
15afbcd0
RD
13178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13180 {
13181 PyThreadState* __tstate = wxPyBeginAllowThreads();
13182 (arg1)->GetSize(arg2,arg3);
13183
13184 wxPyEndAllowThreads(__tstate);
13185 if (PyErr_Occurred()) SWIG_fail;
13186 }
13187 Py_INCREF(Py_None); resultobj = Py_None;
13188 {
13189 PyObject *o = PyInt_FromLong((long) (*arg2));
13190 resultobj = t_output_helper(resultobj,o);
13191 }
13192 {
13193 PyObject *o = PyInt_FromLong((long) (*arg3));
13194 resultobj = t_output_helper(resultobj,o);
13195 }
13196 return resultobj;
13197 fail:
13198 return NULL;
13199}
13200
13201
322913ce 13202static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13203 PyObject *resultobj;
13204 wxDC *arg1 = (wxDC *) 0 ;
13205 wxSize result;
13206 PyObject * obj0 = 0 ;
13207 char *kwnames[] = {
13208 (char *) "self", NULL
13209 };
13210
322913ce 13211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
15afbcd0
RD
13212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13214 {
13215 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 13216 result = ((wxDC const *)arg1)->GetSizeMM();
d14a1e28
RD
13217
13218 wxPyEndAllowThreads(__tstate);
13219 if (PyErr_Occurred()) SWIG_fail;
13220 }
13221 {
13222 wxSize * resultptr;
13223 resultptr = new wxSize((wxSize &) result);
15afbcd0 13224 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
13225 }
13226 return resultobj;
13227 fail:
13228 return NULL;
13229}
13230
13231
322913ce 13232static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13233 PyObject *resultobj;
13234 wxDC *arg1 = (wxDC *) 0 ;
13235 int *arg2 = (int *) 0 ;
13236 int *arg3 = (int *) 0 ;
13237 int temp2 ;
13238 int temp3 ;
13239 PyObject * obj0 = 0 ;
13240 char *kwnames[] = {
13241 (char *) "self", NULL
13242 };
13243
13244 arg2 = &temp2;
13245 arg3 = &temp3;
322913ce 13246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
15afbcd0
RD
13247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13249 {
13250 PyThreadState* __tstate = wxPyBeginAllowThreads();
13251 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13252
13253 wxPyEndAllowThreads(__tstate);
13254 if (PyErr_Occurred()) SWIG_fail;
13255 }
13256 Py_INCREF(Py_None); resultobj = Py_None;
13257 {
13258 PyObject *o = PyInt_FromLong((long) (*arg2));
13259 resultobj = t_output_helper(resultobj,o);
13260 }
13261 {
13262 PyObject *o = PyInt_FromLong((long) (*arg3));
13263 resultobj = t_output_helper(resultobj,o);
13264 }
13265 return resultobj;
13266 fail:
13267 return NULL;
13268}
13269
13270
d14a1e28
RD
13271static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13272 PyObject *resultobj;
13273 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13274 int arg2 ;
13275 int result;
d14a1e28 13276 PyObject * obj0 = 0 ;
994141e6 13277 PyObject * obj1 = 0 ;
d14a1e28
RD
13278 char *kwnames[] = {
13279 (char *) "self",(char *) "x", NULL
13280 };
13281
994141e6 13282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13285 arg2 = (int) SWIG_AsInt(obj1);
13286 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13287 {
13288 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13289 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
d14a1e28
RD
13290
13291 wxPyEndAllowThreads(__tstate);
13292 if (PyErr_Occurred()) SWIG_fail;
13293 }
15afbcd0 13294 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13295 return resultobj;
13296 fail:
13297 return NULL;
13298}
13299
13300
13301static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13302 PyObject *resultobj;
13303 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13304 int arg2 ;
13305 int result;
d14a1e28 13306 PyObject * obj0 = 0 ;
994141e6 13307 PyObject * obj1 = 0 ;
d14a1e28
RD
13308 char *kwnames[] = {
13309 (char *) "self",(char *) "y", NULL
13310 };
13311
994141e6 13312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13315 arg2 = (int) SWIG_AsInt(obj1);
13316 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13317 {
13318 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13319 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
d14a1e28
RD
13320
13321 wxPyEndAllowThreads(__tstate);
13322 if (PyErr_Occurred()) SWIG_fail;
13323 }
15afbcd0 13324 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13325 return resultobj;
13326 fail:
13327 return NULL;
13328}
13329
13330
13331static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13332 PyObject *resultobj;
13333 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13334 int arg2 ;
13335 int result;
d14a1e28 13336 PyObject * obj0 = 0 ;
994141e6 13337 PyObject * obj1 = 0 ;
d14a1e28
RD
13338 char *kwnames[] = {
13339 (char *) "self",(char *) "x", NULL
13340 };
13341
994141e6 13342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13345 arg2 = (int) SWIG_AsInt(obj1);
13346 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13347 {
13348 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13349 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
d14a1e28
RD
13350
13351 wxPyEndAllowThreads(__tstate);
13352 if (PyErr_Occurred()) SWIG_fail;
13353 }
15afbcd0 13354 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13355 return resultobj;
13356 fail:
13357 return NULL;
13358}
13359
13360
13361static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13362 PyObject *resultobj;
13363 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13364 int arg2 ;
13365 int result;
d14a1e28 13366 PyObject * obj0 = 0 ;
994141e6 13367 PyObject * obj1 = 0 ;
d14a1e28
RD
13368 char *kwnames[] = {
13369 (char *) "self",(char *) "y", NULL
13370 };
13371
994141e6 13372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13375 arg2 = (int) SWIG_AsInt(obj1);
13376 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13377 {
13378 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13379 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
d14a1e28
RD
13380
13381 wxPyEndAllowThreads(__tstate);
13382 if (PyErr_Occurred()) SWIG_fail;
13383 }
15afbcd0 13384 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13385 return resultobj;
13386 fail:
13387 return NULL;
13388}
13389
13390
13391static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13392 PyObject *resultobj;
13393 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13394 int arg2 ;
13395 int result;
d14a1e28 13396 PyObject * obj0 = 0 ;
994141e6 13397 PyObject * obj1 = 0 ;
d14a1e28
RD
13398 char *kwnames[] = {
13399 (char *) "self",(char *) "x", NULL
13400 };
13401
994141e6 13402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13405 arg2 = (int) SWIG_AsInt(obj1);
13406 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13407 {
13408 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13409 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
d14a1e28
RD
13410
13411 wxPyEndAllowThreads(__tstate);
13412 if (PyErr_Occurred()) SWIG_fail;
13413 }
15afbcd0 13414 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13415 return resultobj;
13416 fail:
13417 return NULL;
13418}
13419
13420
13421static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13422 PyObject *resultobj;
13423 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13424 int arg2 ;
13425 int result;
d14a1e28 13426 PyObject * obj0 = 0 ;
994141e6 13427 PyObject * obj1 = 0 ;
d14a1e28
RD
13428 char *kwnames[] = {
13429 (char *) "self",(char *) "y", NULL
13430 };
13431
994141e6 13432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13435 arg2 = (int) SWIG_AsInt(obj1);
13436 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13437 {
13438 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13439 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
d14a1e28
RD
13440
13441 wxPyEndAllowThreads(__tstate);
13442 if (PyErr_Occurred()) SWIG_fail;
13443 }
15afbcd0 13444 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13445 return resultobj;
13446 fail:
13447 return NULL;
13448}
13449
13450
13451static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13452 PyObject *resultobj;
13453 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13454 int arg2 ;
13455 int result;
d14a1e28 13456 PyObject * obj0 = 0 ;
994141e6 13457 PyObject * obj1 = 0 ;
d14a1e28
RD
13458 char *kwnames[] = {
13459 (char *) "self",(char *) "x", NULL
13460 };
13461
994141e6 13462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13465 arg2 = (int) SWIG_AsInt(obj1);
13466 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13467 {
13468 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13469 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
d14a1e28
RD
13470
13471 wxPyEndAllowThreads(__tstate);
13472 if (PyErr_Occurred()) SWIG_fail;
13473 }
15afbcd0 13474 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13475 return resultobj;
13476 fail:
13477 return NULL;
13478}
13479
13480
13481static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13482 PyObject *resultobj;
13483 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13484 int arg2 ;
13485 int result;
d14a1e28 13486 PyObject * obj0 = 0 ;
994141e6 13487 PyObject * obj1 = 0 ;
d14a1e28
RD
13488 char *kwnames[] = {
13489 (char *) "self",(char *) "y", NULL
13490 };
13491
994141e6 13492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13495 arg2 = (int) SWIG_AsInt(obj1);
13496 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13497 {
13498 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13499 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
d14a1e28
RD
13500
13501 wxPyEndAllowThreads(__tstate);
13502 if (PyErr_Occurred()) SWIG_fail;
13503 }
15afbcd0 13504 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13505 return resultobj;
13506 fail:
13507 return NULL;
13508}
13509
13510
13511static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13512 PyObject *resultobj;
13513 wxDC *arg1 = (wxDC *) 0 ;
13514 bool result;
13515 PyObject * obj0 = 0 ;
13516 char *kwnames[] = {
13517 (char *) "self", NULL
13518 };
13519
13520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
15afbcd0
RD
13521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13523 {
13524 PyThreadState* __tstate = wxPyBeginAllowThreads();
13525 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13526
13527 wxPyEndAllowThreads(__tstate);
13528 if (PyErr_Occurred()) SWIG_fail;
13529 }
4f89f6a3
RD
13530 {
13531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13532 }
d14a1e28
RD
13533 return resultobj;
13534 fail:
13535 return NULL;
13536}
13537
13538
13539static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13540 PyObject *resultobj;
13541 wxDC *arg1 = (wxDC *) 0 ;
13542 bool result;
13543 PyObject * obj0 = 0 ;
13544 char *kwnames[] = {
13545 (char *) "self", NULL
13546 };
13547
13548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
15afbcd0
RD
13549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13551 {
13552 PyThreadState* __tstate = wxPyBeginAllowThreads();
13553 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13554
13555 wxPyEndAllowThreads(__tstate);
13556 if (PyErr_Occurred()) SWIG_fail;
13557 }
4f89f6a3
RD
13558 {
13559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13560 }
d14a1e28
RD
13561 return resultobj;
13562 fail:
13563 return NULL;
13564}
13565
13566
13567static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13568 PyObject *resultobj;
13569 wxDC *arg1 = (wxDC *) 0 ;
13570 int result;
13571 PyObject * obj0 = 0 ;
13572 char *kwnames[] = {
13573 (char *) "self", NULL
13574 };
13575
13576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
15afbcd0
RD
13577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13579 {
13580 PyThreadState* __tstate = wxPyBeginAllowThreads();
13581 result = (int)((wxDC const *)arg1)->GetDepth();
13582
13583 wxPyEndAllowThreads(__tstate);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 }
15afbcd0 13586 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13587 return resultobj;
13588 fail:
13589 return NULL;
13590}
13591
13592
13593static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13594 PyObject *resultobj;
13595 wxDC *arg1 = (wxDC *) 0 ;
13596 wxSize result;
13597 PyObject * obj0 = 0 ;
13598 char *kwnames[] = {
13599 (char *) "self", NULL
13600 };
13601
13602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
15afbcd0
RD
13603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13605 {
13606 PyThreadState* __tstate = wxPyBeginAllowThreads();
13607 result = ((wxDC const *)arg1)->GetPPI();
13608
13609 wxPyEndAllowThreads(__tstate);
13610 if (PyErr_Occurred()) SWIG_fail;
13611 }
13612 {
13613 wxSize * resultptr;
13614 resultptr = new wxSize((wxSize &) result);
15afbcd0 13615 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
13616 }
13617 return resultobj;
13618 fail:
13619 return NULL;
13620}
13621
13622
13623static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13624 PyObject *resultobj;
13625 wxDC *arg1 = (wxDC *) 0 ;
13626 bool result;
13627 PyObject * obj0 = 0 ;
13628 char *kwnames[] = {
13629 (char *) "self", NULL
13630 };
13631
13632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
13633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13635 {
13636 PyThreadState* __tstate = wxPyBeginAllowThreads();
13637 result = (bool)((wxDC const *)arg1)->Ok();
13638
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
4f89f6a3
RD
13642 {
13643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13644 }
d14a1e28
RD
13645 return resultobj;
13646 fail:
13647 return NULL;
13648}
13649
13650
13651static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13652 PyObject *resultobj;
13653 wxDC *arg1 = (wxDC *) 0 ;
13654 int result;
13655 PyObject * obj0 = 0 ;
13656 char *kwnames[] = {
13657 (char *) "self", NULL
13658 };
13659
13660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
15afbcd0
RD
13661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13663 {
13664 PyThreadState* __tstate = wxPyBeginAllowThreads();
13665 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13666
13667 wxPyEndAllowThreads(__tstate);
13668 if (PyErr_Occurred()) SWIG_fail;
13669 }
15afbcd0 13670 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13671 return resultobj;
13672 fail:
13673 return NULL;
13674}
13675
13676
13677static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13678 PyObject *resultobj;
13679 wxDC *arg1 = (wxDC *) 0 ;
13680 wxBrush *result;
13681 PyObject * obj0 = 0 ;
13682 char *kwnames[] = {
13683 (char *) "self", NULL
13684 };
13685
13686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
15afbcd0
RD
13687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13689 {
13690 PyThreadState* __tstate = wxPyBeginAllowThreads();
13691 {
13692 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13693 result = (wxBrush *) &_result_ref;
13694 }
13695
13696 wxPyEndAllowThreads(__tstate);
13697 if (PyErr_Occurred()) SWIG_fail;
13698 }
4276dc52
RD
13699 {
13700 wxBrush* resultptr = new wxBrush(*result);
13701 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13702 }
d14a1e28
RD
13703 return resultobj;
13704 fail:
13705 return NULL;
13706}
13707
13708
13709static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13710 PyObject *resultobj;
13711 wxDC *arg1 = (wxDC *) 0 ;
13712 wxBrush *result;
13713 PyObject * obj0 = 0 ;
13714 char *kwnames[] = {
13715 (char *) "self", NULL
13716 };
13717
13718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
15afbcd0
RD
13719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13721 {
13722 PyThreadState* __tstate = wxPyBeginAllowThreads();
13723 {
13724 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13725 result = (wxBrush *) &_result_ref;
13726 }
13727
13728 wxPyEndAllowThreads(__tstate);
13729 if (PyErr_Occurred()) SWIG_fail;
13730 }
4276dc52
RD
13731 {
13732 wxBrush* resultptr = new wxBrush(*result);
13733 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13734 }
d14a1e28
RD
13735 return resultobj;
13736 fail:
13737 return NULL;
13738}
13739
13740
13741static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13742 PyObject *resultobj;
13743 wxDC *arg1 = (wxDC *) 0 ;
13744 wxFont *result;
13745 PyObject * obj0 = 0 ;
13746 char *kwnames[] = {
13747 (char *) "self", NULL
13748 };
13749
13750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
15afbcd0
RD
13751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13753 {
13754 PyThreadState* __tstate = wxPyBeginAllowThreads();
13755 {
13756 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13757 result = (wxFont *) &_result_ref;
13758 }
13759
13760 wxPyEndAllowThreads(__tstate);
13761 if (PyErr_Occurred()) SWIG_fail;
13762 }
4276dc52
RD
13763 {
13764 wxFont* resultptr = new wxFont(*result);
13765 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13766 }
d14a1e28
RD
13767 return resultobj;
13768 fail:
13769 return NULL;
13770}
13771
13772
13773static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13774 PyObject *resultobj;
13775 wxDC *arg1 = (wxDC *) 0 ;
13776 wxPen *result;
13777 PyObject * obj0 = 0 ;
13778 char *kwnames[] = {
13779 (char *) "self", NULL
13780 };
13781
13782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
15afbcd0
RD
13783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13785 {
13786 PyThreadState* __tstate = wxPyBeginAllowThreads();
13787 {
13788 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13789 result = (wxPen *) &_result_ref;
13790 }
13791
13792 wxPyEndAllowThreads(__tstate);
13793 if (PyErr_Occurred()) SWIG_fail;
13794 }
4276dc52
RD
13795 {
13796 wxPen* resultptr = new wxPen(*result);
13797 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13798 }
d14a1e28
RD
13799 return resultobj;
13800 fail:
13801 return NULL;
13802}
13803
13804
13805static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13806 PyObject *resultobj;
13807 wxDC *arg1 = (wxDC *) 0 ;
13808 wxColour *result;
13809 PyObject * obj0 = 0 ;
13810 char *kwnames[] = {
13811 (char *) "self", NULL
13812 };
13813
13814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
15afbcd0
RD
13815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13817 {
13818 PyThreadState* __tstate = wxPyBeginAllowThreads();
13819 {
13820 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13821 result = (wxColour *) &_result_ref;
13822 }
13823
13824 wxPyEndAllowThreads(__tstate);
13825 if (PyErr_Occurred()) SWIG_fail;
13826 }
15afbcd0 13827 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
13828 return resultobj;
13829 fail:
13830 return NULL;
13831}
13832
13833
13834static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13835 PyObject *resultobj;
13836 wxDC *arg1 = (wxDC *) 0 ;
13837 wxColour *result;
13838 PyObject * obj0 = 0 ;
13839 char *kwnames[] = {
13840 (char *) "self", NULL
13841 };
13842
13843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
15afbcd0
RD
13844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13846 {
13847 PyThreadState* __tstate = wxPyBeginAllowThreads();
13848 {
13849 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13850 result = (wxColour *) &_result_ref;
13851 }
13852
13853 wxPyEndAllowThreads(__tstate);
13854 if (PyErr_Occurred()) SWIG_fail;
13855 }
15afbcd0 13856 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
13857 return resultobj;
13858 fail:
13859 return NULL;
13860}
13861
13862
13863static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13864 PyObject *resultobj;
13865 wxDC *arg1 = (wxDC *) 0 ;
13866 wxColour *arg2 = 0 ;
13867 wxColour temp2 ;
13868 PyObject * obj0 = 0 ;
13869 PyObject * obj1 = 0 ;
13870 char *kwnames[] = {
13871 (char *) "self",(char *) "colour", NULL
13872 };
13873
13874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13877 {
13878 arg2 = &temp2;
13879 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13880 }
13881 {
13882 PyThreadState* __tstate = wxPyBeginAllowThreads();
13883 (arg1)->SetTextForeground((wxColour const &)*arg2);
13884
13885 wxPyEndAllowThreads(__tstate);
13886 if (PyErr_Occurred()) SWIG_fail;
13887 }
13888 Py_INCREF(Py_None); resultobj = Py_None;
13889 return resultobj;
13890 fail:
13891 return NULL;
13892}
13893
13894
13895static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13896 PyObject *resultobj;
13897 wxDC *arg1 = (wxDC *) 0 ;
13898 wxColour *arg2 = 0 ;
13899 wxColour temp2 ;
13900 PyObject * obj0 = 0 ;
13901 PyObject * obj1 = 0 ;
13902 char *kwnames[] = {
13903 (char *) "self",(char *) "colour", NULL
13904 };
13905
13906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13909 {
13910 arg2 = &temp2;
13911 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13912 }
13913 {
13914 PyThreadState* __tstate = wxPyBeginAllowThreads();
13915 (arg1)->SetTextBackground((wxColour const &)*arg2);
13916
13917 wxPyEndAllowThreads(__tstate);
13918 if (PyErr_Occurred()) SWIG_fail;
13919 }
13920 Py_INCREF(Py_None); resultobj = Py_None;
13921 return resultobj;
13922 fail:
13923 return NULL;
13924}
13925
13926
13927static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13928 PyObject *resultobj;
13929 wxDC *arg1 = (wxDC *) 0 ;
13930 int result;
13931 PyObject * obj0 = 0 ;
13932 char *kwnames[] = {
13933 (char *) "self", NULL
13934 };
13935
13936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
15afbcd0
RD
13937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13939 {
13940 PyThreadState* __tstate = wxPyBeginAllowThreads();
13941 result = (int)((wxDC const *)arg1)->GetMapMode();
13942
13943 wxPyEndAllowThreads(__tstate);
13944 if (PyErr_Occurred()) SWIG_fail;
13945 }
15afbcd0 13946 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13947 return resultobj;
13948 fail:
13949 return NULL;
13950}
13951
13952
13953static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13954 PyObject *resultobj;
13955 wxDC *arg1 = (wxDC *) 0 ;
13956 int arg2 ;
13957 PyObject * obj0 = 0 ;
994141e6 13958 PyObject * obj1 = 0 ;
d14a1e28
RD
13959 char *kwnames[] = {
13960 (char *) "self",(char *) "mode", NULL
13961 };
13962
994141e6 13963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13966 arg2 = (int) SWIG_AsInt(obj1);
13967 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13968 {
13969 PyThreadState* __tstate = wxPyBeginAllowThreads();
13970 (arg1)->SetMapMode(arg2);
13971
13972 wxPyEndAllowThreads(__tstate);
13973 if (PyErr_Occurred()) SWIG_fail;
13974 }
13975 Py_INCREF(Py_None); resultobj = Py_None;
13976 return resultobj;
13977 fail:
13978 return NULL;
13979}
13980
13981
13982static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13983 PyObject *resultobj;
13984 wxDC *arg1 = (wxDC *) 0 ;
13985 double *arg2 = (double *) 0 ;
13986 double *arg3 = (double *) 0 ;
13987 double temp2 ;
13988 double temp3 ;
13989 PyObject * obj0 = 0 ;
13990 char *kwnames[] = {
13991 (char *) "self", NULL
13992 };
13993
13994 arg2 = &temp2;
13995 arg3 = &temp3;
13996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
15afbcd0
RD
13997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13999 {
14000 PyThreadState* __tstate = wxPyBeginAllowThreads();
14001 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14002
14003 wxPyEndAllowThreads(__tstate);
14004 if (PyErr_Occurred()) SWIG_fail;
14005 }
14006 Py_INCREF(Py_None); resultobj = Py_None;
14007 {
14008 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14009 resultobj = t_output_helper(resultobj,o);
14010 }
14011 {
14012 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14013 resultobj = t_output_helper(resultobj,o);
14014 }
14015 return resultobj;
14016 fail:
14017 return NULL;
14018}
14019
14020
14021static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14022 PyObject *resultobj;
14023 wxDC *arg1 = (wxDC *) 0 ;
14024 double arg2 ;
14025 double arg3 ;
14026 PyObject * obj0 = 0 ;
994141e6
RD
14027 PyObject * obj1 = 0 ;
14028 PyObject * obj2 = 0 ;
d14a1e28
RD
14029 char *kwnames[] = {
14030 (char *) "self",(char *) "x",(char *) "y", NULL
14031 };
14032
994141e6 14033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14036 arg2 = (double) SWIG_AsDouble(obj1);
14037 if (PyErr_Occurred()) SWIG_fail;
14038 arg3 = (double) SWIG_AsDouble(obj2);
14039 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14040 {
14041 PyThreadState* __tstate = wxPyBeginAllowThreads();
14042 (arg1)->SetUserScale(arg2,arg3);
14043
14044 wxPyEndAllowThreads(__tstate);
14045 if (PyErr_Occurred()) SWIG_fail;
14046 }
14047 Py_INCREF(Py_None); resultobj = Py_None;
14048 return resultobj;
14049 fail:
14050 return NULL;
14051}
14052
14053
14054static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14055 PyObject *resultobj;
14056 wxDC *arg1 = (wxDC *) 0 ;
14057 double *arg2 = (double *) 0 ;
14058 double *arg3 = (double *) 0 ;
14059 double temp2 ;
14060 double temp3 ;
14061 PyObject * obj0 = 0 ;
14062 char *kwnames[] = {
14063 (char *) "self", NULL
14064 };
14065
14066 arg2 = &temp2;
14067 arg3 = &temp3;
14068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
15afbcd0
RD
14069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14071 {
14072 PyThreadState* __tstate = wxPyBeginAllowThreads();
14073 (arg1)->GetLogicalScale(arg2,arg3);
14074
14075 wxPyEndAllowThreads(__tstate);
14076 if (PyErr_Occurred()) SWIG_fail;
14077 }
14078 Py_INCREF(Py_None); resultobj = Py_None;
14079 {
14080 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14081 resultobj = t_output_helper(resultobj,o);
14082 }
14083 {
14084 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14085 resultobj = t_output_helper(resultobj,o);
14086 }
14087 return resultobj;
14088 fail:
14089 return NULL;
14090}
14091
14092
14093static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14094 PyObject *resultobj;
14095 wxDC *arg1 = (wxDC *) 0 ;
14096 double arg2 ;
14097 double arg3 ;
14098 PyObject * obj0 = 0 ;
994141e6
RD
14099 PyObject * obj1 = 0 ;
14100 PyObject * obj2 = 0 ;
d14a1e28
RD
14101 char *kwnames[] = {
14102 (char *) "self",(char *) "x",(char *) "y", NULL
14103 };
14104
994141e6 14105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14108 arg2 = (double) SWIG_AsDouble(obj1);
14109 if (PyErr_Occurred()) SWIG_fail;
14110 arg3 = (double) SWIG_AsDouble(obj2);
14111 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14112 {
14113 PyThreadState* __tstate = wxPyBeginAllowThreads();
14114 (arg1)->SetLogicalScale(arg2,arg3);
14115
14116 wxPyEndAllowThreads(__tstate);
14117 if (PyErr_Occurred()) SWIG_fail;
14118 }
14119 Py_INCREF(Py_None); resultobj = Py_None;
14120 return resultobj;
14121 fail:
14122 return NULL;
14123}
14124
14125
322913ce 14126static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14127 PyObject *resultobj;
14128 wxDC *arg1 = (wxDC *) 0 ;
322913ce 14129 wxPoint result;
d14a1e28
RD
14130 PyObject * obj0 = 0 ;
14131 char *kwnames[] = {
14132 (char *) "self", NULL
14133 };
14134
322913ce 14135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
15afbcd0
RD
14136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14138 {
14139 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 14140 result = ((wxDC const *)arg1)->GetLogicalOrigin();
d14a1e28
RD
14141
14142 wxPyEndAllowThreads(__tstate);
14143 if (PyErr_Occurred()) SWIG_fail;
14144 }
d14a1e28 14145 {
322913ce
RD
14146 wxPoint * resultptr;
14147 resultptr = new wxPoint((wxPoint &) result);
15afbcd0 14148 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
14149 }
14150 return resultobj;
14151 fail:
14152 return NULL;
14153}
14154
14155
322913ce 14156static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14157 PyObject *resultobj;
14158 wxDC *arg1 = (wxDC *) 0 ;
322913ce
RD
14159 int *arg2 = (int *) 0 ;
14160 int *arg3 = (int *) 0 ;
14161 int temp2 ;
14162 int temp3 ;
d14a1e28
RD
14163 PyObject * obj0 = 0 ;
14164 char *kwnames[] = {
14165 (char *) "self", NULL
14166 };
14167
322913ce
RD
14168 arg2 = &temp2;
14169 arg3 = &temp3;
14170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
15afbcd0
RD
14171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14173 {
14174 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 14175 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
d14a1e28
RD
14176
14177 wxPyEndAllowThreads(__tstate);
14178 if (PyErr_Occurred()) SWIG_fail;
14179 }
322913ce 14180 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 14181 {
322913ce
RD
14182 PyObject *o = PyInt_FromLong((long) (*arg2));
14183 resultobj = t_output_helper(resultobj,o);
14184 }
14185 {
14186 PyObject *o = PyInt_FromLong((long) (*arg3));
14187 resultobj = t_output_helper(resultobj,o);
d14a1e28
RD
14188 }
14189 return resultobj;
14190 fail:
14191 return NULL;
14192}
14193
14194
14195static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14196 PyObject *resultobj;
14197 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
14198 int arg2 ;
14199 int arg3 ;
d14a1e28 14200 PyObject * obj0 = 0 ;
994141e6
RD
14201 PyObject * obj1 = 0 ;
14202 PyObject * obj2 = 0 ;
d14a1e28
RD
14203 char *kwnames[] = {
14204 (char *) "self",(char *) "x",(char *) "y", NULL
14205 };
14206
994141e6 14207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14210 arg2 = (int) SWIG_AsInt(obj1);
14211 if (PyErr_Occurred()) SWIG_fail;
14212 arg3 = (int) SWIG_AsInt(obj2);
14213 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14214 {
14215 PyThreadState* __tstate = wxPyBeginAllowThreads();
14216 (arg1)->SetLogicalOrigin(arg2,arg3);
14217
14218 wxPyEndAllowThreads(__tstate);
14219 if (PyErr_Occurred()) SWIG_fail;
14220 }
14221 Py_INCREF(Py_None); resultobj = Py_None;
14222 return resultobj;
14223 fail:
14224 return NULL;
14225}
14226
14227
322913ce 14228static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14229 PyObject *resultobj;
14230 wxDC *arg1 = (wxDC *) 0 ;
322913ce 14231 wxPoint result;
d14a1e28
RD
14232 PyObject * obj0 = 0 ;
14233 char *kwnames[] = {
14234 (char *) "self", NULL
14235 };
14236
322913ce 14237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
15afbcd0
RD
14238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14240 {
14241 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 14242 result = ((wxDC const *)arg1)->GetDeviceOrigin();
d14a1e28
RD
14243
14244 wxPyEndAllowThreads(__tstate);
14245 if (PyErr_Occurred()) SWIG_fail;
14246 }
d14a1e28 14247 {
322913ce
RD
14248 wxPoint * resultptr;
14249 resultptr = new wxPoint((wxPoint &) result);
15afbcd0 14250 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
14251 }
14252 return resultobj;
14253 fail:
14254 return NULL;
14255}
14256
14257
322913ce 14258static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14259 PyObject *resultobj;
14260 wxDC *arg1 = (wxDC *) 0 ;
322913ce
RD
14261 int *arg2 = (int *) 0 ;
14262 int *arg3 = (int *) 0 ;
14263 int temp2 ;
14264 int temp3 ;
d14a1e28
RD
14265 PyObject * obj0 = 0 ;
14266 char *kwnames[] = {
14267 (char *) "self", NULL
14268 };
14269
322913ce
RD
14270 arg2 = &temp2;
14271 arg3 = &temp3;
14272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
15afbcd0
RD
14273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14275 {
14276 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 14277 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
d14a1e28
RD
14278
14279 wxPyEndAllowThreads(__tstate);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
322913ce 14282 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 14283 {
322913ce
RD
14284 PyObject *o = PyInt_FromLong((long) (*arg2));
14285 resultobj = t_output_helper(resultobj,o);
14286 }
14287 {
14288 PyObject *o = PyInt_FromLong((long) (*arg3));
14289 resultobj = t_output_helper(resultobj,o);
d14a1e28
RD
14290 }
14291 return resultobj;
14292 fail:
14293 return NULL;
14294}
14295
14296
14297static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14298 PyObject *resultobj;
14299 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
14300 int arg2 ;
14301 int arg3 ;
d14a1e28 14302 PyObject * obj0 = 0 ;
994141e6
RD
14303 PyObject * obj1 = 0 ;
14304 PyObject * obj2 = 0 ;
d14a1e28
RD
14305 char *kwnames[] = {
14306 (char *) "self",(char *) "x",(char *) "y", NULL
14307 };
14308
994141e6 14309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14312 arg2 = (int) SWIG_AsInt(obj1);
14313 if (PyErr_Occurred()) SWIG_fail;
14314 arg3 = (int) SWIG_AsInt(obj2);
14315 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14316 {
14317 PyThreadState* __tstate = wxPyBeginAllowThreads();
14318 (arg1)->SetDeviceOrigin(arg2,arg3);
14319
14320 wxPyEndAllowThreads(__tstate);
14321 if (PyErr_Occurred()) SWIG_fail;
14322 }
14323 Py_INCREF(Py_None); resultobj = Py_None;
14324 return resultobj;
14325 fail:
14326 return NULL;
14327}
14328
14329
14330static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14331 PyObject *resultobj;
14332 wxDC *arg1 = (wxDC *) 0 ;
14333 bool arg2 ;
14334 bool arg3 ;
14335 PyObject * obj0 = 0 ;
14336 PyObject * obj1 = 0 ;
14337 PyObject * obj2 = 0 ;
14338 char *kwnames[] = {
14339 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14340 };
14341
14342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14345 arg2 = (bool) SWIG_AsBool(obj1);
14346 if (PyErr_Occurred()) SWIG_fail;
14347 arg3 = (bool) SWIG_AsBool(obj2);
14348 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14349 {
14350 PyThreadState* __tstate = wxPyBeginAllowThreads();
14351 (arg1)->SetAxisOrientation(arg2,arg3);
14352
14353 wxPyEndAllowThreads(__tstate);
14354 if (PyErr_Occurred()) SWIG_fail;
14355 }
14356 Py_INCREF(Py_None); resultobj = Py_None;
14357 return resultobj;
14358 fail:
14359 return NULL;
14360}
14361
14362
14363static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14364 PyObject *resultobj;
14365 wxDC *arg1 = (wxDC *) 0 ;
14366 int result;
14367 PyObject * obj0 = 0 ;
14368 char *kwnames[] = {
14369 (char *) "self", NULL
14370 };
14371
14372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
15afbcd0
RD
14373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14375 {
14376 PyThreadState* __tstate = wxPyBeginAllowThreads();
14377 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14378
14379 wxPyEndAllowThreads(__tstate);
14380 if (PyErr_Occurred()) SWIG_fail;
14381 }
15afbcd0 14382 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14383 return resultobj;
14384 fail:
14385 return NULL;
14386}
14387
14388
14389static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14390 PyObject *resultobj;
14391 wxDC *arg1 = (wxDC *) 0 ;
14392 int arg2 ;
14393 PyObject * obj0 = 0 ;
994141e6 14394 PyObject * obj1 = 0 ;
d14a1e28
RD
14395 char *kwnames[] = {
14396 (char *) "self",(char *) "function", NULL
14397 };
14398
994141e6 14399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14402 arg2 = (int) SWIG_AsInt(obj1);
14403 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14404 {
14405 PyThreadState* __tstate = wxPyBeginAllowThreads();
14406 (arg1)->SetLogicalFunction(arg2);
14407
14408 wxPyEndAllowThreads(__tstate);
14409 if (PyErr_Occurred()) SWIG_fail;
14410 }
14411 Py_INCREF(Py_None); resultobj = Py_None;
14412 return resultobj;
14413 fail:
14414 return NULL;
14415}
14416
14417
14418static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14419 PyObject *resultobj;
14420 wxDC *arg1 = (wxDC *) 0 ;
14421 bool arg2 ;
14422 PyObject * obj0 = 0 ;
14423 PyObject * obj1 = 0 ;
14424 char *kwnames[] = {
14425 (char *) "self",(char *) "opt", NULL
14426 };
14427
14428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14431 arg2 = (bool) SWIG_AsBool(obj1);
14432 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14433 {
14434 PyThreadState* __tstate = wxPyBeginAllowThreads();
14435 (arg1)->SetOptimization(arg2);
14436
14437 wxPyEndAllowThreads(__tstate);
14438 if (PyErr_Occurred()) SWIG_fail;
14439 }
14440 Py_INCREF(Py_None); resultobj = Py_None;
14441 return resultobj;
14442 fail:
14443 return NULL;
14444}
14445
14446
14447static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14448 PyObject *resultobj;
14449 wxDC *arg1 = (wxDC *) 0 ;
14450 bool result;
14451 PyObject * obj0 = 0 ;
14452 char *kwnames[] = {
14453 (char *) "self", NULL
14454 };
14455
14456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
15afbcd0
RD
14457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14459 {
14460 PyThreadState* __tstate = wxPyBeginAllowThreads();
14461 result = (bool)(arg1)->GetOptimization();
14462
14463 wxPyEndAllowThreads(__tstate);
14464 if (PyErr_Occurred()) SWIG_fail;
14465 }
4f89f6a3
RD
14466 {
14467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14468 }
d14a1e28
RD
14469 return resultobj;
14470 fail:
14471 return NULL;
14472}
14473
14474
14475static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14476 PyObject *resultobj;
14477 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
14478 int arg2 ;
14479 int arg3 ;
d14a1e28 14480 PyObject * obj0 = 0 ;
994141e6
RD
14481 PyObject * obj1 = 0 ;
14482 PyObject * obj2 = 0 ;
d14a1e28
RD
14483 char *kwnames[] = {
14484 (char *) "self",(char *) "x",(char *) "y", NULL
14485 };
14486
994141e6 14487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14490 arg2 = (int) SWIG_AsInt(obj1);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 arg3 = (int) SWIG_AsInt(obj2);
14493 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14494 {
14495 PyThreadState* __tstate = wxPyBeginAllowThreads();
14496 (arg1)->CalcBoundingBox(arg2,arg3);
14497
14498 wxPyEndAllowThreads(__tstate);
14499 if (PyErr_Occurred()) SWIG_fail;
14500 }
14501 Py_INCREF(Py_None); resultobj = Py_None;
14502 return resultobj;
14503 fail:
14504 return NULL;
14505}
14506
14507
14508static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14509 PyObject *resultobj;
14510 wxDC *arg1 = (wxDC *) 0 ;
14511 PyObject * obj0 = 0 ;
14512 char *kwnames[] = {
14513 (char *) "self", NULL
14514 };
14515
14516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15afbcd0
RD
14517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14519 {
14520 PyThreadState* __tstate = wxPyBeginAllowThreads();
14521 (arg1)->ResetBoundingBox();
14522
14523 wxPyEndAllowThreads(__tstate);
14524 if (PyErr_Occurred()) SWIG_fail;
14525 }
14526 Py_INCREF(Py_None); resultobj = Py_None;
14527 return resultobj;
14528 fail:
14529 return NULL;
14530}
14531
14532
14533static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14534 PyObject *resultobj;
14535 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 14536 int result;
d14a1e28
RD
14537 PyObject * obj0 = 0 ;
14538 char *kwnames[] = {
14539 (char *) "self", NULL
14540 };
14541
14542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15afbcd0
RD
14543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14545 {
14546 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 14547 result = (int)((wxDC const *)arg1)->MinX();
d14a1e28
RD
14548
14549 wxPyEndAllowThreads(__tstate);
14550 if (PyErr_Occurred()) SWIG_fail;
14551 }
15afbcd0 14552 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14553 return resultobj;
14554 fail:
14555 return NULL;
14556}
14557
14558
14559static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14560 PyObject *resultobj;
14561 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 14562 int result;
d14a1e28
RD
14563 PyObject * obj0 = 0 ;
14564 char *kwnames[] = {
14565 (char *) "self", NULL
14566 };
14567
14568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15afbcd0
RD
14569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14571 {
14572 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 14573 result = (int)((wxDC const *)arg1)->MaxX();
d14a1e28
RD
14574
14575 wxPyEndAllowThreads(__tstate);
14576 if (PyErr_Occurred()) SWIG_fail;
14577 }
15afbcd0 14578 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14579 return resultobj;
14580 fail:
14581 return NULL;
14582}
14583
14584
14585static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14586 PyObject *resultobj;
14587 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 14588 int result;
d14a1e28
RD
14589 PyObject * obj0 = 0 ;
14590 char *kwnames[] = {
14591 (char *) "self", NULL
14592 };
14593
14594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15afbcd0
RD
14595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14597 {
14598 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 14599 result = (int)((wxDC const *)arg1)->MinY();
d14a1e28
RD
14600
14601 wxPyEndAllowThreads(__tstate);
14602 if (PyErr_Occurred()) SWIG_fail;
14603 }
15afbcd0 14604 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14605 return resultobj;
14606 fail:
14607 return NULL;
14608}
14609
14610
14611static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14612 PyObject *resultobj;
14613 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 14614 int result;
d14a1e28
RD
14615 PyObject * obj0 = 0 ;
14616 char *kwnames[] = {
14617 (char *) "self", NULL
14618 };
14619
14620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15afbcd0
RD
14621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14623 {
14624 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 14625 result = (int)((wxDC const *)arg1)->MaxY();
d14a1e28
RD
14626
14627 wxPyEndAllowThreads(__tstate);
14628 if (PyErr_Occurred()) SWIG_fail;
14629 }
15afbcd0 14630 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14631 return resultobj;
14632 fail:
14633 return NULL;
14634}
14635
14636
14637static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14638 PyObject *resultobj;
14639 wxDC *arg1 = (wxDC *) 0 ;
14640 int *arg2 = (int *) 0 ;
14641 int *arg3 = (int *) 0 ;
14642 int *arg4 = (int *) 0 ;
14643 int *arg5 = (int *) 0 ;
14644 int temp2 ;
14645 int temp3 ;
14646 int temp4 ;
14647 int temp5 ;
14648 PyObject * obj0 = 0 ;
14649 char *kwnames[] = {
14650 (char *) "self", NULL
14651 };
14652
14653 arg2 = &temp2;
14654 arg3 = &temp3;
14655 arg4 = &temp4;
14656 arg5 = &temp5;
14657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15afbcd0
RD
14658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14660 {
14661 PyThreadState* __tstate = wxPyBeginAllowThreads();
14662 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14663
14664 wxPyEndAllowThreads(__tstate);
14665 if (PyErr_Occurred()) SWIG_fail;
14666 }
14667 Py_INCREF(Py_None); resultobj = Py_None;
14668 {
14669 PyObject *o = PyInt_FromLong((long) (*arg2));
14670 resultobj = t_output_helper(resultobj,o);
14671 }
14672 {
14673 PyObject *o = PyInt_FromLong((long) (*arg3));
14674 resultobj = t_output_helper(resultobj,o);
14675 }
14676 {
14677 PyObject *o = PyInt_FromLong((long) (*arg4));
14678 resultobj = t_output_helper(resultobj,o);
14679 }
14680 {
14681 PyObject *o = PyInt_FromLong((long) (*arg5));
14682 resultobj = t_output_helper(resultobj,o);
14683 }
14684 return resultobj;
14685 fail:
14686 return NULL;
14687}
14688
14689
14690static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14691 PyObject *resultobj;
14692 wxDC *arg1 = (wxDC *) 0 ;
14693 PyObject *arg2 = (PyObject *) 0 ;
14694 PyObject *arg3 = (PyObject *) 0 ;
14695 PyObject *arg4 = (PyObject *) 0 ;
14696 PyObject *result;
14697 PyObject * obj0 = 0 ;
14698 PyObject * obj1 = 0 ;
14699 PyObject * obj2 = 0 ;
14700 PyObject * obj3 = 0 ;
14701 char *kwnames[] = {
14702 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14703 };
14704
14705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
14706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14708 arg2 = obj1;
14709 arg3 = obj2;
14710 arg4 = obj3;
14711 {
14712 PyThreadState* __tstate = wxPyBeginAllowThreads();
14713 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14714
14715 wxPyEndAllowThreads(__tstate);
14716 if (PyErr_Occurred()) SWIG_fail;
14717 }
14718 resultobj = result;
14719 return resultobj;
14720 fail:
14721 return NULL;
14722}
14723
14724
14725static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14726 PyObject *resultobj;
14727 wxDC *arg1 = (wxDC *) 0 ;
14728 PyObject *arg2 = (PyObject *) 0 ;
14729 PyObject *arg3 = (PyObject *) 0 ;
14730 PyObject *arg4 = (PyObject *) 0 ;
14731 PyObject *result;
14732 PyObject * obj0 = 0 ;
14733 PyObject * obj1 = 0 ;
14734 PyObject * obj2 = 0 ;
14735 PyObject * obj3 = 0 ;
14736 char *kwnames[] = {
14737 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14738 };
14739
14740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
14741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14743 arg2 = obj1;
14744 arg3 = obj2;
14745 arg4 = obj3;
14746 {
14747 PyThreadState* __tstate = wxPyBeginAllowThreads();
14748 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14749
14750 wxPyEndAllowThreads(__tstate);
14751 if (PyErr_Occurred()) SWIG_fail;
14752 }
14753 resultobj = result;
14754 return resultobj;
14755 fail:
14756 return NULL;
14757}
14758
14759
14760static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14761 PyObject *resultobj;
14762 wxDC *arg1 = (wxDC *) 0 ;
14763 PyObject *arg2 = (PyObject *) 0 ;
14764 PyObject *arg3 = (PyObject *) 0 ;
14765 PyObject *arg4 = (PyObject *) 0 ;
14766 PyObject *result;
14767 PyObject * obj0 = 0 ;
14768 PyObject * obj1 = 0 ;
14769 PyObject * obj2 = 0 ;
14770 PyObject * obj3 = 0 ;
14771 char *kwnames[] = {
14772 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14773 };
14774
14775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
14776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14778 arg2 = obj1;
14779 arg3 = obj2;
14780 arg4 = obj3;
14781 {
14782 PyThreadState* __tstate = wxPyBeginAllowThreads();
14783 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14784
14785 wxPyEndAllowThreads(__tstate);
14786 if (PyErr_Occurred()) SWIG_fail;
14787 }
14788 resultobj = result;
14789 return resultobj;
14790 fail:
14791 return NULL;
14792}
14793
14794
14795static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14796 PyObject *resultobj;
14797 wxDC *arg1 = (wxDC *) 0 ;
14798 PyObject *arg2 = (PyObject *) 0 ;
14799 PyObject *arg3 = (PyObject *) 0 ;
14800 PyObject *arg4 = (PyObject *) 0 ;
14801 PyObject *result;
14802 PyObject * obj0 = 0 ;
14803 PyObject * obj1 = 0 ;
14804 PyObject * obj2 = 0 ;
14805 PyObject * obj3 = 0 ;
14806 char *kwnames[] = {
14807 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14808 };
14809
14810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
14811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14813 arg2 = obj1;
14814 arg3 = obj2;
14815 arg4 = obj3;
14816 {
14817 PyThreadState* __tstate = wxPyBeginAllowThreads();
14818 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14819
14820 wxPyEndAllowThreads(__tstate);
14821 if (PyErr_Occurred()) SWIG_fail;
14822 }
14823 resultobj = result;
14824 return resultobj;
14825 fail:
14826 return NULL;
14827}
14828
14829
14830static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14831 PyObject *resultobj;
14832 wxDC *arg1 = (wxDC *) 0 ;
14833 PyObject *arg2 = (PyObject *) 0 ;
14834 PyObject *arg3 = (PyObject *) 0 ;
14835 PyObject *arg4 = (PyObject *) 0 ;
14836 PyObject *result;
14837 PyObject * obj0 = 0 ;
14838 PyObject * obj1 = 0 ;
14839 PyObject * obj2 = 0 ;
14840 PyObject * obj3 = 0 ;
14841 char *kwnames[] = {
14842 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14843 };
14844
14845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
14846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14848 arg2 = obj1;
14849 arg3 = obj2;
14850 arg4 = obj3;
14851 {
14852 PyThreadState* __tstate = wxPyBeginAllowThreads();
14853 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14854
14855 wxPyEndAllowThreads(__tstate);
14856 if (PyErr_Occurred()) SWIG_fail;
14857 }
14858 resultobj = result;
14859 return resultobj;
14860 fail:
14861 return NULL;
14862}
14863
14864
14865static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14866 PyObject *resultobj;
14867 wxDC *arg1 = (wxDC *) 0 ;
14868 PyObject *arg2 = (PyObject *) 0 ;
14869 PyObject *arg3 = (PyObject *) 0 ;
14870 PyObject *arg4 = (PyObject *) 0 ;
14871 PyObject *arg5 = (PyObject *) 0 ;
14872 PyObject *result;
14873 PyObject * obj0 = 0 ;
14874 PyObject * obj1 = 0 ;
14875 PyObject * obj2 = 0 ;
14876 PyObject * obj3 = 0 ;
14877 PyObject * obj4 = 0 ;
14878 char *kwnames[] = {
14879 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14880 };
14881
14882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
14883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14885 arg2 = obj1;
14886 arg3 = obj2;
14887 arg4 = obj3;
14888 arg5 = obj4;
14889 {
14890 PyThreadState* __tstate = wxPyBeginAllowThreads();
14891 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14892
14893 wxPyEndAllowThreads(__tstate);
14894 if (PyErr_Occurred()) SWIG_fail;
14895 }
14896 resultobj = result;
14897 return resultobj;
14898 fail:
14899 return NULL;
14900}
14901
14902
14903static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14904 PyObject *obj;
14905 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14906 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14907 Py_INCREF(obj);
14908 return Py_BuildValue((char *)"");
14909}
14910static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14911 PyObject *resultobj;
14912 wxMemoryDC *result;
14913 char *kwnames[] = {
14914 NULL
14915 };
14916
14917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14918 {
14919 PyThreadState* __tstate = wxPyBeginAllowThreads();
14920 result = (wxMemoryDC *)new wxMemoryDC();
14921
14922 wxPyEndAllowThreads(__tstate);
14923 if (PyErr_Occurred()) SWIG_fail;
14924 }
15afbcd0 14925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
d14a1e28
RD
14926 return resultobj;
14927 fail:
14928 return NULL;
14929}
14930
14931
14932static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14933 PyObject *resultobj;
14934 wxDC *arg1 = (wxDC *) 0 ;
14935 wxMemoryDC *result;
14936 PyObject * obj0 = 0 ;
14937 char *kwnames[] = {
14938 (char *) "oldDC", NULL
14939 };
14940
14941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
14942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14944 {
14945 PyThreadState* __tstate = wxPyBeginAllowThreads();
14946 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14947
14948 wxPyEndAllowThreads(__tstate);
14949 if (PyErr_Occurred()) SWIG_fail;
14950 }
15afbcd0 14951 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
d14a1e28
RD
14952 return resultobj;
14953 fail:
14954 return NULL;
14955}
14956
14957
14958static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
14959 PyObject *resultobj;
14960 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14961 wxBitmap *arg2 = 0 ;
14962 PyObject * obj0 = 0 ;
14963 PyObject * obj1 = 0 ;
14964 char *kwnames[] = {
14965 (char *) "self",(char *) "bitmap", NULL
14966 };
14967
14968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
14970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14971 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
14972 SWIG_POINTER_EXCEPTION | 0)) == -1)
14973 SWIG_fail;
d14a1e28 14974 if (arg2 == NULL) {
15afbcd0
RD
14975 PyErr_SetString(PyExc_TypeError,"null reference");
14976 SWIG_fail;
d14a1e28
RD
14977 }
14978 {
14979 PyThreadState* __tstate = wxPyBeginAllowThreads();
14980 (arg1)->SelectObject((wxBitmap const &)*arg2);
14981
14982 wxPyEndAllowThreads(__tstate);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 }
14985 Py_INCREF(Py_None); resultobj = Py_None;
14986 return resultobj;
14987 fail:
14988 return NULL;
14989}
14990
14991
14992static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
14993 PyObject *obj;
14994 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14995 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
14996 Py_INCREF(obj);
14997 return Py_BuildValue((char *)"");
14998}
3adfb63b 14999static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
d14a1e28
RD
15000 PyObject *resultobj;
15001 wxDC *arg1 = (wxDC *) 0 ;
15002 wxBitmap *arg2 = 0 ;
15003 wxBufferedDC *result;
15004 PyObject * obj0 = 0 ;
15005 PyObject * obj1 = 0 ;
d14a1e28 15006
3adfb63b 15007 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15afbcd0
RD
15008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15010 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15011 SWIG_POINTER_EXCEPTION | 0)) == -1)
15012 SWIG_fail;
d14a1e28 15013 if (arg2 == NULL) {
15afbcd0
RD
15014 PyErr_SetString(PyExc_TypeError,"null reference");
15015 SWIG_fail;
d14a1e28
RD
15016 }
15017 {
15018 PyThreadState* __tstate = wxPyBeginAllowThreads();
15019 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15020
15021 wxPyEndAllowThreads(__tstate);
15022 if (PyErr_Occurred()) SWIG_fail;
15023 }
15afbcd0 15024 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
d14a1e28
RD
15025 return resultobj;
15026 fail:
15027 return NULL;
15028}
15029
15030
3adfb63b 15031static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
d14a1e28
RD
15032 PyObject *resultobj;
15033 wxDC *arg1 = (wxDC *) 0 ;
15034 wxSize *arg2 = 0 ;
15035 wxBufferedDC *result;
15036 wxSize temp2 ;
15037 PyObject * obj0 = 0 ;
15038 PyObject * obj1 = 0 ;
3adfb63b 15039
e498079e 15040 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15afbcd0
RD
15041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3adfb63b
RD
15043 {
15044 arg2 = &temp2;
15045 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15046 }
3adfb63b
RD
15047 {
15048 PyThreadState* __tstate = wxPyBeginAllowThreads();
e498079e 15049 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
3adfb63b
RD
15050
15051 wxPyEndAllowThreads(__tstate);
15052 if (PyErr_Occurred()) SWIG_fail;
15053 }
15afbcd0 15054 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
3adfb63b
RD
15055 return resultobj;
15056 fail:
15057 return NULL;
15058}
15059
15060
15061static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15062 int argc;
e498079e 15063 PyObject *argv[3];
3adfb63b
RD
15064 int ii;
15065
15066 argc = PyObject_Length(args);
e498079e 15067 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
3adfb63b
RD
15068 argv[ii] = PyTuple_GetItem(args,ii);
15069 }
15070 if (argc == 2) {
15071 int _v;
15072 {
15073 void *ptr;
15afbcd0 15074 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
3adfb63b
RD
15075 _v = 0;
15076 PyErr_Clear();
15077 } else {
15078 _v = 1;
15079 }
15080 }
15081 if (_v) {
15082 {
15083 void *ptr;
15afbcd0 15084 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
3adfb63b
RD
15085 _v = 0;
15086 PyErr_Clear();
15087 } else {
15088 _v = 1;
15089 }
15090 }
15091 if (_v) {
15092 return _wrap_new_BufferedDC__SWIG_0(self,args);
15093 }
15094 }
15095 }
e498079e 15096 if (argc == 2) {
3adfb63b
RD
15097 int _v;
15098 {
15099 void *ptr;
15afbcd0 15100 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
3adfb63b
RD
15101 _v = 0;
15102 PyErr_Clear();
15103 } else {
15104 _v = 1;
15105 }
15106 }
15107 if (_v) {
15108 {
15109 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15110 }
15111 if (_v) {
e498079e 15112 return _wrap_new_BufferedDC__SWIG_1(self,args);
3adfb63b
RD
15113 }
15114 }
15115 }
15116
15117 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15118 return NULL;
15119}
15120
15121
15122static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15123 PyObject *resultobj;
15124 wxDC *arg1 = (wxDC *) 0 ;
15125 wxSize *arg2 = 0 ;
3adfb63b
RD
15126 wxBufferedDC *result;
15127 wxSize temp2 ;
15128 PyObject * obj0 = 0 ;
15129 PyObject * obj1 = 0 ;
d14a1e28 15130
e498079e 15131 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15afbcd0
RD
15132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15134 {
15135 arg2 = &temp2;
15136 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15137 }
15138 {
15139 PyThreadState* __tstate = wxPyBeginAllowThreads();
e498079e 15140 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
d14a1e28
RD
15141
15142 wxPyEndAllowThreads(__tstate);
15143 if (PyErr_Occurred()) SWIG_fail;
15144 }
15afbcd0 15145 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
d14a1e28
RD
15146 return resultobj;
15147 fail:
15148 return NULL;
15149}
15150
15151
e498079e 15152static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15153 PyObject *resultobj;
15154 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15155 PyObject * obj0 = 0 ;
15156 char *kwnames[] = {
15157 (char *) "self", NULL
15158 };
15159
e498079e 15160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15163 {
15164 PyThreadState* __tstate = wxPyBeginAllowThreads();
e498079e 15165 delete arg1;
d14a1e28
RD
15166
15167 wxPyEndAllowThreads(__tstate);
15168 if (PyErr_Occurred()) SWIG_fail;
15169 }
15170 Py_INCREF(Py_None); resultobj = Py_None;
15171 return resultobj;
15172 fail:
15173 return NULL;
15174}
15175
15176
e498079e 15177static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15178 PyObject *resultobj;
e498079e 15179 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
3adfb63b 15180 PyObject * obj0 = 0 ;
e498079e
RD
15181 char *kwnames[] = {
15182 (char *) "self", NULL
15183 };
3adfb63b 15184
e498079e 15185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15afbcd0
RD
15186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3adfb63b
RD
15188 {
15189 PyThreadState* __tstate = wxPyBeginAllowThreads();
e498079e 15190 (arg1)->UnMask();
3adfb63b
RD
15191
15192 wxPyEndAllowThreads(__tstate);
15193 if (PyErr_Occurred()) SWIG_fail;
15194 }
e498079e 15195 Py_INCREF(Py_None); resultobj = Py_None;
3adfb63b
RD
15196 return resultobj;
15197 fail:
15198 return NULL;
15199}
15200
15201
e498079e
RD
15202static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15203 PyObject *obj;
15204 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15205 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15206 Py_INCREF(obj);
15207 return Py_BuildValue((char *)"");
15208}
15209static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
3adfb63b
RD
15210 PyObject *resultobj;
15211 wxWindow *arg1 = (wxWindow *) 0 ;
e498079e
RD
15212 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15213 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
d14a1e28
RD
15214 wxBufferedPaintDC *result;
15215 PyObject * obj0 = 0 ;
15216 PyObject * obj1 = 0 ;
e498079e
RD
15217 char *kwnames[] = {
15218 (char *) "window",(char *) "buffer", NULL
15219 };
d14a1e28 15220
e498079e 15221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15224 if (obj1) {
15afbcd0
RD
15225 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15226 SWIG_POINTER_EXCEPTION | 0)) == -1)
15227 SWIG_fail;
e498079e 15228 if (arg2 == NULL) {
15afbcd0
RD
15229 PyErr_SetString(PyExc_TypeError,"null reference");
15230 SWIG_fail;
d14a1e28
RD
15231 }
15232 }
15233 {
15234 PyThreadState* __tstate = wxPyBeginAllowThreads();
e498079e 15235 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
d14a1e28
RD
15236
15237 wxPyEndAllowThreads(__tstate);
15238 if (PyErr_Occurred()) SWIG_fail;
15239 }
15afbcd0 15240 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
d14a1e28
RD
15241 return resultobj;
15242 fail:
15243 return NULL;
15244}
15245
15246
15247static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15248 PyObject *obj;
15249 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15250 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15251 Py_INCREF(obj);
15252 return Py_BuildValue((char *)"");
15253}
15254static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15255 PyObject *resultobj;
15256 wxScreenDC *result;
15257 char *kwnames[] = {
15258 NULL
15259 };
15260
15261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15262 {
15263 PyThreadState* __tstate = wxPyBeginAllowThreads();
15264 result = (wxScreenDC *)new wxScreenDC();
15265
15266 wxPyEndAllowThreads(__tstate);
15267 if (PyErr_Occurred()) SWIG_fail;
15268 }
15afbcd0 15269 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
d14a1e28
RD
15270 return resultobj;
15271 fail:
15272 return NULL;
15273}
15274
15275
15276static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15277 PyObject *resultobj;
15278 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15279 wxWindow *arg2 = (wxWindow *) 0 ;
15280 bool result;
15281 PyObject * obj0 = 0 ;
15282 PyObject * obj1 = 0 ;
15283 char *kwnames[] = {
15284 (char *) "self",(char *) "window", NULL
15285 };
15286
15287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15290 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15292 {
15293 PyThreadState* __tstate = wxPyBeginAllowThreads();
15294 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15295
15296 wxPyEndAllowThreads(__tstate);
15297 if (PyErr_Occurred()) SWIG_fail;
15298 }
4f89f6a3
RD
15299 {
15300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15301 }
d14a1e28
RD
15302 return resultobj;
15303 fail:
15304 return NULL;
15305}
15306
15307
15308static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15309 PyObject *resultobj;
15310 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15311 wxRect *arg2 = (wxRect *) NULL ;
15312 bool result;
15313 PyObject * obj0 = 0 ;
15314 PyObject * obj1 = 0 ;
15315 char *kwnames[] = {
15316 (char *) "self",(char *) "rect", NULL
15317 };
15318
15319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15322 if (obj1) {
15afbcd0
RD
15323 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15325 }
15326 {
15327 PyThreadState* __tstate = wxPyBeginAllowThreads();
15328 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15329
15330 wxPyEndAllowThreads(__tstate);
15331 if (PyErr_Occurred()) SWIG_fail;
15332 }
4f89f6a3
RD
15333 {
15334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15335 }
d14a1e28
RD
15336 return resultobj;
15337 fail:
15338 return NULL;
15339}
15340
15341
15342static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15343 PyObject *resultobj;
15344 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15345 bool result;
15346 PyObject * obj0 = 0 ;
15347 char *kwnames[] = {
15348 (char *) "self", NULL
15349 };
15350
15351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15afbcd0
RD
15352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15354 {
15355 PyThreadState* __tstate = wxPyBeginAllowThreads();
15356 result = (bool)(arg1)->EndDrawingOnTop();
15357
15358 wxPyEndAllowThreads(__tstate);
15359 if (PyErr_Occurred()) SWIG_fail;
15360 }
4f89f6a3
RD
15361 {
15362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15363 }
d14a1e28
RD
15364 return resultobj;
15365 fail:
15366 return NULL;
15367}
15368
15369
15370static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15371 PyObject *obj;
15372 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15373 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15374 Py_INCREF(obj);
15375 return Py_BuildValue((char *)"");
15376}
15377static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15378 PyObject *resultobj;
15379 wxWindow *arg1 = (wxWindow *) 0 ;
15380 wxClientDC *result;
15381 PyObject * obj0 = 0 ;
15382 char *kwnames[] = {
15383 (char *) "win", NULL
15384 };
15385
15386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15389 {
15390 PyThreadState* __tstate = wxPyBeginAllowThreads();
15391 result = (wxClientDC *)new wxClientDC(arg1);
15392
15393 wxPyEndAllowThreads(__tstate);
15394 if (PyErr_Occurred()) SWIG_fail;
15395 }
15afbcd0 15396 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
d14a1e28
RD
15397 return resultobj;
15398 fail:
15399 return NULL;
15400}
15401
15402
15403static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15404 PyObject *obj;
15405 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15406 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15407 Py_INCREF(obj);
15408 return Py_BuildValue((char *)"");
15409}
15410static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15411 PyObject *resultobj;
15412 wxWindow *arg1 = (wxWindow *) 0 ;
15413 wxPaintDC *result;
15414 PyObject * obj0 = 0 ;
15415 char *kwnames[] = {
15416 (char *) "win", NULL
15417 };
15418
15419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15422 {
15423 PyThreadState* __tstate = wxPyBeginAllowThreads();
15424 result = (wxPaintDC *)new wxPaintDC(arg1);
15425
15426 wxPyEndAllowThreads(__tstate);
15427 if (PyErr_Occurred()) SWIG_fail;
15428 }
15afbcd0 15429 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
d14a1e28
RD
15430 return resultobj;
15431 fail:
15432 return NULL;
15433}
15434
15435
15436static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15437 PyObject *obj;
15438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15439 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15440 Py_INCREF(obj);
15441 return Py_BuildValue((char *)"");
15442}
15443static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15444 PyObject *resultobj;
15445 wxWindow *arg1 = (wxWindow *) 0 ;
15446 wxWindowDC *result;
15447 PyObject * obj0 = 0 ;
15448 char *kwnames[] = {
15449 (char *) "win", NULL
15450 };
15451
15452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15455 {
15456 PyThreadState* __tstate = wxPyBeginAllowThreads();
15457 result = (wxWindowDC *)new wxWindowDC(arg1);
15458
15459 wxPyEndAllowThreads(__tstate);
15460 if (PyErr_Occurred()) SWIG_fail;
15461 }
15afbcd0 15462 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
d14a1e28
RD
15463 return resultobj;
15464 fail:
15465 return NULL;
15466}
15467
15468
15469static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15470 PyObject *obj;
15471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15472 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15473 Py_INCREF(obj);
15474 return Py_BuildValue((char *)"");
15475}
15476static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15477 PyObject *resultobj;
15478 wxDC *arg1 = 0 ;
15479 bool arg2 ;
15480 wxMirrorDC *result;
15481 PyObject * obj0 = 0 ;
15482 PyObject * obj1 = 0 ;
15483 char *kwnames[] = {
15484 (char *) "dc",(char *) "mirror", NULL
15485 };
15486
15487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15489 SWIG_POINTER_EXCEPTION | 0)) == -1)
15490 SWIG_fail;
d14a1e28 15491 if (arg1 == NULL) {
15afbcd0
RD
15492 PyErr_SetString(PyExc_TypeError,"null reference");
15493 SWIG_fail;
a41e16b6 15494 }
15afbcd0
RD
15495 arg2 = (bool) SWIG_AsBool(obj1);
15496 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
15497 {
15498 PyThreadState* __tstate = wxPyBeginAllowThreads();
15499 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15500
15501 wxPyEndAllowThreads(__tstate);
15502 if (PyErr_Occurred()) SWIG_fail;
15503 }
15afbcd0 15504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
d14a1e28
RD
15505 return resultobj;
15506 fail:
15507 return NULL;
15508}
15509
15510
15511static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15512 PyObject *obj;
15513 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15514 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15515 Py_INCREF(obj);
15516 return Py_BuildValue((char *)"");
15517}
15518static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15519 PyObject *resultobj;
15520 wxPrintData *arg1 = 0 ;
15521 wxPostScriptDC *result;
15522 PyObject * obj0 = 0 ;
15523 char *kwnames[] = {
15524 (char *) "printData", NULL
15525 };
15526
15527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15529 SWIG_POINTER_EXCEPTION | 0)) == -1)
15530 SWIG_fail;
d14a1e28 15531 if (arg1 == NULL) {
15afbcd0
RD
15532 PyErr_SetString(PyExc_TypeError,"null reference");
15533 SWIG_fail;
d14a1e28
RD
15534 }
15535 {
15536 PyThreadState* __tstate = wxPyBeginAllowThreads();
15537 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15538
15539 wxPyEndAllowThreads(__tstate);
15540 if (PyErr_Occurred()) SWIG_fail;
15541 }
15afbcd0 15542 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
d14a1e28
RD
15543 return resultobj;
15544 fail:
15545 return NULL;
15546}
15547
15548
15549static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15550 PyObject *resultobj;
15551 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15552 wxPrintData *result;
15553 PyObject * obj0 = 0 ;
15554 char *kwnames[] = {
15555 (char *) "self", NULL
15556 };
15557
15558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15afbcd0
RD
15559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15561 {
15562 PyThreadState* __tstate = wxPyBeginAllowThreads();
15563 {
15564 wxPrintData &_result_ref = (arg1)->GetPrintData();
15565 result = (wxPrintData *) &_result_ref;
15566 }
15567
15568 wxPyEndAllowThreads(__tstate);
15569 if (PyErr_Occurred()) SWIG_fail;
15570 }
15afbcd0 15571 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
d14a1e28
RD
15572 return resultobj;
15573 fail:
15574 return NULL;
15575}
15576
15577
15578static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15579 PyObject *resultobj;
15580 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15581 wxPrintData *arg2 = 0 ;
15582 PyObject * obj0 = 0 ;
15583 PyObject * obj1 = 0 ;
15584 char *kwnames[] = {
15585 (char *) "self",(char *) "data", NULL
15586 };
15587
15588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15591 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15592 SWIG_POINTER_EXCEPTION | 0)) == -1)
15593 SWIG_fail;
d14a1e28 15594 if (arg2 == NULL) {
15afbcd0
RD
15595 PyErr_SetString(PyExc_TypeError,"null reference");
15596 SWIG_fail;
d14a1e28
RD
15597 }
15598 {
15599 PyThreadState* __tstate = wxPyBeginAllowThreads();
15600 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15601
15602 wxPyEndAllowThreads(__tstate);
15603 if (PyErr_Occurred()) SWIG_fail;
15604 }
15605 Py_INCREF(Py_None); resultobj = Py_None;
15606 return resultobj;
15607 fail:
15608 return NULL;
15609}
15610
15611
15612static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15613 PyObject *resultobj;
15614 int arg1 ;
994141e6 15615 PyObject * obj0 = 0 ;
d14a1e28
RD
15616 char *kwnames[] = {
15617 (char *) "ppi", NULL
15618 };
15619
994141e6 15620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15afbcd0
RD
15621 arg1 = (int) SWIG_AsInt(obj0);
15622 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
15623 {
15624 PyThreadState* __tstate = wxPyBeginAllowThreads();
15625 wxPostScriptDC::SetResolution(arg1);
15626
15627 wxPyEndAllowThreads(__tstate);
15628 if (PyErr_Occurred()) SWIG_fail;
15629 }
15630 Py_INCREF(Py_None); resultobj = Py_None;
15631 return resultobj;
15632 fail:
15633 return NULL;
15634}
15635
15636
15637static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15638 PyObject *resultobj;
15639 int result;
15640 char *kwnames[] = {
15641 NULL
15642 };
15643
15644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15645 {
15646 PyThreadState* __tstate = wxPyBeginAllowThreads();
15647 result = (int)wxPostScriptDC::GetResolution();
15648
15649 wxPyEndAllowThreads(__tstate);
15650 if (PyErr_Occurred()) SWIG_fail;
15651 }
15afbcd0 15652 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
15653 return resultobj;
15654 fail:
15655 return NULL;
15656}
15657
15658
15659static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15660 PyObject *obj;
15661 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15662 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15663 Py_INCREF(obj);
15664 return Py_BuildValue((char *)"");
15665}
15666static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15667 PyObject *resultobj;
15668 wxString const &arg1_defvalue = wxPyEmptyString ;
15669 wxString *arg1 = (wxString *) &arg1_defvalue ;
15670 wxMetaFile *result;
e811c8ce 15671 bool temp1 = False ;
d14a1e28
RD
15672 PyObject * obj0 = 0 ;
15673 char *kwnames[] = {
15674 (char *) "filename", NULL
15675 };
15676
15677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15678 if (obj0) {
15679 {
15680 arg1 = wxString_in_helper(obj0);
15681 if (arg1 == NULL) SWIG_fail;
e811c8ce 15682 temp1 = True;
d14a1e28
RD
15683 }
15684 }
15685 {
15686 PyThreadState* __tstate = wxPyBeginAllowThreads();
15687 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15688
15689 wxPyEndAllowThreads(__tstate);
15690 if (PyErr_Occurred()) SWIG_fail;
15691 }
15afbcd0 15692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
d14a1e28
RD
15693 {
15694 if (temp1)
15695 delete arg1;
15696 }
15697 return resultobj;
15698 fail:
15699 {
15700 if (temp1)
15701 delete arg1;
15702 }
15703 return NULL;
15704}
15705
15706
15707static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15708 PyObject *obj;
15709 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15710 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15711 Py_INCREF(obj);
15712 return Py_BuildValue((char *)"");
15713}
15714static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15715 PyObject *resultobj;
15716 wxString const &arg1_defvalue = wxPyEmptyString ;
15717 wxString *arg1 = (wxString *) &arg1_defvalue ;
15718 int arg2 = (int) 0 ;
15719 int arg3 = (int) 0 ;
15720 wxString const &arg4_defvalue = wxPyEmptyString ;
15721 wxString *arg4 = (wxString *) &arg4_defvalue ;
15722 wxMetaFileDC *result;
e811c8ce
RD
15723 bool temp1 = False ;
15724 bool temp4 = False ;
d14a1e28 15725 PyObject * obj0 = 0 ;
994141e6
RD
15726 PyObject * obj1 = 0 ;
15727 PyObject * obj2 = 0 ;
d14a1e28
RD
15728 PyObject * obj3 = 0 ;
15729 char *kwnames[] = {
15730 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15731 };
15732
994141e6 15733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
15734 if (obj0) {
15735 {
15736 arg1 = wxString_in_helper(obj0);
15737 if (arg1 == NULL) SWIG_fail;
e811c8ce 15738 temp1 = True;
d14a1e28
RD
15739 }
15740 }
994141e6 15741 if (obj1) {
15afbcd0
RD
15742 arg2 = (int) SWIG_AsInt(obj1);
15743 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
15744 }
15745 if (obj2) {
15afbcd0
RD
15746 arg3 = (int) SWIG_AsInt(obj2);
15747 if (PyErr_Occurred()) SWIG_fail;
994141e6 15748 }
d14a1e28
RD
15749 if (obj3) {
15750 {
15751 arg4 = wxString_in_helper(obj3);
15752 if (arg4 == NULL) SWIG_fail;
e811c8ce 15753 temp4 = True;
d14a1e28
RD
15754 }
15755 }
15756 {
15757 PyThreadState* __tstate = wxPyBeginAllowThreads();
15758 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15759
15760 wxPyEndAllowThreads(__tstate);
15761 if (PyErr_Occurred()) SWIG_fail;
15762 }
15afbcd0 15763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
d14a1e28
RD
15764 {
15765 if (temp1)
15766 delete arg1;
15767 }
15768 {
15769 if (temp4)
15770 delete arg4;
15771 }
15772 return resultobj;
15773 fail:
15774 {
15775 if (temp1)
15776 delete arg1;
15777 }
15778 {
15779 if (temp4)
15780 delete arg4;
15781 }
15782 return NULL;
15783}
15784
15785
15786static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15787 PyObject *obj;
15788 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15789 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15790 Py_INCREF(obj);
15791 return Py_BuildValue((char *)"");
15792}
15793static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15794 PyObject *resultobj;
15795 wxPrintData *arg1 = 0 ;
15796 wxPrinterDC *result;
15797 PyObject * obj0 = 0 ;
15798 char *kwnames[] = {
15799 (char *) "printData", NULL
15800 };
15801
15802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15804 SWIG_POINTER_EXCEPTION | 0)) == -1)
15805 SWIG_fail;
d14a1e28 15806 if (arg1 == NULL) {
15afbcd0
RD
15807 PyErr_SetString(PyExc_TypeError,"null reference");
15808 SWIG_fail;
d14a1e28
RD
15809 }
15810 {
15811 PyThreadState* __tstate = wxPyBeginAllowThreads();
15812 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15813
15814 wxPyEndAllowThreads(__tstate);
15815 if (PyErr_Occurred()) SWIG_fail;
15816 }
15afbcd0 15817 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
d14a1e28
RD
15818 return resultobj;
15819 fail:
15820 return NULL;
15821}
15822
15823
15824static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15825 PyObject *obj;
15826 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15827 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15828 Py_INCREF(obj);
15829 return Py_BuildValue((char *)"");
15830}
15831static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15832 PyObject *resultobj;
15833 int arg1 ;
15834 int arg2 ;
e811c8ce 15835 int arg3 = (int) True ;
d14a1e28
RD
15836 int arg4 = (int) 1 ;
15837 wxImageList *result;
994141e6
RD
15838 PyObject * obj0 = 0 ;
15839 PyObject * obj1 = 0 ;
15840 PyObject * obj2 = 0 ;
15841 PyObject * obj3 = 0 ;
d14a1e28
RD
15842 char *kwnames[] = {
15843 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15844 };
15845
994141e6 15846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
15847 arg1 = (int) SWIG_AsInt(obj0);
15848 if (PyErr_Occurred()) SWIG_fail;
15849 arg2 = (int) SWIG_AsInt(obj1);
15850 if (PyErr_Occurred()) SWIG_fail;
994141e6 15851 if (obj2) {
15afbcd0
RD
15852 arg3 = (int) SWIG_AsInt(obj2);
15853 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
15854 }
15855 if (obj3) {
15afbcd0
RD
15856 arg4 = (int) SWIG_AsInt(obj3);
15857 if (PyErr_Occurred()) SWIG_fail;
994141e6 15858 }
d14a1e28
RD
15859 {
15860 PyThreadState* __tstate = wxPyBeginAllowThreads();
15861 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
15862
15863 wxPyEndAllowThreads(__tstate);
15864 if (PyErr_Occurred()) SWIG_fail;
15865 }
15866 {
15867 resultobj = wxPyMake_wxObject(result);
15868 }
15869 return resultobj;
15870 fail:
15871 return NULL;
15872}
15873
15874
15875static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15876 PyObject *resultobj;
15877 wxImageList *arg1 = (wxImageList *) 0 ;
15878 PyObject * obj0 = 0 ;
15879 char *kwnames[] = {
15880 (char *) "self", NULL
15881 };
15882
15883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
15afbcd0
RD
15884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15886 {
15887 PyThreadState* __tstate = wxPyBeginAllowThreads();
15888 delete arg1;
15889
15890 wxPyEndAllowThreads(__tstate);
15891 if (PyErr_Occurred()) SWIG_fail;
15892 }
15893 Py_INCREF(Py_None); resultobj = Py_None;
15894 return resultobj;
15895 fail:
15896 return NULL;
15897}
15898
15899
15900static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
15901 PyObject *resultobj;
15902 wxImageList *arg1 = (wxImageList *) 0 ;
15903 wxBitmap *arg2 = 0 ;
15904 wxBitmap const &arg3_defvalue = wxNullBitmap ;
15905 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
15906 int result;
15907 PyObject * obj0 = 0 ;
15908 PyObject * obj1 = 0 ;
15909 PyObject * obj2 = 0 ;
15910 char *kwnames[] = {
15911 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
15912 };
15913
15914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
15915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15917 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15918 SWIG_POINTER_EXCEPTION | 0)) == -1)
15919 SWIG_fail;
d14a1e28 15920 if (arg2 == NULL) {
15afbcd0
RD
15921 PyErr_SetString(PyExc_TypeError,"null reference");
15922 SWIG_fail;
d14a1e28
RD
15923 }
15924 if (obj2) {
15afbcd0
RD
15925 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
15926 SWIG_POINTER_EXCEPTION | 0)) == -1)
15927 SWIG_fail;
d14a1e28 15928 if (arg3 == NULL) {
15afbcd0
RD
15929 PyErr_SetString(PyExc_TypeError,"null reference");
15930 SWIG_fail;
d14a1e28
RD
15931 }
15932 }
15933 {
15934 PyThreadState* __tstate = wxPyBeginAllowThreads();
15935 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
15936
15937 wxPyEndAllowThreads(__tstate);
15938 if (PyErr_Occurred()) SWIG_fail;
15939 }
15afbcd0 15940 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
15941 return resultobj;
15942 fail:
15943 return NULL;
15944}
15945
15946
15947static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15948 PyObject *resultobj;
15949 wxImageList *arg1 = (wxImageList *) 0 ;
15950 wxBitmap *arg2 = 0 ;
15951 wxColour *arg3 = 0 ;
15952 int result;
15953 wxColour temp3 ;
15954 PyObject * obj0 = 0 ;
15955 PyObject * obj1 = 0 ;
15956 PyObject * obj2 = 0 ;
15957 char *kwnames[] = {
15958 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
15959 };
15960
15961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
15962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15964 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15965 SWIG_POINTER_EXCEPTION | 0)) == -1)
15966 SWIG_fail;
d14a1e28 15967 if (arg2 == NULL) {
15afbcd0
RD
15968 PyErr_SetString(PyExc_TypeError,"null reference");
15969 SWIG_fail;
d14a1e28
RD
15970 }
15971 {
15972 arg3 = &temp3;
15973 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15974 }
15975 {
15976 PyThreadState* __tstate = wxPyBeginAllowThreads();
15977 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
15978
15979 wxPyEndAllowThreads(__tstate);
15980 if (PyErr_Occurred()) SWIG_fail;
15981 }
15afbcd0 15982 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
15983 return resultobj;
15984 fail:
15985 return NULL;
15986}
15987
15988
15989static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
15990 PyObject *resultobj;
15991 wxImageList *arg1 = (wxImageList *) 0 ;
15992 wxIcon *arg2 = 0 ;
15993 int result;
15994 PyObject * obj0 = 0 ;
15995 PyObject * obj1 = 0 ;
15996 char *kwnames[] = {
15997 (char *) "self",(char *) "icon", NULL
15998 };
15999
16000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16003 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16004 SWIG_POINTER_EXCEPTION | 0)) == -1)
16005 SWIG_fail;
d14a1e28 16006 if (arg2 == NULL) {
15afbcd0
RD
16007 PyErr_SetString(PyExc_TypeError,"null reference");
16008 SWIG_fail;
d14a1e28
RD
16009 }
16010 {
16011 PyThreadState* __tstate = wxPyBeginAllowThreads();
16012 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16013
16014 wxPyEndAllowThreads(__tstate);
16015 if (PyErr_Occurred()) SWIG_fail;
16016 }
15afbcd0 16017 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16018 return resultobj;
16019 fail:
16020 return NULL;
16021}
16022
16023
16024static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16025 PyObject *resultobj;
16026 wxImageList *arg1 = (wxImageList *) 0 ;
16027 int arg2 ;
16028 wxBitmap *arg3 = 0 ;
16029 bool result;
16030 PyObject * obj0 = 0 ;
994141e6 16031 PyObject * obj1 = 0 ;
d14a1e28
RD
16032 PyObject * obj2 = 0 ;
16033 char *kwnames[] = {
16034 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16035 };
16036
994141e6 16037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
16038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16040 arg2 = (int) SWIG_AsInt(obj1);
16041 if (PyErr_Occurred()) SWIG_fail;
16042 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16043 SWIG_POINTER_EXCEPTION | 0)) == -1)
16044 SWIG_fail;
d14a1e28 16045 if (arg3 == NULL) {
15afbcd0
RD
16046 PyErr_SetString(PyExc_TypeError,"null reference");
16047 SWIG_fail;
d14a1e28
RD
16048 }
16049 {
16050 PyThreadState* __tstate = wxPyBeginAllowThreads();
16051 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16052
16053 wxPyEndAllowThreads(__tstate);
16054 if (PyErr_Occurred()) SWIG_fail;
16055 }
4f89f6a3
RD
16056 {
16057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16058 }
d14a1e28
RD
16059 return resultobj;
16060 fail:
16061 return NULL;
16062}
16063
16064
16065static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16066 PyObject *resultobj;
16067 wxImageList *arg1 = (wxImageList *) 0 ;
16068 int arg2 ;
16069 wxDC *arg3 = 0 ;
16070 int arg4 ;
16071 int arg5 ;
16072 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
e811c8ce 16073 bool arg7 = (bool) (bool)False ;
d14a1e28
RD
16074 bool result;
16075 PyObject * obj0 = 0 ;
994141e6 16076 PyObject * obj1 = 0 ;
d14a1e28 16077 PyObject * obj2 = 0 ;
994141e6
RD
16078 PyObject * obj3 = 0 ;
16079 PyObject * obj4 = 0 ;
16080 PyObject * obj5 = 0 ;
d14a1e28
RD
16081 PyObject * obj6 = 0 ;
16082 char *kwnames[] = {
16083 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16084 };
16085
994141e6 16086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15afbcd0
RD
16087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16089 arg2 = (int) SWIG_AsInt(obj1);
16090 if (PyErr_Occurred()) SWIG_fail;
16091 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16092 SWIG_POINTER_EXCEPTION | 0)) == -1)
16093 SWIG_fail;
d14a1e28 16094 if (arg3 == NULL) {
15afbcd0
RD
16095 PyErr_SetString(PyExc_TypeError,"null reference");
16096 SWIG_fail;
994141e6 16097 }
15afbcd0
RD
16098 arg4 = (int) SWIG_AsInt(obj3);
16099 if (PyErr_Occurred()) SWIG_fail;
16100 arg5 = (int) SWIG_AsInt(obj4);
16101 if (PyErr_Occurred()) SWIG_fail;
994141e6 16102 if (obj5) {
15afbcd0
RD
16103 arg6 = (int) SWIG_AsInt(obj5);
16104 if (PyErr_Occurred()) SWIG_fail;
994141e6 16105 }
d14a1e28 16106 if (obj6) {
15afbcd0
RD
16107 arg7 = (bool const) SWIG_AsBool(obj6);
16108 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16109 }
16110 {
16111 PyThreadState* __tstate = wxPyBeginAllowThreads();
16112 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16113
16114 wxPyEndAllowThreads(__tstate);
16115 if (PyErr_Occurred()) SWIG_fail;
16116 }
4f89f6a3
RD
16117 {
16118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16119 }
d14a1e28
RD
16120 return resultobj;
16121 fail:
16122 return NULL;
16123}
16124
16125
16126static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16127 PyObject *resultobj;
16128 wxImageList *arg1 = (wxImageList *) 0 ;
16129 int result;
16130 PyObject * obj0 = 0 ;
16131 char *kwnames[] = {
16132 (char *) "self", NULL
16133 };
16134
16135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
16136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16138 {
16139 PyThreadState* __tstate = wxPyBeginAllowThreads();
16140 result = (int)(arg1)->GetImageCount();
16141
16142 wxPyEndAllowThreads(__tstate);
16143 if (PyErr_Occurred()) SWIG_fail;
16144 }
15afbcd0 16145 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16146 return resultobj;
16147 fail:
16148 return NULL;
16149}
16150
16151
16152static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16153 PyObject *resultobj;
16154 wxImageList *arg1 = (wxImageList *) 0 ;
16155 int arg2 ;
16156 bool result;
16157 PyObject * obj0 = 0 ;
994141e6 16158 PyObject * obj1 = 0 ;
d14a1e28
RD
16159 char *kwnames[] = {
16160 (char *) "self",(char *) "index", NULL
16161 };
16162
994141e6 16163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16166 arg2 = (int) SWIG_AsInt(obj1);
16167 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16168 {
16169 PyThreadState* __tstate = wxPyBeginAllowThreads();
16170 result = (bool)(arg1)->Remove(arg2);
16171
16172 wxPyEndAllowThreads(__tstate);
16173 if (PyErr_Occurred()) SWIG_fail;
16174 }
4f89f6a3
RD
16175 {
16176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16177 }
d14a1e28
RD
16178 return resultobj;
16179 fail:
16180 return NULL;
16181}
16182
16183
16184static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16185 PyObject *resultobj;
16186 wxImageList *arg1 = (wxImageList *) 0 ;
16187 bool result;
16188 PyObject * obj0 = 0 ;
16189 char *kwnames[] = {
16190 (char *) "self", NULL
16191 };
16192
16193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
15afbcd0
RD
16194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16196 {
16197 PyThreadState* __tstate = wxPyBeginAllowThreads();
16198 result = (bool)(arg1)->RemoveAll();
16199
16200 wxPyEndAllowThreads(__tstate);
16201 if (PyErr_Occurred()) SWIG_fail;
16202 }
4f89f6a3
RD
16203 {
16204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16205 }
d14a1e28
RD
16206 return resultobj;
16207 fail:
16208 return NULL;
16209}
16210
16211
16212static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16213 PyObject *resultobj;
16214 wxImageList *arg1 = (wxImageList *) 0 ;
16215 int arg2 ;
16216 int *arg3 = 0 ;
16217 int *arg4 = 0 ;
16218 int temp3 ;
16219 int temp4 ;
16220 PyObject * obj0 = 0 ;
994141e6 16221 PyObject * obj1 = 0 ;
d14a1e28
RD
16222 char *kwnames[] = {
16223 (char *) "self",(char *) "index", NULL
16224 };
16225
16226 arg3 = &temp3;
16227 arg4 = &temp4;
994141e6 16228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16231 arg2 = (int) SWIG_AsInt(obj1);
16232 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16233 {
16234 PyThreadState* __tstate = wxPyBeginAllowThreads();
16235 (arg1)->GetSize(arg2,*arg3,*arg4);
16236
16237 wxPyEndAllowThreads(__tstate);
16238 if (PyErr_Occurred()) SWIG_fail;
16239 }
16240 Py_INCREF(Py_None); resultobj = Py_None;
16241 {
16242 PyObject *o = PyInt_FromLong((long) (*arg3));
16243 resultobj = t_output_helper(resultobj,o);
16244 }
16245 {
16246 PyObject *o = PyInt_FromLong((long) (*arg4));
16247 resultobj = t_output_helper(resultobj,o);
16248 }
16249 return resultobj;
16250 fail:
16251 return NULL;
16252}
16253
16254
16255static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16256 PyObject *obj;
16257 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16258 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16259 Py_INCREF(obj);
16260 return Py_BuildValue((char *)"");
16261}
994141e6
RD
16262static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16263 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16264 return 1;
d14a1e28
RD
16265}
16266
16267
994141e6
RD
16268static PyObject *_wrap_NORMAL_FONT_get() {
16269 PyObject *pyobj;
d14a1e28 16270
15afbcd0 16271 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
994141e6 16272 return pyobj;
d14a1e28
RD
16273}
16274
16275
994141e6
RD
16276static int _wrap_SMALL_FONT_set(PyObject *_val) {
16277 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16278 return 1;
d14a1e28
RD
16279}
16280
16281
994141e6
RD
16282static PyObject *_wrap_SMALL_FONT_get() {
16283 PyObject *pyobj;
d14a1e28 16284
15afbcd0 16285 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
994141e6 16286 return pyobj;
d14a1e28
RD
16287}
16288
16289
994141e6
RD
16290static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16291 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16292 return 1;
d14a1e28 16293}
994141e6
RD
16294
16295
16296static PyObject *_wrap_ITALIC_FONT_get() {
16297 PyObject *pyobj;
d14a1e28 16298
15afbcd0 16299 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
994141e6 16300 return pyobj;
d14a1e28
RD
16301}
16302
16303
994141e6
RD
16304static int _wrap_SWISS_FONT_set(PyObject *_val) {
16305 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16306 return 1;
d14a1e28
RD
16307}
16308
16309
994141e6
RD
16310static PyObject *_wrap_SWISS_FONT_get() {
16311 PyObject *pyobj;
d14a1e28 16312
15afbcd0 16313 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
994141e6 16314 return pyobj;
d14a1e28
RD
16315}
16316
16317
994141e6
RD
16318static int _wrap_RED_PEN_set(PyObject *_val) {
16319 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16320 return 1;
16321}
16322
16323
16324static PyObject *_wrap_RED_PEN_get() {
16325 PyObject *pyobj;
d14a1e28 16326
15afbcd0 16327 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16328 return pyobj;
d14a1e28
RD
16329}
16330
16331
994141e6
RD
16332static int _wrap_CYAN_PEN_set(PyObject *_val) {
16333 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16334 return 1;
d14a1e28 16335}
994141e6
RD
16336
16337
16338static PyObject *_wrap_CYAN_PEN_get() {
16339 PyObject *pyobj;
d14a1e28 16340
15afbcd0 16341 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16342 return pyobj;
d14a1e28
RD
16343}
16344
16345
994141e6
RD
16346static int _wrap_GREEN_PEN_set(PyObject *_val) {
16347 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16348 return 1;
16349}
16350
16351
16352static PyObject *_wrap_GREEN_PEN_get() {
16353 PyObject *pyobj;
d14a1e28 16354
15afbcd0 16355 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16356 return pyobj;
d14a1e28
RD
16357}
16358
16359
994141e6
RD
16360static int _wrap_BLACK_PEN_set(PyObject *_val) {
16361 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16362 return 1;
16363}
16364
16365
16366static PyObject *_wrap_BLACK_PEN_get() {
16367 PyObject *pyobj;
d14a1e28 16368
15afbcd0 16369 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16370 return pyobj;
d14a1e28
RD
16371}
16372
16373
994141e6
RD
16374static int _wrap_WHITE_PEN_set(PyObject *_val) {
16375 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16376 return 1;
d14a1e28
RD
16377}
16378
16379
994141e6
RD
16380static PyObject *_wrap_WHITE_PEN_get() {
16381 PyObject *pyobj;
d14a1e28 16382
15afbcd0 16383 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16384 return pyobj;
d14a1e28
RD
16385}
16386
16387
994141e6
RD
16388static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16389 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16390 return 1;
d14a1e28
RD
16391}
16392
16393
994141e6
RD
16394static PyObject *_wrap_TRANSPARENT_PEN_get() {
16395 PyObject *pyobj;
d14a1e28 16396
15afbcd0 16397 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16398 return pyobj;
d14a1e28
RD
16399}
16400
16401
994141e6
RD
16402static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16403 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16404 return 1;
d14a1e28
RD
16405}
16406
16407
994141e6
RD
16408static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16409 PyObject *pyobj;
d14a1e28 16410
15afbcd0 16411 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16412 return pyobj;
d14a1e28
RD
16413}
16414
16415
994141e6
RD
16416static int _wrap_GREY_PEN_set(PyObject *_val) {
16417 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16418 return 1;
d14a1e28
RD
16419}
16420
16421
994141e6
RD
16422static PyObject *_wrap_GREY_PEN_get() {
16423 PyObject *pyobj;
16424
15afbcd0 16425 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16426 return pyobj;
d14a1e28 16427}
994141e6
RD
16428
16429
16430static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16431 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
d14a1e28
RD
16432 return 1;
16433}
16434
16435
994141e6 16436static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
d14a1e28
RD
16437 PyObject *pyobj;
16438
15afbcd0 16439 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
16440 return pyobj;
16441}
16442
16443
994141e6
RD
16444static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16445 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
d14a1e28
RD
16446 return 1;
16447}
16448
16449
994141e6 16450static PyObject *_wrap_LIGHT_GREY_PEN_get() {
d14a1e28
RD
16451 PyObject *pyobj;
16452
15afbcd0 16453 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
16454 return pyobj;
16455}
16456
16457
994141e6
RD
16458static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16459 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
d14a1e28
RD
16460 return 1;
16461}
16462
16463
994141e6 16464static PyObject *_wrap_BLUE_BRUSH_get() {
d14a1e28
RD
16465 PyObject *pyobj;
16466
15afbcd0 16467 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16468 return pyobj;
16469}
16470
16471
994141e6
RD
16472static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16473 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
d14a1e28
RD
16474 return 1;
16475}
16476
16477
994141e6 16478static PyObject *_wrap_GREEN_BRUSH_get() {
d14a1e28
RD
16479 PyObject *pyobj;
16480
15afbcd0 16481 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16482 return pyobj;
16483}
16484
16485
994141e6
RD
16486static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16487 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
d14a1e28
RD
16488 return 1;
16489}
16490
16491
994141e6 16492static PyObject *_wrap_WHITE_BRUSH_get() {
d14a1e28
RD
16493 PyObject *pyobj;
16494
15afbcd0 16495 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16496 return pyobj;
16497}
16498
16499
994141e6
RD
16500static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16501 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
d14a1e28
RD
16502 return 1;
16503}
16504
16505
994141e6 16506static PyObject *_wrap_BLACK_BRUSH_get() {
d14a1e28
RD
16507 PyObject *pyobj;
16508
15afbcd0 16509 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16510 return pyobj;
16511}
16512
16513
994141e6
RD
16514static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16515 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
d14a1e28
RD
16516 return 1;
16517}
16518
16519
994141e6 16520static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
d14a1e28
RD
16521 PyObject *pyobj;
16522
15afbcd0 16523 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16524 return pyobj;
16525}
16526
16527
994141e6
RD
16528static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16529 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
d14a1e28
RD
16530 return 1;
16531}
16532
16533
994141e6 16534static PyObject *_wrap_CYAN_BRUSH_get() {
d14a1e28
RD
16535 PyObject *pyobj;
16536
15afbcd0 16537 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16538 return pyobj;
16539}
16540
16541
994141e6
RD
16542static int _wrap_RED_BRUSH_set(PyObject *_val) {
16543 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
d14a1e28
RD
16544 return 1;
16545}
16546
16547
994141e6 16548static PyObject *_wrap_RED_BRUSH_get() {
d14a1e28
RD
16549 PyObject *pyobj;
16550
15afbcd0 16551 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16552 return pyobj;
16553}
16554
16555
994141e6
RD
16556static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16557 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
d14a1e28
RD
16558 return 1;
16559}
16560
16561
994141e6 16562static PyObject *_wrap_GREY_BRUSH_get() {
d14a1e28
RD
16563 PyObject *pyobj;
16564
15afbcd0 16565 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16566 return pyobj;
16567}
16568
16569
994141e6
RD
16570static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16571 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
d14a1e28
RD
16572 return 1;
16573}
16574
16575
994141e6 16576static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
d14a1e28
RD
16577 PyObject *pyobj;
16578
15afbcd0 16579 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16580 return pyobj;
16581}
16582
16583
994141e6
RD
16584static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16585 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
d14a1e28
RD
16586 return 1;
16587}
16588
16589
994141e6 16590static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
d14a1e28
RD
16591 PyObject *pyobj;
16592
15afbcd0 16593 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16594 return pyobj;
16595}
16596
16597
994141e6
RD
16598static int _wrap_BLACK_set(PyObject *_val) {
16599 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
d14a1e28
RD
16600 return 1;
16601}
16602
16603
994141e6 16604static PyObject *_wrap_BLACK_get() {
d14a1e28
RD
16605 PyObject *pyobj;
16606
15afbcd0 16607 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16608 return pyobj;
16609}
16610
16611
994141e6
RD
16612static int _wrap_WHITE_set(PyObject *_val) {
16613 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
d14a1e28
RD
16614 return 1;
16615}
16616
16617
994141e6 16618static PyObject *_wrap_WHITE_get() {
d14a1e28
RD
16619 PyObject *pyobj;
16620
15afbcd0 16621 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16622 return pyobj;
16623}
16624
16625
994141e6
RD
16626static int _wrap_RED_set(PyObject *_val) {
16627 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
d14a1e28
RD
16628 return 1;
16629}
16630
16631
994141e6 16632static PyObject *_wrap_RED_get() {
d14a1e28
RD
16633 PyObject *pyobj;
16634
15afbcd0 16635 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16636 return pyobj;
16637}
16638
16639
994141e6
RD
16640static int _wrap_BLUE_set(PyObject *_val) {
16641 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
d14a1e28
RD
16642 return 1;
16643}
16644
16645
994141e6 16646static PyObject *_wrap_BLUE_get() {
d14a1e28
RD
16647 PyObject *pyobj;
16648
15afbcd0 16649 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16650 return pyobj;
16651}
16652
16653
994141e6
RD
16654static int _wrap_GREEN_set(PyObject *_val) {
16655 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
d14a1e28
RD
16656 return 1;
16657}
16658
16659
994141e6 16660static PyObject *_wrap_GREEN_get() {
d14a1e28
RD
16661 PyObject *pyobj;
16662
15afbcd0 16663 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16664 return pyobj;
16665}
16666
16667
994141e6
RD
16668static int _wrap_CYAN_set(PyObject *_val) {
16669 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
d14a1e28
RD
16670 return 1;
16671}
16672
16673
994141e6 16674static PyObject *_wrap_CYAN_get() {
d14a1e28
RD
16675 PyObject *pyobj;
16676
15afbcd0 16677 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16678 return pyobj;
16679}
16680
16681
994141e6
RD
16682static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16683 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
d14a1e28
RD
16684 return 1;
16685}
16686
16687
994141e6 16688static PyObject *_wrap_LIGHT_GREY_get() {
d14a1e28
RD
16689 PyObject *pyobj;
16690
15afbcd0 16691 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16692 return pyobj;
16693}
16694
16695
994141e6
RD
16696static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16697 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
d14a1e28
RD
16698 return 1;
16699}
16700
16701
994141e6 16702static PyObject *_wrap_STANDARD_CURSOR_get() {
d14a1e28
RD
16703 PyObject *pyobj;
16704
15afbcd0 16705 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
16706 return pyobj;
16707}
16708
16709
994141e6
RD
16710static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16711 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
d14a1e28
RD
16712 return 1;
16713}
16714
16715
994141e6 16716static PyObject *_wrap_HOURGLASS_CURSOR_get() {
d14a1e28
RD
16717 PyObject *pyobj;
16718
15afbcd0 16719 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
16720 return pyobj;
16721}
16722
16723
994141e6
RD
16724static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16725 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
d14a1e28
RD
16726 return 1;
16727}
16728
16729
994141e6 16730static PyObject *_wrap_CROSS_CURSOR_get() {
d14a1e28
RD
16731 PyObject *pyobj;
16732
15afbcd0 16733 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
16734 return pyobj;
16735}
16736
16737
994141e6
RD
16738static int _wrap_NullBitmap_set(PyObject *_val) {
16739 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
d14a1e28
RD
16740 return 1;
16741}
16742
16743
994141e6 16744static PyObject *_wrap_NullBitmap_get() {
d14a1e28
RD
16745 PyObject *pyobj;
16746
15afbcd0 16747 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
d14a1e28
RD
16748 return pyobj;
16749}
16750
16751
994141e6
RD
16752static int _wrap_NullIcon_set(PyObject *_val) {
16753 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
d14a1e28
RD
16754 return 1;
16755}
16756
16757
994141e6 16758static PyObject *_wrap_NullIcon_get() {
d14a1e28
RD
16759 PyObject *pyobj;
16760
15afbcd0 16761 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
d14a1e28
RD
16762 return pyobj;
16763}
16764
16765
994141e6
RD
16766static int _wrap_NullCursor_set(PyObject *_val) {
16767 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
d14a1e28
RD
16768 return 1;
16769}
16770
16771
994141e6 16772static PyObject *_wrap_NullCursor_get() {
d14a1e28
RD
16773 PyObject *pyobj;
16774
15afbcd0 16775 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
16776 return pyobj;
16777}
16778
16779
994141e6
RD
16780static int _wrap_NullPen_set(PyObject *_val) {
16781 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
d14a1e28
RD
16782 return 1;
16783}
16784
16785
994141e6 16786static PyObject *_wrap_NullPen_get() {
d14a1e28
RD
16787 PyObject *pyobj;
16788
15afbcd0 16789 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
16790 return pyobj;
16791}
16792
16793
994141e6
RD
16794static int _wrap_NullBrush_set(PyObject *_val) {
16795 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
d14a1e28
RD
16796 return 1;
16797}
16798
16799
994141e6 16800static PyObject *_wrap_NullBrush_get() {
d14a1e28
RD
16801 PyObject *pyobj;
16802
15afbcd0 16803 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16804 return pyobj;
16805}
16806
16807
994141e6
RD
16808static int _wrap_NullPalette_set(PyObject *_val) {
16809 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
d14a1e28
RD
16810 return 1;
16811}
16812
16813
994141e6 16814static PyObject *_wrap_NullPalette_get() {
d14a1e28
RD
16815 PyObject *pyobj;
16816
15afbcd0 16817 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
d14a1e28
RD
16818 return pyobj;
16819}
16820
16821
994141e6
RD
16822static int _wrap_NullFont_set(PyObject *_val) {
16823 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
d14a1e28
RD
16824 return 1;
16825}
16826
16827
994141e6 16828static PyObject *_wrap_NullFont_get() {
d14a1e28
RD
16829 PyObject *pyobj;
16830
15afbcd0 16831 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
d14a1e28
RD
16832 return pyobj;
16833}
16834
16835
994141e6
RD
16836static int _wrap_NullColour_set(PyObject *_val) {
16837 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
d14a1e28
RD
16838 return 1;
16839}
16840
16841
994141e6 16842static PyObject *_wrap_NullColour_get() {
d14a1e28
RD
16843 PyObject *pyobj;
16844
15afbcd0 16845 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16846 return pyobj;
16847}
16848
16849
994141e6
RD
16850static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
16851 PyObject *resultobj;
16852 wxPenList *arg1 = (wxPenList *) 0 ;
16853 wxPen *arg2 = (wxPen *) 0 ;
16854 PyObject * obj0 = 0 ;
16855 PyObject * obj1 = 0 ;
16856 char *kwnames[] = {
16857 (char *) "self",(char *) "pen", NULL
16858 };
16859
16860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16863 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
16864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
16865 {
16866 PyThreadState* __tstate = wxPyBeginAllowThreads();
16867 (arg1)->AddPen(arg2);
16868
16869 wxPyEndAllowThreads(__tstate);
16870 if (PyErr_Occurred()) SWIG_fail;
16871 }
16872 Py_INCREF(Py_None); resultobj = Py_None;
16873 return resultobj;
16874 fail:
16875 return NULL;
d14a1e28
RD
16876}
16877
16878
994141e6
RD
16879static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16880 PyObject *resultobj;
16881 wxPenList *arg1 = (wxPenList *) 0 ;
16882 wxColour *arg2 = 0 ;
16883 int arg3 ;
16884 int arg4 ;
16885 wxPen *result;
16886 wxColour temp2 ;
16887 PyObject * obj0 = 0 ;
16888 PyObject * obj1 = 0 ;
16889 PyObject * obj2 = 0 ;
16890 PyObject * obj3 = 0 ;
16891 char *kwnames[] = {
16892 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
16893 };
d14a1e28 16894
994141e6 16895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
16896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
16898 {
16899 arg2 = &temp2;
16900 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16901 }
15afbcd0
RD
16902 arg3 = (int) SWIG_AsInt(obj2);
16903 if (PyErr_Occurred()) SWIG_fail;
16904 arg4 = (int) SWIG_AsInt(obj3);
16905 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
16906 {
16907 PyThreadState* __tstate = wxPyBeginAllowThreads();
16908 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
16909
16910 wxPyEndAllowThreads(__tstate);
16911 if (PyErr_Occurred()) SWIG_fail;
16912 }
15afbcd0 16913 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
994141e6
RD
16914 return resultobj;
16915 fail:
16916 return NULL;
d14a1e28
RD
16917}
16918
16919
994141e6
RD
16920static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16921 PyObject *resultobj;
16922 wxPenList *arg1 = (wxPenList *) 0 ;
16923 wxPen *arg2 = (wxPen *) 0 ;
16924 PyObject * obj0 = 0 ;
16925 PyObject * obj1 = 0 ;
16926 char *kwnames[] = {
16927 (char *) "self",(char *) "pen", NULL
16928 };
16929
16930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16933 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
16934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
16935 {
16936 PyThreadState* __tstate = wxPyBeginAllowThreads();
16937 (arg1)->RemovePen(arg2);
16938
16939 wxPyEndAllowThreads(__tstate);
16940 if (PyErr_Occurred()) SWIG_fail;
16941 }
16942 Py_INCREF(Py_None); resultobj = Py_None;
16943 return resultobj;
16944 fail:
16945 return NULL;
d14a1e28
RD
16946}
16947
16948
994141e6
RD
16949static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16950 PyObject *resultobj;
16951 wxPenList *arg1 = (wxPenList *) 0 ;
16952 int result;
16953 PyObject * obj0 = 0 ;
16954 char *kwnames[] = {
16955 (char *) "self", NULL
16956 };
d14a1e28 16957
994141e6 16958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
16959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
16961 {
16962 PyThreadState* __tstate = wxPyBeginAllowThreads();
16963 result = (int)(arg1)->GetCount();
16964
16965 wxPyEndAllowThreads(__tstate);
16966 if (PyErr_Occurred()) SWIG_fail;
16967 }
15afbcd0 16968 resultobj = SWIG_FromInt((int)result);
994141e6
RD
16969 return resultobj;
16970 fail:
16971 return NULL;
d14a1e28
RD
16972}
16973
16974
994141e6
RD
16975static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
16976 PyObject *obj;
16977 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16978 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
16979 Py_INCREF(obj);
16980 return Py_BuildValue((char *)"");
16981}
16982static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16983 PyObject *resultobj;
16984 wxBrushList *arg1 = (wxBrushList *) 0 ;
16985 wxBrush *arg2 = (wxBrush *) 0 ;
16986 PyObject * obj0 = 0 ;
16987 PyObject * obj1 = 0 ;
16988 char *kwnames[] = {
16989 (char *) "self",(char *) "brush", NULL
16990 };
16991
16992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
16994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16995 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
16996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
16997 {
16998 PyThreadState* __tstate = wxPyBeginAllowThreads();
16999 (arg1)->AddBrush(arg2);
17000
17001 wxPyEndAllowThreads(__tstate);
17002 if (PyErr_Occurred()) SWIG_fail;
17003 }
17004 Py_INCREF(Py_None); resultobj = Py_None;
17005 return resultobj;
17006 fail:
17007 return NULL;
17008}
17009
17010
17011static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17012 PyObject *resultobj;
17013 wxBrushList *arg1 = (wxBrushList *) 0 ;
17014 wxColour *arg2 = 0 ;
17015 int arg3 ;
17016 wxBrush *result;
17017 wxColour temp2 ;
17018 PyObject * obj0 = 0 ;
17019 PyObject * obj1 = 0 ;
17020 PyObject * obj2 = 0 ;
17021 char *kwnames[] = {
17022 (char *) "self",(char *) "colour",(char *) "style", NULL
17023 };
17024
17025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
17026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17028 {
17029 arg2 = &temp2;
17030 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17031 }
15afbcd0
RD
17032 arg3 = (int) SWIG_AsInt(obj2);
17033 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17034 {
17035 PyThreadState* __tstate = wxPyBeginAllowThreads();
17036 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17037
17038 wxPyEndAllowThreads(__tstate);
17039 if (PyErr_Occurred()) SWIG_fail;
17040 }
15afbcd0 17041 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
994141e6
RD
17042 return resultobj;
17043 fail:
17044 return NULL;
d14a1e28
RD
17045}
17046
17047
994141e6
RD
17048static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17049 PyObject *resultobj;
17050 wxBrushList *arg1 = (wxBrushList *) 0 ;
17051 wxBrush *arg2 = (wxBrush *) 0 ;
17052 PyObject * obj0 = 0 ;
17053 PyObject * obj1 = 0 ;
17054 char *kwnames[] = {
17055 (char *) "self",(char *) "brush", NULL
17056 };
d14a1e28 17057
994141e6 17058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17061 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17063 {
17064 PyThreadState* __tstate = wxPyBeginAllowThreads();
17065 (arg1)->RemoveBrush(arg2);
17066
17067 wxPyEndAllowThreads(__tstate);
17068 if (PyErr_Occurred()) SWIG_fail;
17069 }
17070 Py_INCREF(Py_None); resultobj = Py_None;
17071 return resultobj;
17072 fail:
17073 return NULL;
d14a1e28
RD
17074}
17075
17076
994141e6
RD
17077static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17078 PyObject *resultobj;
17079 wxBrushList *arg1 = (wxBrushList *) 0 ;
17080 int result;
17081 PyObject * obj0 = 0 ;
17082 char *kwnames[] = {
17083 (char *) "self", NULL
17084 };
d14a1e28 17085
994141e6 17086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
17087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17089 {
17090 PyThreadState* __tstate = wxPyBeginAllowThreads();
17091 result = (int)(arg1)->GetCount();
17092
17093 wxPyEndAllowThreads(__tstate);
17094 if (PyErr_Occurred()) SWIG_fail;
17095 }
15afbcd0 17096 resultobj = SWIG_FromInt((int)result);
994141e6
RD
17097 return resultobj;
17098 fail:
17099 return NULL;
d14a1e28
RD
17100}
17101
17102
994141e6
RD
17103static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17104 PyObject *obj;
17105 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17106 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17107 Py_INCREF(obj);
17108 return Py_BuildValue((char *)"");
d14a1e28 17109}
994141e6
RD
17110static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17111 PyObject *resultobj;
17112 wxColourDatabase *result;
17113 char *kwnames[] = {
17114 NULL
17115 };
d14a1e28 17116
994141e6
RD
17117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17118 {
17119 PyThreadState* __tstate = wxPyBeginAllowThreads();
17120 result = (wxColourDatabase *)new wxColourDatabase();
17121
17122 wxPyEndAllowThreads(__tstate);
17123 if (PyErr_Occurred()) SWIG_fail;
17124 }
15afbcd0 17125 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
994141e6
RD
17126 return resultobj;
17127 fail:
17128 return NULL;
d14a1e28
RD
17129}
17130
17131
994141e6
RD
17132static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17133 PyObject *resultobj;
17134 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17135 PyObject * obj0 = 0 ;
17136 char *kwnames[] = {
17137 (char *) "self", NULL
17138 };
d14a1e28 17139
994141e6 17140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
15afbcd0
RD
17141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17143 {
17144 PyThreadState* __tstate = wxPyBeginAllowThreads();
17145 delete arg1;
17146
17147 wxPyEndAllowThreads(__tstate);
17148 if (PyErr_Occurred()) SWIG_fail;
17149 }
17150 Py_INCREF(Py_None); resultobj = Py_None;
17151 return resultobj;
17152 fail:
17153 return NULL;
d14a1e28
RD
17154}
17155
17156
994141e6
RD
17157static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17158 PyObject *resultobj;
17159 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17160 wxString *arg2 = 0 ;
17161 wxColour result;
17162 bool temp2 = False ;
17163 PyObject * obj0 = 0 ;
17164 PyObject * obj1 = 0 ;
17165 char *kwnames[] = {
17166 (char *) "self",(char *) "name", NULL
17167 };
17168
17169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17172 {
17173 arg2 = wxString_in_helper(obj1);
17174 if (arg2 == NULL) SWIG_fail;
17175 temp2 = True;
17176 }
17177 {
17178 PyThreadState* __tstate = wxPyBeginAllowThreads();
17179 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17180
17181 wxPyEndAllowThreads(__tstate);
17182 if (PyErr_Occurred()) SWIG_fail;
17183 }
17184 {
17185 wxColour * resultptr;
17186 resultptr = new wxColour((wxColour &) result);
15afbcd0 17187 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
994141e6
RD
17188 }
17189 {
17190 if (temp2)
17191 delete arg2;
17192 }
17193 return resultobj;
17194 fail:
17195 {
17196 if (temp2)
17197 delete arg2;
17198 }
17199 return NULL;
d14a1e28
RD
17200}
17201
17202
994141e6
RD
17203static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17204 PyObject *resultobj;
17205 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17206 wxColour *arg2 = 0 ;
17207 wxString result;
17208 wxColour temp2 ;
17209 PyObject * obj0 = 0 ;
17210 PyObject * obj1 = 0 ;
17211 char *kwnames[] = {
17212 (char *) "self",(char *) "colour", NULL
17213 };
d14a1e28 17214
994141e6 17215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17218 {
17219 arg2 = &temp2;
17220 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17221 }
17222 {
17223 PyThreadState* __tstate = wxPyBeginAllowThreads();
17224 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17225
17226 wxPyEndAllowThreads(__tstate);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 }
17229 {
17230#if wxUSE_UNICODE
17231 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17232#else
17233 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17234#endif
17235 }
17236 return resultobj;
17237 fail:
17238 return NULL;
d14a1e28
RD
17239}
17240
17241
994141e6
RD
17242static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17243 PyObject *resultobj;
17244 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17245 wxString *arg2 = 0 ;
17246 wxColour *arg3 = 0 ;
17247 bool temp2 = False ;
17248 wxColour temp3 ;
17249 PyObject * obj0 = 0 ;
17250 PyObject * obj1 = 0 ;
17251 PyObject * obj2 = 0 ;
17252 char *kwnames[] = {
17253 (char *) "self",(char *) "name",(char *) "colour", NULL
17254 };
17255
17256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
17257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17259 {
17260 arg2 = wxString_in_helper(obj1);
17261 if (arg2 == NULL) SWIG_fail;
17262 temp2 = True;
17263 }
17264 {
17265 arg3 = &temp3;
17266 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17267 }
17268 {
17269 PyThreadState* __tstate = wxPyBeginAllowThreads();
17270 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17271
17272 wxPyEndAllowThreads(__tstate);
17273 if (PyErr_Occurred()) SWIG_fail;
17274 }
17275 Py_INCREF(Py_None); resultobj = Py_None;
17276 {
17277 if (temp2)
17278 delete arg2;
17279 }
17280 return resultobj;
17281 fail:
17282 {
17283 if (temp2)
17284 delete arg2;
17285 }
17286 return NULL;
d14a1e28
RD
17287}
17288
17289
994141e6
RD
17290static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17291 PyObject *resultobj;
17292 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17293 wxString *arg2 = 0 ;
17294 int arg3 ;
17295 int arg4 ;
17296 int arg5 ;
17297 bool temp2 = False ;
17298 PyObject * obj0 = 0 ;
17299 PyObject * obj1 = 0 ;
17300 PyObject * obj2 = 0 ;
17301 PyObject * obj3 = 0 ;
17302 PyObject * obj4 = 0 ;
17303 char *kwnames[] = {
17304 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17305 };
d14a1e28 17306
994141e6 17307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
17308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17310 {
17311 arg2 = wxString_in_helper(obj1);
17312 if (arg2 == NULL) SWIG_fail;
17313 temp2 = True;
17314 }
15afbcd0
RD
17315 arg3 = (int) SWIG_AsInt(obj2);
17316 if (PyErr_Occurred()) SWIG_fail;
17317 arg4 = (int) SWIG_AsInt(obj3);
17318 if (PyErr_Occurred()) SWIG_fail;
17319 arg5 = (int) SWIG_AsInt(obj4);
17320 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17321 {
17322 PyThreadState* __tstate = wxPyBeginAllowThreads();
17323 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17324
17325 wxPyEndAllowThreads(__tstate);
17326 if (PyErr_Occurred()) SWIG_fail;
17327 }
17328 Py_INCREF(Py_None); resultobj = Py_None;
17329 {
17330 if (temp2)
17331 delete arg2;
17332 }
17333 return resultobj;
17334 fail:
17335 {
17336 if (temp2)
17337 delete arg2;
17338 }
17339 return NULL;
d14a1e28
RD
17340}
17341
17342
994141e6
RD
17343static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17344 PyObject *obj;
17345 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17346 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17347 Py_INCREF(obj);
17348 return Py_BuildValue((char *)"");
d14a1e28 17349}
994141e6
RD
17350static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17351 PyObject *resultobj;
17352 wxFontList *arg1 = (wxFontList *) 0 ;
17353 wxFont *arg2 = (wxFont *) 0 ;
17354 PyObject * obj0 = 0 ;
17355 PyObject * obj1 = 0 ;
17356 char *kwnames[] = {
17357 (char *) "self",(char *) "font", NULL
17358 };
d14a1e28 17359
994141e6 17360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17363 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17365 {
17366 PyThreadState* __tstate = wxPyBeginAllowThreads();
17367 (arg1)->AddFont(arg2);
17368
17369 wxPyEndAllowThreads(__tstate);
17370 if (PyErr_Occurred()) SWIG_fail;
17371 }
17372 Py_INCREF(Py_None); resultobj = Py_None;
17373 return resultobj;
17374 fail:
17375 return NULL;
d14a1e28
RD
17376}
17377
17378
994141e6
RD
17379static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17380 PyObject *resultobj;
17381 wxFontList *arg1 = (wxFontList *) 0 ;
17382 int arg2 ;
17383 int arg3 ;
17384 int arg4 ;
17385 int arg5 ;
17386 bool arg6 = (bool) False ;
17387 wxString const &arg7_defvalue = wxPyEmptyString ;
17388 wxString *arg7 = (wxString *) &arg7_defvalue ;
17389 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17390 wxFont *result;
17391 bool temp7 = False ;
17392 PyObject * obj0 = 0 ;
17393 PyObject * obj1 = 0 ;
17394 PyObject * obj2 = 0 ;
17395 PyObject * obj3 = 0 ;
17396 PyObject * obj4 = 0 ;
17397 PyObject * obj5 = 0 ;
17398 PyObject * obj6 = 0 ;
17399 PyObject * obj7 = 0 ;
17400 char *kwnames[] = {
17401 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17402 };
d14a1e28 17403
994141e6 17404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
15afbcd0
RD
17405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17407 arg2 = (int) SWIG_AsInt(obj1);
17408 if (PyErr_Occurred()) SWIG_fail;
17409 arg3 = (int) SWIG_AsInt(obj2);
17410 if (PyErr_Occurred()) SWIG_fail;
17411 arg4 = (int) SWIG_AsInt(obj3);
17412 if (PyErr_Occurred()) SWIG_fail;
17413 arg5 = (int) SWIG_AsInt(obj4);
17414 if (PyErr_Occurred()) SWIG_fail;
994141e6 17415 if (obj5) {
15afbcd0
RD
17416 arg6 = (bool) SWIG_AsBool(obj5);
17417 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17418 }
17419 if (obj6) {
17420 {
17421 arg7 = wxString_in_helper(obj6);
17422 if (arg7 == NULL) SWIG_fail;
17423 temp7 = True;
17424 }
17425 }
17426 if (obj7) {
15afbcd0
RD
17427 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17428 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17429 }
17430 {
17431 PyThreadState* __tstate = wxPyBeginAllowThreads();
17432 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17433
17434 wxPyEndAllowThreads(__tstate);
17435 if (PyErr_Occurred()) SWIG_fail;
17436 }
15afbcd0 17437 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
994141e6
RD
17438 {
17439 if (temp7)
17440 delete arg7;
17441 }
17442 return resultobj;
17443 fail:
17444 {
17445 if (temp7)
17446 delete arg7;
17447 }
17448 return NULL;
d14a1e28
RD
17449}
17450
17451
994141e6
RD
17452static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17453 PyObject *resultobj;
17454 wxFontList *arg1 = (wxFontList *) 0 ;
17455 wxFont *arg2 = (wxFont *) 0 ;
17456 PyObject * obj0 = 0 ;
17457 PyObject * obj1 = 0 ;
17458 char *kwnames[] = {
17459 (char *) "self",(char *) "font", NULL
17460 };
d14a1e28 17461
994141e6 17462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17465 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17467 {
17468 PyThreadState* __tstate = wxPyBeginAllowThreads();
17469 (arg1)->RemoveFont(arg2);
17470
17471 wxPyEndAllowThreads(__tstate);
17472 if (PyErr_Occurred()) SWIG_fail;
17473 }
17474 Py_INCREF(Py_None); resultobj = Py_None;
17475 return resultobj;
17476 fail:
17477 return NULL;
d14a1e28
RD
17478}
17479
17480
994141e6
RD
17481static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17482 PyObject *resultobj;
17483 wxFontList *arg1 = (wxFontList *) 0 ;
17484 int result;
17485 PyObject * obj0 = 0 ;
17486 char *kwnames[] = {
17487 (char *) "self", NULL
17488 };
d14a1e28 17489
994141e6 17490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
17491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17493 {
17494 PyThreadState* __tstate = wxPyBeginAllowThreads();
17495 result = (int)(arg1)->GetCount();
17496
17497 wxPyEndAllowThreads(__tstate);
17498 if (PyErr_Occurred()) SWIG_fail;
17499 }
15afbcd0 17500 resultobj = SWIG_FromInt((int)result);
994141e6
RD
17501 return resultobj;
17502 fail:
17503 return NULL;
d14a1e28
RD
17504}
17505
17506
994141e6
RD
17507static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17508 PyObject *obj;
17509 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17510 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17511 Py_INCREF(obj);
17512 return Py_BuildValue((char *)"");
17513}
d14a1e28
RD
17514static int _wrap_TheFontList_set(PyObject *_val) {
17515 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17516 return 1;
17517}
17518
17519
17520static PyObject *_wrap_TheFontList_get() {
17521 PyObject *pyobj;
17522
15afbcd0 17523 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
d14a1e28
RD
17524 return pyobj;
17525}
17526
17527
17528static int _wrap_ThePenList_set(PyObject *_val) {
17529 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17530 return 1;
17531}
17532
17533
17534static PyObject *_wrap_ThePenList_get() {
17535 PyObject *pyobj;
17536
15afbcd0 17537 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
d14a1e28
RD
17538 return pyobj;
17539}
17540
17541
17542static int _wrap_TheBrushList_set(PyObject *_val) {
17543 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17544 return 1;
17545}
17546
17547
17548static PyObject *_wrap_TheBrushList_get() {
17549 PyObject *pyobj;
17550
15afbcd0 17551 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
d14a1e28
RD
17552 return pyobj;
17553}
17554
17555
17556static int _wrap_TheColourDatabase_set(PyObject *_val) {
17557 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17558 return 1;
17559}
17560
17561
17562static PyObject *_wrap_TheColourDatabase_get() {
17563 PyObject *pyobj;
17564
15afbcd0 17565 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
d14a1e28
RD
17566 return pyobj;
17567}
17568
17569
e811c8ce 17570static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17571 PyObject *resultobj;
e811c8ce 17572 wxEffects *result;
d14a1e28 17573 char *kwnames[] = {
e811c8ce 17574 NULL
d14a1e28
RD
17575 };
17576
e811c8ce 17577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
d14a1e28
RD
17578 {
17579 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 17580 result = (wxEffects *)new wxEffects();
d14a1e28
RD
17581
17582 wxPyEndAllowThreads(__tstate);
17583 if (PyErr_Occurred()) SWIG_fail;
17584 }
15afbcd0 17585 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
d14a1e28
RD
17586 return resultobj;
17587 fail:
17588 return NULL;
17589}
17590
17591
e811c8ce 17592static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17593 PyObject *resultobj;
e811c8ce
RD
17594 wxEffects *arg1 = (wxEffects *) 0 ;
17595 wxColour result;
d14a1e28 17596 PyObject * obj0 = 0 ;
d14a1e28 17597 char *kwnames[] = {
e811c8ce 17598 (char *) "self", NULL
d14a1e28
RD
17599 };
17600
e811c8ce 17601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
15afbcd0
RD
17602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17604 {
17605 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 17606 result = ((wxEffects const *)arg1)->GetHighlightColour();
d14a1e28
RD
17607
17608 wxPyEndAllowThreads(__tstate);
17609 if (PyErr_Occurred()) SWIG_fail;
17610 }
e811c8ce
RD
17611 {
17612 wxColour * resultptr;
17613 resultptr = new wxColour((wxColour &) result);
15afbcd0 17614 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
e811c8ce 17615 }
d14a1e28
RD
17616 return resultobj;
17617 fail:
17618 return NULL;
17619}
17620
17621
e811c8ce 17622static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17623 PyObject *resultobj;
e811c8ce
RD
17624 wxEffects *arg1 = (wxEffects *) 0 ;
17625 wxColour result;
d14a1e28 17626 PyObject * obj0 = 0 ;
d14a1e28 17627 char *kwnames[] = {
e811c8ce 17628 (char *) "self", NULL
d14a1e28
RD
17629 };
17630
e811c8ce 17631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
15afbcd0
RD
17632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17634 {
17635 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 17636 result = ((wxEffects const *)arg1)->GetLightShadow();
d14a1e28
RD
17637
17638 wxPyEndAllowThreads(__tstate);
17639 if (PyErr_Occurred()) SWIG_fail;
17640 }
d14a1e28 17641 {
e811c8ce
RD
17642 wxColour * resultptr;
17643 resultptr = new wxColour((wxColour &) result);
15afbcd0 17644 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
17645 }
17646 return resultobj;
17647 fail:
d14a1e28
RD
17648 return NULL;
17649}
17650
17651
e811c8ce 17652static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17653 PyObject *resultobj;
e811c8ce
RD
17654 wxEffects *arg1 = (wxEffects *) 0 ;
17655 wxColour result;
d14a1e28 17656 PyObject * obj0 = 0 ;
d14a1e28 17657 char *kwnames[] = {
e811c8ce 17658 (char *) "self", NULL
d14a1e28
RD
17659 };
17660
e811c8ce 17661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
15afbcd0
RD
17662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17664 {
17665 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 17666 result = ((wxEffects const *)arg1)->GetFaceColour();
d14a1e28
RD
17667
17668 wxPyEndAllowThreads(__tstate);
17669 if (PyErr_Occurred()) SWIG_fail;
17670 }
e811c8ce
RD
17671 {
17672 wxColour * resultptr;
17673 resultptr = new wxColour((wxColour &) result);
15afbcd0 17674 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
e811c8ce 17675 }
d14a1e28
RD
17676 return resultobj;
17677 fail:
17678 return NULL;
17679}
17680
17681
e811c8ce 17682static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17683 PyObject *resultobj;
e811c8ce
RD
17684 wxEffects *arg1 = (wxEffects *) 0 ;
17685 wxColour result;
d14a1e28
RD
17686 PyObject * obj0 = 0 ;
17687 char *kwnames[] = {
e811c8ce 17688 (char *) "self", NULL
d14a1e28
RD
17689 };
17690
17691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
15afbcd0
RD
17692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17694 {
17695 PyThreadState* __tstate = wxPyBeginAllowThreads();
17696 result = ((wxEffects const *)arg1)->GetMediumShadow();
17697
17698 wxPyEndAllowThreads(__tstate);
17699 if (PyErr_Occurred()) SWIG_fail;
17700 }
17701 {
17702 wxColour * resultptr;
17703 resultptr = new wxColour((wxColour &) result);
15afbcd0 17704 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
17705 }
17706 return resultobj;
17707 fail:
17708 return NULL;
17709}
17710
17711
17712static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17713 PyObject *resultobj;
17714 wxEffects *arg1 = (wxEffects *) 0 ;
17715 wxColour result;
17716 PyObject * obj0 = 0 ;
17717 char *kwnames[] = {
17718 (char *) "self", NULL
17719 };
17720
17721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
15afbcd0
RD
17722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17724 {
17725 PyThreadState* __tstate = wxPyBeginAllowThreads();
17726 result = ((wxEffects const *)arg1)->GetDarkShadow();
17727
17728 wxPyEndAllowThreads(__tstate);
17729 if (PyErr_Occurred()) SWIG_fail;
17730 }
17731 {
17732 wxColour * resultptr;
17733 resultptr = new wxColour((wxColour &) result);
15afbcd0 17734 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
17735 }
17736 return resultobj;
17737 fail:
17738 return NULL;
17739}
17740
17741
17742static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17743 PyObject *resultobj;
17744 wxEffects *arg1 = (wxEffects *) 0 ;
17745 wxColour *arg2 = 0 ;
17746 wxColour temp2 ;
17747 PyObject * obj0 = 0 ;
17748 PyObject * obj1 = 0 ;
17749 char *kwnames[] = {
17750 (char *) "self",(char *) "c", NULL
17751 };
17752
17753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17756 {
17757 arg2 = &temp2;
17758 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17759 }
17760 {
17761 PyThreadState* __tstate = wxPyBeginAllowThreads();
17762 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17763
17764 wxPyEndAllowThreads(__tstate);
17765 if (PyErr_Occurred()) SWIG_fail;
17766 }
17767 Py_INCREF(Py_None); resultobj = Py_None;
17768 return resultobj;
17769 fail:
17770 return NULL;
17771}
17772
17773
17774static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17775 PyObject *resultobj;
17776 wxEffects *arg1 = (wxEffects *) 0 ;
17777 wxColour *arg2 = 0 ;
17778 wxColour temp2 ;
17779 PyObject * obj0 = 0 ;
17780 PyObject * obj1 = 0 ;
17781 char *kwnames[] = {
17782 (char *) "self",(char *) "c", NULL
17783 };
17784
17785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17788 {
17789 arg2 = &temp2;
17790 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17791 }
17792 {
17793 PyThreadState* __tstate = wxPyBeginAllowThreads();
17794 (arg1)->SetLightShadow((wxColour const &)*arg2);
17795
17796 wxPyEndAllowThreads(__tstate);
17797 if (PyErr_Occurred()) SWIG_fail;
17798 }
17799 Py_INCREF(Py_None); resultobj = Py_None;
17800 return resultobj;
17801 fail:
17802 return NULL;
17803}
17804
17805
17806static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17807 PyObject *resultobj;
17808 wxEffects *arg1 = (wxEffects *) 0 ;
17809 wxColour *arg2 = 0 ;
17810 wxColour temp2 ;
17811 PyObject * obj0 = 0 ;
17812 PyObject * obj1 = 0 ;
17813 char *kwnames[] = {
17814 (char *) "self",(char *) "c", NULL
17815 };
17816
17817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17820 {
17821 arg2 = &temp2;
17822 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17823 }
17824 {
17825 PyThreadState* __tstate = wxPyBeginAllowThreads();
17826 (arg1)->SetFaceColour((wxColour const &)*arg2);
17827
17828 wxPyEndAllowThreads(__tstate);
17829 if (PyErr_Occurred()) SWIG_fail;
17830 }
17831 Py_INCREF(Py_None); resultobj = Py_None;
17832 return resultobj;
17833 fail:
17834 return NULL;
17835}
17836
17837
17838static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17839 PyObject *resultobj;
17840 wxEffects *arg1 = (wxEffects *) 0 ;
17841 wxColour *arg2 = 0 ;
17842 wxColour temp2 ;
17843 PyObject * obj0 = 0 ;
17844 PyObject * obj1 = 0 ;
17845 char *kwnames[] = {
17846 (char *) "self",(char *) "c", NULL
17847 };
17848
17849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17852 {
17853 arg2 = &temp2;
17854 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17855 }
17856 {
17857 PyThreadState* __tstate = wxPyBeginAllowThreads();
17858 (arg1)->SetMediumShadow((wxColour const &)*arg2);
17859
17860 wxPyEndAllowThreads(__tstate);
17861 if (PyErr_Occurred()) SWIG_fail;
17862 }
17863 Py_INCREF(Py_None); resultobj = Py_None;
17864 return resultobj;
17865 fail:
17866 return NULL;
17867}
17868
17869
17870static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17871 PyObject *resultobj;
17872 wxEffects *arg1 = (wxEffects *) 0 ;
17873 wxColour *arg2 = 0 ;
17874 wxColour temp2 ;
17875 PyObject * obj0 = 0 ;
17876 PyObject * obj1 = 0 ;
17877 char *kwnames[] = {
17878 (char *) "self",(char *) "c", NULL
17879 };
17880
17881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17884 {
17885 arg2 = &temp2;
17886 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17887 }
17888 {
17889 PyThreadState* __tstate = wxPyBeginAllowThreads();
17890 (arg1)->SetDarkShadow((wxColour const &)*arg2);
17891
17892 wxPyEndAllowThreads(__tstate);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 }
17895 Py_INCREF(Py_None); resultobj = Py_None;
17896 return resultobj;
17897 fail:
17898 return NULL;
17899}
17900
17901
17902static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17903 PyObject *resultobj;
17904 wxEffects *arg1 = (wxEffects *) 0 ;
17905 wxColour *arg2 = 0 ;
17906 wxColour *arg3 = 0 ;
17907 wxColour *arg4 = 0 ;
17908 wxColour *arg5 = 0 ;
17909 wxColour *arg6 = 0 ;
17910 wxColour temp2 ;
17911 wxColour temp3 ;
17912 wxColour temp4 ;
17913 wxColour temp5 ;
17914 wxColour temp6 ;
17915 PyObject * obj0 = 0 ;
17916 PyObject * obj1 = 0 ;
17917 PyObject * obj2 = 0 ;
17918 PyObject * obj3 = 0 ;
17919 PyObject * obj4 = 0 ;
17920 PyObject * obj5 = 0 ;
17921 char *kwnames[] = {
17922 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
17923 };
17924
17925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15afbcd0
RD
17926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17928 {
17929 arg2 = &temp2;
17930 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17931 }
17932 {
17933 arg3 = &temp3;
17934 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17935 }
17936 {
17937 arg4 = &temp4;
17938 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17939 }
17940 {
17941 arg5 = &temp5;
17942 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
17943 }
17944 {
17945 arg6 = &temp6;
17946 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
17947 }
17948 {
17949 PyThreadState* __tstate = wxPyBeginAllowThreads();
17950 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
17951
17952 wxPyEndAllowThreads(__tstate);
17953 if (PyErr_Occurred()) SWIG_fail;
17954 }
17955 Py_INCREF(Py_None); resultobj = Py_None;
17956 return resultobj;
17957 fail:
17958 return NULL;
17959}
17960
17961
17962static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
17963 PyObject *resultobj;
17964 wxEffects *arg1 = (wxEffects *) 0 ;
17965 wxDC *arg2 = 0 ;
17966 wxRect *arg3 = 0 ;
17967 int arg4 = (int) 1 ;
17968 wxRect temp3 ;
17969 PyObject * obj0 = 0 ;
17970 PyObject * obj1 = 0 ;
17971 PyObject * obj2 = 0 ;
994141e6 17972 PyObject * obj3 = 0 ;
d14a1e28
RD
17973 char *kwnames[] = {
17974 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
17975 };
17976
994141e6 17977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
17978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17980 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
17981 SWIG_POINTER_EXCEPTION | 0)) == -1)
17982 SWIG_fail;
d14a1e28 17983 if (arg2 == NULL) {
15afbcd0
RD
17984 PyErr_SetString(PyExc_TypeError,"null reference");
17985 SWIG_fail;
d14a1e28
RD
17986 }
17987 {
17988 arg3 = &temp3;
17989 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17990 }
994141e6 17991 if (obj3) {
15afbcd0
RD
17992 arg4 = (int) SWIG_AsInt(obj3);
17993 if (PyErr_Occurred()) SWIG_fail;
994141e6 17994 }
d14a1e28
RD
17995 {
17996 PyThreadState* __tstate = wxPyBeginAllowThreads();
17997 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
17998
17999 wxPyEndAllowThreads(__tstate);
18000 if (PyErr_Occurred()) SWIG_fail;
18001 }
18002 Py_INCREF(Py_None); resultobj = Py_None;
18003 return resultobj;
18004 fail:
18005 return NULL;
18006}
18007
18008
18009static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18010 PyObject *resultobj;
18011 wxEffects *arg1 = (wxEffects *) 0 ;
18012 wxRect *arg2 = 0 ;
18013 wxDC *arg3 = 0 ;
18014 wxBitmap *arg4 = 0 ;
18015 bool result;
18016 wxRect temp2 ;
18017 PyObject * obj0 = 0 ;
18018 PyObject * obj1 = 0 ;
18019 PyObject * obj2 = 0 ;
18020 PyObject * obj3 = 0 ;
18021 char *kwnames[] = {
18022 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18023 };
18024
18025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
18026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18028 {
18029 arg2 = &temp2;
18030 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18031 }
15afbcd0
RD
18032 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18033 SWIG_POINTER_EXCEPTION | 0)) == -1)
18034 SWIG_fail;
d14a1e28 18035 if (arg3 == NULL) {
15afbcd0
RD
18036 PyErr_SetString(PyExc_TypeError,"null reference");
18037 SWIG_fail;
d14a1e28 18038 }
15afbcd0
RD
18039 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18040 SWIG_POINTER_EXCEPTION | 0)) == -1)
18041 SWIG_fail;
d14a1e28 18042 if (arg4 == NULL) {
15afbcd0
RD
18043 PyErr_SetString(PyExc_TypeError,"null reference");
18044 SWIG_fail;
d14a1e28
RD
18045 }
18046 {
18047 PyThreadState* __tstate = wxPyBeginAllowThreads();
18048 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18049
18050 wxPyEndAllowThreads(__tstate);
18051 if (PyErr_Occurred()) SWIG_fail;
18052 }
4f89f6a3
RD
18053 {
18054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18055 }
d14a1e28
RD
18056 return resultobj;
18057 fail:
18058 return NULL;
18059}
18060
18061
18062static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18063 PyObject *obj;
18064 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18065 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18066 Py_INCREF(obj);
18067 return Py_BuildValue((char *)"");
18068}
18069static PyMethodDef SwigMethods[] = {
18070 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18071 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18072 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18073 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18074 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18075 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18076 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18077 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18078 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
b88bce5f 18079 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18080 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18081 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18082 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18083 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18084 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
c9c7117a 18085 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
b88bce5f
RD
18086 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18087 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18088 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18089 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18090 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
b88bce5f 18091 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18092 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18093 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18094 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18095 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18096 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18097 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18098 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18099 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18100 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18101 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18102 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18103 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18104 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18105 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18106 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18107 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18108 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18109 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18110 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18111 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18112 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18113 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
3adfb63b 18114 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
22faec7d 18115 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
c9c7117a 18116 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18117 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18118 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
18119 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
18120 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18121 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
18122 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18123 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18124 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18125 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18126 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18127 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18128 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18129 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18130 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18131 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18132 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18133 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18134 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18135 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18136 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18137 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18138 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18139 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18140 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18141 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18142 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18143 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18144 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18145 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18146 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18147 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18148 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18149 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18150 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18151 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18152 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18153 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
4276dc52
RD
18154 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18155 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18156 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18157 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18158 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18159 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18160 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18161 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18162 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18163 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18164 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18165 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18166 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18167 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18168 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18169 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18170 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18171 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18172 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18173 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18174 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18175 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18176 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18177 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18178 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18179 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18180 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18181 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18182 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18183 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18184 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18185 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18186 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18187 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18188 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18189 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18190 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18191 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18192 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18193 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18194 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18195 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18196 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18197 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18198 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18199 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18200 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18201 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18202 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18203 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18204 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18205 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18206 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18207 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18208 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18209 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18210 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18211 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18212 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18213 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18214 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18215 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18216 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18217 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18218 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18219 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18220 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18221 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18222 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18223 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18224 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18225 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18226 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18227 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18228 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18229 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18230 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18231 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18232 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18233 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18234 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18235 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18236 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18237 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18238 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18239 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18240 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18241 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18242 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18243 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18244 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18245 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18246 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18247 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18248 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18249 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18250 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18251 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18252 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18253 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18254 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18255 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18256 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18257 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18258 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18259 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18260 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18261 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18262 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18263 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18264 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18265 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18266 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18267 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18268 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18269 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18270 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18271 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18272 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18273 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18274 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18275 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18276 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18277 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18278 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18279 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18280 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18281 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18282 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18283 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18284 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18285 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18286 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18287 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18288 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18289 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18290 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18291 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18292 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18293 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18294 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18295 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18296 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18297 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18298 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18299 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18300 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18301 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18302 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18303 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18304 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18305 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18306 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18307 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18308 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18309 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18310 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18311 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18312 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18313 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18314 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18315 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18316 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18317 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18318 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18319 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18320 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18321 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18322 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18323 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18324 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18327 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18328 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18329 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18335 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18336 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18339 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18340 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18342 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18346 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18347 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18348 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18350 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18351 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18352 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18353 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18354 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18355 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18356 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18358 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18360 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18362 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18363 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18364 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18365 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18366 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18371 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18374 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
18378 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
18380 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18387 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
242b7b46 18430 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18431 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
db914595 18442 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18443 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
322913ce 18444 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18445 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
322913ce 18446 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18447 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18475 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
322913ce 18476 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18477 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18478 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
322913ce 18479 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18480 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18500 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
3adfb63b
RD
18504 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18505 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
e498079e 18506 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18507 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
e498079e 18509 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18510 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18511 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18516 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18518 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18520 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18522 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18524 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18530 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18532 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18534 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18536 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18547 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18548 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18553 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18558 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18565 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
d14a1e28
RD
18570 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18579 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18585 { NULL, NULL }
18586};
18587
18588
18589/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18590
e811c8ce
RD
18591static void *_p_wxControlTo_p_wxWindow(void *x) {
18592 return (void *)((wxWindow *) ((wxControl *) x));
18593}
18594static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18595 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18596}
18597static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18598 return (void *)((wxWindow *) ((wxMenuBar *) x));
18599}
d14a1e28
RD
18600static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18601 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18602}
18603static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18604 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18605}
d14a1e28
RD
18606static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18607 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18608}
18609static void *_p_wxPenTo_p_wxObject(void *x) {
18610 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18611}
18612static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18613 return (void *)((wxObject *) ((wxRegionIterator *) x));
18614}
18615static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18616 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18617}
18618static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18619 return (void *)((wxObject *) ((wxSizerItem *) x));
18620}
18621static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18622 return (void *)((wxObject *) ((wxColourDatabase *) x));
18623}
18624static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18625 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18626}
18627static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18628 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18629}
18630static void *_p_wxIconTo_p_wxObject(void *x) {
18631 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18632}
18633static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18634 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18635}
18636static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18637 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18638}
18639static void *_p_wxSizerTo_p_wxObject(void *x) {
18640 return (void *)((wxObject *) ((wxSizer *) x));
18641}
18642static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18643 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18644}
18645static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18646 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18647}
18648static void *_p_wxPenListTo_p_wxObject(void *x) {
18649 return (void *)((wxObject *) ((wxPenList *) x));
18650}
18651static void *_p_wxEventTo_p_wxObject(void *x) {
18652 return (void *)((wxObject *) ((wxEvent *) x));
18653}
18654static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18655 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18656}
18657static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18658 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18659}
18660static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18661 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18662}
18663static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18664 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18665}
18666static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18667 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18668}
18669static void *_p_wxDCTo_p_wxObject(void *x) {
18670 return (void *)((wxObject *) ((wxDC *) x));
18671}
18672static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18673 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18674}
18675static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18676 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18677}
18678static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18679 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18680}
18681static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18682 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18683}
18684static void *_p_wxControlTo_p_wxObject(void *x) {
18685 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18686}
18687static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18688 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18689}
18690static void *_p_wxClientDCTo_p_wxObject(void *x) {
18691 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18692}
18693static void *_p_wxFSFileTo_p_wxObject(void *x) {
18694 return (void *)((wxObject *) ((wxFSFile *) x));
18695}
18696static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18697 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18698}
18699static void *_p_wxRegionTo_p_wxObject(void *x) {
18700 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18701}
18702static void *_p_wxPySizerTo_p_wxObject(void *x) {
18703 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18704}
18705static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18706 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18707}
18708static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18709 return (void *)((wxObject *) ((wxGDIObject *) x));
18710}
18711static void *_p_wxEffectsTo_p_wxObject(void *x) {
18712 return (void *)((wxObject *) ((wxEffects *) x));
18713}
18714static void *_p_wxPyEventTo_p_wxObject(void *x) {
18715 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18716}
18717static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18718 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18719}
18720static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18721 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18722}
18723static void *_p_wxShowEventTo_p_wxObject(void *x) {
18724 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18725}
18726static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18727 return (void *)((wxObject *) ((wxMenuItem *) x));
18728}
18729static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18730 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18731}
18732static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18733 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18734}
18735static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18736 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18737}
18738static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18739 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18740}
18741static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18742 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18743}
18744static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18745 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18746}
18747static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18748 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18749}
18750static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18751 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18752}
18753static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18754 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18755}
18756static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18757 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18758}
18759static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18760 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18761}
18762static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18763 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18764}
18765static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18766 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18767}
18768static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18769 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18770}
18771static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18772 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18773}
18774static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18775 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18776}
18777static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18778 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18779}
18780static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18781 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18782}
18783static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18784 return (void *)((wxObject *) ((wxImageHandler *) x));
18785}
18786static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18787 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18788}
18789static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18790 return (void *)((wxObject *) ((wxEvtHandler *) x));
18791}
18792static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18793 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18794}
18795static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18796 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18797}
18798static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18799 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18800}
18801static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18802 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18803}
1e0c8722
RD
18804static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18805 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18806}
d14a1e28
RD
18807static void *_p_wxImageTo_p_wxObject(void *x) {
18808 return (void *)((wxObject *) ((wxImage *) x));
18809}
18810static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18811 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18812}
d14a1e28
RD
18813static void *_p_wxPaletteTo_p_wxObject(void *x) {
18814 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18815}
18816static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18817 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18818}
18819static void *_p_wxImageListTo_p_wxObject(void *x) {
18820 return (void *)((wxObject *) ((wxImageList *) x));
18821}
18822static void *_p_wxCursorTo_p_wxObject(void *x) {
18823 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18824}
18825static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18826 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18827}
18828static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18829 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18830}
18831static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18832 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18833}
18834static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18835 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18836}
18837static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18838 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18839}
18840static void *_p_wxWindowTo_p_wxObject(void *x) {
18841 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18842}
18843static void *_p_wxMenuTo_p_wxObject(void *x) {
18844 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
18845}
18846static void *_p_wxMenuBarTo_p_wxObject(void *x) {
18847 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
18848}
18849static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
18850 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
18851}
18852static void *_p_wxBrushListTo_p_wxObject(void *x) {
18853 return (void *)((wxObject *) ((wxBrushList *) x));
18854}
18855static void *_p_wxPyPenTo_p_wxObject(void *x) {
18856 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
18857}
18858static void *_p_wxFileSystemTo_p_wxObject(void *x) {
18859 return (void *)((wxObject *) ((wxFileSystem *) x));
18860}
18861static void *_p_wxBitmapTo_p_wxObject(void *x) {
18862 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
18863}
18864static void *_p_wxMaskTo_p_wxObject(void *x) {
18865 return (void *)((wxObject *) ((wxMask *) x));
18866}
18867static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
18868 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
18869}
18870static void *_p_wxMenuEventTo_p_wxObject(void *x) {
18871 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
18872}
18873static void *_p_wxPyAppTo_p_wxObject(void *x) {
18874 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
18875}
18876static void *_p_wxCloseEventTo_p_wxObject(void *x) {
18877 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
18878}
18879static void *_p_wxMouseEventTo_p_wxObject(void *x) {
18880 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
18881}
18882static void *_p_wxEraseEventTo_p_wxObject(void *x) {
18883 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
18884}
18885static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
18886 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
18887}
18888static void *_p_wxCommandEventTo_p_wxObject(void *x) {
18889 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
18890}
18891static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
18892 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
18893}
18894static void *_p_wxFocusEventTo_p_wxObject(void *x) {
18895 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
18896}
18897static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
18898 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
18899}
18900static void *_p_wxFontTo_p_wxObject(void *x) {
18901 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
18902}
18903static void *_p_wxBrushTo_p_wxObject(void *x) {
18904 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
18905}
18906static void *_p_wxMetaFileTo_p_wxObject(void *x) {
18907 return (void *)((wxObject *) ((wxMetaFile *) x));
18908}
18909static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
18910 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
18911}
18912static void *_p_wxColourTo_p_wxObject(void *x) {
18913 return (void *)((wxObject *) ((wxColour *) x));
18914}
18915static void *_p_wxFontListTo_p_wxObject(void *x) {
18916 return (void *)((wxObject *) ((wxFontList *) x));
18917}
18918static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
18919 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
18920}
18921static void *_p_wxValidatorTo_p_wxObject(void *x) {
18922 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
18923}
e811c8ce
RD
18924static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
18925 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
d14a1e28 18926}
e811c8ce
RD
18927static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
18928 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
d14a1e28 18929}
e811c8ce
RD
18930static void *_p_wxScreenDCTo_p_wxDC(void *x) {
18931 return (void *)((wxDC *) ((wxScreenDC *) x));
18932}
18933static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
18934 return (void *)((wxDC *) ((wxMirrorDC *) x));
18935}
18936static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
18937 return (void *)((wxDC *) ((wxMemoryDC *) x));
18938}
18939static void *_p_wxWindowDCTo_p_wxDC(void *x) {
18940 return (void *)((wxDC *) ((wxWindowDC *) x));
18941}
18942static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
18943 return (void *)((wxDC *) ((wxMetaFileDC *) x));
18944}
18945static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
18946 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18947}
18948static void *_p_wxClientDCTo_p_wxDC(void *x) {
18949 return (void *)((wxDC *) ((wxClientDC *) x));
18950}
18951static void *_p_wxPaintDCTo_p_wxDC(void *x) {
18952 return (void *)((wxDC *) ((wxPaintDC *) x));
18953}
18954static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
18955 return (void *)((wxDC *) ((wxPostScriptDC *) x));
18956}
18957static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
18958 return (void *)((wxDC *) ((wxPrinterDC *) x));
18959}
18960static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
18961 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
18962}
18963static void *_p_wxIconTo_p_wxGDIObject(void *x) {
18964 return (void *)((wxGDIObject *) ((wxIcon *) x));
18965}
18966static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
18967 return (void *)((wxGDIObject *) ((wxPalette *) x));
18968}
18969static void *_p_wxPenTo_p_wxGDIObject(void *x) {
18970 return (void *)((wxGDIObject *) ((wxPen *) x));
18971}
18972static void *_p_wxFontTo_p_wxGDIObject(void *x) {
18973 return (void *)((wxGDIObject *) ((wxFont *) x));
18974}
18975static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
18976 return (void *)((wxGDIObject *) ((wxCursor *) x));
18977}
18978static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
18979 return (void *)((wxGDIObject *) ((wxBitmap *) x));
18980}
18981static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
18982 return (void *)((wxGDIObject *) ((wxRegion *) x));
18983}
18984static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
18985 return (void *)((wxGDIObject *) ((wxBrush *) x));
18986}
18987static void *_p_wxPyPenTo_p_wxPen(void *x) {
18988 return (void *)((wxPen *) ((wxPyPen *) x));
d14a1e28 18989}
15afbcd0
RD
18990static 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}};
18991static 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}};
18992static 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}};
18993static 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}};
18994static 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}};
18995static 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}};
18996static 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}};
18997static 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}};
18998static 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}};
18999static 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}};
19000static 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}};
19001static 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}};
19002static 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}};
19003static 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}};
19004static 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}};
19005static 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}};
19006static 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}};
19007static 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}};
19008static 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}};
19009static 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}};
19010static 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}};
19011static 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}};
19012static 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}};
19013static 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}};
19014static 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}};
19015static 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}};
19016static 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}};
19017static 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}};
19018static 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}};
19019static 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}};
19020static 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}};
19021static 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}};
19022static 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}};
19023static 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}};
19024static 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}};
19025static 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}};
19026static 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}};
19027static 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}};
19028static 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}};
19029static 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}};
19030static 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}};
19031static 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}};
19032static 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}};
19033static 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}};
19034static 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}};
19035static 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}};
19036static 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}};
19037static 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}};
19038static 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}};
19039static 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}};
19040static 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}};
19041static 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}};
19042static 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}};
19043static 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}};
19044static 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}};
19045static 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
19046
19047static swig_type_info *swig_types_initial[] = {
19048_swigt__p_wxPostScriptDC,
d14a1e28
RD
19049_swigt__p_wxBrush,
19050_swigt__p_wxColour,
d14a1e28
RD
19051_swigt__p_wxDC,
19052_swigt__p_wxMirrorDC,
19053_swigt__p_byte,
19054_swigt__p_wxPyFontEnumerator,
994141e6 19055_swigt__p_char,
d14a1e28
RD
19056_swigt__p_wxIconLocation,
19057_swigt__p_wxImage,
19058_swigt__p_wxMetaFileDC,
19059_swigt__p_wxMask,
19060_swigt__p_wxFont,
19061_swigt__p_wxWindow,
19062_swigt__p_wxSize,
19063_swigt__p_double,
19064_swigt__p_wxMemoryDC,
19065_swigt__p_wxFontMapper,
d14a1e28
RD
19066_swigt__p_wxEffects,
19067_swigt__p_wxNativeEncodingInfo,
19068_swigt__p_wxPalette,
19069_swigt__p_wxBitmap,
19070_swigt__p_wxObject,
19071_swigt__p_wxRegionIterator,
19072_swigt__p_wxRect,
19073_swigt__p_wxString,
19074_swigt__p_wxPrinterDC,
19075_swigt__p_wxIconBundle,
19076_swigt__p_wxPoint,
19077_swigt__p_wxDash,
19078_swigt__p_wxScreenDC,
19079_swigt__p_wxCursor,
19080_swigt__p_wxClientDC,
d14a1e28
RD
19081_swigt__p_wxBufferedDC,
19082_swigt__p_wxImageList,
19083_swigt__p_unsigned_char,
19084_swigt__p_wxGDIObject,
d14a1e28 19085_swigt__p_wxIcon,
994141e6 19086_swigt__p_wxLocale,
d14a1e28
RD
19087_swigt__p_wxRegion,
19088_swigt__p_wxLanguageInfo,
19089_swigt__p_wxConfigBase,
19090_swigt__p_wxWindowDC,
19091_swigt__p_wxPrintData,
19092_swigt__p_wxBrushList,
19093_swigt__p_wxFontList,
19094_swigt__p_wxPen,
19095_swigt__p_wxBufferedPaintDC,
19096_swigt__p_wxPaintDC,
19097_swigt__p_wxPenList,
d14a1e28
RD
19098_swigt__p_wxPyPen,
19099_swigt__p_int,
19100_swigt__p_wxMetaFile,
19101_swigt__p_wxNativeFontInfo,
19102_swigt__p_wxEncodingConverter,
19103_swigt__p_wxColourDatabase,
191040
19105};
19106
19107
19108/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19109
19110static swig_const_info swig_const_table[] = {
d14a1e28
RD
19111{0}};
19112
19113#ifdef __cplusplus
19114}
19115#endif
19116
19117#ifdef __cplusplus
19118extern "C"
19119#endif
19120SWIGEXPORT(void) SWIG_init(void) {
19121 static PyObject *SWIG_globals = 0;
19122 static int typeinit = 0;
19123 PyObject *m, *d;
19124 int i;
19125 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19126 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19127 d = PyModule_GetDict(m);
19128
19129 if (!typeinit) {
19130 for (i = 0; swig_types_initial[i]; i++) {
19131 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19132 }
19133 typeinit = 1;
19134 }
19135 SWIG_InstallConstants(d,swig_const_table);
19136
15afbcd0
RD
19137 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19138 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19139 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19140 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19141 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19142 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19143 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19144 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19145 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19146 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19147 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19148 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19149 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19150 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19151 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19152 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19153 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19154 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19155 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19156 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19157 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19158 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19159 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19160 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19161 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19162 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19163 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19164 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19165 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19166 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19167 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19168 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19169 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19170 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19171 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19172 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19173 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19174 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19175 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19176 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19177 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19178 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19179 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19180 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19181 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19182 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19183 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19184 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19185 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19186 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19187 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19188 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19189 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19190 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19191 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19192 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19193 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19194 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19195 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19196 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19197 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19198 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19199 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19200 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19201 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19202 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19203 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19204 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19205 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19206 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19207 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19208 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19209 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19210 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19211 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19212 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19213 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19214 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19215 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19216 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19217 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19218 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19219 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19220 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19221 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19222 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19223 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19224 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19225 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19226 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19227 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19228 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19229 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19230 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19231 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19232 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19233 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19234 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19235 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19236 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19237 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19238 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19239 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19240 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19241 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19242 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19243 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19244 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19245 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19246 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19247 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19248 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19249 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19250 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19251 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19252 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19253 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19254 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19255 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19256 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19257 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19258 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19259 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19260 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19261 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19262 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
d14a1e28
RD
19263
19264 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19265
15afbcd0
RD
19266 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19267 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19268 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19269 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19270 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19271 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19272 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19273 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19274 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19275 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19276 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19277 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19278 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19279 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19280 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19281 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19282 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19283 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19284 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19285 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19286 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19287 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19288 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19289 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19290 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19291 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19292 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19293 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19294 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19295 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19296 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19297 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19298 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19299 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19300 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19301 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19302 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19303 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19304 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19305 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19306 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19307 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19308 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19309 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19310 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19311 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19312 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19313 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19314 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19315 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19316 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19317 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19318 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19319 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19320 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19321 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19322 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19323 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19324 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19325 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19326 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19327 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19328 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19329 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19330 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19331 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19332 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19333 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19334 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19335 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19336 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19337 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19338 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19339 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19340 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19341 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19342 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19343 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19344 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19345 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19346 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19347 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19348 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19349 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19350 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19351 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19352 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19353 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19354 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19355 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19356 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19357 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19358 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19359 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19360 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19361 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19362 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19363 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19364 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19365 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19366 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19367 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19368 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19369 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19370 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19371 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19372 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19373 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19374 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19375 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19376 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19377 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19378 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19379 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19380 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19381 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19382 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19383 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19384 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19385 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19386 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19387 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19388 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19389 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19390 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19391 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19392 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19393 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19394 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19395 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19396 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19397 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19398 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19399 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19400 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19401 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19402 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19403 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19404 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19405 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19406 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19407 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19408 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19409 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19410 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19411 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19412 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19413 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19414 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19415 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19416 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19417 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19418 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19419 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19420 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19421 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19422 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19423 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19424 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19425 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19426 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19427 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19428 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19429 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19430 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19431 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19432 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19433 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19434 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19435 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19436 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19437 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19438 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19439 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19440 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19441 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19442 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19443 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19444 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19445 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19446 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19447 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19448 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19449 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19450 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19451 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19452 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19453 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19454 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19455 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19456 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19457 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19458 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19459 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19460 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19461 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19462 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19463 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19464 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19465 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19466 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19467 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19468 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19469 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19470 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19471 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19472 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19473 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19474 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19475 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19476 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19477 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19478 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19479 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19480 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19481 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19482 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19483 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19484 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19485 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19486 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19487 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19488 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19489 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19490 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19491 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19492 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19493 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19494 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19495 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19496 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19497 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19498 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19499 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19500 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19501 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19502 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19503 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19504 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19505 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19506 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19507 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19508 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19509 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19510 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19511 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19512 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19513 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19514 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19515 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19516 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19517 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19518 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
d14a1e28
RD
19519 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19520 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19521 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19522 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19523 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19524 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19525 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19526 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19527 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19528 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19529 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19530 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19531 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19532 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19533 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19534 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19535 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19536 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19537 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19538 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19539 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19540 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19541 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19542 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19543 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19544 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19545 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19546 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19547 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19548 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19549 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19550 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19551 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19552 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19553 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19554 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19555 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19556 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19557 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19558 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19559 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19560 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19561 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19562 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19563 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19564 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19565 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
7722248d
RD
19566
19567 // Work around a chicken/egg problem in drawlist.cpp
19568 wxPyDrawList_SetAPIPtr();
19569
d14a1e28
RD
19570}
19571