]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/gdi_wrap.cpp
Fixed OOR typo
[wxWidgets.git] / wxPython / src / msw / gdi_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
83448d71 3 * Version 1.3.22
d14a1e28
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_NOINCLUDE
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27};
28#endif
29
30
31#include "Python.h"
32
33/*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41#define SWIG_TypeRegister SWIG_Python_TypeRegister
42#define SWIG_TypeCheck SWIG_Python_TypeCheck
43#define SWIG_TypeCast SWIG_Python_TypeCast
44#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45#define SWIG_TypeName SWIG_Python_TypeName
46#define SWIG_TypeQuery SWIG_Python_TypeQuery
47#define SWIG_TypeClientData SWIG_Python_TypeClientData
9fd4be55
RD
48#define SWIG_PackData SWIG_Python_PackData
49#define SWIG_UnpackData SWIG_Python_UnpackData
50
d14a1e28
RD
51
52/***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62#include <string.h>
63
f0983263
RD
64#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65# if defined(_MSC_VER) || defined(__GNUC__)
66# if defined(STATIC_LINKED)
67# define SWIGEXPORT(a) a
68# define SWIGIMPORT(a) extern a
69# else
70# define SWIGEXPORT(a) __declspec(dllexport) a
71# define SWIGIMPORT(a) extern a
72# endif
73# else
74# if defined(__BORLANDC__)
75# define SWIGEXPORT(a) a _export
76# define SWIGIMPORT(a) a _export
77# else
78# define SWIGEXPORT(a) a
79# define SWIGIMPORT(a) a
80# endif
81# endif
d14a1e28 82#else
f0983263
RD
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
d14a1e28
RD
85#endif
86
87#ifdef SWIG_GLOBAL
f0983263 88# define SWIGRUNTIME(a) SWIGEXPORT(a)
d14a1e28 89#else
f0983263 90# define SWIGRUNTIME(a) static a
d14a1e28
RD
91#endif
92
d14a1e28
RD
93#ifdef __cplusplus
94extern "C" {
95#endif
96
97typedef void *(*swig_converter_func)(void *);
98typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100typedef struct swig_type_info {
f0983263 101 const char *name;
d14a1e28
RD
102 swig_converter_func converter;
103 const char *str;
f0983263 104 void *clientdata;
d14a1e28
RD
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108} swig_type_info;
109
110
111SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
f0983263
RD
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
d14a1e28
RD
120
121
122#ifdef __cplusplus
123}
124#endif
125
126/***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
d14a1e28
RD
136#include "Python.h"
137
138#ifdef __cplusplus
139extern "C" {
140#endif
141
142#define SWIG_PY_INT 1
143#define SWIG_PY_FLOAT 2
144#define SWIG_PY_STRING 3
145#define SWIG_PY_POINTER 4
146#define SWIG_PY_BINARY 5
147
148/* Flags for pointer conversion */
149
150#define SWIG_POINTER_EXCEPTION 0x1
151#define SWIG_POINTER_DISOWN 0x2
152
153/* Exception handling in wrappers */
154#define SWIG_fail goto fail
155
156/* Constant information structure */
157typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164} swig_const_info;
165
d14a1e28
RD
166/* Common SWIG API */
167#define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169#define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171#define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
83448d71 173
d14a1e28
RD
174/* Python-specific SWIG API */
175#define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177#define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
d14a1e28
RD
181#define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183#define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
8edf1c75 186typedef double (*py_objasdbl_conv)(PyObject *obj);
d14a1e28 187
f0983263
RD
188SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
d14a1e28 196
d14a1e28
RD
197
198/* Contract support */
199
423f194a 200#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
d14a1e28 201
d14a1e28
RD
202#ifdef __cplusplus
203}
204#endif
205
206
d14a1e28
RD
207/* -------- TYPES TABLE (BEGIN) -------- */
208
209#define SWIGTYPE_p_wxPostScriptDC swig_types[0]
423f194a
RD
210#define SWIGTYPE_p_wxBrush swig_types[1]
211#define SWIGTYPE_p_wxColour swig_types[2]
212#define SWIGTYPE_p_wxDC swig_types[3]
213#define SWIGTYPE_p_wxMirrorDC swig_types[4]
214#define SWIGTYPE_p_byte swig_types[5]
215#define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
8edf1c75
RD
216#define SWIGTYPE_p_char swig_types[7]
217#define SWIGTYPE_p_wxIconLocation swig_types[8]
218#define SWIGTYPE_p_wxImage swig_types[9]
219#define SWIGTYPE_p_wxMetaFileDC swig_types[10]
220#define SWIGTYPE_p_wxMask swig_types[11]
221#define SWIGTYPE_p_wxFont swig_types[12]
222#define SWIGTYPE_p_wxWindow swig_types[13]
223#define SWIGTYPE_p_wxSize swig_types[14]
224#define SWIGTYPE_p_double swig_types[15]
225#define SWIGTYPE_p_wxMemoryDC swig_types[16]
226#define SWIGTYPE_p_wxFontMapper swig_types[17]
227#define SWIGTYPE_p_wxEffects swig_types[18]
228#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
229#define SWIGTYPE_p_wxPalette swig_types[20]
230#define SWIGTYPE_p_wxBitmap swig_types[21]
231#define SWIGTYPE_p_wxObject swig_types[22]
232#define SWIGTYPE_p_wxRegionIterator swig_types[23]
233#define SWIGTYPE_p_wxRect swig_types[24]
234#define SWIGTYPE_p_wxString swig_types[25]
235#define SWIGTYPE_p_wxPrinterDC swig_types[26]
236#define SWIGTYPE_p_wxIconBundle swig_types[27]
237#define SWIGTYPE_p_wxPoint swig_types[28]
238#define SWIGTYPE_p_wxDash swig_types[29]
239#define SWIGTYPE_p_wxScreenDC swig_types[30]
240#define SWIGTYPE_p_wxCursor swig_types[31]
241#define SWIGTYPE_p_wxClientDC swig_types[32]
242#define SWIGTYPE_p_wxBufferedDC swig_types[33]
243#define SWIGTYPE_p_wxImageList swig_types[34]
244#define SWIGTYPE_p_unsigned_char swig_types[35]
245#define SWIGTYPE_p_wxGDIObject swig_types[36]
423f194a 246#define SWIGTYPE_p_wxIcon swig_types[37]
8edf1c75
RD
247#define SWIGTYPE_p_wxLocale swig_types[38]
248#define SWIGTYPE_p_wxRegion swig_types[39]
249#define SWIGTYPE_p_wxLanguageInfo swig_types[40]
250#define SWIGTYPE_p_wxConfigBase swig_types[41]
251#define SWIGTYPE_p_wxWindowDC swig_types[42]
252#define SWIGTYPE_p_wxPrintData swig_types[43]
253#define SWIGTYPE_p_wxBrushList swig_types[44]
254#define SWIGTYPE_p_wxFontList swig_types[45]
255#define SWIGTYPE_p_wxPen swig_types[46]
256#define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
257#define SWIGTYPE_p_wxPaintDC swig_types[48]
258#define SWIGTYPE_p_wxPenList swig_types[49]
259#define SWIGTYPE_p_wxPyPen swig_types[50]
260#define SWIGTYPE_p_int swig_types[51]
261#define SWIGTYPE_p_wxMetaFile swig_types[52]
262#define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
263#define SWIGTYPE_p_wxEncodingConverter swig_types[54]
264#define SWIGTYPE_p_wxColourDatabase swig_types[55]
265static swig_type_info *swig_types[57];
d14a1e28
RD
266
267/* -------- TYPES TABLE (END) -------- */
268
269
270/*-----------------------------------------------
271 @(target):= _gdi.so
272 ------------------------------------------------*/
273#define SWIG_init init_gdi
274
275#define SWIG_name "_gdi"
276
2f4c0a16 277/* Auxiliar swig macros */
8edf1c75 278
8edf1c75 279#ifdef __cplusplus
2f4c0a16 280#define SWIGSTATICINLINE(a) static inline a
8edf1c75 281#define SWIGSTATIC(a) static a
2f4c0a16
RD
282#define swig_new_array(type, size) (new type[(size)])
283#define swig_delete_array(cptr) delete[] cptr
284#define swig_const_cast(type,a) const_cast<type>(a)
285#define swig_static_cast(type,a) static_cast<type>(a)
286#define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
8edf1c75 287
8edf1c75 288#ifdef HAVE_NUMERIC_CAST
2f4c0a16 289#define swig_numeric_cast(type,a) numeric_cast<type>(a)
8edf1c75 290#else
2f4c0a16 291#define swig_numeric_cast(type,a) static_cast<type>(a)
8edf1c75
RD
292#endif
293
2f4c0a16
RD
294#else /* C case */
295
296#define SWIGSTATICINLINE(a) static a
297#define SWIGSTATIC(a) static a
298#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
299#define swig_delete_array(cptr) free((char*)cptr)
300#define swig_const_cast(type,a) (type)(a)
301#define swig_static_cast(type,a) (type)(a)
302#define swig_reinterpret_cast(type,a) (type)(a)
303#define swig_numeric_cast(type,a) (type)(a)
304
305#endif /* __cplusplus */
8edf1c75
RD
306
307
2f4c0a16
RD
308#define SWIG_FromSignedChar PyInt_FromLong
309#define SWIG_FromUnsignedChar PyInt_FromLong
310#define SWIG_FromShort PyInt_FromLong
311#define SWIG_FromUnsignedShort PyInt_FromLong
312#define SWIG_FromInt PyInt_FromLong
313#define SWIG_FromLong PyInt_FromLong
314#define SWIG_FromFloat PyFloat_FromDouble
315#define SWIG_FromDouble PyFloat_FromDouble
316#define SWIG_FromFloat PyFloat_FromDouble
317#define SWIG_FromDouble PyFloat_FromDouble
8edf1c75
RD
318
319
d14a1e28
RD
320#include "wx/wxPython/wxPython.h"
321#include "wx/wxPython/pyclasses.h"
322
d14a1e28 323
d03fd34d 324 static const wxString wxPyEmptyString(wxEmptyString);
8edf1c75 325
2f4c0a16
RD
326SWIGSTATICINLINE(bool)
327SWIG_AsBool(PyObject *obj)
8edf1c75
RD
328{
329 return PyObject_IsTrue(obj) ? true : false;
330}
331
332
2f4c0a16
RD
333SWIGSTATICINLINE(int)
334SWIG_CheckBool(PyObject* obj)
335{
336 SWIG_AsBool(obj);
337 if (PyErr_Occurred()) {
338 PyErr_Clear();
339 return 0;
340 } else {
341 return 1;
342 }
343}
344
345
346#include <limits.h>
347
348
349SWIGSTATICINLINE(unsigned long)
350SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
351 unsigned long max_value)
352{
353 if (!PyErr_Occurred()) {
354 if (value > max_value) {
355 PyObject *err =
356 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
357 value, type, max_value);
358 PyErr_SetObject(PyExc_OverflowError, err);
359 Py_DECREF(err);
360 }
361 }
362 return value;
363}
364
365
366SWIGSTATICINLINE(unsigned long)
367SWIG_AsUnsignedLong(PyObject * obj)
368{
369 if (PyLong_Check(obj)) {
370 return PyLong_AsUnsignedLong(obj);
371 } else {
372 long i = PyInt_AsLong(obj);
373 if ( !PyErr_Occurred() && (i < 0)) {
374 PyErr_SetString(PyExc_TypeError, "negative value for unsigned type");
375 }
376 return i;
377 }
378}
379
380
381SWIGSTATICINLINE(unsigned char)
382SWIG_AsUnsignedChar(PyObject *obj)
8edf1c75 383{
2f4c0a16
RD
384 return swig_numeric_cast(unsigned char,
385 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
386 "unsigned char", UCHAR_MAX));
387}
388
389
390SWIGSTATICINLINE(int)
391SWIG_CheckUnsignedChar(PyObject* obj)
392{
393 SWIG_AsUnsignedChar(obj);
394 if (PyErr_Occurred()) {
395 PyErr_Clear();
396 return 0;
397 } else {
398 return 1;
399 }
400}
401
402
403SWIGSTATICINLINE(int)
404SWIG_CheckUnsignedLong(PyObject* obj)
405{
406 SWIG_AsUnsignedLong(obj);
407 if (PyErr_Occurred()) {
408 PyErr_Clear();
409 return 0;
410 } else {
411 return 1;
412 }
8edf1c75
RD
413}
414
d14a1e28
RD
415PyObject *wxColour_Get(wxColour *self){
416 PyObject* rv = PyTuple_New(3);
417 int red = -1;
418 int green = -1;
419 int blue = -1;
420 if (self->Ok()) {
421 red = self->Red();
422 green = self->Green();
423 blue = self->Blue();
424 }
425 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
426 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
427 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
428 return rv;
429 }
328fcd84
RD
430unsigned long wxColour_GetRGB(wxColour *self){
431 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
432 }
433
2f4c0a16
RD
434SWIGSTATICINLINE(PyObject* )
435SWIG_FromUnsignedLong(unsigned long value)
436{
437 return (value > LONG_MAX) ?
438 PyLong_FromUnsignedLong(value)
439 : PyInt_FromLong(swig_numeric_cast(long,value));
440}
441
442
443SWIGSTATICINLINE(long)
444SWIG_CheckLongInRange(long value, const char* type,
445 long min_value, long max_value)
446{
447 if (!PyErr_Occurred()) {
448 if (value < min_value) {
449 PyObject *err =
450 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
451 value, type, min_value);
452
453 PyErr_SetObject(PyExc_OverflowError, err);
454 Py_DECREF(err);
455 } else if (value > max_value) {
456 PyObject *err =
457 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
458 value, type, max_value);
459 PyErr_SetObject(PyExc_OverflowError, err);
460 Py_DECREF(err);
461 }
462 }
463 return value;
464}
465
466
467SWIGSTATICINLINE(long)
468SWIG_AsLong(PyObject * obj)
328fcd84 469{
2f4c0a16 470 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
328fcd84
RD
471}
472
d14a1e28 473
2f4c0a16
RD
474#if INT_MAX != LONG_MAX
475SWIGSTATICINLINE(int)
476SWIG_AsInt(PyObject *obj)
8edf1c75 477{
2f4c0a16
RD
478 return swig_numeric_cast(int,
479 SWIG_CheckLongInRange(SWIG_AsLong(obj),
480 "int", INT_MIN, INT_MAX));
481}
482#else
483#define SWIG_AsInt SWIG_AsLong
484#endif
485
486
487SWIGSTATICINLINE(int)
488SWIG_CheckInt(PyObject* obj)
489{
490 SWIG_AsInt(obj);
491 if (PyErr_Occurred()) {
492 PyErr_Clear();
493 return 0;
494 } else {
495 return 1;
496 }
8edf1c75
RD
497}
498
499
d14a1e28
RD
500static PyObject* t_output_helper(PyObject* target, PyObject* o) {
501 PyObject* o2;
502 PyObject* o3;
503
504 if (!target) {
505 target = o;
506 } else if (target == Py_None) {
507 Py_DECREF(Py_None);
508 target = o;
509 } else {
510 if (!PyTuple_Check(target)) {
511 o2 = target;
512 target = PyTuple_New(1);
513 PyTuple_SetItem(target, 0, o2);
514 }
515 o3 = PyTuple_New(1);
516 PyTuple_SetItem(o3, 0, o);
517
518 o2 = target;
519 target = PySequence_Concat(o2, o3);
520 Py_DECREF(o2);
521 Py_DECREF(o3);
522 }
523 return target;
524}
525
526PyObject *wxPen_GetDashes(wxPen *self){
527 wxDash* dashes;
528 int count = self->GetDashes(&dashes);
529 wxPyBeginBlockThreads();
530 PyObject* retval = PyList_New(0);
531 for (int x=0; x<count; x++)
532 PyList_Append(retval, PyInt_FromLong(dashes[x]));
533 wxPyEndBlockThreads();
534 return retval;
535 }
328fcd84
RD
536bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
537bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
d14a1e28
RD
538
539wxPyPen::~wxPyPen()
540{
541 if (m_dash)
542 delete [] m_dash;
543}
544
545void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
546{
547 if (m_dash)
548 delete [] m_dash;
549 m_dash = new wxDash[nb_dashes];
550 for (int i=0; i<nb_dashes; i++) {
551 m_dash[i] = dash[i];
552 }
553 wxPen::SetDashes(nb_dashes, m_dash);
554}
555
556
557#include <wx/image.h>
558
559 static char** ConvertListOfStrings(PyObject* listOfStrings) {
560 char** cArray = NULL;
561 int count;
562
563 if (!PyList_Check(listOfStrings)) {
564 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
565 return NULL;
566 }
567 count = PyList_Size(listOfStrings);
568 cArray = new char*[count];
569
570 for(int x=0; x<count; x++) {
571 // TODO: Need some validation and error checking here
572 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
573 }
574 return cArray;
575 }
576
577
578wxBitmap *new_wxBitmap(PyObject *listOfStrings){
579 char** cArray = NULL;
580 wxBitmap* bmp;
581
582 cArray = ConvertListOfStrings(listOfStrings);
583 if (! cArray)
584 return NULL;
585 bmp = new wxBitmap(cArray);
586 delete [] cArray;
587 return bmp;
588 }
589wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
590 char* buf;
591 int length;
592 PyString_AsStringAndSize(bits, &buf, &length);
593 return new wxBitmap(buf, width, height, depth);
594 }
8edf1c75 595
2f4c0a16
RD
596SWIGSTATICINLINE(int)
597SWIG_CheckLong(PyObject* obj)
8edf1c75 598{
2f4c0a16
RD
599 SWIG_AsLong(obj);
600 if (PyErr_Occurred()) {
601 PyErr_Clear();
602 return 0;
603 } else {
604 return 1;
605 }
8edf1c75
RD
606}
607
2f4c0a16 608void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d14a1e28
RD
609void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
610 wxMask *mask = new wxMask(*self, colour);
611 self->SetMask(mask);
612 }
fe763115
RD
613bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
614bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
0ffb2aa6
RD
615wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
616 if ( !colour.Ok() )
617 return new wxMask(bitmap, *wxBLACK);
618 else
619 return new wxMask(bitmap, colour);
620 }
d14a1e28
RD
621
622#include <wx/iconbndl.h>
623
624wxIcon *new_wxIcon(wxBitmap const &bmp){
625 wxIcon* icon = new wxIcon();
626 icon->CopyFromBitmap(bmp);
627 return icon;
628 }
629wxIcon *new_wxIcon(PyObject *listOfStrings){
630 char** cArray = NULL;
631 wxIcon* icon;
632
633 cArray = ConvertListOfStrings(listOfStrings);
634 if (! cArray)
635 return NULL;
636 icon = new wxIcon(cArray);
637 delete [] cArray;
638 return icon;
639 }
2f4c0a16 640void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d14a1e28
RD
641wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
642
643 return new wxIconLocation(*filename, num);
644
645
646
647 }
648void wxIconLocation_SetIndex(wxIconLocation *self,int num){
649
650 self->SetIndex(num);
651
652
653
654 }
655int wxIconLocation_GetIndex(wxIconLocation *self){
656
657 return self->GetIndex();
658
659
660
661 }
2f4c0a16
RD
662wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
663#ifdef __WXGTK__
664 wxCHECK_MSG(False, NULL,
665 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
666#else
667 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
668#endif
d14a1e28 669 }
2f4c0a16 670void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d14a1e28
RD
671
672
673void wxRegionIterator_Next(wxRegionIterator *self){
674 (*self) ++;
675 }
676bool wxRegionIterator___nonzero__(wxRegionIterator *self){
677 return self->operator bool();
678 }
679
680#include <wx/fontutil.h>
681#include <wx/fontmap.h>
682#include <wx/fontenum.h>
683
684wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
685 return self->ToString();
686 }
687
688 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
cbd72d4f 689 { wxPyRaiseNotImplemented(); return NULL; }
d14a1e28
RD
690
691 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
cbd72d4f 692 { wxPyRaiseNotImplemented(); return False; }
d14a1e28
RD
693
694PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
695 wxFontEncoding alt_enc;
696 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
697 return PyInt_FromLong(alt_enc);
698 else {
699 Py_INCREF(Py_None);
700 return Py_None;
701 }
702 }
703wxFont *new_wxFont(wxString const &info){
704 wxNativeFontInfo nfi;
705 nfi.FromString(info);
706 return new wxFont(nfi);
707 }
708wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
709 return wxFont::New(pointSize, family, flags, face, encoding);
710 }
328fcd84
RD
711bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
712bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
d14a1e28
RD
713
714class wxPyFontEnumerator : public wxFontEnumerator {
715public:
716 wxPyFontEnumerator() {}
717 ~wxPyFontEnumerator() {}
718
719 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
720 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
721
722 PYPRIVATE;
723};
724
725IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
726IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
727
728
729PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
730 wxArrayString* arr = self->GetEncodings();
731 return wxArrayString2PyList_helper(*arr);
732 }
733PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
734 wxArrayString* arr = self->GetFacenames();
735 return wxArrayString2PyList_helper(*arr);
736 }
737
738
739
740#include "wx/wxPython/pydrawxxx.h"
741
423f194a 742wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
d14a1e28
RD
743 wxColour col;
744 self->GetPixel(x, y, &col);
745 return col;
746 }
747wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
748 wxColour col;
749 self->GetPixel(pt, &col);
750 return col;
751 }
8edf1c75 752
2f4c0a16
RD
753SWIGSTATICINLINE(double)
754SWIG_AsDouble(PyObject *obj)
8edf1c75 755{
2f4c0a16 756 double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
8edf1c75 757#if HAVE_LONG_LONG
2f4c0a16 758 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
8edf1c75 759#else
2f4c0a16 760 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
8edf1c75
RD
761#endif
762 if (PyErr_Occurred()) {
763 PyErr_Clear();
764 PyErr_SetString(PyExc_TypeError, "a double is expected");
765 }
2f4c0a16
RD
766 return val;
767}
768
769
770SWIGSTATICINLINE(int)
771SWIG_CheckDouble(PyObject* obj)
772{
773 SWIG_AsDouble(obj);
774 if (PyErr_Occurred()) {
775 PyErr_Clear();
776 return 0;
777 } else {
778 return 1;
779 }
8edf1c75
RD
780}
781
d14a1e28
RD
782wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
783 wxRect rv;
784 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
785 return rv;
786 }
787wxRect wxDC_GetClippingRect(wxDC *self){
788 wxRect rect;
789 self->GetClippingBox(rect);
790 return rect;
791 }
db914595
RD
792wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
793 wxArrayInt widths;
794 self->GetPartialTextExtents(text, widths);
795 return widths;
796 }
d14a1e28
RD
797PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
798 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
799 }
800PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
801 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
802 }
803PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
804 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
805 }
806PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
807 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
808 }
809PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
810 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
811 }
812PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
813 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
814 }
815
816static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
817 *x1 = dc->MinX();
818 *y1 = dc->MinY();
819 *x2 = dc->MaxX();
820 *y2 = dc->MaxY();
821}
822
823
328fcd84 824//-=-=-=-=-=-=-=-=-=-=-
2f4c0a16
RD
825
826#if 1
827// Use the standard wxBufferedDC
328fcd84 828#include <wx/dcbuffer.h>
328fcd84 829
2f4c0a16 830#else
328fcd84 831
2f4c0a16 832// Or, temporarily put a set of classes here similar to the old buffered DC
328fcd84
RD
833// classes until the real ones can be fixed to work "correctly" again.
834
835class wxBufferedDC : public wxMemoryDC
836{
837private:
838 wxDC *m_dc;
839 wxBitmap m_buffer;
840
841public:
842
843 wxBufferedDC() : m_dc( 0 ) {}
844
845 wxBufferedDC( wxDC *dc, const wxBitmap &buffer )
846 : m_dc( dc ), m_buffer( buffer )
847 {
848 SelectObject( m_buffer );
849 }
850
851 wxBufferedDC( wxDC *dc, const wxSize &area )
852 : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() )
853 {
854 SelectObject( m_buffer );
855 }
856
857 ~wxBufferedDC() {
858 if( m_dc != 0 )
859 UnMask();
860 }
861
862
863 void Init( wxDC *dc, const wxBitmap &buffer ) {
864 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
865 _T("wxBufferedDC already initialised") );
866 m_dc = dc;
867 m_buffer = buffer;
868 SelectObject( m_buffer );
869 }
870
871 void Init( wxDC *dc, const wxSize &area ) {
872 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
873 _T("wxBufferedDC already initialised") );
874 m_dc = dc;
875 m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() );
876 SelectObject( m_buffer );
877 }
878
879 void UnMask() {
880 wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") );
881 m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 );
882 m_dc = 0;
883 }
884};
885
886
887class wxBufferedPaintDC : public wxBufferedDC
888{
889private:
890 wxPaintDC m_paintdc;
891
892public:
893 wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap )
894 : m_paintdc( window )
895 {
896 window->PrepareDC( m_paintdc );
897
898 if( buffer != wxNullBitmap )
899 Init( &m_paintdc, buffer );
900 else
901 Init( &m_paintdc, window->GetClientSize() );
902 }
903
904 ~wxBufferedPaintDC() {
905 UnMask();
906 }
907};
908
909#endif
910//-=-=-=-=-=-=-=-=-=-=-
911
912
d14a1e28
RD
913#include <wx/dcps.h>
914
915
916#include <wx/metafile.h>
917
918
919
920void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
921 self->AddColour(name, wxColour(red, green, blue));
922 }
923
d14a1e28
RD
924#include <wx/effects.h>
925
926#ifdef __cplusplus
927extern "C" {
928#endif
929static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
930 PyObject *resultobj;
931 wxGDIObject *result;
932 char *kwnames[] = {
933 NULL
934 };
935
936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
937 {
938 PyThreadState* __tstate = wxPyBeginAllowThreads();
939 result = (wxGDIObject *)new wxGDIObject();
940
941 wxPyEndAllowThreads(__tstate);
942 if (PyErr_Occurred()) SWIG_fail;
943 }
2f4c0a16 944 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
d14a1e28
RD
945 return resultobj;
946 fail:
947 return NULL;
948}
949
950
951static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
952 PyObject *resultobj;
953 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
954 PyObject * obj0 = 0 ;
955 char *kwnames[] = {
956 (char *) "self", NULL
957 };
958
959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
2f4c0a16
RD
960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
962 {
963 PyThreadState* __tstate = wxPyBeginAllowThreads();
964 delete arg1;
965
966 wxPyEndAllowThreads(__tstate);
967 if (PyErr_Occurred()) SWIG_fail;
968 }
969 Py_INCREF(Py_None); resultobj = Py_None;
970 return resultobj;
971 fail:
972 return NULL;
973}
974
975
976static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
977 PyObject *resultobj;
978 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
979 bool result;
980 PyObject * obj0 = 0 ;
981 char *kwnames[] = {
982 (char *) "self", NULL
983 };
984
985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
2f4c0a16
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 result = (bool)(arg1)->GetVisible();
991
992 wxPyEndAllowThreads(__tstate);
993 if (PyErr_Occurred()) SWIG_fail;
994 }
4e760a36 995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
996 return resultobj;
997 fail:
998 return NULL;
999}
1000
1001
1002static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1003 PyObject *resultobj;
1004 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1005 bool arg2 ;
1006 PyObject * obj0 = 0 ;
1007 PyObject * obj1 = 0 ;
1008 char *kwnames[] = {
1009 (char *) "self",(char *) "visible", NULL
1010 };
1011
1012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1015 arg2 = (bool) SWIG_AsBool(obj1);
1016 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1017 {
1018 PyThreadState* __tstate = wxPyBeginAllowThreads();
1019 (arg1)->SetVisible(arg2);
1020
1021 wxPyEndAllowThreads(__tstate);
1022 if (PyErr_Occurred()) SWIG_fail;
1023 }
1024 Py_INCREF(Py_None); resultobj = Py_None;
1025 return resultobj;
1026 fail:
1027 return NULL;
1028}
1029
1030
1031static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1032 PyObject *resultobj;
1033 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1034 bool result;
1035 PyObject * obj0 = 0 ;
1036 char *kwnames[] = {
1037 (char *) "self", NULL
1038 };
1039
1040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1043 {
1044 PyThreadState* __tstate = wxPyBeginAllowThreads();
1045 result = (bool)(arg1)->IsNull();
1046
1047 wxPyEndAllowThreads(__tstate);
1048 if (PyErr_Occurred()) SWIG_fail;
1049 }
4e760a36 1050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1051 return resultobj;
1052 fail:
1053 return NULL;
1054}
1055
1056
1057static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1058 PyObject *obj;
1059 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1060 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1061 Py_INCREF(obj);
1062 return Py_BuildValue((char *)"");
1063}
1064static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1065 PyObject *resultobj;
1066 unsigned char arg1 = (unsigned char) 0 ;
1067 unsigned char arg2 = (unsigned char) 0 ;
1068 unsigned char arg3 = (unsigned char) 0 ;
1069 wxColour *result;
1070 PyObject * obj0 = 0 ;
1071 PyObject * obj1 = 0 ;
1072 PyObject * obj2 = 0 ;
1073 char *kwnames[] = {
1074 (char *) "red",(char *) "green",(char *) "blue", NULL
1075 };
1076
1077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1078 if (obj0) {
2f4c0a16
RD
1079 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1080 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1081 }
1082 if (obj1) {
2f4c0a16
RD
1083 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1084 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1085 }
1086 if (obj2) {
2f4c0a16
RD
1087 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1088 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1089 }
1090 {
1091 PyThreadState* __tstate = wxPyBeginAllowThreads();
1092 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1093
1094 wxPyEndAllowThreads(__tstate);
1095 if (PyErr_Occurred()) SWIG_fail;
1096 }
2f4c0a16 1097 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1098 return resultobj;
1099 fail:
1100 return NULL;
1101}
1102
1103
d14a1e28
RD
1104static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1105 PyObject *resultobj;
1106 wxString *arg1 = 0 ;
1107 wxColour *result;
423f194a 1108 bool temp1 = False ;
d14a1e28
RD
1109 PyObject * obj0 = 0 ;
1110 char *kwnames[] = {
1111 (char *) "colorName", NULL
1112 };
1113
1114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1115 {
1116 arg1 = wxString_in_helper(obj0);
1117 if (arg1 == NULL) SWIG_fail;
423f194a 1118 temp1 = True;
d14a1e28
RD
1119 }
1120 {
1121 PyThreadState* __tstate = wxPyBeginAllowThreads();
1122 result = (wxColour *)new wxColour((wxString const &)*arg1);
1123
1124 wxPyEndAllowThreads(__tstate);
1125 if (PyErr_Occurred()) SWIG_fail;
1126 }
2f4c0a16 1127 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1128 {
1129 if (temp1)
1130 delete arg1;
1131 }
1132 return resultobj;
1133 fail:
1134 {
1135 if (temp1)
1136 delete arg1;
1137 }
1138 return NULL;
1139}
1140
1141
1142static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1143 PyObject *resultobj;
1144 unsigned long arg1 ;
1145 wxColour *result;
1146 PyObject * obj0 = 0 ;
1147 char *kwnames[] = {
1148 (char *) "colRGB", NULL
1149 };
1150
1151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1152 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1153 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1154 {
1155 PyThreadState* __tstate = wxPyBeginAllowThreads();
1156 result = (wxColour *)new wxColour(arg1);
1157
1158 wxPyEndAllowThreads(__tstate);
1159 if (PyErr_Occurred()) SWIG_fail;
1160 }
2f4c0a16 1161 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1162 return resultobj;
1163 fail:
1164 return NULL;
1165}
1166
1167
328fcd84
RD
1168static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1169 PyObject *resultobj;
1170 wxColour *arg1 = (wxColour *) 0 ;
1171 PyObject * obj0 = 0 ;
1172 char *kwnames[] = {
1173 (char *) "self", NULL
1174 };
1175
1176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
328fcd84
RD
1179 {
1180 PyThreadState* __tstate = wxPyBeginAllowThreads();
1181 delete arg1;
1182
1183 wxPyEndAllowThreads(__tstate);
1184 if (PyErr_Occurred()) SWIG_fail;
1185 }
1186 Py_INCREF(Py_None); resultobj = Py_None;
1187 return resultobj;
1188 fail:
1189 return NULL;
1190}
1191
1192
d14a1e28
RD
1193static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1194 PyObject *resultobj;
1195 wxColour *arg1 = (wxColour *) 0 ;
1196 unsigned char result;
1197 PyObject * obj0 = 0 ;
1198 char *kwnames[] = {
1199 (char *) "self", NULL
1200 };
1201
1202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1205 {
1206 PyThreadState* __tstate = wxPyBeginAllowThreads();
1207 result = (unsigned char)(arg1)->Red();
1208
1209 wxPyEndAllowThreads(__tstate);
1210 if (PyErr_Occurred()) SWIG_fail;
1211 }
2f4c0a16 1212 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1213 return resultobj;
1214 fail:
1215 return NULL;
1216}
1217
1218
1219static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1220 PyObject *resultobj;
1221 wxColour *arg1 = (wxColour *) 0 ;
1222 unsigned char result;
1223 PyObject * obj0 = 0 ;
1224 char *kwnames[] = {
1225 (char *) "self", NULL
1226 };
1227
1228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1231 {
1232 PyThreadState* __tstate = wxPyBeginAllowThreads();
1233 result = (unsigned char)(arg1)->Green();
1234
1235 wxPyEndAllowThreads(__tstate);
1236 if (PyErr_Occurred()) SWIG_fail;
1237 }
2f4c0a16 1238 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1239 return resultobj;
1240 fail:
1241 return NULL;
1242}
1243
1244
1245static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1246 PyObject *resultobj;
1247 wxColour *arg1 = (wxColour *) 0 ;
1248 unsigned char result;
1249 PyObject * obj0 = 0 ;
1250 char *kwnames[] = {
1251 (char *) "self", NULL
1252 };
1253
1254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1257 {
1258 PyThreadState* __tstate = wxPyBeginAllowThreads();
1259 result = (unsigned char)(arg1)->Blue();
1260
1261 wxPyEndAllowThreads(__tstate);
1262 if (PyErr_Occurred()) SWIG_fail;
1263 }
2f4c0a16 1264 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1265 return resultobj;
1266 fail:
1267 return NULL;
1268}
1269
1270
1271static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1272 PyObject *resultobj;
1273 wxColour *arg1 = (wxColour *) 0 ;
1274 bool result;
1275 PyObject * obj0 = 0 ;
1276 char *kwnames[] = {
1277 (char *) "self", NULL
1278 };
1279
1280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1283 {
1284 PyThreadState* __tstate = wxPyBeginAllowThreads();
1285 result = (bool)(arg1)->Ok();
1286
1287 wxPyEndAllowThreads(__tstate);
1288 if (PyErr_Occurred()) SWIG_fail;
1289 }
4e760a36 1290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1291 return resultobj;
1292 fail:
1293 return NULL;
1294}
1295
1296
1297static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1298 PyObject *resultobj;
1299 wxColour *arg1 = (wxColour *) 0 ;
1300 unsigned char arg2 ;
1301 unsigned char arg3 ;
1302 unsigned char arg4 ;
1303 PyObject * obj0 = 0 ;
1304 PyObject * obj1 = 0 ;
1305 PyObject * obj2 = 0 ;
1306 PyObject * obj3 = 0 ;
1307 char *kwnames[] = {
1308 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1309 };
1310
1311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
1312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1314 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1315 if (PyErr_Occurred()) SWIG_fail;
1316 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1317 if (PyErr_Occurred()) SWIG_fail;
1318 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1319 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1320 {
1321 PyThreadState* __tstate = wxPyBeginAllowThreads();
1322 (arg1)->Set(arg2,arg3,arg4);
1323
1324 wxPyEndAllowThreads(__tstate);
1325 if (PyErr_Occurred()) SWIG_fail;
1326 }
1327 Py_INCREF(Py_None); resultobj = Py_None;
1328 return resultobj;
1329 fail:
1330 return NULL;
1331}
1332
1333
9fd4be55 1334static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1335 PyObject *resultobj;
1336 wxColour *arg1 = (wxColour *) 0 ;
1337 unsigned long arg2 ;
1338 PyObject * obj0 = 0 ;
1339 PyObject * obj1 = 0 ;
1340 char *kwnames[] = {
1341 (char *) "self",(char *) "colRGB", NULL
1342 };
1343
9fd4be55 1344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1347 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1348 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1349 {
1350 PyThreadState* __tstate = wxPyBeginAllowThreads();
1351 (arg1)->Set(arg2);
1352
1353 wxPyEndAllowThreads(__tstate);
1354 if (PyErr_Occurred()) SWIG_fail;
1355 }
1356 Py_INCREF(Py_None); resultobj = Py_None;
1357 return resultobj;
1358 fail:
1359 return NULL;
1360}
1361
1362
328fcd84
RD
1363static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1364 PyObject *resultobj;
1365 wxColour *arg1 = (wxColour *) 0 ;
1366 wxString *arg2 = 0 ;
1367 bool temp2 = False ;
1368 PyObject * obj0 = 0 ;
1369 PyObject * obj1 = 0 ;
1370 char *kwnames[] = {
1371 (char *) "self",(char *) "colourName", NULL
1372 };
1373
1374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
328fcd84
RD
1377 {
1378 arg2 = wxString_in_helper(obj1);
1379 if (arg2 == NULL) SWIG_fail;
1380 temp2 = True;
1381 }
1382 {
1383 PyThreadState* __tstate = wxPyBeginAllowThreads();
1384 (arg1)->InitFromName((wxString const &)*arg2);
1385
1386 wxPyEndAllowThreads(__tstate);
1387 if (PyErr_Occurred()) SWIG_fail;
1388 }
1389 Py_INCREF(Py_None); resultobj = Py_None;
1390 {
1391 if (temp2)
1392 delete arg2;
1393 }
1394 return resultobj;
1395 fail:
1396 {
1397 if (temp2)
1398 delete arg2;
1399 }
1400 return NULL;
1401}
1402
1403
1404static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1405 PyObject *resultobj;
1406 wxColour *arg1 = (wxColour *) 0 ;
1407 long result;
1408 PyObject * obj0 = 0 ;
1409 char *kwnames[] = {
1410 (char *) "self", NULL
1411 };
1412
1413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
328fcd84
RD
1416 {
1417 PyThreadState* __tstate = wxPyBeginAllowThreads();
1418 result = (long)((wxColour const *)arg1)->GetPixel();
1419
1420 wxPyEndAllowThreads(__tstate);
1421 if (PyErr_Occurred()) SWIG_fail;
1422 }
2f4c0a16 1423 resultobj = SWIG_FromLong((long)result);
328fcd84
RD
1424 return resultobj;
1425 fail:
1426 return NULL;
1427}
1428
1429
d14a1e28
RD
1430static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1431 PyObject *resultobj;
1432 wxColour *arg1 = (wxColour *) 0 ;
1433 wxColour *arg2 = 0 ;
1434 bool result;
1435 wxColour temp2 ;
1436 PyObject * obj0 = 0 ;
1437 PyObject * obj1 = 0 ;
1438 char *kwnames[] = {
1439 (char *) "self",(char *) "colour", NULL
1440 };
1441
1442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1445 {
1446 arg2 = &temp2;
1447 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1448 }
1449 {
1450 PyThreadState* __tstate = wxPyBeginAllowThreads();
1451 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1452
1453 wxPyEndAllowThreads(__tstate);
1454 if (PyErr_Occurred()) SWIG_fail;
1455 }
4e760a36 1456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1457 return resultobj;
1458 fail:
1459 return NULL;
1460}
1461
1462
1463static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1464 PyObject *resultobj;
1465 wxColour *arg1 = (wxColour *) 0 ;
1466 wxColour *arg2 = 0 ;
1467 bool result;
1468 wxColour temp2 ;
1469 PyObject * obj0 = 0 ;
1470 PyObject * obj1 = 0 ;
1471 char *kwnames[] = {
1472 (char *) "self",(char *) "colour", NULL
1473 };
1474
1475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1478 {
1479 arg2 = &temp2;
1480 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1481 }
1482 {
1483 PyThreadState* __tstate = wxPyBeginAllowThreads();
1484 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1485
1486 wxPyEndAllowThreads(__tstate);
1487 if (PyErr_Occurred()) SWIG_fail;
1488 }
4e760a36 1489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1490 return resultobj;
1491 fail:
1492 return NULL;
1493}
1494
1495
328fcd84 1496static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
9fd4be55
RD
1497 PyObject *resultobj;
1498 wxColour *arg1 = (wxColour *) 0 ;
328fcd84 1499 PyObject *result;
9fd4be55 1500 PyObject * obj0 = 0 ;
9fd4be55 1501 char *kwnames[] = {
328fcd84 1502 (char *) "self", NULL
9fd4be55
RD
1503 };
1504
328fcd84 1505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9fd4be55
RD
1508 {
1509 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 1510 result = (PyObject *)wxColour_Get(arg1);
9fd4be55
RD
1511
1512 wxPyEndAllowThreads(__tstate);
1513 if (PyErr_Occurred()) SWIG_fail;
1514 }
328fcd84 1515 resultobj = result;
9fd4be55
RD
1516 return resultobj;
1517 fail:
9fd4be55
RD
1518 return NULL;
1519}
1520
1521
328fcd84 1522static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1523 PyObject *resultobj;
1524 wxColour *arg1 = (wxColour *) 0 ;
328fcd84 1525 unsigned long result;
d14a1e28
RD
1526 PyObject * obj0 = 0 ;
1527 char *kwnames[] = {
1528 (char *) "self", NULL
1529 };
1530
328fcd84 1531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1534 {
1535 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 1536 result = (unsigned long)wxColour_GetRGB(arg1);
d14a1e28
RD
1537
1538 wxPyEndAllowThreads(__tstate);
1539 if (PyErr_Occurred()) SWIG_fail;
1540 }
2f4c0a16 1541 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
1542 return resultobj;
1543 fail:
1544 return NULL;
1545}
1546
1547
1548static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1549 PyObject *obj;
1550 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1551 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1552 Py_INCREF(obj);
1553 return Py_BuildValue((char *)"");
1554}
1555static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1556 PyObject *resultobj;
1557 int arg1 ;
1558 unsigned char *arg2 = (unsigned char *) 0 ;
1559 unsigned char *arg3 = (unsigned char *) 0 ;
1560 unsigned char *arg4 = (unsigned char *) 0 ;
1561 wxPalette *result;
8edf1c75 1562 PyObject * obj0 = 0 ;
d14a1e28
RD
1563 PyObject * obj1 = 0 ;
1564 PyObject * obj2 = 0 ;
1565 PyObject * obj3 = 0 ;
1566 char *kwnames[] = {
1567 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1568 };
1569
8edf1c75 1570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
1571 arg1 = (int) SWIG_AsInt(obj0);
1572 if (PyErr_Occurred()) SWIG_fail;
1573 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1575 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1577 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1579 {
1580 PyThreadState* __tstate = wxPyBeginAllowThreads();
1581 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1582
1583 wxPyEndAllowThreads(__tstate);
1584 if (PyErr_Occurred()) SWIG_fail;
1585 }
2f4c0a16 1586 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
d14a1e28
RD
1587 return resultobj;
1588 fail:
1589 return NULL;
1590}
1591
1592
1593static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1594 PyObject *resultobj;
1595 wxPalette *arg1 = (wxPalette *) 0 ;
1596 PyObject * obj0 = 0 ;
1597 char *kwnames[] = {
1598 (char *) "self", NULL
1599 };
1600
1601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1604 {
1605 PyThreadState* __tstate = wxPyBeginAllowThreads();
1606 delete arg1;
1607
1608 wxPyEndAllowThreads(__tstate);
1609 if (PyErr_Occurred()) SWIG_fail;
1610 }
1611 Py_INCREF(Py_None); resultobj = Py_None;
1612 return resultobj;
1613 fail:
1614 return NULL;
1615}
1616
1617
1618static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1619 PyObject *resultobj;
1620 wxPalette *arg1 = (wxPalette *) 0 ;
1621 byte arg2 ;
1622 byte arg3 ;
1623 byte arg4 ;
1624 int result;
1625 PyObject * obj0 = 0 ;
1626 PyObject * obj1 = 0 ;
1627 PyObject * obj2 = 0 ;
1628 PyObject * obj3 = 0 ;
1629 char *kwnames[] = {
1630 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1631 };
1632
1633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
1634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1636 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1637 if (PyErr_Occurred()) SWIG_fail;
1638 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1639 if (PyErr_Occurred()) SWIG_fail;
1640 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1641 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1642 {
1643 PyThreadState* __tstate = wxPyBeginAllowThreads();
1644 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1645
1646 wxPyEndAllowThreads(__tstate);
1647 if (PyErr_Occurred()) SWIG_fail;
1648 }
2f4c0a16 1649 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1650 return resultobj;
1651 fail:
1652 return NULL;
1653}
1654
1655
1656static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1657 PyObject *resultobj;
1658 wxPalette *arg1 = (wxPalette *) 0 ;
1659 int arg2 ;
1660 byte *arg3 = (byte *) 0 ;
1661 byte *arg4 = (byte *) 0 ;
1662 byte *arg5 = (byte *) 0 ;
1663 bool result;
1664 byte temp3 ;
1665 byte temp4 ;
1666 byte temp5 ;
1667 PyObject * obj0 = 0 ;
8edf1c75 1668 PyObject * obj1 = 0 ;
d14a1e28
RD
1669 char *kwnames[] = {
1670 (char *) "self",(char *) "pixel", NULL
1671 };
1672
1673 arg3 = &temp3;
1674 arg4 = &temp4;
1675 arg5 = &temp5;
8edf1c75 1676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1679 arg2 = (int) SWIG_AsInt(obj1);
1680 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1681 {
1682 PyThreadState* __tstate = wxPyBeginAllowThreads();
1683 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1684
1685 wxPyEndAllowThreads(__tstate);
1686 if (PyErr_Occurred()) SWIG_fail;
1687 }
4e760a36 1688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1689 {
1690 PyObject *o = PyInt_FromLong((long) (*arg3));
1691 resultobj = t_output_helper(resultobj,o);
1692 }
1693 {
1694 PyObject *o = PyInt_FromLong((long) (*arg4));
1695 resultobj = t_output_helper(resultobj,o);
1696 }
1697 {
1698 PyObject *o = PyInt_FromLong((long) (*arg5));
1699 resultobj = t_output_helper(resultobj,o);
1700 }
1701 return resultobj;
1702 fail:
1703 return NULL;
1704}
1705
1706
1707static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1708 PyObject *resultobj;
1709 wxPalette *arg1 = (wxPalette *) 0 ;
1710 bool result;
1711 PyObject * obj0 = 0 ;
1712 char *kwnames[] = {
1713 (char *) "self", NULL
1714 };
1715
1716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1719 {
1720 PyThreadState* __tstate = wxPyBeginAllowThreads();
1721 result = (bool)(arg1)->Ok();
1722
1723 wxPyEndAllowThreads(__tstate);
1724 if (PyErr_Occurred()) SWIG_fail;
1725 }
4e760a36 1726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1727 return resultobj;
1728 fail:
1729 return NULL;
1730}
1731
1732
1733static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1734 PyObject *obj;
1735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1736 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1737 Py_INCREF(obj);
1738 return Py_BuildValue((char *)"");
1739}
1740static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1741 PyObject *resultobj;
1742 wxColour *arg1 = 0 ;
1743 int arg2 = (int) 1 ;
1744 int arg3 = (int) wxSOLID ;
1745 wxPen *result;
1746 wxColour temp1 ;
1747 PyObject * obj0 = 0 ;
8edf1c75
RD
1748 PyObject * obj1 = 0 ;
1749 PyObject * obj2 = 0 ;
d14a1e28
RD
1750 char *kwnames[] = {
1751 (char *) "colour",(char *) "width",(char *) "style", NULL
1752 };
1753
8edf1c75 1754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
1755 {
1756 arg1 = &temp1;
1757 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1758 }
8edf1c75 1759 if (obj1) {
2f4c0a16
RD
1760 arg2 = (int) SWIG_AsInt(obj1);
1761 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
1762 }
1763 if (obj2) {
2f4c0a16
RD
1764 arg3 = (int) SWIG_AsInt(obj2);
1765 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 1766 }
d14a1e28
RD
1767 {
1768 PyThreadState* __tstate = wxPyBeginAllowThreads();
1769 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1770
1771 wxPyEndAllowThreads(__tstate);
1772 if (PyErr_Occurred()) SWIG_fail;
1773 }
2f4c0a16 1774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
d14a1e28
RD
1775 return resultobj;
1776 fail:
1777 return NULL;
1778}
1779
1780
1781static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1782 PyObject *resultobj;
1783 wxPen *arg1 = (wxPen *) 0 ;
1784 PyObject * obj0 = 0 ;
1785 char *kwnames[] = {
1786 (char *) "self", NULL
1787 };
1788
1789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1792 {
1793 PyThreadState* __tstate = wxPyBeginAllowThreads();
1794 delete arg1;
1795
1796 wxPyEndAllowThreads(__tstate);
1797 if (PyErr_Occurred()) SWIG_fail;
1798 }
1799 Py_INCREF(Py_None); resultobj = Py_None;
1800 return resultobj;
1801 fail:
1802 return NULL;
1803}
1804
1805
1806static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1807 PyObject *resultobj;
1808 wxPen *arg1 = (wxPen *) 0 ;
1809 int result;
1810 PyObject * obj0 = 0 ;
1811 char *kwnames[] = {
1812 (char *) "self", NULL
1813 };
1814
1815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1818 {
1819 PyThreadState* __tstate = wxPyBeginAllowThreads();
1820 result = (int)(arg1)->GetCap();
1821
1822 wxPyEndAllowThreads(__tstate);
1823 if (PyErr_Occurred()) SWIG_fail;
1824 }
2f4c0a16 1825 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1826 return resultobj;
1827 fail:
1828 return NULL;
1829}
1830
1831
1832static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1833 PyObject *resultobj;
1834 wxPen *arg1 = (wxPen *) 0 ;
1835 wxColour result;
1836 PyObject * obj0 = 0 ;
1837 char *kwnames[] = {
1838 (char *) "self", NULL
1839 };
1840
1841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1844 {
1845 PyThreadState* __tstate = wxPyBeginAllowThreads();
1846 result = (arg1)->GetColour();
1847
1848 wxPyEndAllowThreads(__tstate);
1849 if (PyErr_Occurred()) SWIG_fail;
1850 }
1851 {
1852 wxColour * resultptr;
1853 resultptr = new wxColour((wxColour &) result);
2f4c0a16 1854 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1855 }
1856 return resultobj;
1857 fail:
1858 return NULL;
1859}
1860
1861
1862static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1863 PyObject *resultobj;
1864 wxPen *arg1 = (wxPen *) 0 ;
1865 int result;
1866 PyObject * obj0 = 0 ;
1867 char *kwnames[] = {
1868 (char *) "self", NULL
1869 };
1870
1871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1874 {
1875 PyThreadState* __tstate = wxPyBeginAllowThreads();
1876 result = (int)(arg1)->GetJoin();
1877
1878 wxPyEndAllowThreads(__tstate);
1879 if (PyErr_Occurred()) SWIG_fail;
1880 }
2f4c0a16 1881 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1882 return resultobj;
1883 fail:
1884 return NULL;
1885}
1886
1887
1888static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1889 PyObject *resultobj;
1890 wxPen *arg1 = (wxPen *) 0 ;
1891 int result;
1892 PyObject * obj0 = 0 ;
1893 char *kwnames[] = {
1894 (char *) "self", NULL
1895 };
1896
1897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1900 {
1901 PyThreadState* __tstate = wxPyBeginAllowThreads();
1902 result = (int)(arg1)->GetStyle();
1903
1904 wxPyEndAllowThreads(__tstate);
1905 if (PyErr_Occurred()) SWIG_fail;
1906 }
2f4c0a16 1907 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1908 return resultobj;
1909 fail:
1910 return NULL;
1911}
1912
1913
1914static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1915 PyObject *resultobj;
1916 wxPen *arg1 = (wxPen *) 0 ;
1917 int result;
1918 PyObject * obj0 = 0 ;
1919 char *kwnames[] = {
1920 (char *) "self", NULL
1921 };
1922
1923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1926 {
1927 PyThreadState* __tstate = wxPyBeginAllowThreads();
1928 result = (int)(arg1)->GetWidth();
1929
1930 wxPyEndAllowThreads(__tstate);
1931 if (PyErr_Occurred()) SWIG_fail;
1932 }
2f4c0a16 1933 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1934 return resultobj;
1935 fail:
1936 return NULL;
1937}
1938
1939
1940static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1941 PyObject *resultobj;
1942 wxPen *arg1 = (wxPen *) 0 ;
1943 bool result;
1944 PyObject * obj0 = 0 ;
1945 char *kwnames[] = {
1946 (char *) "self", NULL
1947 };
1948
1949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1952 {
1953 PyThreadState* __tstate = wxPyBeginAllowThreads();
1954 result = (bool)(arg1)->Ok();
1955
1956 wxPyEndAllowThreads(__tstate);
1957 if (PyErr_Occurred()) SWIG_fail;
1958 }
4e760a36 1959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1960 return resultobj;
1961 fail:
1962 return NULL;
1963}
1964
1965
1966static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1967 PyObject *resultobj;
1968 wxPen *arg1 = (wxPen *) 0 ;
1969 int arg2 ;
1970 PyObject * obj0 = 0 ;
8edf1c75 1971 PyObject * obj1 = 0 ;
d14a1e28
RD
1972 char *kwnames[] = {
1973 (char *) "self",(char *) "cap_style", NULL
1974 };
1975
8edf1c75 1976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1979 arg2 = (int) SWIG_AsInt(obj1);
1980 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1981 {
1982 PyThreadState* __tstate = wxPyBeginAllowThreads();
1983 (arg1)->SetCap(arg2);
1984
1985 wxPyEndAllowThreads(__tstate);
1986 if (PyErr_Occurred()) SWIG_fail;
1987 }
1988 Py_INCREF(Py_None); resultobj = Py_None;
1989 return resultobj;
1990 fail:
1991 return NULL;
1992}
1993
1994
1995static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1996 PyObject *resultobj;
1997 wxPen *arg1 = (wxPen *) 0 ;
1998 wxColour *arg2 = 0 ;
1999 wxColour temp2 ;
2000 PyObject * obj0 = 0 ;
2001 PyObject * obj1 = 0 ;
2002 char *kwnames[] = {
2003 (char *) "self",(char *) "colour", NULL
2004 };
2005
2006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2009 {
2010 arg2 = &temp2;
2011 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2012 }
2013 {
2014 PyThreadState* __tstate = wxPyBeginAllowThreads();
2015 (arg1)->SetColour(*arg2);
2016
2017 wxPyEndAllowThreads(__tstate);
2018 if (PyErr_Occurred()) SWIG_fail;
2019 }
2020 Py_INCREF(Py_None); resultobj = Py_None;
2021 return resultobj;
2022 fail:
2023 return NULL;
2024}
2025
2026
2027static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2028 PyObject *resultobj;
2029 wxPen *arg1 = (wxPen *) 0 ;
2030 int arg2 ;
2031 PyObject * obj0 = 0 ;
8edf1c75 2032 PyObject * obj1 = 0 ;
d14a1e28
RD
2033 char *kwnames[] = {
2034 (char *) "self",(char *) "join_style", NULL
2035 };
2036
8edf1c75 2037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2040 arg2 = (int) SWIG_AsInt(obj1);
2041 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2042 {
2043 PyThreadState* __tstate = wxPyBeginAllowThreads();
2044 (arg1)->SetJoin(arg2);
2045
2046 wxPyEndAllowThreads(__tstate);
2047 if (PyErr_Occurred()) SWIG_fail;
2048 }
2049 Py_INCREF(Py_None); resultobj = Py_None;
2050 return resultobj;
2051 fail:
2052 return NULL;
2053}
2054
2055
2056static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2057 PyObject *resultobj;
2058 wxPen *arg1 = (wxPen *) 0 ;
2059 int arg2 ;
2060 PyObject * obj0 = 0 ;
8edf1c75 2061 PyObject * obj1 = 0 ;
d14a1e28
RD
2062 char *kwnames[] = {
2063 (char *) "self",(char *) "style", NULL
2064 };
2065
8edf1c75 2066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2069 arg2 = (int) SWIG_AsInt(obj1);
2070 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2071 {
2072 PyThreadState* __tstate = wxPyBeginAllowThreads();
2073 (arg1)->SetStyle(arg2);
2074
2075 wxPyEndAllowThreads(__tstate);
2076 if (PyErr_Occurred()) SWIG_fail;
2077 }
2078 Py_INCREF(Py_None); resultobj = Py_None;
2079 return resultobj;
2080 fail:
2081 return NULL;
2082}
2083
2084
2085static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2086 PyObject *resultobj;
2087 wxPen *arg1 = (wxPen *) 0 ;
2088 int arg2 ;
2089 PyObject * obj0 = 0 ;
8edf1c75 2090 PyObject * obj1 = 0 ;
d14a1e28
RD
2091 char *kwnames[] = {
2092 (char *) "self",(char *) "width", NULL
2093 };
2094
8edf1c75 2095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2098 arg2 = (int) SWIG_AsInt(obj1);
2099 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2100 {
2101 PyThreadState* __tstate = wxPyBeginAllowThreads();
2102 (arg1)->SetWidth(arg2);
2103
2104 wxPyEndAllowThreads(__tstate);
2105 if (PyErr_Occurred()) SWIG_fail;
2106 }
2107 Py_INCREF(Py_None); resultobj = Py_None;
2108 return resultobj;
2109 fail:
2110 return NULL;
2111}
2112
2113
2114static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2115 PyObject *resultobj;
2116 wxPen *arg1 = (wxPen *) 0 ;
2117 int arg2 ;
2118 wxDash *arg3 = (wxDash *) 0 ;
2119 PyObject * obj0 = 0 ;
2120 PyObject * obj1 = 0 ;
2121 char *kwnames[] = {
2122 (char *) "self",(char *) "dashes", NULL
2123 };
2124
2125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2128 {
2129 arg2 = PyList_Size(obj1);
2130 arg3 = (wxDash*)byte_LIST_helper(obj1);
2131 if (arg3 == NULL) SWIG_fail;
2132 }
2133 {
2134 PyThreadState* __tstate = wxPyBeginAllowThreads();
2135 (arg1)->SetDashes(arg2,arg3);
2136
2137 wxPyEndAllowThreads(__tstate);
2138 if (PyErr_Occurred()) SWIG_fail;
2139 }
2140 Py_INCREF(Py_None); resultobj = Py_None;
2141 {
2142 if (arg3) delete [] arg3;
2143 }
2144 return resultobj;
2145 fail:
2146 {
2147 if (arg3) delete [] arg3;
2148 }
2149 return NULL;
2150}
2151
2152
2153static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2154 PyObject *resultobj;
2155 wxPen *arg1 = (wxPen *) 0 ;
2156 PyObject *result;
2157 PyObject * obj0 = 0 ;
2158 char *kwnames[] = {
2159 (char *) "self", NULL
2160 };
2161
2162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2165 {
2166 PyThreadState* __tstate = wxPyBeginAllowThreads();
2167 result = (PyObject *)wxPen_GetDashes(arg1);
2168
2169 wxPyEndAllowThreads(__tstate);
2170 if (PyErr_Occurred()) SWIG_fail;
2171 }
2172 resultobj = result;
2173 return resultobj;
2174 fail:
2175 return NULL;
2176}
2177
2178
db914595
RD
2179static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2180 PyObject *resultobj;
2181 wxPen *arg1 = (wxPen *) 0 ;
328fcd84 2182 wxPen *arg2 = (wxPen *) 0 ;
db914595
RD
2183 bool result;
2184 PyObject * obj0 = 0 ;
2185 PyObject * obj1 = 0 ;
2186 char *kwnames[] = {
328fcd84 2187 (char *) "self",(char *) "other", NULL
db914595
RD
2188 };
2189
2190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2193 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
328fcd84
RD
2195 {
2196 PyThreadState* __tstate = wxPyBeginAllowThreads();
2197 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2198
2199 wxPyEndAllowThreads(__tstate);
2200 if (PyErr_Occurred()) SWIG_fail;
db914595 2201 }
328fcd84
RD
2202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2203 return resultobj;
2204 fail:
2205 return NULL;
2206}
2207
2208
2209static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2210 PyObject *resultobj;
2211 wxPen *arg1 = (wxPen *) 0 ;
2212 wxPen *arg2 = (wxPen *) 0 ;
2213 bool result;
2214 PyObject * obj0 = 0 ;
2215 PyObject * obj1 = 0 ;
2216 char *kwnames[] = {
2217 (char *) "self",(char *) "other", NULL
2218 };
2219
2220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2223 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
db914595
RD
2225 {
2226 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 2227 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
db914595
RD
2228
2229 wxPyEndAllowThreads(__tstate);
2230 if (PyErr_Occurred()) SWIG_fail;
2231 }
2232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2233 return resultobj;
2234 fail:
2235 return NULL;
2236}
2237
2238
9fd4be55
RD
2239static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2240 PyObject *resultobj;
2241 wxPen *arg1 = (wxPen *) 0 ;
2242 int result;
2243 PyObject * obj0 = 0 ;
2244 char *kwnames[] = {
2245 (char *) "self", NULL
2246 };
2247
2248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9fd4be55
RD
2251 {
2252 PyThreadState* __tstate = wxPyBeginAllowThreads();
2253 result = (int)((wxPen const *)arg1)->GetDashCount();
2254
2255 wxPyEndAllowThreads(__tstate);
2256 if (PyErr_Occurred()) SWIG_fail;
2257 }
2f4c0a16 2258 resultobj = SWIG_FromInt((int)result);
9fd4be55
RD
2259 return resultobj;
2260 fail:
2261 return NULL;
2262}
2263
2264
d14a1e28
RD
2265static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2266 PyObject *resultobj;
2267 wxPen *arg1 = (wxPen *) 0 ;
2268 wxBitmap *result;
2269 PyObject * obj0 = 0 ;
2270 char *kwnames[] = {
2271 (char *) "self", NULL
2272 };
2273
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2277 {
2278 PyThreadState* __tstate = wxPyBeginAllowThreads();
2279 result = (wxBitmap *)(arg1)->GetStipple();
2280
2281 wxPyEndAllowThreads(__tstate);
2282 if (PyErr_Occurred()) SWIG_fail;
2283 }
2f4c0a16 2284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
d14a1e28
RD
2285 return resultobj;
2286 fail:
2287 return NULL;
2288}
2289
2290
2291static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2292 PyObject *resultobj;
2293 wxPen *arg1 = (wxPen *) 0 ;
2294 wxBitmap *arg2 = 0 ;
2295 PyObject * obj0 = 0 ;
2296 PyObject * obj1 = 0 ;
2297 char *kwnames[] = {
2298 (char *) "self",(char *) "stipple", NULL
2299 };
2300
2301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2304 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2305 SWIG_POINTER_EXCEPTION | 0)) == -1)
2306 SWIG_fail;
d14a1e28 2307 if (arg2 == NULL) {
2f4c0a16
RD
2308 PyErr_SetString(PyExc_TypeError,"null reference");
2309 SWIG_fail;
d14a1e28
RD
2310 }
2311 {
2312 PyThreadState* __tstate = wxPyBeginAllowThreads();
2313 (arg1)->SetStipple(*arg2);
2314
2315 wxPyEndAllowThreads(__tstate);
2316 if (PyErr_Occurred()) SWIG_fail;
2317 }
2318 Py_INCREF(Py_None); resultobj = Py_None;
2319 return resultobj;
2320 fail:
2321 return NULL;
2322}
2323
2324
2325static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2326 PyObject *obj;
2327 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2328 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2329 Py_INCREF(obj);
2330 return Py_BuildValue((char *)"");
2331}
2332static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2333 PyObject *resultobj;
2334 wxColour *arg1 = 0 ;
2335 int arg2 = (int) 1 ;
2336 int arg3 = (int) wxSOLID ;
2337 wxPyPen *result;
2338 wxColour temp1 ;
2339 PyObject * obj0 = 0 ;
8edf1c75
RD
2340 PyObject * obj1 = 0 ;
2341 PyObject * obj2 = 0 ;
d14a1e28
RD
2342 char *kwnames[] = {
2343 (char *) "colour",(char *) "width",(char *) "style", NULL
2344 };
2345
8edf1c75 2346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
2347 {
2348 arg1 = &temp1;
2349 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2350 }
8edf1c75 2351 if (obj1) {
2f4c0a16
RD
2352 arg2 = (int) SWIG_AsInt(obj1);
2353 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
2354 }
2355 if (obj2) {
2f4c0a16
RD
2356 arg3 = (int) SWIG_AsInt(obj2);
2357 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2358 }
d14a1e28
RD
2359 {
2360 PyThreadState* __tstate = wxPyBeginAllowThreads();
2361 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2362
2363 wxPyEndAllowThreads(__tstate);
2364 if (PyErr_Occurred()) SWIG_fail;
2365 }
2f4c0a16 2366 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
d14a1e28
RD
2367 return resultobj;
2368 fail:
2369 return NULL;
2370}
2371
2372
2373static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2374 PyObject *resultobj;
2375 wxPyPen *arg1 = (wxPyPen *) 0 ;
2376 PyObject * obj0 = 0 ;
2377 char *kwnames[] = {
2378 (char *) "self", NULL
2379 };
2380
2381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2384 {
2385 PyThreadState* __tstate = wxPyBeginAllowThreads();
2386 delete arg1;
2387
2388 wxPyEndAllowThreads(__tstate);
2389 if (PyErr_Occurred()) SWIG_fail;
2390 }
2391 Py_INCREF(Py_None); resultobj = Py_None;
2392 return resultobj;
2393 fail:
2394 return NULL;
2395}
2396
2397
2398static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2399 PyObject *resultobj;
2400 wxPyPen *arg1 = (wxPyPen *) 0 ;
2401 int arg2 ;
2402 wxDash *arg3 = (wxDash *) 0 ;
2403 PyObject * obj0 = 0 ;
2404 PyObject * obj1 = 0 ;
2405 char *kwnames[] = {
2406 (char *) "self",(char *) "dashes", NULL
2407 };
2408
2409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2412 {
2413 arg2 = PyList_Size(obj1);
2414 arg3 = (wxDash*)byte_LIST_helper(obj1);
2415 if (arg3 == NULL) SWIG_fail;
2416 }
2417 {
2418 PyThreadState* __tstate = wxPyBeginAllowThreads();
2419 (arg1)->SetDashes(arg2,arg3);
2420
2421 wxPyEndAllowThreads(__tstate);
2422 if (PyErr_Occurred()) SWIG_fail;
2423 }
2424 Py_INCREF(Py_None); resultobj = Py_None;
2425 {
2426 if (arg3) delete [] arg3;
2427 }
2428 return resultobj;
2429 fail:
2430 {
2431 if (arg3) delete [] arg3;
2432 }
2433 return NULL;
2434}
2435
2436
2437static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2438 PyObject *obj;
2439 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2440 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2441 Py_INCREF(obj);
2442 return Py_BuildValue((char *)"");
2443}
2444static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2445 PyObject *resultobj;
2446 wxColour *arg1 = 0 ;
2447 int arg2 = (int) wxSOLID ;
2448 wxBrush *result;
2449 wxColour temp1 ;
2450 PyObject * obj0 = 0 ;
8edf1c75 2451 PyObject * obj1 = 0 ;
d14a1e28
RD
2452 char *kwnames[] = {
2453 (char *) "colour",(char *) "style", NULL
2454 };
2455
8edf1c75 2456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2457 {
2458 arg1 = &temp1;
2459 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2460 }
8edf1c75 2461 if (obj1) {
2f4c0a16
RD
2462 arg2 = (int) SWIG_AsInt(obj1);
2463 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2464 }
d14a1e28
RD
2465 {
2466 PyThreadState* __tstate = wxPyBeginAllowThreads();
2467 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2468
2469 wxPyEndAllowThreads(__tstate);
2470 if (PyErr_Occurred()) SWIG_fail;
2471 }
2f4c0a16 2472 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
d14a1e28
RD
2473 return resultobj;
2474 fail:
2475 return NULL;
2476}
2477
2478
2479static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2480 PyObject *resultobj;
2481 wxBrush *arg1 = (wxBrush *) 0 ;
2482 PyObject * obj0 = 0 ;
2483 char *kwnames[] = {
2484 (char *) "self", NULL
2485 };
2486
2487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2490 {
2491 PyThreadState* __tstate = wxPyBeginAllowThreads();
2492 delete arg1;
2493
2494 wxPyEndAllowThreads(__tstate);
2495 if (PyErr_Occurred()) SWIG_fail;
2496 }
2497 Py_INCREF(Py_None); resultobj = Py_None;
2498 return resultobj;
2499 fail:
2500 return NULL;
2501}
2502
2503
2504static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2505 PyObject *resultobj;
2506 wxBrush *arg1 = (wxBrush *) 0 ;
2507 wxColour *arg2 = 0 ;
2508 wxColour temp2 ;
2509 PyObject * obj0 = 0 ;
2510 PyObject * obj1 = 0 ;
2511 char *kwnames[] = {
2512 (char *) "self",(char *) "col", NULL
2513 };
2514
2515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2518 {
2519 arg2 = &temp2;
2520 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2521 }
2522 {
2523 PyThreadState* __tstate = wxPyBeginAllowThreads();
2524 (arg1)->SetColour((wxColour const &)*arg2);
2525
2526 wxPyEndAllowThreads(__tstate);
2527 if (PyErr_Occurred()) SWIG_fail;
2528 }
2529 Py_INCREF(Py_None); resultobj = Py_None;
2530 return resultobj;
2531 fail:
2532 return NULL;
2533}
2534
2535
2536static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2537 PyObject *resultobj;
2538 wxBrush *arg1 = (wxBrush *) 0 ;
2539 int arg2 ;
2540 PyObject * obj0 = 0 ;
8edf1c75 2541 PyObject * obj1 = 0 ;
d14a1e28
RD
2542 char *kwnames[] = {
2543 (char *) "self",(char *) "style", NULL
2544 };
2545
8edf1c75 2546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2549 arg2 = (int) SWIG_AsInt(obj1);
2550 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2551 {
2552 PyThreadState* __tstate = wxPyBeginAllowThreads();
2553 (arg1)->SetStyle(arg2);
2554
2555 wxPyEndAllowThreads(__tstate);
2556 if (PyErr_Occurred()) SWIG_fail;
2557 }
2558 Py_INCREF(Py_None); resultobj = Py_None;
2559 return resultobj;
2560 fail:
2561 return NULL;
2562}
2563
2564
2565static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2566 PyObject *resultobj;
2567 wxBrush *arg1 = (wxBrush *) 0 ;
2568 wxBitmap *arg2 = 0 ;
2569 PyObject * obj0 = 0 ;
2570 PyObject * obj1 = 0 ;
2571 char *kwnames[] = {
2572 (char *) "self",(char *) "stipple", NULL
2573 };
2574
2575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2578 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2579 SWIG_POINTER_EXCEPTION | 0)) == -1)
2580 SWIG_fail;
d14a1e28 2581 if (arg2 == NULL) {
2f4c0a16
RD
2582 PyErr_SetString(PyExc_TypeError,"null reference");
2583 SWIG_fail;
d14a1e28
RD
2584 }
2585 {
2586 PyThreadState* __tstate = wxPyBeginAllowThreads();
2587 (arg1)->SetStipple((wxBitmap const &)*arg2);
2588
2589 wxPyEndAllowThreads(__tstate);
2590 if (PyErr_Occurred()) SWIG_fail;
2591 }
2592 Py_INCREF(Py_None); resultobj = Py_None;
2593 return resultobj;
2594 fail:
2595 return NULL;
2596}
2597
2598
2599static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2600 PyObject *resultobj;
2601 wxBrush *arg1 = (wxBrush *) 0 ;
2602 wxColour result;
2603 PyObject * obj0 = 0 ;
2604 char *kwnames[] = {
2605 (char *) "self", NULL
2606 };
2607
2608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2611 {
2612 PyThreadState* __tstate = wxPyBeginAllowThreads();
2613 result = ((wxBrush const *)arg1)->GetColour();
2614
2615 wxPyEndAllowThreads(__tstate);
2616 if (PyErr_Occurred()) SWIG_fail;
2617 }
2618 {
2619 wxColour * resultptr;
2620 resultptr = new wxColour((wxColour &) result);
2f4c0a16 2621 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
2622 }
2623 return resultobj;
2624 fail:
2625 return NULL;
2626}
2627
2628
2629static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2630 PyObject *resultobj;
2631 wxBrush *arg1 = (wxBrush *) 0 ;
2632 int result;
2633 PyObject * obj0 = 0 ;
2634 char *kwnames[] = {
2635 (char *) "self", NULL
2636 };
2637
2638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2641 {
2642 PyThreadState* __tstate = wxPyBeginAllowThreads();
2643 result = (int)((wxBrush const *)arg1)->GetStyle();
2644
2645 wxPyEndAllowThreads(__tstate);
2646 if (PyErr_Occurred()) SWIG_fail;
2647 }
2f4c0a16 2648 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
2649 return resultobj;
2650 fail:
2651 return NULL;
2652}
2653
2654
2655static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2656 PyObject *resultobj;
2657 wxBrush *arg1 = (wxBrush *) 0 ;
2658 wxBitmap *result;
2659 PyObject * obj0 = 0 ;
2660 char *kwnames[] = {
2661 (char *) "self", NULL
2662 };
2663
2664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2667 {
2668 PyThreadState* __tstate = wxPyBeginAllowThreads();
2669 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2670
2671 wxPyEndAllowThreads(__tstate);
2672 if (PyErr_Occurred()) SWIG_fail;
2673 }
2f4c0a16 2674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
d14a1e28
RD
2675 return resultobj;
2676 fail:
2677 return NULL;
2678}
2679
2680
2681static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2682 PyObject *resultobj;
2683 wxBrush *arg1 = (wxBrush *) 0 ;
2684 bool result;
2685 PyObject * obj0 = 0 ;
2686 char *kwnames[] = {
2687 (char *) "self", NULL
2688 };
2689
2690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2693 {
2694 PyThreadState* __tstate = wxPyBeginAllowThreads();
2695 result = (bool)(arg1)->Ok();
2696
2697 wxPyEndAllowThreads(__tstate);
2698 if (PyErr_Occurred()) SWIG_fail;
2699 }
4e760a36 2700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
2701 return resultobj;
2702 fail:
2703 return NULL;
2704}
2705
2706
2707static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2708 PyObject *obj;
2709 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2710 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2711 Py_INCREF(obj);
2712 return Py_BuildValue((char *)"");
2713}
2714static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2715 PyObject *resultobj;
2716 wxString *arg1 = 0 ;
2717 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2718 wxBitmap *result;
423f194a 2719 bool temp1 = False ;
d14a1e28 2720 PyObject * obj0 = 0 ;
8edf1c75 2721 PyObject * obj1 = 0 ;
d14a1e28
RD
2722 char *kwnames[] = {
2723 (char *) "name",(char *) "type", NULL
2724 };
2725
8edf1c75 2726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2727 {
2728 arg1 = wxString_in_helper(obj0);
2729 if (arg1 == NULL) SWIG_fail;
423f194a 2730 temp1 = True;
d14a1e28 2731 }
8edf1c75 2732 if (obj1) {
2f4c0a16
RD
2733 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2734 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2735 }
d14a1e28
RD
2736 {
2737 PyThreadState* __tstate = wxPyBeginAllowThreads();
2738 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2739
2740 wxPyEndAllowThreads(__tstate);
2741 if (PyErr_Occurred()) SWIG_fail;
2742 }
2f4c0a16 2743 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2744 {
2745 if (temp1)
2746 delete arg1;
2747 }
2748 return resultobj;
2749 fail:
2750 {
2751 if (temp1)
2752 delete arg1;
2753 }
2754 return NULL;
2755}
2756
2757
2758static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2759 PyObject *resultobj;
2760 wxBitmap *arg1 = (wxBitmap *) 0 ;
2761 PyObject * obj0 = 0 ;
2762 char *kwnames[] = {
2763 (char *) "self", NULL
2764 };
2765
2766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2769 {
2770 PyThreadState* __tstate = wxPyBeginAllowThreads();
2771 delete arg1;
2772
2773 wxPyEndAllowThreads(__tstate);
2774 if (PyErr_Occurred()) SWIG_fail;
2775 }
2776 Py_INCREF(Py_None); resultobj = Py_None;
2777 return resultobj;
2778 fail:
2779 return NULL;
2780}
2781
2782
2783static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2784 PyObject *resultobj;
2785 int arg1 ;
2786 int arg2 ;
2787 int arg3 = (int) -1 ;
2788 wxBitmap *result;
8edf1c75
RD
2789 PyObject * obj0 = 0 ;
2790 PyObject * obj1 = 0 ;
2791 PyObject * obj2 = 0 ;
d14a1e28
RD
2792 char *kwnames[] = {
2793 (char *) "width",(char *) "height",(char *) "depth", NULL
2794 };
2795
8edf1c75 2796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
2797 arg1 = (int) SWIG_AsInt(obj0);
2798 if (PyErr_Occurred()) SWIG_fail;
2799 arg2 = (int) SWIG_AsInt(obj1);
2800 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2801 if (obj2) {
2f4c0a16
RD
2802 arg3 = (int) SWIG_AsInt(obj2);
2803 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2804 }
d14a1e28
RD
2805 {
2806 PyThreadState* __tstate = wxPyBeginAllowThreads();
2807 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2808
2809 wxPyEndAllowThreads(__tstate);
2810 if (PyErr_Occurred()) SWIG_fail;
2811 }
2f4c0a16 2812 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2813 return resultobj;
2814 fail:
2815 return NULL;
2816}
2817
2818
2819static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2820 PyObject *resultobj;
2821 wxIcon *arg1 = 0 ;
2822 wxBitmap *result;
2823 PyObject * obj0 = 0 ;
2824 char *kwnames[] = {
2825 (char *) "icon", NULL
2826 };
2827
2828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2830 SWIG_POINTER_EXCEPTION | 0)) == -1)
2831 SWIG_fail;
d14a1e28 2832 if (arg1 == NULL) {
2f4c0a16
RD
2833 PyErr_SetString(PyExc_TypeError,"null reference");
2834 SWIG_fail;
d14a1e28
RD
2835 }
2836 {
2837 PyThreadState* __tstate = wxPyBeginAllowThreads();
2838 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2839
2840 wxPyEndAllowThreads(__tstate);
2841 if (PyErr_Occurred()) SWIG_fail;
2842 }
2f4c0a16 2843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2844 return resultobj;
2845 fail:
2846 return NULL;
2847}
2848
2849
2850static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2851 PyObject *resultobj;
2852 wxImage *arg1 = 0 ;
2853 int arg2 = (int) -1 ;
2854 wxBitmap *result;
2855 PyObject * obj0 = 0 ;
8edf1c75 2856 PyObject * obj1 = 0 ;
d14a1e28
RD
2857 char *kwnames[] = {
2858 (char *) "image",(char *) "depth", NULL
2859 };
2860
8edf1c75 2861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2863 SWIG_POINTER_EXCEPTION | 0)) == -1)
2864 SWIG_fail;
d14a1e28 2865 if (arg1 == NULL) {
2f4c0a16
RD
2866 PyErr_SetString(PyExc_TypeError,"null reference");
2867 SWIG_fail;
d14a1e28 2868 }
8edf1c75 2869 if (obj1) {
2f4c0a16
RD
2870 arg2 = (int) SWIG_AsInt(obj1);
2871 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2872 }
d14a1e28
RD
2873 {
2874 PyThreadState* __tstate = wxPyBeginAllowThreads();
2875 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2876
2877 wxPyEndAllowThreads(__tstate);
2878 if (PyErr_Occurred()) SWIG_fail;
2879 }
2f4c0a16 2880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2881 return resultobj;
2882 fail:
2883 return NULL;
2884}
2885
2886
2887static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2888 PyObject *resultobj;
2889 PyObject *arg1 = (PyObject *) 0 ;
2890 wxBitmap *result;
2891 PyObject * obj0 = 0 ;
2892 char *kwnames[] = {
2893 (char *) "listOfStrings", NULL
2894 };
2895
2896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2897 arg1 = obj0;
2898 {
2899 PyThreadState* __tstate = wxPyBeginAllowThreads();
2900 result = (wxBitmap *)new_wxBitmap(arg1);
2901
2902 wxPyEndAllowThreads(__tstate);
2903 if (PyErr_Occurred()) SWIG_fail;
2904 }
2f4c0a16 2905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2906 return resultobj;
2907 fail:
2908 return NULL;
2909}
2910
2911
2912static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2913 PyObject *resultobj;
2914 PyObject *arg1 = (PyObject *) 0 ;
2915 int arg2 ;
2916 int arg3 ;
2917 int arg4 = (int) 1 ;
2918 wxBitmap *result;
2919 PyObject * obj0 = 0 ;
8edf1c75
RD
2920 PyObject * obj1 = 0 ;
2921 PyObject * obj2 = 0 ;
2922 PyObject * obj3 = 0 ;
d14a1e28
RD
2923 char *kwnames[] = {
2924 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2925 };
2926
8edf1c75 2927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 2928 arg1 = obj0;
2f4c0a16
RD
2929 arg2 = (int) SWIG_AsInt(obj1);
2930 if (PyErr_Occurred()) SWIG_fail;
2931 arg3 = (int) SWIG_AsInt(obj2);
2932 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2933 if (obj3) {
2f4c0a16
RD
2934 arg4 = (int) SWIG_AsInt(obj3);
2935 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 2936 }
d14a1e28
RD
2937 {
2938 PyThreadState* __tstate = wxPyBeginAllowThreads();
2939 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2940
2941 wxPyEndAllowThreads(__tstate);
2942 if (PyErr_Occurred()) SWIG_fail;
2943 }
2f4c0a16 2944 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2945 return resultobj;
2946 fail:
2947 return NULL;
2948}
2949
2950
2951static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2952 PyObject *resultobj;
2953 wxBitmap *arg1 = (wxBitmap *) 0 ;
2954 wxPalette *arg2 = 0 ;
2955 PyObject * obj0 = 0 ;
2956 PyObject * obj1 = 0 ;
2957 char *kwnames[] = {
2958 (char *) "self",(char *) "palette", NULL
2959 };
2960
2961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
2962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2964 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
2965 SWIG_POINTER_EXCEPTION | 0)) == -1)
2966 SWIG_fail;
d14a1e28 2967 if (arg2 == NULL) {
2f4c0a16
RD
2968 PyErr_SetString(PyExc_TypeError,"null reference");
2969 SWIG_fail;
d14a1e28
RD
2970 }
2971 {
2972 PyThreadState* __tstate = wxPyBeginAllowThreads();
2973 (arg1)->SetPalette(*arg2);
2974
2975 wxPyEndAllowThreads(__tstate);
2976 if (PyErr_Occurred()) SWIG_fail;
2977 }
2978 Py_INCREF(Py_None); resultobj = Py_None;
2979 return resultobj;
2980 fail:
2981 return NULL;
2982}
2983
2984
2985static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2986 PyObject *resultobj;
2987 wxBitmap *arg1 = (wxBitmap *) 0 ;
2988 long result;
2989 PyObject * obj0 = 0 ;
2990 char *kwnames[] = {
2991 (char *) "self", NULL
2992 };
2993
2994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
2995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2997 {
2998 PyThreadState* __tstate = wxPyBeginAllowThreads();
2999 result = (long)(arg1)->GetHandle();
3000
3001 wxPyEndAllowThreads(__tstate);
3002 if (PyErr_Occurred()) SWIG_fail;
3003 }
2f4c0a16 3004 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
3005 return resultobj;
3006 fail:
3007 return NULL;
3008}
3009
3010
3011static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3012 PyObject *resultobj;
3013 wxBitmap *arg1 = (wxBitmap *) 0 ;
3014 long arg2 ;
3015 PyObject * obj0 = 0 ;
8edf1c75 3016 PyObject * obj1 = 0 ;
d14a1e28
RD
3017 char *kwnames[] = {
3018 (char *) "self",(char *) "handle", NULL
3019 };
3020
8edf1c75 3021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3024 arg2 = (long) SWIG_AsLong(obj1);
3025 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3026 {
3027 PyThreadState* __tstate = wxPyBeginAllowThreads();
2f4c0a16 3028 wxBitmap_SetHandle(arg1,arg2);
d14a1e28
RD
3029
3030 wxPyEndAllowThreads(__tstate);
3031 if (PyErr_Occurred()) SWIG_fail;
3032 }
3033 Py_INCREF(Py_None); resultobj = Py_None;
3034 return resultobj;
3035 fail:
3036 return NULL;
3037}
3038
3039
3040static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3041 PyObject *resultobj;
3042 wxBitmap *arg1 = (wxBitmap *) 0 ;
3043 bool result;
3044 PyObject * obj0 = 0 ;
3045 char *kwnames[] = {
3046 (char *) "self", NULL
3047 };
3048
3049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3052 {
3053 PyThreadState* __tstate = wxPyBeginAllowThreads();
3054 result = (bool)(arg1)->Ok();
3055
3056 wxPyEndAllowThreads(__tstate);
3057 if (PyErr_Occurred()) SWIG_fail;
3058 }
4e760a36 3059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
3060 return resultobj;
3061 fail:
3062 return NULL;
3063}
3064
3065
3066static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3067 PyObject *resultobj;
3068 wxBitmap *arg1 = (wxBitmap *) 0 ;
3069 int result;
3070 PyObject * obj0 = 0 ;
3071 char *kwnames[] = {
3072 (char *) "self", NULL
3073 };
3074
3075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3078 {
3079 PyThreadState* __tstate = wxPyBeginAllowThreads();
3080 result = (int)(arg1)->GetWidth();
3081
3082 wxPyEndAllowThreads(__tstate);
3083 if (PyErr_Occurred()) SWIG_fail;
3084 }
2f4c0a16 3085 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3086 return resultobj;
3087 fail:
3088 return NULL;
3089}
3090
3091
3092static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3093 PyObject *resultobj;
3094 wxBitmap *arg1 = (wxBitmap *) 0 ;
3095 int result;
3096 PyObject * obj0 = 0 ;
3097 char *kwnames[] = {
3098 (char *) "self", NULL
3099 };
3100
3101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3104 {
3105 PyThreadState* __tstate = wxPyBeginAllowThreads();
3106 result = (int)(arg1)->GetHeight();
3107
3108 wxPyEndAllowThreads(__tstate);
3109 if (PyErr_Occurred()) SWIG_fail;
3110 }
2f4c0a16 3111 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3112 return resultobj;
3113 fail:
3114 return NULL;
3115}
3116
3117
3118static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3119 PyObject *resultobj;
3120 wxBitmap *arg1 = (wxBitmap *) 0 ;
3121 int result;
3122 PyObject * obj0 = 0 ;
3123 char *kwnames[] = {
3124 (char *) "self", NULL
3125 };
3126
3127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3130 {
3131 PyThreadState* __tstate = wxPyBeginAllowThreads();
3132 result = (int)(arg1)->GetDepth();
3133
3134 wxPyEndAllowThreads(__tstate);
3135 if (PyErr_Occurred()) SWIG_fail;
3136 }
2f4c0a16 3137 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3138 return resultobj;
3139 fail:
3140 return NULL;
3141}
3142
3143
3144static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3145 PyObject *resultobj;
3146 wxBitmap *arg1 = (wxBitmap *) 0 ;
3147 SwigValueWrapper< wxImage > result;
3148 PyObject * obj0 = 0 ;
3149 char *kwnames[] = {
3150 (char *) "self", NULL
3151 };
3152
3153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3156 {
3157 PyThreadState* __tstate = wxPyBeginAllowThreads();
3158 result = ((wxBitmap const *)arg1)->ConvertToImage();
3159
3160 wxPyEndAllowThreads(__tstate);
3161 if (PyErr_Occurred()) SWIG_fail;
3162 }
3163 {
3164 wxImage * resultptr;
3165 resultptr = new wxImage((wxImage &) result);
2f4c0a16 3166 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
d14a1e28
RD
3167 }
3168 return resultobj;
3169 fail:
3170 return NULL;
3171}
3172
3173
3174static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3175 PyObject *resultobj;
3176 wxBitmap *arg1 = (wxBitmap *) 0 ;
3177 wxMask *result;
3178 PyObject * obj0 = 0 ;
3179 char *kwnames[] = {
3180 (char *) "self", NULL
3181 };
3182
3183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3186 {
3187 PyThreadState* __tstate = wxPyBeginAllowThreads();
3188 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3189
3190 wxPyEndAllowThreads(__tstate);
3191 if (PyErr_Occurred()) SWIG_fail;
3192 }
2f4c0a16 3193 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
d14a1e28
RD
3194 return resultobj;
3195 fail:
3196 return NULL;
3197}
3198
3199
3200static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3201 PyObject *resultobj;
3202 wxBitmap *arg1 = (wxBitmap *) 0 ;
3203 wxMask *arg2 = (wxMask *) 0 ;
3204 PyObject * obj0 = 0 ;
3205 PyObject * obj1 = 0 ;
3206 char *kwnames[] = {
3207 (char *) "self",(char *) "mask", NULL
3208 };
3209
3210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3213 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3215 {
3216 PyThreadState* __tstate = wxPyBeginAllowThreads();
3217 (arg1)->SetMask(arg2);
3218
3219 wxPyEndAllowThreads(__tstate);
3220 if (PyErr_Occurred()) SWIG_fail;
3221 }
3222 Py_INCREF(Py_None); resultobj = Py_None;
3223 return resultobj;
3224 fail:
3225 return NULL;
3226}
3227
3228
3229static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3230 PyObject *resultobj;
3231 wxBitmap *arg1 = (wxBitmap *) 0 ;
3232 wxColour *arg2 = 0 ;
3233 wxColour temp2 ;
3234 PyObject * obj0 = 0 ;
3235 PyObject * obj1 = 0 ;
3236 char *kwnames[] = {
3237 (char *) "self",(char *) "colour", NULL
3238 };
3239
3240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3243 {
3244 arg2 = &temp2;
3245 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3246 }
3247 {
3248 PyThreadState* __tstate = wxPyBeginAllowThreads();
3249 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3250
3251 wxPyEndAllowThreads(__tstate);
3252 if (PyErr_Occurred()) SWIG_fail;
3253 }
3254 Py_INCREF(Py_None); resultobj = Py_None;
3255 return resultobj;
3256 fail:
3257 return NULL;
3258}
3259
3260
3261static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3262 PyObject *resultobj;
3263 wxBitmap *arg1 = (wxBitmap *) 0 ;
3264 wxRect *arg2 = 0 ;
3265 SwigValueWrapper< wxBitmap > result;
3266 wxRect temp2 ;
3267 PyObject * obj0 = 0 ;
3268 PyObject * obj1 = 0 ;
3269 char *kwnames[] = {
3270 (char *) "self",(char *) "rect", NULL
3271 };
3272
3273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3276 {
3277 arg2 = &temp2;
3278 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3279 }
3280 {
3281 PyThreadState* __tstate = wxPyBeginAllowThreads();
3282 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3283
3284 wxPyEndAllowThreads(__tstate);
3285 if (PyErr_Occurred()) SWIG_fail;
3286 }
3287 {
3288 wxBitmap * resultptr;
3289 resultptr = new wxBitmap((wxBitmap &) result);
2f4c0a16 3290 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
3291 }
3292 return resultobj;
3293 fail:
3294 return NULL;
3295}
3296
3297
3298static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3299 PyObject *resultobj;
3300 wxBitmap *arg1 = (wxBitmap *) 0 ;
3301 wxString *arg2 = 0 ;
3302 int arg3 ;
3303 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3304 bool result;
423f194a 3305 bool temp2 = False ;
d14a1e28
RD
3306 PyObject * obj0 = 0 ;
3307 PyObject * obj1 = 0 ;
8edf1c75 3308 PyObject * obj2 = 0 ;
d14a1e28
RD
3309 PyObject * obj3 = 0 ;
3310 char *kwnames[] = {
3311 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3312 };
3313
8edf1c75 3314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
3315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3317 {
3318 arg2 = wxString_in_helper(obj1);
3319 if (arg2 == NULL) SWIG_fail;
423f194a 3320 temp2 = True;
d14a1e28 3321 }
2f4c0a16
RD
3322 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3323 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3324 if (obj3) {
2f4c0a16
RD
3325 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3327 }
3328 {
3329 PyThreadState* __tstate = wxPyBeginAllowThreads();
3330 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3331
3332 wxPyEndAllowThreads(__tstate);
3333 if (PyErr_Occurred()) SWIG_fail;
3334 }
4e760a36 3335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
3336 {
3337 if (temp2)
3338 delete arg2;
3339 }
3340 return resultobj;
3341 fail:
3342 {
3343 if (temp2)
3344 delete arg2;
3345 }
3346 return NULL;
3347}
3348
3349
3350static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3351 PyObject *resultobj;
3352 wxBitmap *arg1 = (wxBitmap *) 0 ;
3353 wxString *arg2 = 0 ;
3354 int arg3 ;
3355 bool result;
423f194a 3356 bool temp2 = False ;
d14a1e28
RD
3357 PyObject * obj0 = 0 ;
3358 PyObject * obj1 = 0 ;
8edf1c75 3359 PyObject * obj2 = 0 ;
d14a1e28
RD
3360 char *kwnames[] = {
3361 (char *) "self",(char *) "name",(char *) "type", NULL
3362 };
3363
8edf1c75 3364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
3365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3367 {
3368 arg2 = wxString_in_helper(obj1);
3369 if (arg2 == NULL) SWIG_fail;
423f194a 3370 temp2 = True;
d14a1e28 3371 }
2f4c0a16
RD
3372 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3373 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3374 {
3375 PyThreadState* __tstate = wxPyBeginAllowThreads();
3376 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3377
3378 wxPyEndAllowThreads(__tstate);
3379 if (PyErr_Occurred()) SWIG_fail;
3380 }
4e760a36 3381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
3382 {
3383 if (temp2)
3384 delete arg2;
3385 }
3386 return resultobj;
3387 fail:
3388 {
3389 if (temp2)
3390 delete arg2;
3391 }
3392 return NULL;
3393}
3394
3395
3396static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3397 PyObject *resultobj;
3398 wxBitmap *arg1 = (wxBitmap *) 0 ;
3399 wxIcon *arg2 = 0 ;
3400 bool result;
3401 PyObject * obj0 = 0 ;
3402 PyObject * obj1 = 0 ;
3403 char *kwnames[] = {
3404 (char *) "self",(char *) "icon", NULL
3405 };
3406
3407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3410 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3411 SWIG_POINTER_EXCEPTION | 0)) == -1)
3412 SWIG_fail;
d14a1e28 3413 if (arg2 == NULL) {
2f4c0a16
RD
3414 PyErr_SetString(PyExc_TypeError,"null reference");
3415 SWIG_fail;
d14a1e28
RD
3416 }
3417 {
3418 PyThreadState* __tstate = wxPyBeginAllowThreads();
3419 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3420
3421 wxPyEndAllowThreads(__tstate);
3422 if (PyErr_Occurred()) SWIG_fail;
3423 }
4e760a36 3424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
3425 return resultobj;
3426 fail:
3427 return NULL;
3428}
3429
3430
3431static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3432 PyObject *resultobj;
3433 wxBitmap *arg1 = (wxBitmap *) 0 ;
3434 int arg2 ;
3435 PyObject * obj0 = 0 ;
8edf1c75 3436 PyObject * obj1 = 0 ;
d14a1e28
RD
3437 char *kwnames[] = {
3438 (char *) "self",(char *) "height", NULL
3439 };
3440
8edf1c75 3441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3444 arg2 = (int) SWIG_AsInt(obj1);
3445 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3446 {
3447 PyThreadState* __tstate = wxPyBeginAllowThreads();
3448 (arg1)->SetHeight(arg2);
3449
3450 wxPyEndAllowThreads(__tstate);
3451 if (PyErr_Occurred()) SWIG_fail;
3452 }
3453 Py_INCREF(Py_None); resultobj = Py_None;
3454 return resultobj;
3455 fail:
3456 return NULL;
3457}
3458
3459
3460static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3461 PyObject *resultobj;
3462 wxBitmap *arg1 = (wxBitmap *) 0 ;
3463 int arg2 ;
3464 PyObject * obj0 = 0 ;
8edf1c75 3465 PyObject * obj1 = 0 ;
d14a1e28
RD
3466 char *kwnames[] = {
3467 (char *) "self",(char *) "width", NULL
3468 };
3469
8edf1c75 3470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3473 arg2 = (int) SWIG_AsInt(obj1);
3474 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3475 {
3476 PyThreadState* __tstate = wxPyBeginAllowThreads();
3477 (arg1)->SetWidth(arg2);
3478
3479 wxPyEndAllowThreads(__tstate);
3480 if (PyErr_Occurred()) SWIG_fail;
3481 }
3482 Py_INCREF(Py_None); resultobj = Py_None;
3483 return resultobj;
3484 fail:
3485 return NULL;
3486}
3487
3488
3489static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3490 PyObject *resultobj;
3491 wxBitmap *arg1 = (wxBitmap *) 0 ;
3492 int arg2 ;
3493 PyObject * obj0 = 0 ;
8edf1c75 3494 PyObject * obj1 = 0 ;
d14a1e28
RD
3495 char *kwnames[] = {
3496 (char *) "self",(char *) "depth", NULL
3497 };
3498
8edf1c75 3499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3502 arg2 = (int) SWIG_AsInt(obj1);
3503 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3504 {
3505 PyThreadState* __tstate = wxPyBeginAllowThreads();
3506 (arg1)->SetDepth(arg2);
3507
3508 wxPyEndAllowThreads(__tstate);
3509 if (PyErr_Occurred()) SWIG_fail;
3510 }
3511 Py_INCREF(Py_None); resultobj = Py_None;
3512 return resultobj;
3513 fail:
3514 return NULL;
3515}
3516
3517
3518static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3519 PyObject *resultobj;
3520 wxBitmap *arg1 = (wxBitmap *) 0 ;
3521 wxCursor *arg2 = 0 ;
3522 bool result;
3523 PyObject * obj0 = 0 ;
3524 PyObject * obj1 = 0 ;
3525 char *kwnames[] = {
3526 (char *) "self",(char *) "cursor", NULL
3527 };
3528
3529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3532 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
3533 SWIG_POINTER_EXCEPTION | 0)) == -1)
3534 SWIG_fail;
d14a1e28 3535 if (arg2 == NULL) {
2f4c0a16
RD
3536 PyErr_SetString(PyExc_TypeError,"null reference");
3537 SWIG_fail;
d14a1e28
RD
3538 }
3539 {
3540 PyThreadState* __tstate = wxPyBeginAllowThreads();
3541 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3542
3543 wxPyEndAllowThreads(__tstate);
3544 if (PyErr_Occurred()) SWIG_fail;
3545 }
4e760a36 3546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
3547 return resultobj;
3548 fail:
3549 return NULL;
3550}
3551
3552
3553static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3554 PyObject *resultobj;
3555 wxBitmap *arg1 = (wxBitmap *) 0 ;
3556 int result;
3557 PyObject * obj0 = 0 ;
3558 char *kwnames[] = {
3559 (char *) "self", NULL
3560 };
3561
3562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3565 {
3566 PyThreadState* __tstate = wxPyBeginAllowThreads();
3567 result = (int)(arg1)->GetQuality();
3568
3569 wxPyEndAllowThreads(__tstate);
3570 if (PyErr_Occurred()) SWIG_fail;
3571 }
2f4c0a16 3572 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3573 return resultobj;
3574 fail:
3575 return NULL;
3576}
3577
3578
3579static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3580 PyObject *resultobj;
3581 wxBitmap *arg1 = (wxBitmap *) 0 ;
3582 int arg2 ;
3583 PyObject * obj0 = 0 ;
8edf1c75 3584 PyObject * obj1 = 0 ;
d14a1e28
RD
3585 char *kwnames[] = {
3586 (char *) "self",(char *) "q", NULL
3587 };
3588
8edf1c75 3589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3592 arg2 = (int) SWIG_AsInt(obj1);
3593 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
3594 {
3595 PyThreadState* __tstate = wxPyBeginAllowThreads();
3596 (arg1)->SetQuality(arg2);
d14a1e28
RD
3597
3598 wxPyEndAllowThreads(__tstate);
3599 if (PyErr_Occurred()) SWIG_fail;
3600 }
3601 Py_INCREF(Py_None); resultobj = Py_None;
3602 return resultobj;
3603 fail:
3604 return NULL;
3605}
3606
3607
fe763115
RD
3608static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3609 PyObject *resultobj;
3610 wxBitmap *arg1 = (wxBitmap *) 0 ;
3611 wxBitmap *arg2 = (wxBitmap *) 0 ;
3612 bool result;
3613 PyObject * obj0 = 0 ;
3614 PyObject * obj1 = 0 ;
3615 char *kwnames[] = {
3616 (char *) "self",(char *) "other", NULL
3617 };
3618
3619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3622 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3624 {
3625 PyThreadState* __tstate = wxPyBeginAllowThreads();
3626 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3627
3628 wxPyEndAllowThreads(__tstate);
3629 if (PyErr_Occurred()) SWIG_fail;
3630 }
3631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3632 return resultobj;
3633 fail:
3634 return NULL;
3635}
3636
3637
3638static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3639 PyObject *resultobj;
3640 wxBitmap *arg1 = (wxBitmap *) 0 ;
3641 wxBitmap *arg2 = (wxBitmap *) 0 ;
3642 bool result;
3643 PyObject * obj0 = 0 ;
3644 PyObject * obj1 = 0 ;
3645 char *kwnames[] = {
3646 (char *) "self",(char *) "other", NULL
3647 };
3648
3649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3652 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3654 {
3655 PyThreadState* __tstate = wxPyBeginAllowThreads();
3656 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3657
3658 wxPyEndAllowThreads(__tstate);
3659 if (PyErr_Occurred()) SWIG_fail;
3660 }
3661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3662 return resultobj;
3663 fail:
3664 return NULL;
3665}
3666
3667
d14a1e28
RD
3668static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3669 PyObject *obj;
3670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3671 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3672 Py_INCREF(obj);
3673 return Py_BuildValue((char *)"");
3674}
3675static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3676 PyObject *resultobj;
3677 wxBitmap *arg1 = 0 ;
0ffb2aa6
RD
3678 wxColour const &arg2_defvalue = wxNullColour ;
3679 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
d14a1e28
RD
3680 wxMask *result;
3681 wxColour temp2 ;
3682 PyObject * obj0 = 0 ;
3683 PyObject * obj1 = 0 ;
3684 char *kwnames[] = {
3685 (char *) "bitmap",(char *) "colour", NULL
3686 };
3687
0ffb2aa6 3688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3690 SWIG_POINTER_EXCEPTION | 0)) == -1)
3691 SWIG_fail;
d14a1e28 3692 if (arg1 == NULL) {
2f4c0a16
RD
3693 PyErr_SetString(PyExc_TypeError,"null reference");
3694 SWIG_fail;
d14a1e28 3695 }
0ffb2aa6
RD
3696 if (obj1) {
3697 {
3698 arg2 = &temp2;
3699 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3700 }
d14a1e28
RD
3701 }
3702 {
3703 PyThreadState* __tstate = wxPyBeginAllowThreads();
0ffb2aa6 3704 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
d14a1e28
RD
3705
3706 wxPyEndAllowThreads(__tstate);
3707 if (PyErr_Occurred()) SWIG_fail;
3708 }
2f4c0a16 3709 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
d14a1e28
RD
3710 return resultobj;
3711 fail:
3712 return NULL;
3713}
3714
3715
3716static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3717 PyObject *obj;
3718 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3719 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3720 Py_INCREF(obj);
3721 return Py_BuildValue((char *)"");
3722}
3723static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3724 PyObject *resultobj;
3725 wxString *arg1 = 0 ;
eb9b6107 3726 int arg2 ;
d14a1e28
RD
3727 int arg3 = (int) -1 ;
3728 int arg4 = (int) -1 ;
3729 wxIcon *result;
423f194a 3730 bool temp1 = False ;
d14a1e28 3731 PyObject * obj0 = 0 ;
8edf1c75
RD
3732 PyObject * obj1 = 0 ;
3733 PyObject * obj2 = 0 ;
3734 PyObject * obj3 = 0 ;
d14a1e28 3735 char *kwnames[] = {
eb9b6107 3736 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
d14a1e28
RD
3737 };
3738
8edf1c75 3739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
3740 {
3741 arg1 = wxString_in_helper(obj0);
3742 if (arg1 == NULL) SWIG_fail;
423f194a 3743 temp1 = True;
d14a1e28 3744 }
2f4c0a16
RD
3745 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3746 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 3747 if (obj2) {
2f4c0a16
RD
3748 arg3 = (int) SWIG_AsInt(obj2);
3749 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
3750 }
3751 if (obj3) {
2f4c0a16
RD
3752 arg4 = (int) SWIG_AsInt(obj3);
3753 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 3754 }
d14a1e28
RD
3755 {
3756 PyThreadState* __tstate = wxPyBeginAllowThreads();
eb9b6107 3757 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
d14a1e28
RD
3758
3759 wxPyEndAllowThreads(__tstate);
3760 if (PyErr_Occurred()) SWIG_fail;
3761 }
2f4c0a16 3762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3763 {
3764 if (temp1)
3765 delete arg1;
3766 }
3767 return resultobj;
3768 fail:
3769 {
3770 if (temp1)
3771 delete arg1;
3772 }
3773 return NULL;
3774}
3775
3776
3777static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3778 PyObject *resultobj;
3779 wxIcon *arg1 = (wxIcon *) 0 ;
3780 PyObject * obj0 = 0 ;
3781 char *kwnames[] = {
3782 (char *) "self", NULL
3783 };
3784
3785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3788 {
3789 PyThreadState* __tstate = wxPyBeginAllowThreads();
3790 delete arg1;
3791
3792 wxPyEndAllowThreads(__tstate);
3793 if (PyErr_Occurred()) SWIG_fail;
3794 }
3795 Py_INCREF(Py_None); resultobj = Py_None;
3796 return resultobj;
3797 fail:
3798 return NULL;
3799}
3800
3801
3802static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3803 PyObject *resultobj;
3804 wxIcon *result;
3805 char *kwnames[] = {
3806 NULL
3807 };
3808
3809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3810 {
3811 PyThreadState* __tstate = wxPyBeginAllowThreads();
3812 result = (wxIcon *)new wxIcon();
3813
3814 wxPyEndAllowThreads(__tstate);
3815 if (PyErr_Occurred()) SWIG_fail;
3816 }
2f4c0a16 3817 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3818 return resultobj;
3819 fail:
3820 return NULL;
3821}
3822
3823
3824static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3825 PyObject *resultobj;
3826 wxIconLocation *arg1 = 0 ;
3827 wxIcon *result;
3828 PyObject * obj0 = 0 ;
3829 char *kwnames[] = {
3830 (char *) "loc", NULL
3831 };
3832
3833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3835 SWIG_POINTER_EXCEPTION | 0)) == -1)
3836 SWIG_fail;
d14a1e28 3837 if (arg1 == NULL) {
2f4c0a16
RD
3838 PyErr_SetString(PyExc_TypeError,"null reference");
3839 SWIG_fail;
d14a1e28
RD
3840 }
3841 {
3842 PyThreadState* __tstate = wxPyBeginAllowThreads();
3843 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3844
3845 wxPyEndAllowThreads(__tstate);
3846 if (PyErr_Occurred()) SWIG_fail;
3847 }
2f4c0a16 3848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3849 return resultobj;
3850 fail:
3851 return NULL;
3852}
3853
3854
3855static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3856 PyObject *resultobj;
3857 wxBitmap *arg1 = 0 ;
3858 wxIcon *result;
3859 PyObject * obj0 = 0 ;
3860 char *kwnames[] = {
3861 (char *) "bmp", NULL
3862 };
3863
3864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3866 SWIG_POINTER_EXCEPTION | 0)) == -1)
3867 SWIG_fail;
d14a1e28 3868 if (arg1 == NULL) {
2f4c0a16
RD
3869 PyErr_SetString(PyExc_TypeError,"null reference");
3870 SWIG_fail;
d14a1e28
RD
3871 }
3872 {
3873 PyThreadState* __tstate = wxPyBeginAllowThreads();
3874 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3875
3876 wxPyEndAllowThreads(__tstate);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 }
2f4c0a16 3879 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3880 return resultobj;
3881 fail:
3882 return NULL;
3883}
3884
3885
3886static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3887 PyObject *resultobj;
3888 PyObject *arg1 = (PyObject *) 0 ;
3889 wxIcon *result;
3890 PyObject * obj0 = 0 ;
3891 char *kwnames[] = {
3892 (char *) "listOfStrings", NULL
3893 };
3894
3895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3896 arg1 = obj0;
3897 {
3898 PyThreadState* __tstate = wxPyBeginAllowThreads();
3899 result = (wxIcon *)new_wxIcon(arg1);
3900
3901 wxPyEndAllowThreads(__tstate);
3902 if (PyErr_Occurred()) SWIG_fail;
3903 }
2f4c0a16 3904 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3905 return resultobj;
3906 fail:
3907 return NULL;
3908}
3909
3910
3911static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3912 PyObject *resultobj;
3913 wxIcon *arg1 = (wxIcon *) 0 ;
3914 wxString *arg2 = 0 ;
eb9b6107 3915 int arg3 ;
d14a1e28 3916 bool result;
423f194a 3917 bool temp2 = False ;
d14a1e28
RD
3918 PyObject * obj0 = 0 ;
3919 PyObject * obj1 = 0 ;
8edf1c75 3920 PyObject * obj2 = 0 ;
d14a1e28 3921 char *kwnames[] = {
eb9b6107 3922 (char *) "self",(char *) "name",(char *) "type", NULL
d14a1e28
RD
3923 };
3924
8edf1c75 3925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
3926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3928 {
3929 arg2 = wxString_in_helper(obj1);
3930 if (arg2 == NULL) SWIG_fail;
423f194a 3931 temp2 = True;
d14a1e28 3932 }
2f4c0a16
RD
3933 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3934 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3935 {
3936 PyThreadState* __tstate = wxPyBeginAllowThreads();
eb9b6107 3937 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
d14a1e28
RD
3938
3939 wxPyEndAllowThreads(__tstate);
3940 if (PyErr_Occurred()) SWIG_fail;
3941 }
4e760a36 3942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
3943 {
3944 if (temp2)
3945 delete arg2;
3946 }
3947 return resultobj;
3948 fail:
3949 {
3950 if (temp2)
3951 delete arg2;
3952 }
3953 return NULL;
3954}
3955
3956
3957static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3958 PyObject *resultobj;
3959 wxIcon *arg1 = (wxIcon *) 0 ;
3960 long result;
3961 PyObject * obj0 = 0 ;
3962 char *kwnames[] = {
3963 (char *) "self", NULL
3964 };
3965
3966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
3967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3969 {
3970 PyThreadState* __tstate = wxPyBeginAllowThreads();
3971 result = (long)(arg1)->GetHandle();
3972
3973 wxPyEndAllowThreads(__tstate);
3974 if (PyErr_Occurred()) SWIG_fail;
3975 }
2f4c0a16 3976 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
3977 return resultobj;
3978 fail:
3979 return NULL;
3980}
3981
3982
3983static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3984 PyObject *resultobj;
3985 wxIcon *arg1 = (wxIcon *) 0 ;
3986 long arg2 ;
3987 PyObject * obj0 = 0 ;
8edf1c75 3988 PyObject * obj1 = 0 ;
d14a1e28
RD
3989 char *kwnames[] = {
3990 (char *) "self",(char *) "handle", NULL
3991 };
3992
8edf1c75 3993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
3994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3996 arg2 = (long) SWIG_AsLong(obj1);
3997 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3998 {
3999 PyThreadState* __tstate = wxPyBeginAllowThreads();
2f4c0a16 4000 wxIcon_SetHandle(arg1,arg2);
d14a1e28
RD
4001
4002 wxPyEndAllowThreads(__tstate);
4003 if (PyErr_Occurred()) SWIG_fail;
4004 }
4005 Py_INCREF(Py_None); resultobj = Py_None;
4006 return resultobj;
4007 fail:
4008 return NULL;
4009}
4010
4011
4012static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4013 PyObject *resultobj;
4014 wxIcon *arg1 = (wxIcon *) 0 ;
4015 bool result;
4016 PyObject * obj0 = 0 ;
4017 char *kwnames[] = {
4018 (char *) "self", NULL
4019 };
4020
4021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4024 {
4025 PyThreadState* __tstate = wxPyBeginAllowThreads();
4026 result = (bool)(arg1)->Ok();
4027
4028 wxPyEndAllowThreads(__tstate);
4029 if (PyErr_Occurred()) SWIG_fail;
4030 }
4e760a36 4031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
4032 return resultobj;
4033 fail:
4034 return NULL;
4035}
4036
4037
4038static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4039 PyObject *resultobj;
4040 wxIcon *arg1 = (wxIcon *) 0 ;
4041 int result;
4042 PyObject * obj0 = 0 ;
4043 char *kwnames[] = {
4044 (char *) "self", NULL
4045 };
4046
4047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4050 {
4051 PyThreadState* __tstate = wxPyBeginAllowThreads();
4052 result = (int)(arg1)->GetWidth();
4053
4054 wxPyEndAllowThreads(__tstate);
4055 if (PyErr_Occurred()) SWIG_fail;
4056 }
2f4c0a16 4057 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4058 return resultobj;
4059 fail:
4060 return NULL;
4061}
4062
4063
4064static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4065 PyObject *resultobj;
4066 wxIcon *arg1 = (wxIcon *) 0 ;
4067 int result;
4068 PyObject * obj0 = 0 ;
4069 char *kwnames[] = {
4070 (char *) "self", NULL
4071 };
4072
4073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4076 {
4077 PyThreadState* __tstate = wxPyBeginAllowThreads();
4078 result = (int)(arg1)->GetHeight();
4079
4080 wxPyEndAllowThreads(__tstate);
4081 if (PyErr_Occurred()) SWIG_fail;
4082 }
2f4c0a16 4083 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4084 return resultobj;
4085 fail:
4086 return NULL;
4087}
4088
4089
4090static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4091 PyObject *resultobj;
4092 wxIcon *arg1 = (wxIcon *) 0 ;
4093 int result;
4094 PyObject * obj0 = 0 ;
4095 char *kwnames[] = {
4096 (char *) "self", NULL
4097 };
4098
4099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4102 {
4103 PyThreadState* __tstate = wxPyBeginAllowThreads();
4104 result = (int)(arg1)->GetDepth();
4105
4106 wxPyEndAllowThreads(__tstate);
4107 if (PyErr_Occurred()) SWIG_fail;
4108 }
2f4c0a16 4109 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4110 return resultobj;
4111 fail:
4112 return NULL;
4113}
4114
4115
4116static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4117 PyObject *resultobj;
4118 wxIcon *arg1 = (wxIcon *) 0 ;
4119 int arg2 ;
4120 PyObject * obj0 = 0 ;
8edf1c75 4121 PyObject * obj1 = 0 ;
d14a1e28
RD
4122 char *kwnames[] = {
4123 (char *) "self",(char *) "w", NULL
4124 };
4125
8edf1c75 4126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4129 arg2 = (int) SWIG_AsInt(obj1);
4130 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4131 {
4132 PyThreadState* __tstate = wxPyBeginAllowThreads();
4133 (arg1)->SetWidth(arg2);
4134
4135 wxPyEndAllowThreads(__tstate);
4136 if (PyErr_Occurred()) SWIG_fail;
4137 }
4138 Py_INCREF(Py_None); resultobj = Py_None;
4139 return resultobj;
4140 fail:
4141 return NULL;
4142}
4143
4144
4145static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4146 PyObject *resultobj;
4147 wxIcon *arg1 = (wxIcon *) 0 ;
4148 int arg2 ;
4149 PyObject * obj0 = 0 ;
8edf1c75 4150 PyObject * obj1 = 0 ;
d14a1e28
RD
4151 char *kwnames[] = {
4152 (char *) "self",(char *) "h", NULL
4153 };
4154
8edf1c75 4155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4158 arg2 = (int) SWIG_AsInt(obj1);
4159 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4160 {
4161 PyThreadState* __tstate = wxPyBeginAllowThreads();
4162 (arg1)->SetHeight(arg2);
4163
4164 wxPyEndAllowThreads(__tstate);
4165 if (PyErr_Occurred()) SWIG_fail;
4166 }
4167 Py_INCREF(Py_None); resultobj = Py_None;
4168 return resultobj;
4169 fail:
4170 return NULL;
4171}
4172
4173
4174static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4175 PyObject *resultobj;
4176 wxIcon *arg1 = (wxIcon *) 0 ;
4177 int arg2 ;
4178 PyObject * obj0 = 0 ;
8edf1c75 4179 PyObject * obj1 = 0 ;
d14a1e28
RD
4180 char *kwnames[] = {
4181 (char *) "self",(char *) "d", NULL
4182 };
4183
8edf1c75 4184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4187 arg2 = (int) SWIG_AsInt(obj1);
4188 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 (arg1)->SetDepth(arg2);
4192
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 Py_INCREF(Py_None); resultobj = Py_None;
4197 return resultobj;
4198 fail:
4199 return NULL;
4200}
4201
4202
4203static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4204 PyObject *resultobj;
4205 wxIcon *arg1 = (wxIcon *) 0 ;
4206 wxSize *arg2 = 0 ;
4207 wxSize temp2 ;
4208 PyObject * obj0 = 0 ;
4209 PyObject * obj1 = 0 ;
4210 char *kwnames[] = {
4211 (char *) "self",(char *) "size", NULL
4212 };
4213
4214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4217 {
4218 arg2 = &temp2;
4219 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4220 }
4221 {
4222 PyThreadState* __tstate = wxPyBeginAllowThreads();
4223 (arg1)->SetSize((wxSize const &)*arg2);
4224
4225 wxPyEndAllowThreads(__tstate);
4226 if (PyErr_Occurred()) SWIG_fail;
4227 }
4228 Py_INCREF(Py_None); resultobj = Py_None;
4229 return resultobj;
4230 fail:
4231 return NULL;
4232}
4233
4234
4235static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4236 PyObject *resultobj;
4237 wxIcon *arg1 = (wxIcon *) 0 ;
4238 wxBitmap *arg2 = 0 ;
4239 PyObject * obj0 = 0 ;
4240 PyObject * obj1 = 0 ;
4241 char *kwnames[] = {
4242 (char *) "self",(char *) "bmp", NULL
4243 };
4244
4245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4248 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4249 SWIG_POINTER_EXCEPTION | 0)) == -1)
4250 SWIG_fail;
d14a1e28 4251 if (arg2 == NULL) {
2f4c0a16
RD
4252 PyErr_SetString(PyExc_TypeError,"null reference");
4253 SWIG_fail;
d14a1e28
RD
4254 }
4255 {
4256 PyThreadState* __tstate = wxPyBeginAllowThreads();
4257 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4258
4259 wxPyEndAllowThreads(__tstate);
4260 if (PyErr_Occurred()) SWIG_fail;
4261 }
4262 Py_INCREF(Py_None); resultobj = Py_None;
4263 return resultobj;
4264 fail:
4265 return NULL;
4266}
4267
4268
4269static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4270 PyObject *obj;
4271 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4272 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4273 Py_INCREF(obj);
4274 return Py_BuildValue((char *)"");
4275}
4276static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4277 PyObject *resultobj;
4278 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4279 int arg2 = (int) 0 ;
4280 wxIconLocation *result;
f775c30d 4281 bool temp1 = False ;
d14a1e28 4282 PyObject * obj0 = 0 ;
8edf1c75 4283 PyObject * obj1 = 0 ;
d14a1e28
RD
4284 char *kwnames[] = {
4285 (char *) "filename",(char *) "num", NULL
4286 };
4287
8edf1c75 4288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 4289 if (obj0) {
f775c30d
RD
4290 {
4291 arg1 = wxString_in_helper(obj0);
4292 if (arg1 == NULL) SWIG_fail;
4293 temp1 = True;
4294 }
d14a1e28 4295 }
8edf1c75 4296 if (obj1) {
2f4c0a16
RD
4297 arg2 = (int) SWIG_AsInt(obj1);
4298 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 4299 }
d14a1e28
RD
4300 {
4301 PyThreadState* __tstate = wxPyBeginAllowThreads();
4302 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4303
4304 wxPyEndAllowThreads(__tstate);
4305 if (PyErr_Occurred()) SWIG_fail;
4306 }
2f4c0a16 4307 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
f775c30d
RD
4308 {
4309 if (temp1)
4310 delete arg1;
4311 }
d14a1e28
RD
4312 return resultobj;
4313 fail:
f775c30d
RD
4314 {
4315 if (temp1)
4316 delete arg1;
4317 }
d14a1e28
RD
4318 return NULL;
4319}
4320
4321
4322static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4323 PyObject *resultobj;
4324 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4325 PyObject * obj0 = 0 ;
4326 char *kwnames[] = {
4327 (char *) "self", NULL
4328 };
4329
4330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4333 {
4334 PyThreadState* __tstate = wxPyBeginAllowThreads();
4335 delete arg1;
4336
4337 wxPyEndAllowThreads(__tstate);
4338 if (PyErr_Occurred()) SWIG_fail;
4339 }
4340 Py_INCREF(Py_None); resultobj = Py_None;
4341 return resultobj;
4342 fail:
4343 return NULL;
4344}
4345
4346
4347static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4348 PyObject *resultobj;
4349 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4350 bool result;
4351 PyObject * obj0 = 0 ;
4352 char *kwnames[] = {
4353 (char *) "self", NULL
4354 };
4355
4356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4359 {
4360 PyThreadState* __tstate = wxPyBeginAllowThreads();
4361 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4362
4363 wxPyEndAllowThreads(__tstate);
4364 if (PyErr_Occurred()) SWIG_fail;
4365 }
4e760a36 4366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
4367 return resultobj;
4368 fail:
4369 return NULL;
4370}
4371
4372
4373static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4374 PyObject *resultobj;
4375 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4376 wxString *arg2 = 0 ;
423f194a 4377 bool temp2 = False ;
d14a1e28
RD
4378 PyObject * obj0 = 0 ;
4379 PyObject * obj1 = 0 ;
4380 char *kwnames[] = {
4381 (char *) "self",(char *) "filename", NULL
4382 };
4383
4384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4387 {
4388 arg2 = wxString_in_helper(obj1);
4389 if (arg2 == NULL) SWIG_fail;
423f194a 4390 temp2 = True;
d14a1e28
RD
4391 }
4392 {
4393 PyThreadState* __tstate = wxPyBeginAllowThreads();
4394 (arg1)->SetFileName((wxString const &)*arg2);
4395
4396 wxPyEndAllowThreads(__tstate);
4397 if (PyErr_Occurred()) SWIG_fail;
4398 }
4399 Py_INCREF(Py_None); resultobj = Py_None;
4400 {
4401 if (temp2)
4402 delete arg2;
4403 }
4404 return resultobj;
4405 fail:
4406 {
4407 if (temp2)
4408 delete arg2;
4409 }
4410 return NULL;
4411}
4412
4413
4414static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4415 PyObject *resultobj;
4416 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4417 wxString *result;
4418 PyObject * obj0 = 0 ;
4419 char *kwnames[] = {
4420 (char *) "self", NULL
4421 };
4422
4423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4426 {
4427 PyThreadState* __tstate = wxPyBeginAllowThreads();
4428 {
4429 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4430 result = (wxString *) &_result_ref;
4431 }
4432
4433 wxPyEndAllowThreads(__tstate);
4434 if (PyErr_Occurred()) SWIG_fail;
4435 }
f0983263
RD
4436 {
4437#if wxUSE_UNICODE
4438 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4439#else
4440 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4441#endif
4442 }
d14a1e28
RD
4443 return resultobj;
4444 fail:
4445 return NULL;
4446}
4447
4448
4449static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4450 PyObject *resultobj;
4451 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4452 int arg2 ;
4453 PyObject * obj0 = 0 ;
8edf1c75 4454 PyObject * obj1 = 0 ;
d14a1e28
RD
4455 char *kwnames[] = {
4456 (char *) "self",(char *) "num", NULL
4457 };
4458
8edf1c75 4459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4462 arg2 = (int) SWIG_AsInt(obj1);
4463 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4464 {
4465 PyThreadState* __tstate = wxPyBeginAllowThreads();
4466 wxIconLocation_SetIndex(arg1,arg2);
4467
4468 wxPyEndAllowThreads(__tstate);
4469 if (PyErr_Occurred()) SWIG_fail;
4470 }
4471 Py_INCREF(Py_None); resultobj = Py_None;
4472 return resultobj;
4473 fail:
4474 return NULL;
4475}
4476
4477
4478static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4479 PyObject *resultobj;
4480 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4481 int result;
4482 PyObject * obj0 = 0 ;
4483 char *kwnames[] = {
4484 (char *) "self", NULL
4485 };
4486
4487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4490 {
4491 PyThreadState* __tstate = wxPyBeginAllowThreads();
4492 result = (int)wxIconLocation_GetIndex(arg1);
4493
4494 wxPyEndAllowThreads(__tstate);
4495 if (PyErr_Occurred()) SWIG_fail;
4496 }
2f4c0a16 4497 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4498 return resultobj;
4499 fail:
4500 return NULL;
4501}
4502
4503
4504static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4505 PyObject *obj;
4506 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4507 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4508 Py_INCREF(obj);
4509 return Py_BuildValue((char *)"");
4510}
4511static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4512 PyObject *resultobj;
4513 wxIconBundle *result;
4514 char *kwnames[] = {
4515 NULL
4516 };
4517
4518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4519 {
4520 PyThreadState* __tstate = wxPyBeginAllowThreads();
4521 result = (wxIconBundle *)new wxIconBundle();
4522
4523 wxPyEndAllowThreads(__tstate);
4524 if (PyErr_Occurred()) SWIG_fail;
4525 }
2f4c0a16 4526 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4527 return resultobj;
4528 fail:
4529 return NULL;
4530}
4531
4532
4533static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4534 PyObject *resultobj;
4535 wxString *arg1 = 0 ;
4536 long arg2 ;
4537 wxIconBundle *result;
423f194a 4538 bool temp1 = False ;
d14a1e28 4539 PyObject * obj0 = 0 ;
8edf1c75 4540 PyObject * obj1 = 0 ;
d14a1e28
RD
4541 char *kwnames[] = {
4542 (char *) "file",(char *) "type", NULL
4543 };
4544
8edf1c75 4545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
4546 {
4547 arg1 = wxString_in_helper(obj0);
4548 if (arg1 == NULL) SWIG_fail;
423f194a 4549 temp1 = True;
d14a1e28 4550 }
2f4c0a16
RD
4551 arg2 = (long) SWIG_AsLong(obj1);
4552 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4553 {
4554 PyThreadState* __tstate = wxPyBeginAllowThreads();
4555 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4556
4557 wxPyEndAllowThreads(__tstate);
4558 if (PyErr_Occurred()) SWIG_fail;
4559 }
2f4c0a16 4560 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4561 {
4562 if (temp1)
4563 delete arg1;
4564 }
4565 return resultobj;
4566 fail:
4567 {
4568 if (temp1)
4569 delete arg1;
4570 }
4571 return NULL;
4572}
4573
4574
4575static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4576 PyObject *resultobj;
4577 wxIcon *arg1 = 0 ;
4578 wxIconBundle *result;
4579 PyObject * obj0 = 0 ;
4580 char *kwnames[] = {
4581 (char *) "icon", NULL
4582 };
4583
4584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4586 SWIG_POINTER_EXCEPTION | 0)) == -1)
4587 SWIG_fail;
d14a1e28 4588 if (arg1 == NULL) {
2f4c0a16
RD
4589 PyErr_SetString(PyExc_TypeError,"null reference");
4590 SWIG_fail;
d14a1e28
RD
4591 }
4592 {
4593 PyThreadState* __tstate = wxPyBeginAllowThreads();
4594 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4595
4596 wxPyEndAllowThreads(__tstate);
4597 if (PyErr_Occurred()) SWIG_fail;
4598 }
2f4c0a16 4599 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4600 return resultobj;
4601 fail:
4602 return NULL;
4603}
4604
4605
4606static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4607 PyObject *resultobj;
4608 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4609 PyObject * obj0 = 0 ;
4610 char *kwnames[] = {
4611 (char *) "self", NULL
4612 };
4613
4614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4617 {
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 delete arg1;
4620
4621 wxPyEndAllowThreads(__tstate);
4622 if (PyErr_Occurred()) SWIG_fail;
4623 }
4624 Py_INCREF(Py_None); resultobj = Py_None;
4625 return resultobj;
4626 fail:
4627 return NULL;
4628}
4629
4630
4631static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4632 PyObject *resultobj;
4633 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4634 wxIcon *arg2 = 0 ;
4635 PyObject * obj0 = 0 ;
4636 PyObject * obj1 = 0 ;
4637 char *kwnames[] = {
4638 (char *) "self",(char *) "icon", NULL
4639 };
4640
4641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4644 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4645 SWIG_POINTER_EXCEPTION | 0)) == -1)
4646 SWIG_fail;
d14a1e28 4647 if (arg2 == NULL) {
2f4c0a16
RD
4648 PyErr_SetString(PyExc_TypeError,"null reference");
4649 SWIG_fail;
d14a1e28
RD
4650 }
4651 {
4652 PyThreadState* __tstate = wxPyBeginAllowThreads();
4653 (arg1)->AddIcon((wxIcon const &)*arg2);
4654
4655 wxPyEndAllowThreads(__tstate);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 }
4658 Py_INCREF(Py_None); resultobj = Py_None;
4659 return resultobj;
4660 fail:
4661 return NULL;
4662}
4663
4664
4665static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4666 PyObject *resultobj;
4667 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4668 wxString *arg2 = 0 ;
4669 long arg3 ;
423f194a 4670 bool temp2 = False ;
d14a1e28
RD
4671 PyObject * obj0 = 0 ;
4672 PyObject * obj1 = 0 ;
8edf1c75 4673 PyObject * obj2 = 0 ;
d14a1e28
RD
4674 char *kwnames[] = {
4675 (char *) "self",(char *) "file",(char *) "type", NULL
4676 };
4677
8edf1c75 4678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
4679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4681 {
4682 arg2 = wxString_in_helper(obj1);
4683 if (arg2 == NULL) SWIG_fail;
423f194a 4684 temp2 = True;
d14a1e28 4685 }
2f4c0a16
RD
4686 arg3 = (long) SWIG_AsLong(obj2);
4687 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4688 {
4689 PyThreadState* __tstate = wxPyBeginAllowThreads();
4690 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4691
4692 wxPyEndAllowThreads(__tstate);
4693 if (PyErr_Occurred()) SWIG_fail;
4694 }
4695 Py_INCREF(Py_None); resultobj = Py_None;
4696 {
4697 if (temp2)
4698 delete arg2;
4699 }
4700 return resultobj;
4701 fail:
4702 {
4703 if (temp2)
4704 delete arg2;
4705 }
4706 return NULL;
4707}
4708
4709
4710static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4711 PyObject *resultobj;
4712 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4713 wxSize *arg2 = 0 ;
4714 wxIcon *result;
4715 wxSize temp2 ;
4716 PyObject * obj0 = 0 ;
4717 PyObject * obj1 = 0 ;
4718 char *kwnames[] = {
4719 (char *) "self",(char *) "size", NULL
4720 };
4721
4722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4725 {
4726 arg2 = &temp2;
4727 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4728 }
4729 {
4730 PyThreadState* __tstate = wxPyBeginAllowThreads();
4731 {
4732 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4733 result = (wxIcon *) &_result_ref;
4734 }
4735
4736 wxPyEndAllowThreads(__tstate);
4737 if (PyErr_Occurred()) SWIG_fail;
4738 }
fe763115
RD
4739 {
4740 wxIcon* resultptr = new wxIcon(*result);
4741 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4742 }
d14a1e28
RD
4743 return resultobj;
4744 fail:
4745 return NULL;
4746}
4747
4748
4749static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4750 PyObject *obj;
4751 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4752 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4753 Py_INCREF(obj);
4754 return Py_BuildValue((char *)"");
4755}
4756static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4757 PyObject *resultobj;
4758 wxString *arg1 = (wxString *) 0 ;
4759 long arg2 ;
4760 int arg3 = (int) 0 ;
4761 int arg4 = (int) 0 ;
4762 wxCursor *result;
f775c30d 4763 bool temp1 = False ;
d14a1e28 4764 PyObject * obj0 = 0 ;
8edf1c75
RD
4765 PyObject * obj1 = 0 ;
4766 PyObject * obj2 = 0 ;
4767 PyObject * obj3 = 0 ;
d14a1e28 4768 char *kwnames[] = {
2f4c0a16 4769 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
d14a1e28
RD
4770 };
4771
8edf1c75 4772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
f775c30d
RD
4773 {
4774 arg1 = wxString_in_helper(obj0);
4775 if (arg1 == NULL) SWIG_fail;
4776 temp1 = True;
4777 }
2f4c0a16
RD
4778 arg2 = (long) SWIG_AsLong(obj1);
4779 if (PyErr_Occurred()) SWIG_fail;
4780 if (obj2) {
4781 arg3 = (int) SWIG_AsInt(obj2);
8edf1c75
RD
4782 if (PyErr_Occurred()) SWIG_fail;
4783 }
8edf1c75 4784 if (obj3) {
2f4c0a16
RD
4785 arg4 = (int) SWIG_AsInt(obj3);
4786 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 4787 }
d14a1e28
RD
4788 {
4789 PyThreadState* __tstate = wxPyBeginAllowThreads();
4790 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4791
4792 wxPyEndAllowThreads(__tstate);
4793 if (PyErr_Occurred()) SWIG_fail;
4794 }
2f4c0a16 4795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
f775c30d
RD
4796 {
4797 if (temp1)
4798 delete arg1;
4799 }
d14a1e28
RD
4800 return resultobj;
4801 fail:
f775c30d
RD
4802 {
4803 if (temp1)
4804 delete arg1;
4805 }
d14a1e28
RD
4806 return NULL;
4807}
4808
4809
4810static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4811 PyObject *resultobj;
4812 wxCursor *arg1 = (wxCursor *) 0 ;
4813 PyObject * obj0 = 0 ;
4814 char *kwnames[] = {
4815 (char *) "self", NULL
4816 };
4817
4818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4821 {
4822 PyThreadState* __tstate = wxPyBeginAllowThreads();
4823 delete arg1;
4824
4825 wxPyEndAllowThreads(__tstate);
4826 if (PyErr_Occurred()) SWIG_fail;
4827 }
4828 Py_INCREF(Py_None); resultobj = Py_None;
4829 return resultobj;
4830 fail:
4831 return NULL;
4832}
4833
4834
4835static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4836 PyObject *resultobj;
4837 int arg1 ;
4838 wxCursor *result;
8edf1c75 4839 PyObject * obj0 = 0 ;
d14a1e28
RD
4840 char *kwnames[] = {
4841 (char *) "id", NULL
4842 };
4843
8edf1c75 4844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4845 arg1 = (int) SWIG_AsInt(obj0);
4846 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4847 {
4848 PyThreadState* __tstate = wxPyBeginAllowThreads();
4849 result = (wxCursor *)new wxCursor(arg1);
4850
4851 wxPyEndAllowThreads(__tstate);
4852 if (PyErr_Occurred()) SWIG_fail;
4853 }
2f4c0a16 4854 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d14a1e28
RD
4855 return resultobj;
4856 fail:
4857 return NULL;
4858}
4859
4860
4861static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj;
4863 wxImage *arg1 = 0 ;
4864 wxCursor *result;
4865 PyObject * obj0 = 0 ;
4866 char *kwnames[] = {
4867 (char *) "image", NULL
4868 };
4869
4870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4872 SWIG_POINTER_EXCEPTION | 0)) == -1)
4873 SWIG_fail;
d14a1e28 4874 if (arg1 == NULL) {
2f4c0a16
RD
4875 PyErr_SetString(PyExc_TypeError,"null reference");
4876 SWIG_fail;
d14a1e28
RD
4877 }
4878 {
4879 PyThreadState* __tstate = wxPyBeginAllowThreads();
4880 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4881
4882 wxPyEndAllowThreads(__tstate);
4883 if (PyErr_Occurred()) SWIG_fail;
4884 }
2f4c0a16 4885 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d14a1e28
RD
4886 return resultobj;
4887 fail:
4888 return NULL;
4889}
4890
4891
4892static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4893 PyObject *resultobj;
4894 wxCursor *arg1 = (wxCursor *) 0 ;
4895 long result;
4896 PyObject * obj0 = 0 ;
4897 char *kwnames[] = {
4898 (char *) "self", NULL
4899 };
4900
4901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4904 {
4905 PyThreadState* __tstate = wxPyBeginAllowThreads();
4906 result = (long)(arg1)->GetHandle();
4907
4908 wxPyEndAllowThreads(__tstate);
4909 if (PyErr_Occurred()) SWIG_fail;
4910 }
2f4c0a16 4911 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
4912 return resultobj;
4913 fail:
4914 return NULL;
4915}
4916
4917
4918static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4919 PyObject *resultobj;
4920 wxCursor *arg1 = (wxCursor *) 0 ;
4921 long arg2 ;
4922 PyObject * obj0 = 0 ;
8edf1c75 4923 PyObject * obj1 = 0 ;
d14a1e28
RD
4924 char *kwnames[] = {
4925 (char *) "self",(char *) "handle", NULL
4926 };
4927
8edf1c75 4928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
4929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4931 arg2 = (long) SWIG_AsLong(obj1);
4932 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4933 {
4934 PyThreadState* __tstate = wxPyBeginAllowThreads();
2f4c0a16 4935 wxCursor_SetHandle(arg1,arg2);
d14a1e28
RD
4936
4937 wxPyEndAllowThreads(__tstate);
4938 if (PyErr_Occurred()) SWIG_fail;
4939 }
4940 Py_INCREF(Py_None); resultobj = Py_None;
4941 return resultobj;
4942 fail:
4943 return NULL;
4944}
4945
4946
4947static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4948 PyObject *resultobj;
4949 wxCursor *arg1 = (wxCursor *) 0 ;
4950 bool result;
4951 PyObject * obj0 = 0 ;
4952 char *kwnames[] = {
4953 (char *) "self", NULL
4954 };
4955
4956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4959 {
4960 PyThreadState* __tstate = wxPyBeginAllowThreads();
4961 result = (bool)(arg1)->Ok();
4962
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4e760a36 4966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
4967 return resultobj;
4968 fail:
4969 return NULL;
4970}
4971
4972
4973static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4974 PyObject *resultobj;
4975 wxCursor *arg1 = (wxCursor *) 0 ;
4976 int result;
4977 PyObject * obj0 = 0 ;
4978 char *kwnames[] = {
4979 (char *) "self", NULL
4980 };
4981
4982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
4983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4985 {
4986 PyThreadState* __tstate = wxPyBeginAllowThreads();
4987 result = (int)(arg1)->GetWidth();
4988
4989 wxPyEndAllowThreads(__tstate);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 }
2f4c0a16 4992 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4993 return resultobj;
4994 fail:
4995 return NULL;
4996}
4997
4998
4999static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5000 PyObject *resultobj;
5001 wxCursor *arg1 = (wxCursor *) 0 ;
5002 int result;
5003 PyObject * obj0 = 0 ;
5004 char *kwnames[] = {
5005 (char *) "self", NULL
5006 };
5007
5008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
5009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5011 {
5012 PyThreadState* __tstate = wxPyBeginAllowThreads();
5013 result = (int)(arg1)->GetHeight();
5014
5015 wxPyEndAllowThreads(__tstate);
5016 if (PyErr_Occurred()) SWIG_fail;
5017 }
2f4c0a16 5018 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5019 return resultobj;
5020 fail:
5021 return NULL;
5022}
5023
5024
5025static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj;
5027 wxCursor *arg1 = (wxCursor *) 0 ;
5028 int result;
5029 PyObject * obj0 = 0 ;
5030 char *kwnames[] = {
5031 (char *) "self", NULL
5032 };
5033
5034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
5035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5037 {
5038 PyThreadState* __tstate = wxPyBeginAllowThreads();
5039 result = (int)(arg1)->GetDepth();
5040
5041 wxPyEndAllowThreads(__tstate);
5042 if (PyErr_Occurred()) SWIG_fail;
5043 }
2f4c0a16 5044 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5045 return resultobj;
5046 fail:
5047 return NULL;
5048}
5049
5050
5051static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5052 PyObject *resultobj;
5053 wxCursor *arg1 = (wxCursor *) 0 ;
5054 int arg2 ;
5055 PyObject * obj0 = 0 ;
8edf1c75 5056 PyObject * obj1 = 0 ;
d14a1e28
RD
5057 char *kwnames[] = {
5058 (char *) "self",(char *) "w", NULL
5059 };
5060
8edf1c75 5061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5064 arg2 = (int) SWIG_AsInt(obj1);
5065 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5066 {
5067 PyThreadState* __tstate = wxPyBeginAllowThreads();
5068 (arg1)->SetWidth(arg2);
5069
5070 wxPyEndAllowThreads(__tstate);
5071 if (PyErr_Occurred()) SWIG_fail;
5072 }
5073 Py_INCREF(Py_None); resultobj = Py_None;
5074 return resultobj;
5075 fail:
5076 return NULL;
5077}
5078
5079
5080static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5081 PyObject *resultobj;
5082 wxCursor *arg1 = (wxCursor *) 0 ;
5083 int arg2 ;
5084 PyObject * obj0 = 0 ;
8edf1c75 5085 PyObject * obj1 = 0 ;
d14a1e28
RD
5086 char *kwnames[] = {
5087 (char *) "self",(char *) "h", NULL
5088 };
5089
8edf1c75 5090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5093 arg2 = (int) SWIG_AsInt(obj1);
5094 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5095 {
5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
5097 (arg1)->SetHeight(arg2);
5098
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 }
5102 Py_INCREF(Py_None); resultobj = Py_None;
5103 return resultobj;
5104 fail:
5105 return NULL;
5106}
5107
5108
5109static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5110 PyObject *resultobj;
5111 wxCursor *arg1 = (wxCursor *) 0 ;
5112 int arg2 ;
5113 PyObject * obj0 = 0 ;
8edf1c75 5114 PyObject * obj1 = 0 ;
d14a1e28
RD
5115 char *kwnames[] = {
5116 (char *) "self",(char *) "d", NULL
5117 };
5118
8edf1c75 5119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5122 arg2 = (int) SWIG_AsInt(obj1);
5123 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5124 {
5125 PyThreadState* __tstate = wxPyBeginAllowThreads();
5126 (arg1)->SetDepth(arg2);
5127
5128 wxPyEndAllowThreads(__tstate);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 }
5131 Py_INCREF(Py_None); resultobj = Py_None;
5132 return resultobj;
5133 fail:
5134 return NULL;
5135}
5136
5137
5138static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5139 PyObject *resultobj;
5140 wxCursor *arg1 = (wxCursor *) 0 ;
5141 wxSize *arg2 = 0 ;
5142 wxSize temp2 ;
5143 PyObject * obj0 = 0 ;
5144 PyObject * obj1 = 0 ;
5145 char *kwnames[] = {
5146 (char *) "self",(char *) "size", NULL
5147 };
5148
5149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5152 {
5153 arg2 = &temp2;
5154 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5155 }
5156 {
5157 PyThreadState* __tstate = wxPyBeginAllowThreads();
5158 (arg1)->SetSize((wxSize const &)*arg2);
5159
5160 wxPyEndAllowThreads(__tstate);
5161 if (PyErr_Occurred()) SWIG_fail;
5162 }
5163 Py_INCREF(Py_None); resultobj = Py_None;
5164 return resultobj;
5165 fail:
5166 return NULL;
5167}
5168
5169
5170static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
5171 PyObject *obj;
5172 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5173 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
5174 Py_INCREF(obj);
5175 return Py_BuildValue((char *)"");
5176}
5177static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5178 PyObject *resultobj;
423f194a
RD
5179 int arg1 = (int) 0 ;
5180 int arg2 = (int) 0 ;
5181 int arg3 = (int) 0 ;
5182 int arg4 = (int) 0 ;
d14a1e28 5183 wxRegion *result;
8edf1c75
RD
5184 PyObject * obj0 = 0 ;
5185 PyObject * obj1 = 0 ;
5186 PyObject * obj2 = 0 ;
5187 PyObject * obj3 = 0 ;
d14a1e28
RD
5188 char *kwnames[] = {
5189 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5190 };
5191
8edf1c75
RD
5192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5193 if (obj0) {
2f4c0a16
RD
5194 arg1 = (int) SWIG_AsInt(obj0);
5195 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
5196 }
5197 if (obj1) {
2f4c0a16
RD
5198 arg2 = (int) SWIG_AsInt(obj1);
5199 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
5200 }
5201 if (obj2) {
2f4c0a16
RD
5202 arg3 = (int) SWIG_AsInt(obj2);
5203 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
5204 }
5205 if (obj3) {
2f4c0a16
RD
5206 arg4 = (int) SWIG_AsInt(obj3);
5207 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 5208 }
d14a1e28
RD
5209 {
5210 PyThreadState* __tstate = wxPyBeginAllowThreads();
5211 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
5212
5213 wxPyEndAllowThreads(__tstate);
5214 if (PyErr_Occurred()) SWIG_fail;
5215 }
2f4c0a16 5216 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
5217 return resultobj;
5218 fail:
5219 return NULL;
5220}
5221
5222
5223static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5224 PyObject *resultobj;
5225 wxBitmap *arg1 = 0 ;
5226 wxColour const &arg2_defvalue = wxNullColour ;
5227 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5228 int arg3 = (int) 0 ;
5229 wxRegion *result;
5230 wxColour temp2 ;
5231 PyObject * obj0 = 0 ;
5232 PyObject * obj1 = 0 ;
8edf1c75 5233 PyObject * obj2 = 0 ;
d14a1e28
RD
5234 char *kwnames[] = {
5235 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5236 };
5237
8edf1c75 5238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
5239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5240 SWIG_POINTER_EXCEPTION | 0)) == -1)
5241 SWIG_fail;
d14a1e28 5242 if (arg1 == NULL) {
2f4c0a16
RD
5243 PyErr_SetString(PyExc_TypeError,"null reference");
5244 SWIG_fail;
d14a1e28
RD
5245 }
5246 if (obj1) {
5247 {
5248 arg2 = &temp2;
5249 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5250 }
5251 }
8edf1c75 5252 if (obj2) {
2f4c0a16
RD
5253 arg3 = (int) SWIG_AsInt(obj2);
5254 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 5255 }
d14a1e28
RD
5256 {
5257 PyThreadState* __tstate = wxPyBeginAllowThreads();
5258 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
5259
5260 wxPyEndAllowThreads(__tstate);
5261 if (PyErr_Occurred()) SWIG_fail;
5262 }
2f4c0a16 5263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
5264 return resultobj;
5265 fail:
5266 return NULL;
5267}
5268
5269
5270static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
5271 PyObject *resultobj;
5272 int arg1 ;
5273 wxPoint *arg2 = (wxPoint *) 0 ;
5274 int arg3 = (int) wxWINDING_RULE ;
5275 wxRegion *result;
5276 PyObject * obj0 = 0 ;
8edf1c75 5277 PyObject * obj1 = 0 ;
d14a1e28
RD
5278 char *kwnames[] = {
5279 (char *) "points",(char *) "fillStyle", NULL
5280 };
5281
8edf1c75 5282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
5283 {
5284 arg2 = wxPoint_LIST_helper(obj0, &arg1);
5285 if (arg2 == NULL) SWIG_fail;
5286 }
8edf1c75 5287 if (obj1) {
2f4c0a16
RD
5288 arg3 = (int) SWIG_AsInt(obj1);
5289 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 5290 }
d14a1e28
RD
5291 {
5292 PyThreadState* __tstate = wxPyBeginAllowThreads();
5293 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
5294
5295 wxPyEndAllowThreads(__tstate);
5296 if (PyErr_Occurred()) SWIG_fail;
5297 }
2f4c0a16 5298 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
5299 {
5300 if (arg2) delete [] arg2;
5301 }
5302 return resultobj;
5303 fail:
5304 {
5305 if (arg2) delete [] arg2;
5306 }
5307 return NULL;
5308}
5309
5310
5311static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5312 PyObject *resultobj;
5313 wxRegion *arg1 = (wxRegion *) 0 ;
5314 PyObject * obj0 = 0 ;
5315 char *kwnames[] = {
5316 (char *) "self", NULL
5317 };
5318
5319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
2f4c0a16
RD
5320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5322 {
5323 PyThreadState* __tstate = wxPyBeginAllowThreads();
5324 delete arg1;
5325
5326 wxPyEndAllowThreads(__tstate);
5327 if (PyErr_Occurred()) SWIG_fail;
5328 }
5329 Py_INCREF(Py_None); resultobj = Py_None;
5330 return resultobj;
5331 fail:
5332 return NULL;
5333}
5334
5335
5336static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5337 PyObject *resultobj;
5338 wxRegion *arg1 = (wxRegion *) 0 ;
5339 PyObject * obj0 = 0 ;
5340 char *kwnames[] = {
5341 (char *) "self", NULL
5342 };
5343
5344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
2f4c0a16
RD
5345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5347 {
5348 PyThreadState* __tstate = wxPyBeginAllowThreads();
5349 (arg1)->Clear();
5350
5351 wxPyEndAllowThreads(__tstate);
5352 if (PyErr_Occurred()) SWIG_fail;
5353 }
5354 Py_INCREF(Py_None); resultobj = Py_None;
5355 return resultobj;
5356 fail:
5357 return NULL;
5358}
5359
5360
5361static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5362 PyObject *resultobj;
5363 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
5364 int arg2 ;
5365 int arg3 ;
d14a1e28
RD
5366 bool result;
5367 PyObject * obj0 = 0 ;
8edf1c75
RD
5368 PyObject * obj1 = 0 ;
5369 PyObject * obj2 = 0 ;
d14a1e28
RD
5370 char *kwnames[] = {
5371 (char *) "self",(char *) "x",(char *) "y", NULL
5372 };
5373
8edf1c75 5374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
5375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5377 arg2 = (int) SWIG_AsInt(obj1);
5378 if (PyErr_Occurred()) SWIG_fail;
5379 arg3 = (int) SWIG_AsInt(obj2);
5380 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5381 {
5382 PyThreadState* __tstate = wxPyBeginAllowThreads();
5383 result = (bool)(arg1)->Offset(arg2,arg3);
5384
5385 wxPyEndAllowThreads(__tstate);
5386 if (PyErr_Occurred()) SWIG_fail;
5387 }
4e760a36 5388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5389 return resultobj;
5390 fail:
5391 return NULL;
5392}
5393
5394
5395static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5396 PyObject *resultobj;
5397 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
5398 int arg2 ;
5399 int arg3 ;
d14a1e28
RD
5400 int result;
5401 PyObject * obj0 = 0 ;
8edf1c75
RD
5402 PyObject * obj1 = 0 ;
5403 PyObject * obj2 = 0 ;
d14a1e28
RD
5404 char *kwnames[] = {
5405 (char *) "self",(char *) "x",(char *) "y", NULL
5406 };
5407
8edf1c75 5408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
5409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5411 arg2 = (int) SWIG_AsInt(obj1);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 arg3 = (int) SWIG_AsInt(obj2);
5414 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5415 {
5416 PyThreadState* __tstate = wxPyBeginAllowThreads();
5417 result = (int)(arg1)->Contains(arg2,arg3);
5418
5419 wxPyEndAllowThreads(__tstate);
5420 if (PyErr_Occurred()) SWIG_fail;
5421 }
2f4c0a16 5422 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5423 return resultobj;
5424 fail:
5425 return NULL;
5426}
5427
5428
5429static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5430 PyObject *resultobj;
5431 wxRegion *arg1 = (wxRegion *) 0 ;
5432 wxPoint *arg2 = 0 ;
5433 int result;
5434 wxPoint temp2 ;
5435 PyObject * obj0 = 0 ;
5436 PyObject * obj1 = 0 ;
5437 char *kwnames[] = {
5438 (char *) "self",(char *) "pt", NULL
5439 };
5440
5441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5444 {
5445 arg2 = &temp2;
5446 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5447 }
5448 {
5449 PyThreadState* __tstate = wxPyBeginAllowThreads();
5450 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5451
5452 wxPyEndAllowThreads(__tstate);
5453 if (PyErr_Occurred()) SWIG_fail;
5454 }
2f4c0a16 5455 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5456 return resultobj;
5457 fail:
5458 return NULL;
5459}
5460
5461
5462static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5463 PyObject *resultobj;
5464 wxRegion *arg1 = (wxRegion *) 0 ;
5465 wxRect *arg2 = 0 ;
5466 int result;
5467 wxRect temp2 ;
5468 PyObject * obj0 = 0 ;
5469 PyObject * obj1 = 0 ;
5470 char *kwnames[] = {
5471 (char *) "self",(char *) "rect", NULL
5472 };
5473
5474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5477 {
5478 arg2 = &temp2;
5479 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5480 }
5481 {
5482 PyThreadState* __tstate = wxPyBeginAllowThreads();
5483 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5484
5485 wxPyEndAllowThreads(__tstate);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 }
2f4c0a16 5488 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5489 return resultobj;
5490 fail:
5491 return NULL;
5492}
5493
5494
5495static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5496 PyObject *resultobj;
5497 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
5498 int arg2 ;
5499 int arg3 ;
5500 int arg4 ;
5501 int arg5 ;
d14a1e28
RD
5502 int result;
5503 PyObject * obj0 = 0 ;
8edf1c75
RD
5504 PyObject * obj1 = 0 ;
5505 PyObject * obj2 = 0 ;
5506 PyObject * obj3 = 0 ;
5507 PyObject * obj4 = 0 ;
d14a1e28
RD
5508 char *kwnames[] = {
5509 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5510 };
5511
8edf1c75 5512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
5513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5515 arg2 = (int) SWIG_AsInt(obj1);
5516 if (PyErr_Occurred()) SWIG_fail;
5517 arg3 = (int) SWIG_AsInt(obj2);
5518 if (PyErr_Occurred()) SWIG_fail;
5519 arg4 = (int) SWIG_AsInt(obj3);
5520 if (PyErr_Occurred()) SWIG_fail;
5521 arg5 = (int) SWIG_AsInt(obj4);
5522 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5523 {
5524 PyThreadState* __tstate = wxPyBeginAllowThreads();
5525 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5526
5527 wxPyEndAllowThreads(__tstate);
5528 if (PyErr_Occurred()) SWIG_fail;
5529 }
2f4c0a16 5530 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5531 return resultobj;
5532 fail:
5533 return NULL;
5534}
5535
5536
5537static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5538 PyObject *resultobj;
5539 wxRegion *arg1 = (wxRegion *) 0 ;
5540 wxRect result;
5541 PyObject * obj0 = 0 ;
5542 char *kwnames[] = {
5543 (char *) "self", NULL
5544 };
5545
5546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
2f4c0a16
RD
5547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5549 {
5550 PyThreadState* __tstate = wxPyBeginAllowThreads();
5551 result = (arg1)->GetBox();
5552
5553 wxPyEndAllowThreads(__tstate);
5554 if (PyErr_Occurred()) SWIG_fail;
5555 }
5556 {
5557 wxRect * resultptr;
5558 resultptr = new wxRect((wxRect &) result);
2f4c0a16 5559 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
5560 }
5561 return resultobj;
5562 fail:
5563 return NULL;
5564}
5565
5566
5567static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5568 PyObject *resultobj;
5569 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
5570 int arg2 ;
5571 int arg3 ;
5572 int arg4 ;
5573 int arg5 ;
d14a1e28
RD
5574 bool result;
5575 PyObject * obj0 = 0 ;
8edf1c75
RD
5576 PyObject * obj1 = 0 ;
5577 PyObject * obj2 = 0 ;
5578 PyObject * obj3 = 0 ;
5579 PyObject * obj4 = 0 ;
d14a1e28
RD
5580 char *kwnames[] = {
5581 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5582 };
5583
8edf1c75 5584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
5585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5587 arg2 = (int) SWIG_AsInt(obj1);
5588 if (PyErr_Occurred()) SWIG_fail;
5589 arg3 = (int) SWIG_AsInt(obj2);
5590 if (PyErr_Occurred()) SWIG_fail;
5591 arg4 = (int) SWIG_AsInt(obj3);
5592 if (PyErr_Occurred()) SWIG_fail;
5593 arg5 = (int) SWIG_AsInt(obj4);
5594 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5595 {
5596 PyThreadState* __tstate = wxPyBeginAllowThreads();
5597 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5598
5599 wxPyEndAllowThreads(__tstate);
5600 if (PyErr_Occurred()) SWIG_fail;
5601 }
4e760a36 5602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5603 return resultobj;
5604 fail:
5605 return NULL;
5606}
5607
5608
5609static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5610 PyObject *resultobj;
5611 wxRegion *arg1 = (wxRegion *) 0 ;
5612 wxRect *arg2 = 0 ;
5613 bool result;
5614 wxRect temp2 ;
5615 PyObject * obj0 = 0 ;
5616 PyObject * obj1 = 0 ;
5617 char *kwnames[] = {
5618 (char *) "self",(char *) "rect", NULL
5619 };
5620
5621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5624 {
5625 arg2 = &temp2;
5626 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5627 }
5628 {
5629 PyThreadState* __tstate = wxPyBeginAllowThreads();
5630 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5631
5632 wxPyEndAllowThreads(__tstate);
5633 if (PyErr_Occurred()) SWIG_fail;
5634 }
4e760a36 5635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5636 return resultobj;
5637 fail:
5638 return NULL;
5639}
5640
5641
5642static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5643 PyObject *resultobj;
5644 wxRegion *arg1 = (wxRegion *) 0 ;
5645 wxRegion *arg2 = 0 ;
5646 bool result;
5647 PyObject * obj0 = 0 ;
5648 PyObject * obj1 = 0 ;
5649 char *kwnames[] = {
5650 (char *) "self",(char *) "region", NULL
5651 };
5652
5653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5656 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5657 SWIG_POINTER_EXCEPTION | 0)) == -1)
5658 SWIG_fail;
d14a1e28 5659 if (arg2 == NULL) {
2f4c0a16
RD
5660 PyErr_SetString(PyExc_TypeError,"null reference");
5661 SWIG_fail;
d14a1e28
RD
5662 }
5663 {
5664 PyThreadState* __tstate = wxPyBeginAllowThreads();
5665 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5666
5667 wxPyEndAllowThreads(__tstate);
5668 if (PyErr_Occurred()) SWIG_fail;
5669 }
4e760a36 5670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5671 return resultobj;
5672 fail:
5673 return NULL;
5674}
5675
5676
5677static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5678 PyObject *resultobj;
5679 wxRegion *arg1 = (wxRegion *) 0 ;
5680 bool result;
5681 PyObject * obj0 = 0 ;
5682 char *kwnames[] = {
5683 (char *) "self", NULL
5684 };
5685
5686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
2f4c0a16
RD
5687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5689 {
5690 PyThreadState* __tstate = wxPyBeginAllowThreads();
5691 result = (bool)(arg1)->IsEmpty();
5692
5693 wxPyEndAllowThreads(__tstate);
5694 if (PyErr_Occurred()) SWIG_fail;
5695 }
4e760a36 5696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5697 return resultobj;
5698 fail:
5699 return NULL;
5700}
5701
5702
5703static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5704 PyObject *resultobj;
5705 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
5706 int arg2 ;
5707 int arg3 ;
5708 int arg4 ;
5709 int arg5 ;
d14a1e28
RD
5710 bool result;
5711 PyObject * obj0 = 0 ;
8edf1c75
RD
5712 PyObject * obj1 = 0 ;
5713 PyObject * obj2 = 0 ;
5714 PyObject * obj3 = 0 ;
5715 PyObject * obj4 = 0 ;
d14a1e28
RD
5716 char *kwnames[] = {
5717 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5718 };
5719
8edf1c75 5720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
5721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5723 arg2 = (int) SWIG_AsInt(obj1);
5724 if (PyErr_Occurred()) SWIG_fail;
5725 arg3 = (int) SWIG_AsInt(obj2);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 arg4 = (int) SWIG_AsInt(obj3);
5728 if (PyErr_Occurred()) SWIG_fail;
5729 arg5 = (int) SWIG_AsInt(obj4);
5730 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5731 {
5732 PyThreadState* __tstate = wxPyBeginAllowThreads();
5733 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5734
5735 wxPyEndAllowThreads(__tstate);
5736 if (PyErr_Occurred()) SWIG_fail;
5737 }
4e760a36 5738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5739 return resultobj;
5740 fail:
5741 return NULL;
5742}
5743
5744
5745static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5746 PyObject *resultobj;
5747 wxRegion *arg1 = (wxRegion *) 0 ;
5748 wxRect *arg2 = 0 ;
5749 bool result;
5750 wxRect temp2 ;
5751 PyObject * obj0 = 0 ;
5752 PyObject * obj1 = 0 ;
5753 char *kwnames[] = {
5754 (char *) "self",(char *) "rect", NULL
5755 };
5756
5757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5760 {
5761 arg2 = &temp2;
5762 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5763 }
5764 {
5765 PyThreadState* __tstate = wxPyBeginAllowThreads();
5766 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5767
5768 wxPyEndAllowThreads(__tstate);
5769 if (PyErr_Occurred()) SWIG_fail;
5770 }
4e760a36 5771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5772 return resultobj;
5773 fail:
5774 return NULL;
5775}
5776
5777
5778static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5779 PyObject *resultobj;
5780 wxRegion *arg1 = (wxRegion *) 0 ;
5781 wxRegion *arg2 = 0 ;
5782 bool result;
5783 PyObject * obj0 = 0 ;
5784 PyObject * obj1 = 0 ;
5785 char *kwnames[] = {
5786 (char *) "self",(char *) "region", NULL
5787 };
5788
5789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5792 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5793 SWIG_POINTER_EXCEPTION | 0)) == -1)
5794 SWIG_fail;
d14a1e28 5795 if (arg2 == NULL) {
2f4c0a16
RD
5796 PyErr_SetString(PyExc_TypeError,"null reference");
5797 SWIG_fail;
d14a1e28
RD
5798 }
5799 {
5800 PyThreadState* __tstate = wxPyBeginAllowThreads();
5801 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5802
5803 wxPyEndAllowThreads(__tstate);
5804 if (PyErr_Occurred()) SWIG_fail;
5805 }
4e760a36 5806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5807 return resultobj;
5808 fail:
5809 return NULL;
5810}
5811
5812
5813static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5814 PyObject *resultobj;
5815 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
5816 int arg2 ;
5817 int arg3 ;
5818 int arg4 ;
5819 int arg5 ;
d14a1e28
RD
5820 bool result;
5821 PyObject * obj0 = 0 ;
8edf1c75
RD
5822 PyObject * obj1 = 0 ;
5823 PyObject * obj2 = 0 ;
5824 PyObject * obj3 = 0 ;
5825 PyObject * obj4 = 0 ;
d14a1e28
RD
5826 char *kwnames[] = {
5827 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5828 };
5829
8edf1c75 5830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
5831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5833 arg2 = (int) SWIG_AsInt(obj1);
5834 if (PyErr_Occurred()) SWIG_fail;
5835 arg3 = (int) SWIG_AsInt(obj2);
5836 if (PyErr_Occurred()) SWIG_fail;
5837 arg4 = (int) SWIG_AsInt(obj3);
5838 if (PyErr_Occurred()) SWIG_fail;
5839 arg5 = (int) SWIG_AsInt(obj4);
5840 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5841 {
5842 PyThreadState* __tstate = wxPyBeginAllowThreads();
5843 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5844
5845 wxPyEndAllowThreads(__tstate);
5846 if (PyErr_Occurred()) SWIG_fail;
5847 }
4e760a36 5848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5849 return resultobj;
5850 fail:
5851 return NULL;
5852}
5853
5854
5855static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj;
5857 wxRegion *arg1 = (wxRegion *) 0 ;
5858 wxRect *arg2 = 0 ;
5859 bool result;
5860 wxRect temp2 ;
5861 PyObject * obj0 = 0 ;
5862 PyObject * obj1 = 0 ;
5863 char *kwnames[] = {
5864 (char *) "self",(char *) "rect", NULL
5865 };
5866
5867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5870 {
5871 arg2 = &temp2;
5872 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5873 }
5874 {
5875 PyThreadState* __tstate = wxPyBeginAllowThreads();
5876 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5877
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
4e760a36 5881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5882 return resultobj;
5883 fail:
5884 return NULL;
5885}
5886
5887
5888static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5889 PyObject *resultobj;
5890 wxRegion *arg1 = (wxRegion *) 0 ;
5891 wxRegion *arg2 = 0 ;
5892 bool result;
5893 PyObject * obj0 = 0 ;
5894 PyObject * obj1 = 0 ;
5895 char *kwnames[] = {
5896 (char *) "self",(char *) "region", NULL
5897 };
5898
5899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5902 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5903 SWIG_POINTER_EXCEPTION | 0)) == -1)
5904 SWIG_fail;
d14a1e28 5905 if (arg2 == NULL) {
2f4c0a16
RD
5906 PyErr_SetString(PyExc_TypeError,"null reference");
5907 SWIG_fail;
d14a1e28
RD
5908 }
5909 {
5910 PyThreadState* __tstate = wxPyBeginAllowThreads();
5911 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5912
5913 wxPyEndAllowThreads(__tstate);
5914 if (PyErr_Occurred()) SWIG_fail;
5915 }
4e760a36 5916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5917 return resultobj;
5918 fail:
5919 return NULL;
5920}
5921
5922
5923static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5924 PyObject *resultobj;
5925 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
5926 int arg2 ;
5927 int arg3 ;
5928 int arg4 ;
5929 int arg5 ;
d14a1e28
RD
5930 bool result;
5931 PyObject * obj0 = 0 ;
8edf1c75
RD
5932 PyObject * obj1 = 0 ;
5933 PyObject * obj2 = 0 ;
5934 PyObject * obj3 = 0 ;
5935 PyObject * obj4 = 0 ;
d14a1e28
RD
5936 char *kwnames[] = {
5937 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5938 };
5939
8edf1c75 5940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
5941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5943 arg2 = (int) SWIG_AsInt(obj1);
5944 if (PyErr_Occurred()) SWIG_fail;
5945 arg3 = (int) SWIG_AsInt(obj2);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 arg4 = (int) SWIG_AsInt(obj3);
5948 if (PyErr_Occurred()) SWIG_fail;
5949 arg5 = (int) SWIG_AsInt(obj4);
5950 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5951 {
5952 PyThreadState* __tstate = wxPyBeginAllowThreads();
5953 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5954
5955 wxPyEndAllowThreads(__tstate);
5956 if (PyErr_Occurred()) SWIG_fail;
5957 }
4e760a36 5958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5959 return resultobj;
5960 fail:
5961 return NULL;
5962}
5963
5964
5965static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5966 PyObject *resultobj;
5967 wxRegion *arg1 = (wxRegion *) 0 ;
5968 wxRect *arg2 = 0 ;
5969 bool result;
5970 wxRect temp2 ;
5971 PyObject * obj0 = 0 ;
5972 PyObject * obj1 = 0 ;
5973 char *kwnames[] = {
5974 (char *) "self",(char *) "rect", NULL
5975 };
5976
5977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
5978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5980 {
5981 arg2 = &temp2;
5982 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5983 }
5984 {
5985 PyThreadState* __tstate = wxPyBeginAllowThreads();
5986 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5987
5988 wxPyEndAllowThreads(__tstate);
5989 if (PyErr_Occurred()) SWIG_fail;
5990 }
4e760a36 5991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5992 return resultobj;
5993 fail:
5994 return NULL;
5995}
5996
5997
5998static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5999 PyObject *resultobj;
6000 wxRegion *arg1 = (wxRegion *) 0 ;
6001 wxRegion *arg2 = 0 ;
6002 bool result;
6003 PyObject * obj0 = 0 ;
6004 PyObject * obj1 = 0 ;
6005 char *kwnames[] = {
6006 (char *) "self",(char *) "region", NULL
6007 };
6008
6009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6012 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6013 SWIG_POINTER_EXCEPTION | 0)) == -1)
6014 SWIG_fail;
d14a1e28 6015 if (arg2 == NULL) {
2f4c0a16
RD
6016 PyErr_SetString(PyExc_TypeError,"null reference");
6017 SWIG_fail;
d14a1e28
RD
6018 }
6019 {
6020 PyThreadState* __tstate = wxPyBeginAllowThreads();
6021 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
6022
6023 wxPyEndAllowThreads(__tstate);
6024 if (PyErr_Occurred()) SWIG_fail;
6025 }
4e760a36 6026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6027 return resultobj;
6028 fail:
6029 return NULL;
6030}
6031
6032
6033static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6034 PyObject *resultobj;
6035 wxRegion *arg1 = (wxRegion *) 0 ;
6036 SwigValueWrapper< wxBitmap > result;
6037 PyObject * obj0 = 0 ;
6038 char *kwnames[] = {
6039 (char *) "self", NULL
6040 };
6041
6042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6045 {
6046 PyThreadState* __tstate = wxPyBeginAllowThreads();
6047 result = (arg1)->ConvertToBitmap();
6048
6049 wxPyEndAllowThreads(__tstate);
6050 if (PyErr_Occurred()) SWIG_fail;
6051 }
6052 {
6053 wxBitmap * resultptr;
6054 resultptr = new wxBitmap((wxBitmap &) result);
2f4c0a16 6055 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
6056 }
6057 return resultobj;
6058 fail:
6059 return NULL;
6060}
6061
6062
6063static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6064 PyObject *resultobj;
6065 wxRegion *arg1 = (wxRegion *) 0 ;
6066 wxBitmap *arg2 = 0 ;
6067 wxColour const &arg3_defvalue = wxNullColour ;
6068 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
6069 int arg4 = (int) 0 ;
6070 bool result;
6071 wxColour temp3 ;
6072 PyObject * obj0 = 0 ;
6073 PyObject * obj1 = 0 ;
6074 PyObject * obj2 = 0 ;
8edf1c75 6075 PyObject * obj3 = 0 ;
d14a1e28
RD
6076 char *kwnames[] = {
6077 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6078 };
6079
8edf1c75 6080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
6081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6083 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6084 SWIG_POINTER_EXCEPTION | 0)) == -1)
6085 SWIG_fail;
d14a1e28 6086 if (arg2 == NULL) {
2f4c0a16
RD
6087 PyErr_SetString(PyExc_TypeError,"null reference");
6088 SWIG_fail;
d14a1e28
RD
6089 }
6090 if (obj2) {
6091 {
6092 arg3 = &temp3;
6093 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6094 }
6095 }
8edf1c75 6096 if (obj3) {
2f4c0a16
RD
6097 arg4 = (int) SWIG_AsInt(obj3);
6098 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 6099 }
d14a1e28
RD
6100 {
6101 PyThreadState* __tstate = wxPyBeginAllowThreads();
6102 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
6103
6104 wxPyEndAllowThreads(__tstate);
6105 if (PyErr_Occurred()) SWIG_fail;
6106 }
4e760a36 6107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6108 return resultobj;
6109 fail:
6110 return NULL;
6111}
6112
6113
6114static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
6115 PyObject *obj;
6116 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6117 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
6118 Py_INCREF(obj);
6119 return Py_BuildValue((char *)"");
6120}
6121static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6122 PyObject *resultobj;
6123 wxRegion *arg1 = 0 ;
6124 wxRegionIterator *result;
6125 PyObject * obj0 = 0 ;
6126 char *kwnames[] = {
6127 (char *) "region", NULL
6128 };
6129
6130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6132 SWIG_POINTER_EXCEPTION | 0)) == -1)
6133 SWIG_fail;
d14a1e28 6134 if (arg1 == NULL) {
2f4c0a16
RD
6135 PyErr_SetString(PyExc_TypeError,"null reference");
6136 SWIG_fail;
d14a1e28
RD
6137 }
6138 {
6139 PyThreadState* __tstate = wxPyBeginAllowThreads();
6140 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
6141
6142 wxPyEndAllowThreads(__tstate);
6143 if (PyErr_Occurred()) SWIG_fail;
6144 }
2f4c0a16 6145 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
d14a1e28
RD
6146 return resultobj;
6147 fail:
6148 return NULL;
6149}
6150
6151
6152static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6153 PyObject *resultobj;
6154 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6155 PyObject * obj0 = 0 ;
6156 char *kwnames[] = {
6157 (char *) "self", NULL
6158 };
6159
6160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6163 {
6164 PyThreadState* __tstate = wxPyBeginAllowThreads();
6165 delete arg1;
6166
6167 wxPyEndAllowThreads(__tstate);
6168 if (PyErr_Occurred()) SWIG_fail;
6169 }
6170 Py_INCREF(Py_None); resultobj = Py_None;
6171 return resultobj;
6172 fail:
6173 return NULL;
6174}
6175
6176
6177static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
6178 PyObject *resultobj;
6179 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 6180 int result;
d14a1e28
RD
6181 PyObject * obj0 = 0 ;
6182 char *kwnames[] = {
6183 (char *) "self", NULL
6184 };
6185
6186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6189 {
6190 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 6191 result = (int)(arg1)->GetX();
d14a1e28
RD
6192
6193 wxPyEndAllowThreads(__tstate);
6194 if (PyErr_Occurred()) SWIG_fail;
6195 }
2f4c0a16 6196 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6197 return resultobj;
6198 fail:
6199 return NULL;
6200}
6201
6202
6203static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
6204 PyObject *resultobj;
6205 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 6206 int result;
d14a1e28
RD
6207 PyObject * obj0 = 0 ;
6208 char *kwnames[] = {
6209 (char *) "self", NULL
6210 };
6211
6212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6215 {
6216 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 6217 result = (int)(arg1)->GetY();
d14a1e28
RD
6218
6219 wxPyEndAllowThreads(__tstate);
6220 if (PyErr_Occurred()) SWIG_fail;
6221 }
2f4c0a16 6222 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6223 return resultobj;
6224 fail:
6225 return NULL;
6226}
6227
6228
6229static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
6230 PyObject *resultobj;
6231 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 6232 int result;
d14a1e28
RD
6233 PyObject * obj0 = 0 ;
6234 char *kwnames[] = {
6235 (char *) "self", NULL
6236 };
6237
6238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6241 {
6242 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 6243 result = (int)(arg1)->GetW();
d14a1e28
RD
6244
6245 wxPyEndAllowThreads(__tstate);
6246 if (PyErr_Occurred()) SWIG_fail;
6247 }
2f4c0a16 6248 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6249 return resultobj;
6250 fail:
6251 return NULL;
6252}
6253
6254
6255static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6256 PyObject *resultobj;
6257 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 6258 int result;
d14a1e28
RD
6259 PyObject * obj0 = 0 ;
6260 char *kwnames[] = {
6261 (char *) "self", NULL
6262 };
6263
6264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6267 {
6268 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 6269 result = (int)(arg1)->GetWidth();
d14a1e28
RD
6270
6271 wxPyEndAllowThreads(__tstate);
6272 if (PyErr_Occurred()) SWIG_fail;
6273 }
2f4c0a16 6274 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6275 return resultobj;
6276 fail:
6277 return NULL;
6278}
6279
6280
6281static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
6282 PyObject *resultobj;
6283 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 6284 int result;
d14a1e28
RD
6285 PyObject * obj0 = 0 ;
6286 char *kwnames[] = {
6287 (char *) "self", NULL
6288 };
6289
6290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6293 {
6294 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 6295 result = (int)(arg1)->GetH();
d14a1e28
RD
6296
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
2f4c0a16 6300 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6301 return resultobj;
6302 fail:
6303 return NULL;
6304}
6305
6306
6307static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6308 PyObject *resultobj;
6309 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 6310 int result;
d14a1e28
RD
6311 PyObject * obj0 = 0 ;
6312 char *kwnames[] = {
6313 (char *) "self", NULL
6314 };
6315
6316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6319 {
6320 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 6321 result = (int)(arg1)->GetHeight();
d14a1e28
RD
6322
6323 wxPyEndAllowThreads(__tstate);
6324 if (PyErr_Occurred()) SWIG_fail;
6325 }
2f4c0a16 6326 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6327 return resultobj;
6328 fail:
6329 return NULL;
6330}
6331
6332
6333static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6334 PyObject *resultobj;
6335 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6336 wxRect result;
6337 PyObject * obj0 = 0 ;
6338 char *kwnames[] = {
6339 (char *) "self", NULL
6340 };
6341
6342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6345 {
6346 PyThreadState* __tstate = wxPyBeginAllowThreads();
6347 result = (arg1)->GetRect();
6348
6349 wxPyEndAllowThreads(__tstate);
6350 if (PyErr_Occurred()) SWIG_fail;
6351 }
6352 {
6353 wxRect * resultptr;
6354 resultptr = new wxRect((wxRect &) result);
2f4c0a16 6355 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
6356 }
6357 return resultobj;
6358 fail:
6359 return NULL;
6360}
6361
6362
6363static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6364 PyObject *resultobj;
6365 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6366 bool result;
6367 PyObject * obj0 = 0 ;
6368 char *kwnames[] = {
6369 (char *) "self", NULL
6370 };
6371
6372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6375 {
6376 PyThreadState* __tstate = wxPyBeginAllowThreads();
6377 result = (bool)(arg1)->HaveRects();
6378
6379 wxPyEndAllowThreads(__tstate);
6380 if (PyErr_Occurred()) SWIG_fail;
6381 }
4e760a36 6382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6383 return resultobj;
6384 fail:
6385 return NULL;
6386}
6387
6388
6389static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6390 PyObject *resultobj;
6391 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6392 PyObject * obj0 = 0 ;
6393 char *kwnames[] = {
6394 (char *) "self", NULL
6395 };
6396
6397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6400 {
6401 PyThreadState* __tstate = wxPyBeginAllowThreads();
6402 (arg1)->Reset();
6403
6404 wxPyEndAllowThreads(__tstate);
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 Py_INCREF(Py_None); resultobj = Py_None;
6408 return resultobj;
6409 fail:
6410 return NULL;
6411}
6412
6413
6414static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6415 PyObject *resultobj;
6416 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6417 PyObject * obj0 = 0 ;
6418 char *kwnames[] = {
6419 (char *) "self", NULL
6420 };
6421
6422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6425 {
6426 PyThreadState* __tstate = wxPyBeginAllowThreads();
6427 wxRegionIterator_Next(arg1);
6428
6429 wxPyEndAllowThreads(__tstate);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 Py_INCREF(Py_None); resultobj = Py_None;
6433 return resultobj;
6434 fail:
6435 return NULL;
6436}
6437
6438
6439static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6440 PyObject *resultobj;
6441 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6442 bool result;
6443 PyObject * obj0 = 0 ;
6444 char *kwnames[] = {
6445 (char *) "self", NULL
6446 };
6447
6448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6451 {
6452 PyThreadState* __tstate = wxPyBeginAllowThreads();
6453 result = (bool)wxRegionIterator___nonzero__(arg1);
6454
6455 wxPyEndAllowThreads(__tstate);
6456 if (PyErr_Occurred()) SWIG_fail;
6457 }
4e760a36 6458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6459 return resultobj;
6460 fail:
6461 return NULL;
6462}
6463
6464
6465static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6466 PyObject *obj;
6467 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6468 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6469 Py_INCREF(obj);
6470 return Py_BuildValue((char *)"");
6471}
6472static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6473 PyObject *resultobj;
6474 wxNativeFontInfo *result;
6475 char *kwnames[] = {
6476 NULL
6477 };
6478
6479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6480 {
6481 PyThreadState* __tstate = wxPyBeginAllowThreads();
6482 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6483
6484 wxPyEndAllowThreads(__tstate);
6485 if (PyErr_Occurred()) SWIG_fail;
6486 }
2f4c0a16 6487 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
d14a1e28
RD
6488 return resultobj;
6489 fail:
6490 return NULL;
6491}
6492
6493
6494static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6495 PyObject *resultobj;
6496 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6497 PyObject * obj0 = 0 ;
6498 char *kwnames[] = {
6499 (char *) "self", NULL
6500 };
6501
6502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6505 {
6506 PyThreadState* __tstate = wxPyBeginAllowThreads();
6507 delete arg1;
6508
6509 wxPyEndAllowThreads(__tstate);
6510 if (PyErr_Occurred()) SWIG_fail;
6511 }
6512 Py_INCREF(Py_None); resultobj = Py_None;
6513 return resultobj;
6514 fail:
6515 return NULL;
6516}
6517
6518
6519static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6520 PyObject *resultobj;
6521 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6522 PyObject * obj0 = 0 ;
6523 char *kwnames[] = {
6524 (char *) "self", NULL
6525 };
6526
6527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6530 {
6531 PyThreadState* __tstate = wxPyBeginAllowThreads();
6532 (arg1)->Init();
6533
6534 wxPyEndAllowThreads(__tstate);
6535 if (PyErr_Occurred()) SWIG_fail;
6536 }
6537 Py_INCREF(Py_None); resultobj = Py_None;
6538 return resultobj;
6539 fail:
6540 return NULL;
6541}
6542
6543
6544static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6545 PyObject *resultobj;
6546 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6547 wxFont *arg2 = 0 ;
6548 PyObject * obj0 = 0 ;
6549 PyObject * obj1 = 0 ;
6550 char *kwnames[] = {
6551 (char *) "self",(char *) "font", NULL
6552 };
6553
6554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6557 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6558 SWIG_POINTER_EXCEPTION | 0)) == -1)
6559 SWIG_fail;
d14a1e28 6560 if (arg2 == NULL) {
2f4c0a16
RD
6561 PyErr_SetString(PyExc_TypeError,"null reference");
6562 SWIG_fail;
d14a1e28
RD
6563 }
6564 {
6565 PyThreadState* __tstate = wxPyBeginAllowThreads();
6566 (arg1)->InitFromFont((wxFont const &)*arg2);
6567
6568 wxPyEndAllowThreads(__tstate);
6569 if (PyErr_Occurred()) SWIG_fail;
6570 }
6571 Py_INCREF(Py_None); resultobj = Py_None;
6572 return resultobj;
6573 fail:
6574 return NULL;
6575}
6576
6577
6578static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6579 PyObject *resultobj;
6580 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6581 int result;
6582 PyObject * obj0 = 0 ;
6583 char *kwnames[] = {
6584 (char *) "self", NULL
6585 };
6586
6587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6590 {
6591 PyThreadState* __tstate = wxPyBeginAllowThreads();
6592 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6593
6594 wxPyEndAllowThreads(__tstate);
6595 if (PyErr_Occurred()) SWIG_fail;
6596 }
2f4c0a16 6597 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6598 return resultobj;
6599 fail:
6600 return NULL;
6601}
6602
6603
6604static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6605 PyObject *resultobj;
6606 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6607 int result;
6608 PyObject * obj0 = 0 ;
6609 char *kwnames[] = {
6610 (char *) "self", NULL
6611 };
6612
6613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6616 {
6617 PyThreadState* __tstate = wxPyBeginAllowThreads();
6618 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6619
6620 wxPyEndAllowThreads(__tstate);
6621 if (PyErr_Occurred()) SWIG_fail;
6622 }
2f4c0a16 6623 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6624 return resultobj;
6625 fail:
6626 return NULL;
6627}
6628
6629
6630static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6631 PyObject *resultobj;
6632 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6633 int result;
6634 PyObject * obj0 = 0 ;
6635 char *kwnames[] = {
6636 (char *) "self", NULL
6637 };
6638
6639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6642 {
6643 PyThreadState* __tstate = wxPyBeginAllowThreads();
6644 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6645
6646 wxPyEndAllowThreads(__tstate);
6647 if (PyErr_Occurred()) SWIG_fail;
6648 }
2f4c0a16 6649 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6650 return resultobj;
6651 fail:
6652 return NULL;
6653}
6654
6655
6656static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6657 PyObject *resultobj;
6658 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6659 bool result;
6660 PyObject * obj0 = 0 ;
6661 char *kwnames[] = {
6662 (char *) "self", NULL
6663 };
6664
6665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6668 {
6669 PyThreadState* __tstate = wxPyBeginAllowThreads();
6670 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6671
6672 wxPyEndAllowThreads(__tstate);
6673 if (PyErr_Occurred()) SWIG_fail;
6674 }
4e760a36 6675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6676 return resultobj;
6677 fail:
6678 return NULL;
6679}
6680
6681
6682static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6683 PyObject *resultobj;
6684 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6685 wxString result;
6686 PyObject * obj0 = 0 ;
6687 char *kwnames[] = {
6688 (char *) "self", NULL
6689 };
6690
6691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6694 {
6695 PyThreadState* __tstate = wxPyBeginAllowThreads();
6696 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6697
6698 wxPyEndAllowThreads(__tstate);
6699 if (PyErr_Occurred()) SWIG_fail;
6700 }
6701 {
6702#if wxUSE_UNICODE
6703 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6704#else
6705 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6706#endif
6707 }
6708 return resultobj;
6709 fail:
6710 return NULL;
6711}
6712
6713
6714static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6715 PyObject *resultobj;
6716 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6717 int result;
6718 PyObject * obj0 = 0 ;
6719 char *kwnames[] = {
6720 (char *) "self", NULL
6721 };
6722
6723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6726 {
6727 PyThreadState* __tstate = wxPyBeginAllowThreads();
6728 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6729
6730 wxPyEndAllowThreads(__tstate);
6731 if (PyErr_Occurred()) SWIG_fail;
6732 }
2f4c0a16 6733 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6734 return resultobj;
6735 fail:
6736 return NULL;
6737}
6738
6739
6740static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6741 PyObject *resultobj;
6742 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6743 int result;
6744 PyObject * obj0 = 0 ;
6745 char *kwnames[] = {
6746 (char *) "self", NULL
6747 };
6748
6749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
2f4c0a16
RD
6750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6752 {
6753 PyThreadState* __tstate = wxPyBeginAllowThreads();
6754 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6755
6756 wxPyEndAllowThreads(__tstate);
6757 if (PyErr_Occurred()) SWIG_fail;
6758 }
2f4c0a16 6759 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6760 return resultobj;
6761 fail:
6762 return NULL;
6763}
6764
6765
6766static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6767 PyObject *resultobj;
6768 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6769 int arg2 ;
6770 PyObject * obj0 = 0 ;
8edf1c75 6771 PyObject * obj1 = 0 ;
d14a1e28
RD
6772 char *kwnames[] = {
6773 (char *) "self",(char *) "pointsize", NULL
6774 };
6775
8edf1c75 6776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6779 arg2 = (int) SWIG_AsInt(obj1);
6780 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
6781 {
6782 PyThreadState* __tstate = wxPyBeginAllowThreads();
6783 (arg1)->SetPointSize(arg2);
d14a1e28
RD
6784
6785 wxPyEndAllowThreads(__tstate);
6786 if (PyErr_Occurred()) SWIG_fail;
6787 }
6788 Py_INCREF(Py_None); resultobj = Py_None;
6789 return resultobj;
6790 fail:
6791 return NULL;
6792}
6793
6794
6795static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6796 PyObject *resultobj;
6797 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6798 int arg2 ;
6799 PyObject * obj0 = 0 ;
8edf1c75 6800 PyObject * obj1 = 0 ;
d14a1e28
RD
6801 char *kwnames[] = {
6802 (char *) "self",(char *) "style", NULL
6803 };
6804
8edf1c75 6805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6808 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6809 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6810 {
6811 PyThreadState* __tstate = wxPyBeginAllowThreads();
6812 (arg1)->SetStyle((wxFontStyle )arg2);
6813
6814 wxPyEndAllowThreads(__tstate);
6815 if (PyErr_Occurred()) SWIG_fail;
6816 }
6817 Py_INCREF(Py_None); resultobj = Py_None;
6818 return resultobj;
6819 fail:
6820 return NULL;
6821}
6822
6823
6824static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6825 PyObject *resultobj;
6826 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6827 int arg2 ;
6828 PyObject * obj0 = 0 ;
8edf1c75 6829 PyObject * obj1 = 0 ;
d14a1e28
RD
6830 char *kwnames[] = {
6831 (char *) "self",(char *) "weight", NULL
6832 };
6833
8edf1c75 6834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6837 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6838 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6839 {
6840 PyThreadState* __tstate = wxPyBeginAllowThreads();
6841 (arg1)->SetWeight((wxFontWeight )arg2);
6842
6843 wxPyEndAllowThreads(__tstate);
6844 if (PyErr_Occurred()) SWIG_fail;
6845 }
6846 Py_INCREF(Py_None); resultobj = Py_None;
6847 return resultobj;
6848 fail:
6849 return NULL;
6850}
6851
6852
6853static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6854 PyObject *resultobj;
6855 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6856 bool arg2 ;
6857 PyObject * obj0 = 0 ;
6858 PyObject * obj1 = 0 ;
6859 char *kwnames[] = {
6860 (char *) "self",(char *) "underlined", NULL
6861 };
6862
6863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6866 arg2 = (bool) SWIG_AsBool(obj1);
6867 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6868 {
6869 PyThreadState* __tstate = wxPyBeginAllowThreads();
6870 (arg1)->SetUnderlined(arg2);
6871
6872 wxPyEndAllowThreads(__tstate);
6873 if (PyErr_Occurred()) SWIG_fail;
6874 }
6875 Py_INCREF(Py_None); resultobj = Py_None;
6876 return resultobj;
6877 fail:
6878 return NULL;
6879}
6880
6881
6882static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6883 PyObject *resultobj;
6884 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6885 wxString arg2 ;
d14a1e28
RD
6886 PyObject * obj0 = 0 ;
6887 PyObject * obj1 = 0 ;
6888 char *kwnames[] = {
6889 (char *) "self",(char *) "facename", NULL
6890 };
6891
6892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
423f194a
RD
6895 {
6896 wxString* sptr = wxString_in_helper(obj1);
6897 if (sptr == NULL) SWIG_fail;
6898 arg2 = *sptr;
6899 delete sptr;
6900 }
d14a1e28
RD
6901 {
6902 PyThreadState* __tstate = wxPyBeginAllowThreads();
6903 (arg1)->SetFaceName(arg2);
6904
6905 wxPyEndAllowThreads(__tstate);
6906 if (PyErr_Occurred()) SWIG_fail;
6907 }
6908 Py_INCREF(Py_None); resultobj = Py_None;
6909 return resultobj;
6910 fail:
6911 return NULL;
6912}
6913
6914
6915static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6916 PyObject *resultobj;
6917 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6918 int arg2 ;
6919 PyObject * obj0 = 0 ;
8edf1c75 6920 PyObject * obj1 = 0 ;
d14a1e28
RD
6921 char *kwnames[] = {
6922 (char *) "self",(char *) "family", NULL
6923 };
6924
8edf1c75 6925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6928 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6929 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6930 {
6931 PyThreadState* __tstate = wxPyBeginAllowThreads();
6932 (arg1)->SetFamily((wxFontFamily )arg2);
6933
6934 wxPyEndAllowThreads(__tstate);
6935 if (PyErr_Occurred()) SWIG_fail;
6936 }
6937 Py_INCREF(Py_None); resultobj = Py_None;
6938 return resultobj;
6939 fail:
6940 return NULL;
6941}
6942
6943
6944static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6945 PyObject *resultobj;
6946 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6947 int arg2 ;
6948 PyObject * obj0 = 0 ;
8edf1c75 6949 PyObject * obj1 = 0 ;
d14a1e28
RD
6950 char *kwnames[] = {
6951 (char *) "self",(char *) "encoding", NULL
6952 };
6953
8edf1c75 6954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6957 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6958 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6959 {
6960 PyThreadState* __tstate = wxPyBeginAllowThreads();
6961 (arg1)->SetEncoding((wxFontEncoding )arg2);
6962
6963 wxPyEndAllowThreads(__tstate);
6964 if (PyErr_Occurred()) SWIG_fail;
6965 }
6966 Py_INCREF(Py_None); resultobj = Py_None;
6967 return resultobj;
6968 fail:
6969 return NULL;
6970}
6971
6972
6973static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6974 PyObject *resultobj;
6975 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6976 wxString *arg2 = 0 ;
6977 bool result;
423f194a 6978 bool temp2 = False ;
d14a1e28
RD
6979 PyObject * obj0 = 0 ;
6980 PyObject * obj1 = 0 ;
6981 char *kwnames[] = {
6982 (char *) "self",(char *) "s", NULL
6983 };
6984
6985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
6986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6988 {
6989 arg2 = wxString_in_helper(obj1);
6990 if (arg2 == NULL) SWIG_fail;
423f194a 6991 temp2 = True;
d14a1e28
RD
6992 }
6993 {
6994 PyThreadState* __tstate = wxPyBeginAllowThreads();
6995 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6996
6997 wxPyEndAllowThreads(__tstate);
6998 if (PyErr_Occurred()) SWIG_fail;
6999 }
4e760a36 7000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7001 {
7002 if (temp2)
7003 delete arg2;
7004 }
7005 return resultobj;
7006 fail:
7007 {
7008 if (temp2)
7009 delete arg2;
7010 }
7011 return NULL;
7012}
7013
7014
7015static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7016 PyObject *resultobj;
7017 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7018 wxString result;
7019 PyObject * obj0 = 0 ;
7020 char *kwnames[] = {
7021 (char *) "self", NULL
7022 };
7023
7024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7027 {
7028 PyThreadState* __tstate = wxPyBeginAllowThreads();
7029 result = ((wxNativeFontInfo const *)arg1)->ToString();
7030
7031 wxPyEndAllowThreads(__tstate);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 {
7035#if wxUSE_UNICODE
7036 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7037#else
7038 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7039#endif
7040 }
7041 return resultobj;
7042 fail:
7043 return NULL;
7044}
7045
7046
7047static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
7048 PyObject *resultobj;
7049 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7050 wxString result;
7051 PyObject * obj0 = 0 ;
7052 char *kwnames[] = {
7053 (char *) "self", NULL
7054 };
7055
7056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7059 {
7060 PyThreadState* __tstate = wxPyBeginAllowThreads();
7061 result = wxNativeFontInfo___str__(arg1);
7062
7063 wxPyEndAllowThreads(__tstate);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 {
7067#if wxUSE_UNICODE
7068 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7069#else
7070 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7071#endif
7072 }
7073 return resultobj;
7074 fail:
7075 return NULL;
7076}
7077
7078
7079static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7080 PyObject *resultobj;
7081 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7082 wxString *arg2 = 0 ;
7083 bool result;
423f194a 7084 bool temp2 = False ;
d14a1e28
RD
7085 PyObject * obj0 = 0 ;
7086 PyObject * obj1 = 0 ;
7087 char *kwnames[] = {
7088 (char *) "self",(char *) "s", NULL
7089 };
7090
7091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7094 {
7095 arg2 = wxString_in_helper(obj1);
7096 if (arg2 == NULL) SWIG_fail;
423f194a 7097 temp2 = True;
d14a1e28
RD
7098 }
7099 {
7100 PyThreadState* __tstate = wxPyBeginAllowThreads();
7101 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
7102
7103 wxPyEndAllowThreads(__tstate);
7104 if (PyErr_Occurred()) SWIG_fail;
7105 }
4e760a36 7106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7107 {
7108 if (temp2)
7109 delete arg2;
7110 }
7111 return resultobj;
7112 fail:
7113 {
7114 if (temp2)
7115 delete arg2;
7116 }
7117 return NULL;
7118}
7119
7120
7121static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7122 PyObject *resultobj;
7123 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7124 wxString result;
7125 PyObject * obj0 = 0 ;
7126 char *kwnames[] = {
7127 (char *) "self", NULL
7128 };
7129
7130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7133 {
7134 PyThreadState* __tstate = wxPyBeginAllowThreads();
7135 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
7136
7137 wxPyEndAllowThreads(__tstate);
7138 if (PyErr_Occurred()) SWIG_fail;
7139 }
7140 {
7141#if wxUSE_UNICODE
7142 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7143#else
7144 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7145#endif
7146 }
7147 return resultobj;
7148 fail:
7149 return NULL;
7150}
7151
7152
7153static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
7154 PyObject *obj;
7155 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7156 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
7157 Py_INCREF(obj);
7158 return Py_BuildValue((char *)"");
7159}
7160static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7161 PyObject *resultobj;
7162 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
d03fd34d 7163 wxString *arg2 = (wxString *) 0 ;
f775c30d 7164 bool temp2 = False ;
d14a1e28
RD
7165 PyObject * obj0 = 0 ;
7166 PyObject * obj1 = 0 ;
7167 char *kwnames[] = {
7168 (char *) "self",(char *) "facename", NULL
7169 };
7170
7171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
f775c30d
RD
7174 {
7175 arg2 = wxString_in_helper(obj1);
7176 if (arg2 == NULL) SWIG_fail;
7177 temp2 = True;
7178 }
d03fd34d 7179 if (arg1) (arg1)->facename = *arg2;
d14a1e28
RD
7180
7181 Py_INCREF(Py_None); resultobj = Py_None;
f775c30d
RD
7182 {
7183 if (temp2)
7184 delete arg2;
7185 }
d14a1e28
RD
7186 return resultobj;
7187 fail:
f775c30d
RD
7188 {
7189 if (temp2)
7190 delete arg2;
7191 }
d14a1e28
RD
7192 return NULL;
7193}
7194
7195
7196static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7197 PyObject *resultobj;
7198 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
d03fd34d 7199 wxString *result;
d14a1e28
RD
7200 PyObject * obj0 = 0 ;
7201 char *kwnames[] = {
7202 (char *) "self", NULL
7203 };
7204
7205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d03fd34d 7208 result = (wxString *)& ((arg1)->facename);
d14a1e28
RD
7209
7210 {
7211#if wxUSE_UNICODE
d03fd34d 7212 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 7213#else
d03fd34d 7214 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
7215#endif
7216 }
7217 return resultobj;
7218 fail:
7219 return NULL;
7220}
7221
7222
7223static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7224 PyObject *resultobj;
7225 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7226 int arg2 ;
7227 PyObject * obj0 = 0 ;
8edf1c75 7228 PyObject * obj1 = 0 ;
d14a1e28
RD
7229 char *kwnames[] = {
7230 (char *) "self",(char *) "encoding", NULL
7231 };
7232
8edf1c75 7233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7236 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7237 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7238 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
7239
7240 Py_INCREF(Py_None); resultobj = Py_None;
7241 return resultobj;
7242 fail:
7243 return NULL;
7244}
7245
7246
7247static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7248 PyObject *resultobj;
7249 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7250 int result;
7251 PyObject * obj0 = 0 ;
7252 char *kwnames[] = {
7253 (char *) "self", NULL
7254 };
7255
7256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7259 result = (int) ((arg1)->encoding);
7260
2f4c0a16 7261 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7262 return resultobj;
7263 fail:
7264 return NULL;
7265}
7266
7267
7268static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7269 PyObject *resultobj;
7270 wxNativeEncodingInfo *result;
7271 char *kwnames[] = {
7272 NULL
7273 };
7274
7275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7276 {
7277 PyThreadState* __tstate = wxPyBeginAllowThreads();
7278 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7279
7280 wxPyEndAllowThreads(__tstate);
7281 if (PyErr_Occurred()) SWIG_fail;
7282 }
2f4c0a16 7283 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
d14a1e28
RD
7284 return resultobj;
7285 fail:
7286 return NULL;
7287}
7288
7289
7290static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7291 PyObject *resultobj;
7292 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7293 PyObject * obj0 = 0 ;
7294 char *kwnames[] = {
7295 (char *) "self", NULL
7296 };
7297
7298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7301 {
7302 PyThreadState* __tstate = wxPyBeginAllowThreads();
7303 delete arg1;
7304
7305 wxPyEndAllowThreads(__tstate);
7306 if (PyErr_Occurred()) SWIG_fail;
7307 }
7308 Py_INCREF(Py_None); resultobj = Py_None;
7309 return resultobj;
7310 fail:
7311 return NULL;
7312}
7313
7314
7315static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7316 PyObject *resultobj;
7317 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7318 wxString *arg2 = 0 ;
7319 bool result;
423f194a 7320 bool temp2 = False ;
d14a1e28
RD
7321 PyObject * obj0 = 0 ;
7322 PyObject * obj1 = 0 ;
7323 char *kwnames[] = {
7324 (char *) "self",(char *) "s", NULL
7325 };
7326
7327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7330 {
7331 arg2 = wxString_in_helper(obj1);
7332 if (arg2 == NULL) SWIG_fail;
423f194a 7333 temp2 = True;
d14a1e28
RD
7334 }
7335 {
7336 PyThreadState* __tstate = wxPyBeginAllowThreads();
7337 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7338
7339 wxPyEndAllowThreads(__tstate);
7340 if (PyErr_Occurred()) SWIG_fail;
7341 }
4e760a36 7342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7343 {
7344 if (temp2)
7345 delete arg2;
7346 }
7347 return resultobj;
7348 fail:
7349 {
7350 if (temp2)
7351 delete arg2;
7352 }
7353 return NULL;
7354}
7355
7356
7357static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7358 PyObject *resultobj;
7359 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7360 wxString result;
7361 PyObject * obj0 = 0 ;
7362 char *kwnames[] = {
7363 (char *) "self", NULL
7364 };
7365
7366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7369 {
7370 PyThreadState* __tstate = wxPyBeginAllowThreads();
7371 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7372
7373 wxPyEndAllowThreads(__tstate);
7374 if (PyErr_Occurred()) SWIG_fail;
7375 }
7376 {
7377#if wxUSE_UNICODE
7378 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7379#else
7380 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7381#endif
7382 }
7383 return resultobj;
7384 fail:
7385 return NULL;
7386}
7387
7388
7389static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7390 PyObject *obj;
7391 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7392 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7393 Py_INCREF(obj);
7394 return Py_BuildValue((char *)"");
7395}
7396static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7397 PyObject *resultobj;
7398 int arg1 ;
7399 wxNativeEncodingInfo *result;
8edf1c75 7400 PyObject * obj0 = 0 ;
d14a1e28
RD
7401 char *kwnames[] = {
7402 (char *) "encoding", NULL
7403 };
7404
8edf1c75 7405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7406 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7407 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7408 {
7409 PyThreadState* __tstate = wxPyBeginAllowThreads();
7410 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7411
7412 wxPyEndAllowThreads(__tstate);
7413 if (PyErr_Occurred()) SWIG_fail;
7414 }
2f4c0a16 7415 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
d14a1e28
RD
7416 return resultobj;
7417 fail:
7418 return NULL;
7419}
7420
7421
7422static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7423 PyObject *resultobj;
7424 wxNativeEncodingInfo *arg1 = 0 ;
7425 bool result;
7426 PyObject * obj0 = 0 ;
7427 char *kwnames[] = {
7428 (char *) "info", NULL
7429 };
7430
7431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7433 SWIG_POINTER_EXCEPTION | 0)) == -1)
7434 SWIG_fail;
d14a1e28 7435 if (arg1 == NULL) {
2f4c0a16
RD
7436 PyErr_SetString(PyExc_TypeError,"null reference");
7437 SWIG_fail;
d14a1e28
RD
7438 }
7439 {
7440 PyThreadState* __tstate = wxPyBeginAllowThreads();
7441 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7442
7443 wxPyEndAllowThreads(__tstate);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 }
4e760a36 7446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7447 return resultobj;
7448 fail:
7449 return NULL;
7450}
7451
7452
7453static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7454 PyObject *resultobj;
7455 wxFontMapper *result;
7456 char *kwnames[] = {
7457 NULL
7458 };
7459
7460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7461 {
7462 PyThreadState* __tstate = wxPyBeginAllowThreads();
7463 result = (wxFontMapper *)new wxFontMapper();
7464
7465 wxPyEndAllowThreads(__tstate);
7466 if (PyErr_Occurred()) SWIG_fail;
7467 }
2f4c0a16 7468 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
d14a1e28
RD
7469 return resultobj;
7470 fail:
7471 return NULL;
7472}
7473
7474
7475static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7476 PyObject *resultobj;
7477 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7478 PyObject * obj0 = 0 ;
7479 char *kwnames[] = {
7480 (char *) "self", NULL
7481 };
7482
7483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7486 {
7487 PyThreadState* __tstate = wxPyBeginAllowThreads();
7488 delete arg1;
7489
7490 wxPyEndAllowThreads(__tstate);
7491 if (PyErr_Occurred()) SWIG_fail;
7492 }
7493 Py_INCREF(Py_None); resultobj = Py_None;
7494 return resultobj;
7495 fail:
7496 return NULL;
7497}
7498
7499
7500static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7501 PyObject *resultobj;
7502 wxFontMapper *result;
7503 char *kwnames[] = {
7504 NULL
7505 };
7506
7507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7508 {
7509 PyThreadState* __tstate = wxPyBeginAllowThreads();
7510 result = (wxFontMapper *)wxFontMapper::Get();
7511
7512 wxPyEndAllowThreads(__tstate);
7513 if (PyErr_Occurred()) SWIG_fail;
7514 }
2f4c0a16 7515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
d14a1e28
RD
7516 return resultobj;
7517 fail:
7518 return NULL;
7519}
7520
7521
7522static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7523 PyObject *resultobj;
7524 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7525 wxFontMapper *result;
7526 PyObject * obj0 = 0 ;
7527 char *kwnames[] = {
7528 (char *) "mapper", NULL
7529 };
7530
7531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7534 {
7535 PyThreadState* __tstate = wxPyBeginAllowThreads();
7536 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7537
7538 wxPyEndAllowThreads(__tstate);
7539 if (PyErr_Occurred()) SWIG_fail;
7540 }
2f4c0a16 7541 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
d14a1e28
RD
7542 return resultobj;
7543 fail:
7544 return NULL;
7545}
7546
7547
7548static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7549 PyObject *resultobj;
7550 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7551 wxString *arg2 = 0 ;
423f194a 7552 bool arg3 = (bool) True ;
d14a1e28 7553 int result;
423f194a 7554 bool temp2 = False ;
d14a1e28
RD
7555 PyObject * obj0 = 0 ;
7556 PyObject * obj1 = 0 ;
7557 PyObject * obj2 = 0 ;
7558 char *kwnames[] = {
7559 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7560 };
7561
7562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
7563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7565 {
7566 arg2 = wxString_in_helper(obj1);
7567 if (arg2 == NULL) SWIG_fail;
423f194a 7568 temp2 = True;
d14a1e28
RD
7569 }
7570 if (obj2) {
2f4c0a16
RD
7571 arg3 = (bool) SWIG_AsBool(obj2);
7572 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7573 }
7574 {
7575 PyThreadState* __tstate = wxPyBeginAllowThreads();
7576 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7577
7578 wxPyEndAllowThreads(__tstate);
7579 if (PyErr_Occurred()) SWIG_fail;
7580 }
2f4c0a16 7581 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7582 {
7583 if (temp2)
7584 delete arg2;
7585 }
7586 return resultobj;
7587 fail:
7588 {
7589 if (temp2)
7590 delete arg2;
7591 }
7592 return NULL;
7593}
7594
7595
7596static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7597 PyObject *resultobj;
7598 size_t result;
7599 char *kwnames[] = {
7600 NULL
7601 };
7602
7603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7604 {
7605 PyThreadState* __tstate = wxPyBeginAllowThreads();
7606 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7607
7608 wxPyEndAllowThreads(__tstate);
7609 if (PyErr_Occurred()) SWIG_fail;
7610 }
2f4c0a16 7611 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
7612 return resultobj;
7613 fail:
7614 return NULL;
7615}
7616
7617
7618static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7619 PyObject *resultobj;
7620 size_t arg1 ;
7621 int result;
7622 PyObject * obj0 = 0 ;
7623 char *kwnames[] = {
7624 (char *) "n", NULL
7625 };
7626
7627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7628 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7629 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7630 {
7631 PyThreadState* __tstate = wxPyBeginAllowThreads();
7632 result = (int)wxFontMapper::GetEncoding(arg1);
7633
7634 wxPyEndAllowThreads(__tstate);
7635 if (PyErr_Occurred()) SWIG_fail;
7636 }
2f4c0a16 7637 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7638 return resultobj;
7639 fail:
7640 return NULL;
7641}
7642
7643
7644static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7645 PyObject *resultobj;
7646 int arg1 ;
7647 wxString result;
8edf1c75 7648 PyObject * obj0 = 0 ;
d14a1e28
RD
7649 char *kwnames[] = {
7650 (char *) "encoding", NULL
7651 };
7652
8edf1c75 7653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7654 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7655 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7656 {
7657 PyThreadState* __tstate = wxPyBeginAllowThreads();
7658 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7659
7660 wxPyEndAllowThreads(__tstate);
7661 if (PyErr_Occurred()) SWIG_fail;
7662 }
7663 {
7664#if wxUSE_UNICODE
7665 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7666#else
7667 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7668#endif
7669 }
7670 return resultobj;
7671 fail:
7672 return NULL;
7673}
7674
7675
7676static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7677 PyObject *resultobj;
7678 int arg1 ;
7679 wxString result;
8edf1c75 7680 PyObject * obj0 = 0 ;
d14a1e28
RD
7681 char *kwnames[] = {
7682 (char *) "encoding", NULL
7683 };
7684
8edf1c75 7685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
2f4c0a16
RD
7686 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7687 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7688 {
7689 PyThreadState* __tstate = wxPyBeginAllowThreads();
7690 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7691
7692 wxPyEndAllowThreads(__tstate);
7693 if (PyErr_Occurred()) SWIG_fail;
7694 }
7695 {
7696#if wxUSE_UNICODE
7697 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7698#else
7699 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7700#endif
7701 }
7702 return resultobj;
7703 fail:
7704 return NULL;
7705}
7706
7707
7708static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7709 PyObject *resultobj;
7710 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7711 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7712 PyObject * obj0 = 0 ;
7713 PyObject * obj1 = 0 ;
7714 char *kwnames[] = {
7715 (char *) "self",(char *) "config", NULL
7716 };
7717
7718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7721 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7723 {
7724 PyThreadState* __tstate = wxPyBeginAllowThreads();
7725 (arg1)->SetConfig(arg2);
7726
7727 wxPyEndAllowThreads(__tstate);
7728 if (PyErr_Occurred()) SWIG_fail;
7729 }
7730 Py_INCREF(Py_None); resultobj = Py_None;
7731 return resultobj;
7732 fail:
7733 return NULL;
7734}
7735
7736
7737static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7738 PyObject *resultobj;
7739 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7740 wxString *arg2 = 0 ;
423f194a 7741 bool temp2 = False ;
d14a1e28
RD
7742 PyObject * obj0 = 0 ;
7743 PyObject * obj1 = 0 ;
7744 char *kwnames[] = {
7745 (char *) "self",(char *) "prefix", NULL
7746 };
7747
7748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7751 {
7752 arg2 = wxString_in_helper(obj1);
7753 if (arg2 == NULL) SWIG_fail;
423f194a 7754 temp2 = True;
d14a1e28
RD
7755 }
7756 {
7757 PyThreadState* __tstate = wxPyBeginAllowThreads();
7758 (arg1)->SetConfigPath((wxString const &)*arg2);
7759
7760 wxPyEndAllowThreads(__tstate);
7761 if (PyErr_Occurred()) SWIG_fail;
7762 }
7763 Py_INCREF(Py_None); resultobj = Py_None;
7764 {
7765 if (temp2)
7766 delete arg2;
7767 }
7768 return resultobj;
7769 fail:
7770 {
7771 if (temp2)
7772 delete arg2;
7773 }
7774 return NULL;
7775}
7776
7777
7778static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7779 PyObject *resultobj;
7780 wxString result;
7781 char *kwnames[] = {
7782 NULL
7783 };
7784
7785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7786 {
7787 PyThreadState* __tstate = wxPyBeginAllowThreads();
7788 result = wxFontMapper::GetDefaultConfigPath();
7789
7790 wxPyEndAllowThreads(__tstate);
7791 if (PyErr_Occurred()) SWIG_fail;
7792 }
7793 {
7794#if wxUSE_UNICODE
7795 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7796#else
7797 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7798#endif
7799 }
7800 return resultobj;
7801 fail:
7802 return NULL;
7803}
7804
7805
7806static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7807 PyObject *resultobj;
7808 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7809 int arg2 ;
7810 wxString const &arg3_defvalue = wxPyEmptyString ;
7811 wxString *arg3 = (wxString *) &arg3_defvalue ;
423f194a 7812 bool arg4 = (bool) True ;
d14a1e28 7813 PyObject *result;
423f194a 7814 bool temp3 = False ;
d14a1e28 7815 PyObject * obj0 = 0 ;
8edf1c75 7816 PyObject * obj1 = 0 ;
d14a1e28
RD
7817 PyObject * obj2 = 0 ;
7818 PyObject * obj3 = 0 ;
7819 char *kwnames[] = {
7820 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7821 };
7822
8edf1c75 7823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
7824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7826 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7827 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7828 if (obj2) {
7829 {
7830 arg3 = wxString_in_helper(obj2);
7831 if (arg3 == NULL) SWIG_fail;
423f194a 7832 temp3 = True;
d14a1e28
RD
7833 }
7834 }
7835 if (obj3) {
2f4c0a16
RD
7836 arg4 = (bool) SWIG_AsBool(obj3);
7837 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7838 }
7839 {
7840 PyThreadState* __tstate = wxPyBeginAllowThreads();
7841 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7842
7843 wxPyEndAllowThreads(__tstate);
7844 if (PyErr_Occurred()) SWIG_fail;
7845 }
7846 resultobj = result;
7847 {
7848 if (temp3)
7849 delete arg3;
7850 }
7851 return resultobj;
7852 fail:
7853 {
7854 if (temp3)
7855 delete arg3;
7856 }
7857 return NULL;
7858}
7859
7860
7861static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7862 PyObject *resultobj;
7863 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7864 int arg2 ;
7865 wxString const &arg3_defvalue = wxPyEmptyString ;
7866 wxString *arg3 = (wxString *) &arg3_defvalue ;
7867 bool result;
423f194a 7868 bool temp3 = False ;
d14a1e28 7869 PyObject * obj0 = 0 ;
8edf1c75 7870 PyObject * obj1 = 0 ;
d14a1e28
RD
7871 PyObject * obj2 = 0 ;
7872 char *kwnames[] = {
7873 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7874 };
7875
8edf1c75 7876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
7877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7879 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7880 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7881 if (obj2) {
7882 {
7883 arg3 = wxString_in_helper(obj2);
7884 if (arg3 == NULL) SWIG_fail;
423f194a 7885 temp3 = True;
d14a1e28
RD
7886 }
7887 }
7888 {
7889 PyThreadState* __tstate = wxPyBeginAllowThreads();
7890 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7891
7892 wxPyEndAllowThreads(__tstate);
7893 if (PyErr_Occurred()) SWIG_fail;
7894 }
4e760a36 7895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7896 {
7897 if (temp3)
7898 delete arg3;
7899 }
7900 return resultobj;
7901 fail:
7902 {
7903 if (temp3)
7904 delete arg3;
7905 }
7906 return NULL;
7907}
7908
7909
7910static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7911 PyObject *resultobj;
7912 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7913 wxWindow *arg2 = (wxWindow *) 0 ;
7914 PyObject * obj0 = 0 ;
7915 PyObject * obj1 = 0 ;
7916 char *kwnames[] = {
7917 (char *) "self",(char *) "parent", NULL
7918 };
7919
7920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7923 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7925 {
7926 PyThreadState* __tstate = wxPyBeginAllowThreads();
7927 (arg1)->SetDialogParent(arg2);
7928
7929 wxPyEndAllowThreads(__tstate);
7930 if (PyErr_Occurred()) SWIG_fail;
7931 }
7932 Py_INCREF(Py_None); resultobj = Py_None;
7933 return resultobj;
7934 fail:
7935 return NULL;
7936}
7937
7938
7939static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7940 PyObject *resultobj;
7941 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7942 wxString *arg2 = 0 ;
423f194a 7943 bool temp2 = False ;
d14a1e28
RD
7944 PyObject * obj0 = 0 ;
7945 PyObject * obj1 = 0 ;
7946 char *kwnames[] = {
7947 (char *) "self",(char *) "title", NULL
7948 };
7949
7950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
7951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7953 {
7954 arg2 = wxString_in_helper(obj1);
7955 if (arg2 == NULL) SWIG_fail;
423f194a 7956 temp2 = True;
d14a1e28
RD
7957 }
7958 {
7959 PyThreadState* __tstate = wxPyBeginAllowThreads();
7960 (arg1)->SetDialogTitle((wxString const &)*arg2);
7961
7962 wxPyEndAllowThreads(__tstate);
7963 if (PyErr_Occurred()) SWIG_fail;
7964 }
7965 Py_INCREF(Py_None); resultobj = Py_None;
7966 {
7967 if (temp2)
7968 delete arg2;
7969 }
7970 return resultobj;
7971 fail:
7972 {
7973 if (temp2)
7974 delete arg2;
7975 }
7976 return NULL;
7977}
7978
7979
7980static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7981 PyObject *obj;
7982 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7983 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7984 Py_INCREF(obj);
7985 return Py_BuildValue((char *)"");
7986}
7987static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7988 PyObject *resultobj;
7989 int arg1 ;
7990 int arg2 ;
7991 int arg3 ;
7992 int arg4 ;
423f194a 7993 bool arg5 = (bool) False ;
d14a1e28
RD
7994 wxString const &arg6_defvalue = wxPyEmptyString ;
7995 wxString *arg6 = (wxString *) &arg6_defvalue ;
7996 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7997 wxFont *result;
423f194a 7998 bool temp6 = False ;
8edf1c75
RD
7999 PyObject * obj0 = 0 ;
8000 PyObject * obj1 = 0 ;
8001 PyObject * obj2 = 0 ;
8002 PyObject * obj3 = 0 ;
d14a1e28
RD
8003 PyObject * obj4 = 0 ;
8004 PyObject * obj5 = 0 ;
8edf1c75 8005 PyObject * obj6 = 0 ;
d14a1e28
RD
8006 char *kwnames[] = {
8007 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
8008 };
8009
8edf1c75 8010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
2f4c0a16
RD
8011 arg1 = (int) SWIG_AsInt(obj0);
8012 if (PyErr_Occurred()) SWIG_fail;
8013 arg2 = (int) SWIG_AsInt(obj1);
8014 if (PyErr_Occurred()) SWIG_fail;
8015 arg3 = (int) SWIG_AsInt(obj2);
8016 if (PyErr_Occurred()) SWIG_fail;
8017 arg4 = (int) SWIG_AsInt(obj3);
8018 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 8019 if (obj4) {
2f4c0a16
RD
8020 arg5 = (bool) SWIG_AsBool(obj4);
8021 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8022 }
8023 if (obj5) {
8024 {
8025 arg6 = wxString_in_helper(obj5);
8026 if (arg6 == NULL) SWIG_fail;
423f194a 8027 temp6 = True;
d14a1e28
RD
8028 }
8029 }
8edf1c75 8030 if (obj6) {
2f4c0a16
RD
8031 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
8032 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 8033 }
d14a1e28
RD
8034 {
8035 PyThreadState* __tstate = wxPyBeginAllowThreads();
8036 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8037
8038 wxPyEndAllowThreads(__tstate);
8039 if (PyErr_Occurred()) SWIG_fail;
8040 }
2f4c0a16 8041 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
8042 {
8043 if (temp6)
8044 delete arg6;
8045 }
8046 return resultobj;
8047 fail:
8048 {
8049 if (temp6)
8050 delete arg6;
8051 }
8052 return NULL;
8053}
8054
8055
8056static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8057 PyObject *resultobj;
8058 wxFont *arg1 = (wxFont *) 0 ;
8059 PyObject * obj0 = 0 ;
8060 char *kwnames[] = {
8061 (char *) "self", NULL
8062 };
8063
8064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
2f4c0a16
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 delete arg1;
8070
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 Py_INCREF(Py_None); resultobj = Py_None;
8075 return resultobj;
8076 fail:
8077 return NULL;
8078}
8079
8080
8081static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8082 PyObject *resultobj;
8083 wxNativeFontInfo *arg1 = 0 ;
8084 wxFont *result;
8085 PyObject * obj0 = 0 ;
8086 char *kwnames[] = {
8087 (char *) "info", NULL
8088 };
8089
8090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
8092 SWIG_POINTER_EXCEPTION | 0)) == -1)
8093 SWIG_fail;
d14a1e28 8094 if (arg1 == NULL) {
2f4c0a16
RD
8095 PyErr_SetString(PyExc_TypeError,"null reference");
8096 SWIG_fail;
d14a1e28
RD
8097 }
8098 {
8099 PyThreadState* __tstate = wxPyBeginAllowThreads();
8100 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
8101
8102 wxPyEndAllowThreads(__tstate);
8103 if (PyErr_Occurred()) SWIG_fail;
8104 }
2f4c0a16 8105 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
8106 return resultobj;
8107 fail:
8108 return NULL;
8109}
8110
8111
8112static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
8113 PyObject *resultobj;
8114 wxString *arg1 = 0 ;
8115 wxFont *result;
423f194a 8116 bool temp1 = False ;
d14a1e28
RD
8117 PyObject * obj0 = 0 ;
8118 char *kwnames[] = {
8119 (char *) "info", NULL
8120 };
8121
8122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
8123 {
8124 arg1 = wxString_in_helper(obj0);
8125 if (arg1 == NULL) SWIG_fail;
423f194a 8126 temp1 = True;
d14a1e28
RD
8127 }
8128 {
8129 PyThreadState* __tstate = wxPyBeginAllowThreads();
8130 result = (wxFont *)new_wxFont((wxString const &)*arg1);
8131
8132 wxPyEndAllowThreads(__tstate);
8133 if (PyErr_Occurred()) SWIG_fail;
8134 }
2f4c0a16 8135 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
8136 {
8137 if (temp1)
8138 delete arg1;
8139 }
8140 return resultobj;
8141 fail:
8142 {
8143 if (temp1)
8144 delete arg1;
8145 }
8146 return NULL;
8147}
8148
8149
8150static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
8151 PyObject *resultobj;
8152 int arg1 ;
8153 int arg2 ;
8154 int arg3 = (int) wxFONTFLAG_DEFAULT ;
8155 wxString const &arg4_defvalue = wxPyEmptyString ;
8156 wxString *arg4 = (wxString *) &arg4_defvalue ;
8157 int arg5 = (int) wxFONTENCODING_DEFAULT ;
8158 wxFont *result;
423f194a 8159 bool temp4 = False ;
8edf1c75
RD
8160 PyObject * obj0 = 0 ;
8161 PyObject * obj1 = 0 ;
8162 PyObject * obj2 = 0 ;
d14a1e28 8163 PyObject * obj3 = 0 ;
8edf1c75 8164 PyObject * obj4 = 0 ;
d14a1e28
RD
8165 char *kwnames[] = {
8166 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
8167 };
8168
8edf1c75 8169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
8170 arg1 = (int) SWIG_AsInt(obj0);
8171 if (PyErr_Occurred()) SWIG_fail;
8172 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
8173 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 8174 if (obj2) {
2f4c0a16
RD
8175 arg3 = (int) SWIG_AsInt(obj2);
8176 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 8177 }
d14a1e28
RD
8178 if (obj3) {
8179 {
8180 arg4 = wxString_in_helper(obj3);
8181 if (arg4 == NULL) SWIG_fail;
423f194a 8182 temp4 = True;
d14a1e28
RD
8183 }
8184 }
8edf1c75 8185 if (obj4) {
2f4c0a16
RD
8186 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
8187 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 8188 }
d14a1e28
RD
8189 {
8190 PyThreadState* __tstate = wxPyBeginAllowThreads();
8191 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8192
8193 wxPyEndAllowThreads(__tstate);
8194 if (PyErr_Occurred()) SWIG_fail;
8195 }
2f4c0a16 8196 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
8197 {
8198 if (temp4)
8199 delete arg4;
8200 }
8201 return resultobj;
8202 fail:
8203 {
8204 if (temp4)
8205 delete arg4;
8206 }
8207 return NULL;
8208}
8209
8210
8211static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8212 PyObject *resultobj;
8213 wxFont *arg1 = (wxFont *) 0 ;
8214 bool result;
8215 PyObject * obj0 = 0 ;
8216 char *kwnames[] = {
8217 (char *) "self", NULL
8218 };
8219
8220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8223 {
8224 PyThreadState* __tstate = wxPyBeginAllowThreads();
8225 result = (bool)((wxFont const *)arg1)->Ok();
8226
8227 wxPyEndAllowThreads(__tstate);
8228 if (PyErr_Occurred()) SWIG_fail;
8229 }
4e760a36 8230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8231 return resultobj;
8232 fail:
8233 return NULL;
8234}
8235
8236
8237static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
8238 PyObject *resultobj;
8239 wxFont *arg1 = (wxFont *) 0 ;
328fcd84 8240 wxFont *arg2 = (wxFont *) 0 ;
d14a1e28
RD
8241 bool result;
8242 PyObject * obj0 = 0 ;
8243 PyObject * obj1 = 0 ;
8244 char *kwnames[] = {
328fcd84 8245 (char *) "self",(char *) "other", NULL
d14a1e28
RD
8246 };
8247
8248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8251 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8253 {
8254 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 8255 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
d14a1e28
RD
8256
8257 wxPyEndAllowThreads(__tstate);
8258 if (PyErr_Occurred()) SWIG_fail;
8259 }
4e760a36 8260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8261 return resultobj;
8262 fail:
8263 return NULL;
8264}
8265
8266
8267static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
8268 PyObject *resultobj;
8269 wxFont *arg1 = (wxFont *) 0 ;
328fcd84 8270 wxFont *arg2 = (wxFont *) 0 ;
d14a1e28
RD
8271 bool result;
8272 PyObject * obj0 = 0 ;
8273 PyObject * obj1 = 0 ;
8274 char *kwnames[] = {
328fcd84 8275 (char *) "self",(char *) "other", NULL
d14a1e28
RD
8276 };
8277
8278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8281 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8283 {
8284 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 8285 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
d14a1e28
RD
8286
8287 wxPyEndAllowThreads(__tstate);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 }
4e760a36 8290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8291 return resultobj;
8292 fail:
8293 return NULL;
8294}
8295
8296
8297static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8298 PyObject *resultobj;
8299 wxFont *arg1 = (wxFont *) 0 ;
8300 int result;
8301 PyObject * obj0 = 0 ;
8302 char *kwnames[] = {
8303 (char *) "self", NULL
8304 };
8305
8306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8309 {
8310 PyThreadState* __tstate = wxPyBeginAllowThreads();
8311 result = (int)((wxFont const *)arg1)->GetPointSize();
8312
8313 wxPyEndAllowThreads(__tstate);
8314 if (PyErr_Occurred()) SWIG_fail;
8315 }
2f4c0a16 8316 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8317 return resultobj;
8318 fail:
8319 return NULL;
8320}
8321
8322
8323static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8324 PyObject *resultobj;
8325 wxFont *arg1 = (wxFont *) 0 ;
8326 int result;
8327 PyObject * obj0 = 0 ;
8328 char *kwnames[] = {
8329 (char *) "self", NULL
8330 };
8331
8332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8335 {
8336 PyThreadState* __tstate = wxPyBeginAllowThreads();
8337 result = (int)((wxFont const *)arg1)->GetFamily();
8338
8339 wxPyEndAllowThreads(__tstate);
8340 if (PyErr_Occurred()) SWIG_fail;
8341 }
2f4c0a16 8342 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8343 return resultobj;
8344 fail:
8345 return NULL;
8346}
8347
8348
8349static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8350 PyObject *resultobj;
8351 wxFont *arg1 = (wxFont *) 0 ;
8352 int result;
8353 PyObject * obj0 = 0 ;
8354 char *kwnames[] = {
8355 (char *) "self", NULL
8356 };
8357
8358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8361 {
8362 PyThreadState* __tstate = wxPyBeginAllowThreads();
8363 result = (int)((wxFont const *)arg1)->GetStyle();
8364
8365 wxPyEndAllowThreads(__tstate);
8366 if (PyErr_Occurred()) SWIG_fail;
8367 }
2f4c0a16 8368 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8369 return resultobj;
8370 fail:
8371 return NULL;
8372}
8373
8374
8375static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8376 PyObject *resultobj;
8377 wxFont *arg1 = (wxFont *) 0 ;
8378 int result;
8379 PyObject * obj0 = 0 ;
8380 char *kwnames[] = {
8381 (char *) "self", NULL
8382 };
8383
8384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8387 {
8388 PyThreadState* __tstate = wxPyBeginAllowThreads();
8389 result = (int)((wxFont const *)arg1)->GetWeight();
8390
8391 wxPyEndAllowThreads(__tstate);
8392 if (PyErr_Occurred()) SWIG_fail;
8393 }
2f4c0a16 8394 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8395 return resultobj;
8396 fail:
8397 return NULL;
8398}
8399
8400
8401static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8402 PyObject *resultobj;
8403 wxFont *arg1 = (wxFont *) 0 ;
8404 bool result;
8405 PyObject * obj0 = 0 ;
8406 char *kwnames[] = {
8407 (char *) "self", NULL
8408 };
8409
8410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8413 {
8414 PyThreadState* __tstate = wxPyBeginAllowThreads();
8415 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8416
8417 wxPyEndAllowThreads(__tstate);
8418 if (PyErr_Occurred()) SWIG_fail;
8419 }
4e760a36 8420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8421 return resultobj;
8422 fail:
8423 return NULL;
8424}
8425
8426
8427static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8428 PyObject *resultobj;
8429 wxFont *arg1 = (wxFont *) 0 ;
8430 wxString result;
8431 PyObject * obj0 = 0 ;
8432 char *kwnames[] = {
8433 (char *) "self", NULL
8434 };
8435
8436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8439 {
8440 PyThreadState* __tstate = wxPyBeginAllowThreads();
8441 result = ((wxFont const *)arg1)->GetFaceName();
8442
8443 wxPyEndAllowThreads(__tstate);
8444 if (PyErr_Occurred()) SWIG_fail;
8445 }
8446 {
8447#if wxUSE_UNICODE
8448 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8449#else
8450 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8451#endif
8452 }
8453 return resultobj;
8454 fail:
8455 return NULL;
8456}
8457
8458
8459static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8460 PyObject *resultobj;
8461 wxFont *arg1 = (wxFont *) 0 ;
8462 int result;
8463 PyObject * obj0 = 0 ;
8464 char *kwnames[] = {
8465 (char *) "self", NULL
8466 };
8467
8468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8471 {
8472 PyThreadState* __tstate = wxPyBeginAllowThreads();
8473 result = (int)((wxFont const *)arg1)->GetEncoding();
8474
8475 wxPyEndAllowThreads(__tstate);
8476 if (PyErr_Occurred()) SWIG_fail;
8477 }
2f4c0a16 8478 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8479 return resultobj;
8480 fail:
8481 return NULL;
8482}
8483
8484
8485static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8486 PyObject *resultobj;
8487 wxFont *arg1 = (wxFont *) 0 ;
8488 wxNativeFontInfo *result;
8489 PyObject * obj0 = 0 ;
8490 char *kwnames[] = {
8491 (char *) "self", NULL
8492 };
8493
8494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8497 {
8498 PyThreadState* __tstate = wxPyBeginAllowThreads();
8499 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8500
8501 wxPyEndAllowThreads(__tstate);
8502 if (PyErr_Occurred()) SWIG_fail;
8503 }
2f4c0a16 8504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
d14a1e28
RD
8505 return resultobj;
8506 fail:
8507 return NULL;
8508}
8509
8510
8511static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8512 PyObject *resultobj;
8513 wxFont *arg1 = (wxFont *) 0 ;
8514 bool result;
8515 PyObject * obj0 = 0 ;
8516 char *kwnames[] = {
8517 (char *) "self", NULL
8518 };
8519
8520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8523 {
8524 PyThreadState* __tstate = wxPyBeginAllowThreads();
8525 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8526
8527 wxPyEndAllowThreads(__tstate);
8528 if (PyErr_Occurred()) SWIG_fail;
8529 }
4e760a36 8530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8531 return resultobj;
8532 fail:
8533 return NULL;
8534}
8535
8536
8537static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8538 PyObject *resultobj;
8539 wxFont *arg1 = (wxFont *) 0 ;
8540 wxString result;
8541 PyObject * obj0 = 0 ;
8542 char *kwnames[] = {
8543 (char *) "self", NULL
8544 };
8545
8546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8549 {
8550 PyThreadState* __tstate = wxPyBeginAllowThreads();
8551 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8552
8553 wxPyEndAllowThreads(__tstate);
8554 if (PyErr_Occurred()) SWIG_fail;
8555 }
8556 {
8557#if wxUSE_UNICODE
8558 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8559#else
8560 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8561#endif
8562 }
8563 return resultobj;
8564 fail:
8565 return NULL;
8566}
8567
8568
8569static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8570 PyObject *resultobj;
8571 wxFont *arg1 = (wxFont *) 0 ;
8572 wxString result;
8573 PyObject * obj0 = 0 ;
8574 char *kwnames[] = {
8575 (char *) "self", NULL
8576 };
8577
8578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8581 {
8582 PyThreadState* __tstate = wxPyBeginAllowThreads();
8583 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8584
8585 wxPyEndAllowThreads(__tstate);
8586 if (PyErr_Occurred()) SWIG_fail;
8587 }
8588 {
8589#if wxUSE_UNICODE
8590 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8591#else
8592 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8593#endif
8594 }
8595 return resultobj;
8596 fail:
8597 return NULL;
8598}
8599
8600
8601static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8602 PyObject *resultobj;
8603 wxFont *arg1 = (wxFont *) 0 ;
8604 int arg2 ;
8605 PyObject * obj0 = 0 ;
8edf1c75 8606 PyObject * obj1 = 0 ;
d14a1e28
RD
8607 char *kwnames[] = {
8608 (char *) "self",(char *) "pointSize", NULL
8609 };
8610
8edf1c75 8611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8614 arg2 = (int) SWIG_AsInt(obj1);
8615 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8616 {
8617 PyThreadState* __tstate = wxPyBeginAllowThreads();
8618 (arg1)->SetPointSize(arg2);
8619
8620 wxPyEndAllowThreads(__tstate);
8621 if (PyErr_Occurred()) SWIG_fail;
8622 }
8623 Py_INCREF(Py_None); resultobj = Py_None;
8624 return resultobj;
8625 fail:
8626 return NULL;
8627}
8628
8629
8630static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8631 PyObject *resultobj;
8632 wxFont *arg1 = (wxFont *) 0 ;
8633 int arg2 ;
8634 PyObject * obj0 = 0 ;
8edf1c75 8635 PyObject * obj1 = 0 ;
d14a1e28
RD
8636 char *kwnames[] = {
8637 (char *) "self",(char *) "family", NULL
8638 };
8639
8edf1c75 8640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8643 arg2 = (int) SWIG_AsInt(obj1);
8644 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8645 {
8646 PyThreadState* __tstate = wxPyBeginAllowThreads();
8647 (arg1)->SetFamily(arg2);
8648
8649 wxPyEndAllowThreads(__tstate);
8650 if (PyErr_Occurred()) SWIG_fail;
8651 }
8652 Py_INCREF(Py_None); resultobj = Py_None;
8653 return resultobj;
8654 fail:
8655 return NULL;
8656}
8657
8658
8659static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8660 PyObject *resultobj;
8661 wxFont *arg1 = (wxFont *) 0 ;
8662 int arg2 ;
8663 PyObject * obj0 = 0 ;
8edf1c75 8664 PyObject * obj1 = 0 ;
d14a1e28
RD
8665 char *kwnames[] = {
8666 (char *) "self",(char *) "style", NULL
8667 };
8668
8edf1c75 8669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8672 arg2 = (int) SWIG_AsInt(obj1);
8673 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8674 {
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 (arg1)->SetStyle(arg2);
8677
8678 wxPyEndAllowThreads(__tstate);
8679 if (PyErr_Occurred()) SWIG_fail;
8680 }
8681 Py_INCREF(Py_None); resultobj = Py_None;
8682 return resultobj;
8683 fail:
8684 return NULL;
8685}
8686
8687
8688static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8689 PyObject *resultobj;
8690 wxFont *arg1 = (wxFont *) 0 ;
8691 int arg2 ;
8692 PyObject * obj0 = 0 ;
8edf1c75 8693 PyObject * obj1 = 0 ;
d14a1e28
RD
8694 char *kwnames[] = {
8695 (char *) "self",(char *) "weight", NULL
8696 };
8697
8edf1c75 8698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8701 arg2 = (int) SWIG_AsInt(obj1);
8702 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8703 {
8704 PyThreadState* __tstate = wxPyBeginAllowThreads();
8705 (arg1)->SetWeight(arg2);
8706
8707 wxPyEndAllowThreads(__tstate);
8708 if (PyErr_Occurred()) SWIG_fail;
8709 }
8710 Py_INCREF(Py_None); resultobj = Py_None;
8711 return resultobj;
8712 fail:
8713 return NULL;
8714}
8715
8716
8717static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8718 PyObject *resultobj;
8719 wxFont *arg1 = (wxFont *) 0 ;
8720 wxString *arg2 = 0 ;
423f194a 8721 bool temp2 = False ;
d14a1e28
RD
8722 PyObject * obj0 = 0 ;
8723 PyObject * obj1 = 0 ;
8724 char *kwnames[] = {
8725 (char *) "self",(char *) "faceName", NULL
8726 };
8727
8728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8731 {
8732 arg2 = wxString_in_helper(obj1);
8733 if (arg2 == NULL) SWIG_fail;
423f194a 8734 temp2 = True;
d14a1e28
RD
8735 }
8736 {
8737 PyThreadState* __tstate = wxPyBeginAllowThreads();
8738 (arg1)->SetFaceName((wxString const &)*arg2);
8739
8740 wxPyEndAllowThreads(__tstate);
8741 if (PyErr_Occurred()) SWIG_fail;
8742 }
8743 Py_INCREF(Py_None); resultobj = Py_None;
8744 {
8745 if (temp2)
8746 delete arg2;
8747 }
8748 return resultobj;
8749 fail:
8750 {
8751 if (temp2)
8752 delete arg2;
8753 }
8754 return NULL;
8755}
8756
8757
8758static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8759 PyObject *resultobj;
8760 wxFont *arg1 = (wxFont *) 0 ;
8761 bool arg2 ;
8762 PyObject * obj0 = 0 ;
8763 PyObject * obj1 = 0 ;
8764 char *kwnames[] = {
8765 (char *) "self",(char *) "underlined", NULL
8766 };
8767
8768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8771 arg2 = (bool) SWIG_AsBool(obj1);
8772 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8773 {
8774 PyThreadState* __tstate = wxPyBeginAllowThreads();
8775 (arg1)->SetUnderlined(arg2);
8776
8777 wxPyEndAllowThreads(__tstate);
8778 if (PyErr_Occurred()) SWIG_fail;
8779 }
8780 Py_INCREF(Py_None); resultobj = Py_None;
8781 return resultobj;
8782 fail:
8783 return NULL;
8784}
8785
8786
8787static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8788 PyObject *resultobj;
8789 wxFont *arg1 = (wxFont *) 0 ;
8790 int arg2 ;
8791 PyObject * obj0 = 0 ;
8edf1c75 8792 PyObject * obj1 = 0 ;
d14a1e28
RD
8793 char *kwnames[] = {
8794 (char *) "self",(char *) "encoding", NULL
8795 };
8796
8edf1c75 8797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8800 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8801 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8802 {
8803 PyThreadState* __tstate = wxPyBeginAllowThreads();
8804 (arg1)->SetEncoding((wxFontEncoding )arg2);
8805
8806 wxPyEndAllowThreads(__tstate);
8807 if (PyErr_Occurred()) SWIG_fail;
8808 }
8809 Py_INCREF(Py_None); resultobj = Py_None;
8810 return resultobj;
8811 fail:
8812 return NULL;
8813}
8814
8815
8816static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8817 PyObject *resultobj;
8818 wxFont *arg1 = (wxFont *) 0 ;
8819 wxNativeFontInfo *arg2 = 0 ;
8820 PyObject * obj0 = 0 ;
8821 PyObject * obj1 = 0 ;
8822 char *kwnames[] = {
8823 (char *) "self",(char *) "info", NULL
8824 };
8825
8826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8829 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8830 SWIG_POINTER_EXCEPTION | 0)) == -1)
8831 SWIG_fail;
d14a1e28 8832 if (arg2 == NULL) {
2f4c0a16
RD
8833 PyErr_SetString(PyExc_TypeError,"null reference");
8834 SWIG_fail;
d14a1e28
RD
8835 }
8836 {
8837 PyThreadState* __tstate = wxPyBeginAllowThreads();
8838 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8839
8840 wxPyEndAllowThreads(__tstate);
8841 if (PyErr_Occurred()) SWIG_fail;
8842 }
8843 Py_INCREF(Py_None); resultobj = Py_None;
8844 return resultobj;
8845 fail:
8846 return NULL;
8847}
8848
8849
8850static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8851 PyObject *resultobj;
8852 wxFont *arg1 = (wxFont *) 0 ;
8853 wxString *arg2 = 0 ;
423f194a 8854 bool temp2 = False ;
d14a1e28
RD
8855 PyObject * obj0 = 0 ;
8856 PyObject * obj1 = 0 ;
8857 char *kwnames[] = {
8858 (char *) "self",(char *) "info", NULL
8859 };
8860
8861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8864 {
8865 arg2 = wxString_in_helper(obj1);
8866 if (arg2 == NULL) SWIG_fail;
423f194a 8867 temp2 = True;
d14a1e28
RD
8868 }
8869 {
8870 PyThreadState* __tstate = wxPyBeginAllowThreads();
8871 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8872
8873 wxPyEndAllowThreads(__tstate);
8874 if (PyErr_Occurred()) SWIG_fail;
8875 }
8876 Py_INCREF(Py_None); resultobj = Py_None;
8877 {
8878 if (temp2)
8879 delete arg2;
8880 }
8881 return resultobj;
8882 fail:
8883 {
8884 if (temp2)
8885 delete arg2;
8886 }
8887 return NULL;
8888}
8889
8890
8891static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8892 PyObject *resultobj;
8893 wxFont *arg1 = (wxFont *) 0 ;
8894 wxString *arg2 = 0 ;
423f194a 8895 bool temp2 = False ;
d14a1e28
RD
8896 PyObject * obj0 = 0 ;
8897 PyObject * obj1 = 0 ;
8898 char *kwnames[] = {
8899 (char *) "self",(char *) "info", NULL
8900 };
8901
8902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
8903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8905 {
8906 arg2 = wxString_in_helper(obj1);
8907 if (arg2 == NULL) SWIG_fail;
423f194a 8908 temp2 = True;
d14a1e28
RD
8909 }
8910 {
8911 PyThreadState* __tstate = wxPyBeginAllowThreads();
8912 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8913
8914 wxPyEndAllowThreads(__tstate);
8915 if (PyErr_Occurred()) SWIG_fail;
8916 }
8917 Py_INCREF(Py_None); resultobj = Py_None;
8918 {
8919 if (temp2)
8920 delete arg2;
8921 }
8922 return resultobj;
8923 fail:
8924 {
8925 if (temp2)
8926 delete arg2;
8927 }
8928 return NULL;
8929}
8930
8931
8932static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8933 PyObject *resultobj;
8934 wxFont *arg1 = (wxFont *) 0 ;
8935 wxString result;
8936 PyObject * obj0 = 0 ;
8937 char *kwnames[] = {
8938 (char *) "self", NULL
8939 };
8940
8941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8944 {
8945 PyThreadState* __tstate = wxPyBeginAllowThreads();
8946 result = ((wxFont const *)arg1)->GetFamilyString();
8947
8948 wxPyEndAllowThreads(__tstate);
8949 if (PyErr_Occurred()) SWIG_fail;
8950 }
8951 {
8952#if wxUSE_UNICODE
8953 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8954#else
8955 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8956#endif
8957 }
8958 return resultobj;
8959 fail:
8960 return NULL;
8961}
8962
8963
8964static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8965 PyObject *resultobj;
8966 wxFont *arg1 = (wxFont *) 0 ;
8967 wxString result;
8968 PyObject * obj0 = 0 ;
8969 char *kwnames[] = {
8970 (char *) "self", NULL
8971 };
8972
8973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
2f4c0a16
RD
8974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8976 {
8977 PyThreadState* __tstate = wxPyBeginAllowThreads();
8978 result = ((wxFont const *)arg1)->GetStyleString();
8979
8980 wxPyEndAllowThreads(__tstate);
8981 if (PyErr_Occurred()) SWIG_fail;
8982 }
8983 {
8984#if wxUSE_UNICODE
8985 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8986#else
8987 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8988#endif
8989 }
8990 return resultobj;
8991 fail:
8992 return NULL;
8993}
8994
8995
8996static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8997 PyObject *resultobj;
8998 wxFont *arg1 = (wxFont *) 0 ;
8999 wxString result;
9000 PyObject * obj0 = 0 ;
9001 char *kwnames[] = {
9002 (char *) "self", NULL
9003 };
9004
9005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9008 {
9009 PyThreadState* __tstate = wxPyBeginAllowThreads();
9010 result = ((wxFont const *)arg1)->GetWeightString();
9011
9012 wxPyEndAllowThreads(__tstate);
9013 if (PyErr_Occurred()) SWIG_fail;
9014 }
9015 {
9016#if wxUSE_UNICODE
9017 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9018#else
9019 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9020#endif
9021 }
9022 return resultobj;
9023 fail:
9024 return NULL;
9025}
9026
9027
9028static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9029 PyObject *resultobj;
9030 wxFont *arg1 = (wxFont *) 0 ;
423f194a 9031 bool arg2 = (bool) True ;
d14a1e28
RD
9032 PyObject * obj0 = 0 ;
9033 PyObject * obj1 = 0 ;
9034 char *kwnames[] = {
9035 (char *) "self",(char *) "no", NULL
9036 };
9037
9038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
9039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 9041 if (obj1) {
2f4c0a16
RD
9042 arg2 = (bool) SWIG_AsBool(obj1);
9043 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9044 }
9045 {
9046 PyThreadState* __tstate = wxPyBeginAllowThreads();
9047 (arg1)->SetNoAntiAliasing(arg2);
9048
9049 wxPyEndAllowThreads(__tstate);
9050 if (PyErr_Occurred()) SWIG_fail;
9051 }
9052 Py_INCREF(Py_None); resultobj = Py_None;
9053 return resultobj;
9054 fail:
9055 return NULL;
9056}
9057
9058
9059static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9060 PyObject *resultobj;
9061 wxFont *arg1 = (wxFont *) 0 ;
9062 bool result;
9063 PyObject * obj0 = 0 ;
9064 char *kwnames[] = {
9065 (char *) "self", NULL
9066 };
9067
9068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9071 {
9072 PyThreadState* __tstate = wxPyBeginAllowThreads();
9073 result = (bool)(arg1)->GetNoAntiAliasing();
9074
9075 wxPyEndAllowThreads(__tstate);
9076 if (PyErr_Occurred()) SWIG_fail;
9077 }
4e760a36 9078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9079 return resultobj;
9080 fail:
9081 return NULL;
9082}
9083
9084
9085static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9086 PyObject *resultobj;
9087 int result;
9088 char *kwnames[] = {
9089 NULL
9090 };
9091
9092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9093 {
9094 PyThreadState* __tstate = wxPyBeginAllowThreads();
9095 result = (int)wxFont::GetDefaultEncoding();
9096
9097 wxPyEndAllowThreads(__tstate);
9098 if (PyErr_Occurred()) SWIG_fail;
9099 }
2f4c0a16 9100 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9101 return resultobj;
9102 fail:
9103 return NULL;
9104}
9105
9106
9107static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9108 PyObject *resultobj;
9109 int arg1 ;
8edf1c75 9110 PyObject * obj0 = 0 ;
d14a1e28
RD
9111 char *kwnames[] = {
9112 (char *) "encoding", NULL
9113 };
9114
8edf1c75 9115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9116 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
9117 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9118 {
9119 PyThreadState* __tstate = wxPyBeginAllowThreads();
9120 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9121
9122 wxPyEndAllowThreads(__tstate);
9123 if (PyErr_Occurred()) SWIG_fail;
9124 }
9125 Py_INCREF(Py_None); resultobj = Py_None;
9126 return resultobj;
9127 fail:
9128 return NULL;
9129}
9130
9131
9132static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
9133 PyObject *obj;
9134 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9135 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9136 Py_INCREF(obj);
9137 return Py_BuildValue((char *)"");
9138}
9139static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9140 PyObject *resultobj;
9141 wxPyFontEnumerator *result;
9142 char *kwnames[] = {
9143 NULL
9144 };
9145
9146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9147 {
9148 PyThreadState* __tstate = wxPyBeginAllowThreads();
9149 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9150
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
2f4c0a16 9154 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
d14a1e28
RD
9155 return resultobj;
9156 fail:
9157 return NULL;
9158}
9159
9160
9161static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9162 PyObject *resultobj;
9163 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9164 PyObject * obj0 = 0 ;
9165 char *kwnames[] = {
9166 (char *) "self", NULL
9167 };
9168
9169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9172 {
9173 PyThreadState* __tstate = wxPyBeginAllowThreads();
9174 delete arg1;
9175
9176 wxPyEndAllowThreads(__tstate);
9177 if (PyErr_Occurred()) SWIG_fail;
9178 }
9179 Py_INCREF(Py_None); resultobj = Py_None;
9180 return resultobj;
9181 fail:
9182 return NULL;
9183}
9184
9185
9186static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9187 PyObject *resultobj;
9188 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9189 PyObject *arg2 = (PyObject *) 0 ;
9190 PyObject *arg3 = (PyObject *) 0 ;
9191 bool arg4 ;
9192 PyObject * obj0 = 0 ;
9193 PyObject * obj1 = 0 ;
9194 PyObject * obj2 = 0 ;
9195 PyObject * obj3 = 0 ;
9196 char *kwnames[] = {
9197 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9198 };
9199
9200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
9201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9203 arg2 = obj1;
9204 arg3 = obj2;
2f4c0a16
RD
9205 arg4 = (bool) SWIG_AsBool(obj3);
9206 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9207 {
9208 PyThreadState* __tstate = wxPyBeginAllowThreads();
9209 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9210
9211 wxPyEndAllowThreads(__tstate);
9212 if (PyErr_Occurred()) SWIG_fail;
9213 }
9214 Py_INCREF(Py_None); resultobj = Py_None;
9215 return resultobj;
9216 fail:
9217 return NULL;
9218}
9219
9220
9221static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9222 PyObject *resultobj;
9223 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9224 int arg2 = (int) wxFONTENCODING_SYSTEM ;
423f194a 9225 bool arg3 = (bool) False ;
d14a1e28
RD
9226 bool result;
9227 PyObject * obj0 = 0 ;
8edf1c75 9228 PyObject * obj1 = 0 ;
d14a1e28
RD
9229 PyObject * obj2 = 0 ;
9230 char *kwnames[] = {
9231 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9232 };
9233
8edf1c75 9234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
9235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75 9237 if (obj1) {
2f4c0a16
RD
9238 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9239 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 9240 }
d14a1e28 9241 if (obj2) {
2f4c0a16
RD
9242 arg3 = (bool) SWIG_AsBool(obj2);
9243 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9244 }
9245 {
9246 PyThreadState* __tstate = wxPyBeginAllowThreads();
9247 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9248
9249 wxPyEndAllowThreads(__tstate);
9250 if (PyErr_Occurred()) SWIG_fail;
9251 }
4e760a36 9252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9253 return resultobj;
9254 fail:
9255 return NULL;
9256}
9257
9258
9259static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9260 PyObject *resultobj;
9261 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9262 wxString const &arg2_defvalue = wxPyEmptyString ;
9263 wxString *arg2 = (wxString *) &arg2_defvalue ;
9264 bool result;
423f194a 9265 bool temp2 = False ;
d14a1e28
RD
9266 PyObject * obj0 = 0 ;
9267 PyObject * obj1 = 0 ;
9268 char *kwnames[] = {
9269 (char *) "self",(char *) "facename", NULL
9270 };
9271
9272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
9273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9275 if (obj1) {
9276 {
9277 arg2 = wxString_in_helper(obj1);
9278 if (arg2 == NULL) SWIG_fail;
423f194a 9279 temp2 = True;
d14a1e28
RD
9280 }
9281 }
9282 {
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9285
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
4e760a36 9289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9290 {
9291 if (temp2)
9292 delete arg2;
9293 }
9294 return resultobj;
9295 fail:
9296 {
9297 if (temp2)
9298 delete arg2;
9299 }
9300 return NULL;
9301}
9302
9303
9304static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9305 PyObject *resultobj;
9306 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9307 PyObject *result;
9308 PyObject * obj0 = 0 ;
9309 char *kwnames[] = {
9310 (char *) "self", NULL
9311 };
9312
9313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9316 {
9317 PyThreadState* __tstate = wxPyBeginAllowThreads();
9318 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9319
9320 wxPyEndAllowThreads(__tstate);
9321 if (PyErr_Occurred()) SWIG_fail;
9322 }
9323 resultobj = result;
9324 return resultobj;
9325 fail:
9326 return NULL;
9327}
9328
9329
9330static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9331 PyObject *resultobj;
9332 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9333 PyObject *result;
9334 PyObject * obj0 = 0 ;
9335 char *kwnames[] = {
9336 (char *) "self", NULL
9337 };
9338
9339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9342 {
9343 PyThreadState* __tstate = wxPyBeginAllowThreads();
9344 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9345
9346 wxPyEndAllowThreads(__tstate);
9347 if (PyErr_Occurred()) SWIG_fail;
9348 }
9349 resultobj = result;
9350 return resultobj;
9351 fail:
9352 return NULL;
9353}
9354
9355
9356static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9357 PyObject *obj;
9358 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9359 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9360 Py_INCREF(obj);
9361 return Py_BuildValue((char *)"");
9362}
9363static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9364 PyObject *resultobj;
9365 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9366 int arg2 ;
9367 PyObject * obj0 = 0 ;
8edf1c75 9368 PyObject * obj1 = 0 ;
d14a1e28
RD
9369 char *kwnames[] = {
9370 (char *) "self",(char *) "Language", NULL
9371 };
9372
8edf1c75 9373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
9374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9376 arg2 = (int) SWIG_AsInt(obj1);
9377 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9378 if (arg1) (arg1)->Language = arg2;
9379
9380 Py_INCREF(Py_None); resultobj = Py_None;
9381 return resultobj;
9382 fail:
9383 return NULL;
9384}
9385
9386
9387static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9388 PyObject *resultobj;
9389 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9390 int result;
9391 PyObject * obj0 = 0 ;
9392 char *kwnames[] = {
9393 (char *) "self", NULL
9394 };
9395
9396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9399 result = (int) ((arg1)->Language);
9400
2f4c0a16 9401 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9402 return resultobj;
9403 fail:
9404 return NULL;
9405}
9406
9407
9408static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9409 PyObject *resultobj;
9410 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
d03fd34d 9411 wxString *arg2 = (wxString *) 0 ;
f775c30d 9412 bool temp2 = False ;
d14a1e28
RD
9413 PyObject * obj0 = 0 ;
9414 PyObject * obj1 = 0 ;
9415 char *kwnames[] = {
9416 (char *) "self",(char *) "CanonicalName", NULL
9417 };
9418
9419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
9420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
f775c30d
RD
9422 {
9423 arg2 = wxString_in_helper(obj1);
9424 if (arg2 == NULL) SWIG_fail;
9425 temp2 = True;
9426 }
d03fd34d 9427 if (arg1) (arg1)->CanonicalName = *arg2;
d14a1e28
RD
9428
9429 Py_INCREF(Py_None); resultobj = Py_None;
f775c30d
RD
9430 {
9431 if (temp2)
9432 delete arg2;
9433 }
d14a1e28
RD
9434 return resultobj;
9435 fail:
f775c30d
RD
9436 {
9437 if (temp2)
9438 delete arg2;
9439 }
d14a1e28
RD
9440 return NULL;
9441}
9442
9443
9444static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9445 PyObject *resultobj;
9446 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
d03fd34d 9447 wxString *result;
d14a1e28
RD
9448 PyObject * obj0 = 0 ;
9449 char *kwnames[] = {
9450 (char *) "self", NULL
9451 };
9452
9453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d03fd34d 9456 result = (wxString *)& ((arg1)->CanonicalName);
d14a1e28
RD
9457
9458 {
9459#if wxUSE_UNICODE
d03fd34d 9460 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 9461#else
d03fd34d 9462 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
9463#endif
9464 }
9465 return resultobj;
9466 fail:
9467 return NULL;
9468}
9469
9470
9471static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9472 PyObject *resultobj;
9473 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
d03fd34d 9474 wxString *arg2 = (wxString *) 0 ;
f775c30d 9475 bool temp2 = False ;
d14a1e28
RD
9476 PyObject * obj0 = 0 ;
9477 PyObject * obj1 = 0 ;
9478 char *kwnames[] = {
9479 (char *) "self",(char *) "Description", NULL
9480 };
9481
9482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
9483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
f775c30d
RD
9485 {
9486 arg2 = wxString_in_helper(obj1);
9487 if (arg2 == NULL) SWIG_fail;
9488 temp2 = True;
9489 }
d03fd34d 9490 if (arg1) (arg1)->Description = *arg2;
d14a1e28
RD
9491
9492 Py_INCREF(Py_None); resultobj = Py_None;
f775c30d
RD
9493 {
9494 if (temp2)
9495 delete arg2;
9496 }
d14a1e28
RD
9497 return resultobj;
9498 fail:
f775c30d
RD
9499 {
9500 if (temp2)
9501 delete arg2;
9502 }
d14a1e28
RD
9503 return NULL;
9504}
9505
9506
9507static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9508 PyObject *resultobj;
9509 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
d03fd34d 9510 wxString *result;
d14a1e28
RD
9511 PyObject * obj0 = 0 ;
9512 char *kwnames[] = {
9513 (char *) "self", NULL
9514 };
9515
9516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d03fd34d 9519 result = (wxString *)& ((arg1)->Description);
d14a1e28
RD
9520
9521 {
9522#if wxUSE_UNICODE
d03fd34d 9523 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 9524#else
d03fd34d 9525 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
9526#endif
9527 }
9528 return resultobj;
9529 fail:
9530 return NULL;
9531}
9532
9533
9534static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9535 PyObject *obj;
9536 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9537 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9538 Py_INCREF(obj);
9539 return Py_BuildValue((char *)"");
9540}
9541static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9542 PyObject *resultobj;
9543 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9544 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9545 wxLocale *result;
8edf1c75
RD
9546 PyObject * obj0 = 0 ;
9547 PyObject * obj1 = 0 ;
d14a1e28
RD
9548 char *kwnames[] = {
9549 (char *) "language",(char *) "flags", NULL
9550 };
9551
8edf1c75
RD
9552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9553 if (obj0) {
2f4c0a16
RD
9554 arg1 = (int) SWIG_AsInt(obj0);
9555 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
9556 }
9557 if (obj1) {
2f4c0a16
RD
9558 arg2 = (int) SWIG_AsInt(obj1);
9559 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 9560 }
d14a1e28
RD
9561 {
9562 PyThreadState* __tstate = wxPyBeginAllowThreads();
9563 result = (wxLocale *)new wxLocale(arg1,arg2);
9564
9565 wxPyEndAllowThreads(__tstate);
9566 if (PyErr_Occurred()) SWIG_fail;
9567 }
2f4c0a16 9568 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
d14a1e28
RD
9569 return resultobj;
9570 fail:
9571 return NULL;
9572}
9573
9574
9575static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9576 PyObject *resultobj;
9577 wxLocale *arg1 = (wxLocale *) 0 ;
9578 PyObject * obj0 = 0 ;
9579 char *kwnames[] = {
9580 (char *) "self", NULL
9581 };
9582
9583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9586 {
9587 PyThreadState* __tstate = wxPyBeginAllowThreads();
9588 delete arg1;
9589
9590 wxPyEndAllowThreads(__tstate);
9591 if (PyErr_Occurred()) SWIG_fail;
9592 }
9593 Py_INCREF(Py_None); resultobj = Py_None;
9594 return resultobj;
9595 fail:
9596 return NULL;
9597}
9598
9599
9600static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9601 PyObject *resultobj;
9602 wxLocale *arg1 = (wxLocale *) 0 ;
9603 wxString *arg2 = 0 ;
9604 wxString const &arg3_defvalue = wxPyEmptyString ;
9605 wxString *arg3 = (wxString *) &arg3_defvalue ;
9606 wxString const &arg4_defvalue = wxPyEmptyString ;
9607 wxString *arg4 = (wxString *) &arg4_defvalue ;
423f194a
RD
9608 bool arg5 = (bool) True ;
9609 bool arg6 = (bool) False ;
d14a1e28 9610 bool result;
423f194a
RD
9611 bool temp2 = False ;
9612 bool temp3 = False ;
9613 bool temp4 = False ;
d14a1e28
RD
9614 PyObject * obj0 = 0 ;
9615 PyObject * obj1 = 0 ;
9616 PyObject * obj2 = 0 ;
9617 PyObject * obj3 = 0 ;
9618 PyObject * obj4 = 0 ;
9619 PyObject * obj5 = 0 ;
9620 char *kwnames[] = {
9621 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9622 };
9623
9624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
2f4c0a16
RD
9625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9627 {
9628 arg2 = wxString_in_helper(obj1);
9629 if (arg2 == NULL) SWIG_fail;
423f194a 9630 temp2 = True;
d14a1e28
RD
9631 }
9632 if (obj2) {
9633 {
9634 arg3 = wxString_in_helper(obj2);
9635 if (arg3 == NULL) SWIG_fail;
423f194a 9636 temp3 = True;
d14a1e28
RD
9637 }
9638 }
9639 if (obj3) {
9640 {
9641 arg4 = wxString_in_helper(obj3);
9642 if (arg4 == NULL) SWIG_fail;
423f194a 9643 temp4 = True;
d14a1e28
RD
9644 }
9645 }
9646 if (obj4) {
2f4c0a16
RD
9647 arg5 = (bool) SWIG_AsBool(obj4);
9648 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9649 }
9650 if (obj5) {
2f4c0a16
RD
9651 arg6 = (bool) SWIG_AsBool(obj5);
9652 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9653 }
9654 {
9655 PyThreadState* __tstate = wxPyBeginAllowThreads();
9656 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9657
9658 wxPyEndAllowThreads(__tstate);
9659 if (PyErr_Occurred()) SWIG_fail;
9660 }
4e760a36 9661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9662 {
9663 if (temp2)
9664 delete arg2;
9665 }
9666 {
9667 if (temp3)
9668 delete arg3;
9669 }
9670 {
9671 if (temp4)
9672 delete arg4;
9673 }
9674 return resultobj;
9675 fail:
9676 {
9677 if (temp2)
9678 delete arg2;
9679 }
9680 {
9681 if (temp3)
9682 delete arg3;
9683 }
9684 {
9685 if (temp4)
9686 delete arg4;
9687 }
9688 return NULL;
9689}
9690
9691
9692static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9693 PyObject *resultobj;
9694 wxLocale *arg1 = (wxLocale *) 0 ;
9695 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9696 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9697 bool result;
9698 PyObject * obj0 = 0 ;
8edf1c75
RD
9699 PyObject * obj1 = 0 ;
9700 PyObject * obj2 = 0 ;
d14a1e28
RD
9701 char *kwnames[] = {
9702 (char *) "self",(char *) "language",(char *) "flags", NULL
9703 };
9704
8edf1c75 9705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
9706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75 9708 if (obj1) {
2f4c0a16
RD
9709 arg2 = (int) SWIG_AsInt(obj1);
9710 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
9711 }
9712 if (obj2) {
2f4c0a16
RD
9713 arg3 = (int) SWIG_AsInt(obj2);
9714 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 9715 }
d14a1e28
RD
9716 {
9717 PyThreadState* __tstate = wxPyBeginAllowThreads();
9718 result = (bool)(arg1)->Init(arg2,arg3);
9719
9720 wxPyEndAllowThreads(__tstate);
9721 if (PyErr_Occurred()) SWIG_fail;
9722 }
4e760a36 9723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9724 return resultobj;
9725 fail:
9726 return NULL;
9727}
9728
9729
9730static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9731 PyObject *resultobj;
9732 int result;
9733 char *kwnames[] = {
9734 NULL
9735 };
9736
9737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9738 {
9739 PyThreadState* __tstate = wxPyBeginAllowThreads();
9740 result = (int)wxLocale::GetSystemLanguage();
9741
9742 wxPyEndAllowThreads(__tstate);
9743 if (PyErr_Occurred()) SWIG_fail;
9744 }
2f4c0a16 9745 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9746 return resultobj;
9747 fail:
9748 return NULL;
9749}
9750
9751
9752static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9753 PyObject *resultobj;
9754 int result;
9755 char *kwnames[] = {
9756 NULL
9757 };
9758
9759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9760 {
9761 PyThreadState* __tstate = wxPyBeginAllowThreads();
9762 result = (int)wxLocale::GetSystemEncoding();
9763
9764 wxPyEndAllowThreads(__tstate);
9765 if (PyErr_Occurred()) SWIG_fail;
9766 }
2f4c0a16 9767 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9768 return resultobj;
9769 fail:
9770 return NULL;
9771}
9772
9773
9774static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9775 PyObject *resultobj;
9776 wxString result;
9777 char *kwnames[] = {
9778 NULL
9779 };
9780
9781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9782 {
9783 PyThreadState* __tstate = wxPyBeginAllowThreads();
9784 result = wxLocale::GetSystemEncodingName();
9785
9786 wxPyEndAllowThreads(__tstate);
9787 if (PyErr_Occurred()) SWIG_fail;
9788 }
9789 {
9790#if wxUSE_UNICODE
9791 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9792#else
9793 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9794#endif
9795 }
9796 return resultobj;
9797 fail:
9798 return NULL;
9799}
9800
9801
9802static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9803 PyObject *resultobj;
9804 wxLocale *arg1 = (wxLocale *) 0 ;
9805 bool result;
9806 PyObject * obj0 = 0 ;
9807 char *kwnames[] = {
9808 (char *) "self", NULL
9809 };
9810
9811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9814 {
9815 PyThreadState* __tstate = wxPyBeginAllowThreads();
9816 result = (bool)((wxLocale const *)arg1)->IsOk();
9817
9818 wxPyEndAllowThreads(__tstate);
9819 if (PyErr_Occurred()) SWIG_fail;
9820 }
4e760a36 9821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9822 return resultobj;
9823 fail:
9824 return NULL;
9825}
9826
9827
9828static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9829 PyObject *resultobj;
9830 wxLocale *arg1 = (wxLocale *) 0 ;
9831 wxString result;
9832 PyObject * obj0 = 0 ;
9833 char *kwnames[] = {
9834 (char *) "self", NULL
9835 };
9836
9837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9840 {
9841 PyThreadState* __tstate = wxPyBeginAllowThreads();
9842 result = ((wxLocale const *)arg1)->GetLocale();
9843
9844 wxPyEndAllowThreads(__tstate);
9845 if (PyErr_Occurred()) SWIG_fail;
9846 }
9847 {
9848#if wxUSE_UNICODE
9849 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9850#else
9851 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9852#endif
9853 }
9854 return resultobj;
9855 fail:
9856 return NULL;
9857}
9858
9859
9860static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj;
9862 wxLocale *arg1 = (wxLocale *) 0 ;
9863 int result;
9864 PyObject * obj0 = 0 ;
9865 char *kwnames[] = {
9866 (char *) "self", NULL
9867 };
9868
9869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9872 {
9873 PyThreadState* __tstate = wxPyBeginAllowThreads();
9874 result = (int)((wxLocale const *)arg1)->GetLanguage();
9875
9876 wxPyEndAllowThreads(__tstate);
9877 if (PyErr_Occurred()) SWIG_fail;
9878 }
2f4c0a16 9879 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9880 return resultobj;
9881 fail:
9882 return NULL;
9883}
9884
9885
9886static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9887 PyObject *resultobj;
9888 wxLocale *arg1 = (wxLocale *) 0 ;
9889 wxString result;
9890 PyObject * obj0 = 0 ;
9891 char *kwnames[] = {
9892 (char *) "self", NULL
9893 };
9894
9895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9898 {
9899 PyThreadState* __tstate = wxPyBeginAllowThreads();
9900 result = ((wxLocale const *)arg1)->GetSysName();
9901
9902 wxPyEndAllowThreads(__tstate);
9903 if (PyErr_Occurred()) SWIG_fail;
9904 }
9905 {
9906#if wxUSE_UNICODE
9907 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9908#else
9909 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9910#endif
9911 }
9912 return resultobj;
9913 fail:
9914 return NULL;
9915}
9916
9917
9918static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9919 PyObject *resultobj;
9920 wxLocale *arg1 = (wxLocale *) 0 ;
9921 wxString result;
9922 PyObject * obj0 = 0 ;
9923 char *kwnames[] = {
9924 (char *) "self", NULL
9925 };
9926
9927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
9928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9930 {
9931 PyThreadState* __tstate = wxPyBeginAllowThreads();
9932 result = ((wxLocale const *)arg1)->GetCanonicalName();
9933
9934 wxPyEndAllowThreads(__tstate);
9935 if (PyErr_Occurred()) SWIG_fail;
9936 }
9937 {
9938#if wxUSE_UNICODE
9939 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9940#else
9941 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9942#endif
9943 }
9944 return resultobj;
9945 fail:
9946 return NULL;
9947}
9948
9949
9950static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9951 PyObject *resultobj;
9952 wxString *arg1 = 0 ;
423f194a 9953 bool temp1 = False ;
d14a1e28
RD
9954 PyObject * obj0 = 0 ;
9955 char *kwnames[] = {
9956 (char *) "prefix", NULL
9957 };
9958
9959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9960 {
9961 arg1 = wxString_in_helper(obj0);
9962 if (arg1 == NULL) SWIG_fail;
423f194a 9963 temp1 = True;
d14a1e28
RD
9964 }
9965 {
9966 PyThreadState* __tstate = wxPyBeginAllowThreads();
9967 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9968
9969 wxPyEndAllowThreads(__tstate);
9970 if (PyErr_Occurred()) SWIG_fail;
9971 }
9972 Py_INCREF(Py_None); resultobj = Py_None;
9973 {
9974 if (temp1)
9975 delete arg1;
9976 }
9977 return resultobj;
9978 fail:
9979 {
9980 if (temp1)
9981 delete arg1;
9982 }
9983 return NULL;
9984}
9985
9986
9987static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9988 PyObject *resultobj;
9989 wxLocale *arg1 = (wxLocale *) 0 ;
9990 wxString *arg2 = 0 ;
9991 bool result;
423f194a 9992 bool temp2 = False ;
d14a1e28
RD
9993 PyObject * obj0 = 0 ;
9994 PyObject * obj1 = 0 ;
9995 char *kwnames[] = {
9996 (char *) "self",(char *) "szDomain", NULL
9997 };
9998
9999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
10000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10002 {
10003 arg2 = wxString_in_helper(obj1);
10004 if (arg2 == NULL) SWIG_fail;
423f194a 10005 temp2 = True;
d14a1e28
RD
10006 }
10007 {
10008 PyThreadState* __tstate = wxPyBeginAllowThreads();
10009 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10010
10011 wxPyEndAllowThreads(__tstate);
10012 if (PyErr_Occurred()) SWIG_fail;
10013 }
4e760a36 10014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10015 {
10016 if (temp2)
10017 delete arg2;
10018 }
10019 return resultobj;
10020 fail:
10021 {
10022 if (temp2)
10023 delete arg2;
10024 }
10025 return NULL;
10026}
10027
10028
10029static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
10030 PyObject *resultobj;
10031 wxLocale *arg1 = (wxLocale *) 0 ;
10032 wxString *arg2 = 0 ;
10033 bool result;
423f194a 10034 bool temp2 = False ;
d14a1e28
RD
10035 PyObject * obj0 = 0 ;
10036 PyObject * obj1 = 0 ;
10037 char *kwnames[] = {
10038 (char *) "self",(char *) "szDomain", NULL
10039 };
10040
10041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
10042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10044 {
10045 arg2 = wxString_in_helper(obj1);
10046 if (arg2 == NULL) SWIG_fail;
423f194a 10047 temp2 = True;
d14a1e28
RD
10048 }
10049 {
10050 PyThreadState* __tstate = wxPyBeginAllowThreads();
10051 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10052
10053 wxPyEndAllowThreads(__tstate);
10054 if (PyErr_Occurred()) SWIG_fail;
10055 }
4e760a36 10056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10057 {
10058 if (temp2)
10059 delete arg2;
10060 }
10061 return resultobj;
10062 fail:
10063 {
10064 if (temp2)
10065 delete arg2;
10066 }
10067 return NULL;
10068}
10069
10070
10071static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10072 PyObject *resultobj;
10073 int arg1 ;
10074 wxLanguageInfo *result;
8edf1c75 10075 PyObject * obj0 = 0 ;
d14a1e28
RD
10076 char *kwnames[] = {
10077 (char *) "lang", NULL
10078 };
10079
8edf1c75 10080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10081 arg1 = (int) SWIG_AsInt(obj0);
10082 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10083 {
10084 PyThreadState* __tstate = wxPyBeginAllowThreads();
10085 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10086
10087 wxPyEndAllowThreads(__tstate);
10088 if (PyErr_Occurred()) SWIG_fail;
10089 }
2f4c0a16 10090 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
d14a1e28
RD
10091 return resultobj;
10092 fail:
10093 return NULL;
10094}
10095
10096
10097static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
10098 PyObject *resultobj;
10099 int arg1 ;
10100 wxString result;
8edf1c75 10101 PyObject * obj0 = 0 ;
d14a1e28
RD
10102 char *kwnames[] = {
10103 (char *) "lang", NULL
10104 };
10105
8edf1c75 10106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10107 arg1 = (int) SWIG_AsInt(obj0);
10108 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10109 {
10110 PyThreadState* __tstate = wxPyBeginAllowThreads();
10111 result = wxLocale::GetLanguageName(arg1);
10112
10113 wxPyEndAllowThreads(__tstate);
10114 if (PyErr_Occurred()) SWIG_fail;
10115 }
10116 {
10117#if wxUSE_UNICODE
10118 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10119#else
10120 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10121#endif
10122 }
10123 return resultobj;
10124 fail:
10125 return NULL;
10126}
10127
10128
10129static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10130 PyObject *resultobj;
10131 wxString *arg1 = 0 ;
10132 wxLanguageInfo *result;
423f194a 10133 bool temp1 = False ;
d14a1e28
RD
10134 PyObject * obj0 = 0 ;
10135 char *kwnames[] = {
10136 (char *) "locale", NULL
10137 };
10138
10139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10140 {
10141 arg1 = wxString_in_helper(obj0);
10142 if (arg1 == NULL) SWIG_fail;
423f194a 10143 temp1 = True;
d14a1e28
RD
10144 }
10145 {
10146 PyThreadState* __tstate = wxPyBeginAllowThreads();
10147 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10148
10149 wxPyEndAllowThreads(__tstate);
10150 if (PyErr_Occurred()) SWIG_fail;
10151 }
2f4c0a16 10152 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
d14a1e28
RD
10153 {
10154 if (temp1)
10155 delete arg1;
10156 }
10157 return resultobj;
10158 fail:
10159 {
10160 if (temp1)
10161 delete arg1;
10162 }
10163 return NULL;
10164}
10165
10166
10167static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10168 PyObject *resultobj;
10169 wxLanguageInfo *arg1 = 0 ;
10170 PyObject * obj0 = 0 ;
10171 char *kwnames[] = {
10172 (char *) "info", NULL
10173 };
10174
10175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10177 SWIG_POINTER_EXCEPTION | 0)) == -1)
10178 SWIG_fail;
d14a1e28 10179 if (arg1 == NULL) {
2f4c0a16
RD
10180 PyErr_SetString(PyExc_TypeError,"null reference");
10181 SWIG_fail;
d14a1e28
RD
10182 }
10183 {
10184 PyThreadState* __tstate = wxPyBeginAllowThreads();
10185 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10186
10187 wxPyEndAllowThreads(__tstate);
10188 if (PyErr_Occurred()) SWIG_fail;
10189 }
10190 Py_INCREF(Py_None); resultobj = Py_None;
10191 return resultobj;
10192 fail:
10193 return NULL;
10194}
10195
10196
10197static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
10198 PyObject *resultobj;
10199 wxLocale *arg1 = (wxLocale *) 0 ;
10200 wxString *arg2 = 0 ;
10201 wxString const &arg3_defvalue = wxPyEmptyString ;
10202 wxString *arg3 = (wxString *) &arg3_defvalue ;
10203 wxString result;
423f194a
RD
10204 bool temp2 = False ;
10205 bool temp3 = False ;
d14a1e28
RD
10206 PyObject * obj0 = 0 ;
10207 PyObject * obj1 = 0 ;
10208 PyObject * obj2 = 0 ;
10209 char *kwnames[] = {
10210 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10211 };
10212
10213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
10214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10216 {
10217 arg2 = wxString_in_helper(obj1);
10218 if (arg2 == NULL) SWIG_fail;
423f194a 10219 temp2 = True;
d14a1e28
RD
10220 }
10221 if (obj2) {
10222 {
10223 arg3 = wxString_in_helper(obj2);
10224 if (arg3 == NULL) SWIG_fail;
423f194a 10225 temp3 = True;
d14a1e28
RD
10226 }
10227 }
10228 {
10229 PyThreadState* __tstate = wxPyBeginAllowThreads();
10230 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10231
10232 wxPyEndAllowThreads(__tstate);
10233 if (PyErr_Occurred()) SWIG_fail;
10234 }
10235 {
10236#if wxUSE_UNICODE
10237 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10238#else
10239 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10240#endif
10241 }
10242 {
10243 if (temp2)
10244 delete arg2;
10245 }
10246 {
10247 if (temp3)
10248 delete arg3;
10249 }
10250 return resultobj;
10251 fail:
10252 {
10253 if (temp2)
10254 delete arg2;
10255 }
10256 {
10257 if (temp3)
10258 delete arg3;
10259 }
10260 return NULL;
10261}
10262
10263
10264static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
10265 PyObject *resultobj;
10266 wxLocale *arg1 = (wxLocale *) 0 ;
10267 wxString *result;
10268 PyObject * obj0 = 0 ;
10269 char *kwnames[] = {
10270 (char *) "self", NULL
10271 };
10272
10273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10276 {
10277 PyThreadState* __tstate = wxPyBeginAllowThreads();
10278 {
10279 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10280 result = (wxString *) &_result_ref;
10281 }
10282
10283 wxPyEndAllowThreads(__tstate);
10284 if (PyErr_Occurred()) SWIG_fail;
10285 }
f0983263
RD
10286 {
10287#if wxUSE_UNICODE
10288 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10289#else
10290 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10291#endif
10292 }
d14a1e28
RD
10293 return resultobj;
10294 fail:
10295 return NULL;
10296}
10297
10298
10299static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
10300 PyObject *obj;
10301 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10302 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10303 Py_INCREF(obj);
10304 return Py_BuildValue((char *)"");
10305}
10306static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10307 PyObject *resultobj;
10308 wxLocale *result;
10309 char *kwnames[] = {
10310 NULL
10311 };
10312
10313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10314 {
10315 PyThreadState* __tstate = wxPyBeginAllowThreads();
10316 result = (wxLocale *)wxGetLocale();
10317
10318 wxPyEndAllowThreads(__tstate);
10319 if (PyErr_Occurred()) SWIG_fail;
10320 }
2f4c0a16 10321 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
d14a1e28
RD
10322 return resultobj;
10323 fail:
10324 return NULL;
10325}
10326
10327
10328static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
10329 PyObject *resultobj;
10330 wxString *arg1 = 0 ;
10331 wxString result;
423f194a 10332 bool temp1 = False ;
d14a1e28
RD
10333 PyObject * obj0 = 0 ;
10334
10335 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10336 {
10337 arg1 = wxString_in_helper(obj0);
10338 if (arg1 == NULL) SWIG_fail;
423f194a 10339 temp1 = True;
d14a1e28
RD
10340 }
10341 {
10342 PyThreadState* __tstate = wxPyBeginAllowThreads();
10343 result = wxGetTranslation((wxString const &)*arg1);
10344
10345 wxPyEndAllowThreads(__tstate);
10346 if (PyErr_Occurred()) SWIG_fail;
10347 }
10348 {
10349#if wxUSE_UNICODE
10350 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10351#else
10352 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10353#endif
10354 }
10355 {
10356 if (temp1)
10357 delete arg1;
10358 }
10359 return resultobj;
10360 fail:
10361 {
10362 if (temp1)
10363 delete arg1;
10364 }
10365 return NULL;
10366}
10367
10368
10369static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10370 PyObject *resultobj;
10371 wxString *arg1 = 0 ;
10372 wxString *arg2 = 0 ;
10373 size_t arg3 ;
10374 wxString result;
423f194a
RD
10375 bool temp1 = False ;
10376 bool temp2 = False ;
d14a1e28
RD
10377 PyObject * obj0 = 0 ;
10378 PyObject * obj1 = 0 ;
10379 PyObject * obj2 = 0 ;
10380
10381 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10382 {
10383 arg1 = wxString_in_helper(obj0);
10384 if (arg1 == NULL) SWIG_fail;
423f194a 10385 temp1 = True;
d14a1e28
RD
10386 }
10387 {
10388 arg2 = wxString_in_helper(obj1);
10389 if (arg2 == NULL) SWIG_fail;
423f194a 10390 temp2 = True;
d14a1e28 10391 }
2f4c0a16
RD
10392 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10393 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10397
10398 wxPyEndAllowThreads(__tstate);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 {
10402#if wxUSE_UNICODE
10403 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10404#else
10405 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10406#endif
10407 }
10408 {
10409 if (temp1)
10410 delete arg1;
10411 }
10412 {
10413 if (temp2)
10414 delete arg2;
10415 }
10416 return resultobj;
10417 fail:
10418 {
10419 if (temp1)
10420 delete arg1;
10421 }
10422 {
10423 if (temp2)
10424 delete arg2;
10425 }
10426 return NULL;
10427}
10428
10429
10430static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10431 int argc;
10432 PyObject *argv[4];
10433 int ii;
10434
10435 argc = PyObject_Length(args);
10436 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10437 argv[ii] = PyTuple_GetItem(args,ii);
10438 }
10439 if (argc == 1) {
10440 int _v;
10441 {
4e760a36 10442 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
d14a1e28
RD
10443 }
10444 if (_v) {
10445 return _wrap_GetTranslation__SWIG_0(self,args);
10446 }
10447 }
10448 if (argc == 3) {
10449 int _v;
10450 {
4e760a36 10451 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
d14a1e28
RD
10452 }
10453 if (_v) {
10454 {
4e760a36 10455 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
d14a1e28
RD
10456 }
10457 if (_v) {
2f4c0a16 10458 _v = SWIG_CheckUnsignedLong(argv[2]);
d14a1e28
RD
10459 if (_v) {
10460 return _wrap_GetTranslation__SWIG_1(self,args);
10461 }
10462 }
10463 }
10464 }
10465
10466 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10467 return NULL;
10468}
10469
10470
10471static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10472 PyObject *resultobj;
10473 wxEncodingConverter *result;
10474 char *kwnames[] = {
10475 NULL
10476 };
10477
10478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10479 {
10480 PyThreadState* __tstate = wxPyBeginAllowThreads();
10481 result = (wxEncodingConverter *)new wxEncodingConverter();
10482
10483 wxPyEndAllowThreads(__tstate);
10484 if (PyErr_Occurred()) SWIG_fail;
10485 }
2f4c0a16 10486 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
d14a1e28
RD
10487 return resultobj;
10488 fail:
10489 return NULL;
10490}
10491
10492
10493static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10494 PyObject *resultobj;
10495 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10496 PyObject * obj0 = 0 ;
10497 char *kwnames[] = {
10498 (char *) "self", NULL
10499 };
10500
10501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10504 {
10505 PyThreadState* __tstate = wxPyBeginAllowThreads();
10506 delete arg1;
10507
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 Py_INCREF(Py_None); resultobj = Py_None;
10512 return resultobj;
10513 fail:
10514 return NULL;
10515}
10516
10517
10518static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10519 PyObject *resultobj;
10520 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10521 int arg2 ;
10522 int arg3 ;
10523 int arg4 = (int) wxCONVERT_STRICT ;
10524 bool result;
10525 PyObject * obj0 = 0 ;
8edf1c75
RD
10526 PyObject * obj1 = 0 ;
10527 PyObject * obj2 = 0 ;
10528 PyObject * obj3 = 0 ;
d14a1e28
RD
10529 char *kwnames[] = {
10530 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10531 };
10532
8edf1c75 10533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
10534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10536 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10539 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 10540 if (obj3) {
2f4c0a16
RD
10541 arg4 = (int) SWIG_AsInt(obj3);
10542 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 10543 }
d14a1e28
RD
10544 {
10545 PyThreadState* __tstate = wxPyBeginAllowThreads();
10546 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10547
10548 wxPyEndAllowThreads(__tstate);
10549 if (PyErr_Occurred()) SWIG_fail;
10550 }
4e760a36 10551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10552 return resultobj;
10553 fail:
10554 return NULL;
10555}
10556
10557
10558static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10559 PyObject *resultobj;
10560 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10561 wxString *arg2 = 0 ;
10562 wxString result;
423f194a 10563 bool temp2 = False ;
d14a1e28
RD
10564 PyObject * obj0 = 0 ;
10565 PyObject * obj1 = 0 ;
10566 char *kwnames[] = {
10567 (char *) "self",(char *) "input", NULL
10568 };
10569
10570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
10571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10573 {
10574 arg2 = wxString_in_helper(obj1);
10575 if (arg2 == NULL) SWIG_fail;
423f194a 10576 temp2 = True;
d14a1e28
RD
10577 }
10578 {
10579 PyThreadState* __tstate = wxPyBeginAllowThreads();
10580 result = (arg1)->Convert((wxString const &)*arg2);
10581
10582 wxPyEndAllowThreads(__tstate);
10583 if (PyErr_Occurred()) SWIG_fail;
10584 }
10585 {
10586#if wxUSE_UNICODE
10587 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10588#else
10589 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10590#endif
10591 }
10592 {
10593 if (temp2)
10594 delete arg2;
10595 }
10596 return resultobj;
10597 fail:
10598 {
10599 if (temp2)
10600 delete arg2;
10601 }
10602 return NULL;
10603}
10604
10605
10606static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10607 PyObject *resultobj;
10608 int arg1 ;
10609 int arg2 = (int) wxPLATFORM_CURRENT ;
10610 wxFontEncodingArray result;
8edf1c75
RD
10611 PyObject * obj0 = 0 ;
10612 PyObject * obj1 = 0 ;
d14a1e28
RD
10613 char *kwnames[] = {
10614 (char *) "enc",(char *) "platform", NULL
10615 };
10616
8edf1c75 10617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
10618 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10619 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 10620 if (obj1) {
2f4c0a16
RD
10621 arg2 = (int) SWIG_AsInt(obj1);
10622 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 10623 }
d14a1e28
RD
10624 {
10625 PyThreadState* __tstate = wxPyBeginAllowThreads();
10626 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10627
10628 wxPyEndAllowThreads(__tstate);
10629 if (PyErr_Occurred()) SWIG_fail;
10630 }
10631 {
10632 resultobj = PyList_New(0);
10633 for (size_t i=0; i < (&result)->GetCount(); i++) {
10634 PyObject* number = PyInt_FromLong((&result)->Item(i));
10635 PyList_Append(resultobj, number);
10636 Py_DECREF(number);
10637 }
10638 }
10639 return resultobj;
10640 fail:
10641 return NULL;
10642}
10643
10644
10645static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10646 PyObject *resultobj;
10647 int arg1 ;
10648 wxFontEncodingArray result;
8edf1c75 10649 PyObject * obj0 = 0 ;
d14a1e28
RD
10650 char *kwnames[] = {
10651 (char *) "enc", NULL
10652 };
10653
8edf1c75 10654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10655 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10656 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10657 {
10658 PyThreadState* __tstate = wxPyBeginAllowThreads();
10659 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10660
10661 wxPyEndAllowThreads(__tstate);
10662 if (PyErr_Occurred()) SWIG_fail;
10663 }
10664 {
10665 resultobj = PyList_New(0);
10666 for (size_t i=0; i < (&result)->GetCount(); i++) {
10667 PyObject* number = PyInt_FromLong((&result)->Item(i));
10668 PyList_Append(resultobj, number);
10669 Py_DECREF(number);
10670 }
10671 }
10672 return resultobj;
10673 fail:
10674 return NULL;
10675}
10676
10677
10678static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10679 PyObject *resultobj;
10680 int arg1 ;
10681 int arg2 ;
10682 bool result;
8edf1c75
RD
10683 PyObject * obj0 = 0 ;
10684 PyObject * obj1 = 0 ;
d14a1e28
RD
10685 char *kwnames[] = {
10686 (char *) "encIn",(char *) "encOut", NULL
10687 };
10688
8edf1c75 10689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
10690 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10693 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10694 {
10695 PyThreadState* __tstate = wxPyBeginAllowThreads();
10696 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10697
10698 wxPyEndAllowThreads(__tstate);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 }
4e760a36 10701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10702 return resultobj;
10703 fail:
10704 return NULL;
10705}
10706
10707
10708static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10709 PyObject *obj;
10710 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10711 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10712 Py_INCREF(obj);
10713 return Py_BuildValue((char *)"");
10714}
10715static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10716 PyObject *resultobj;
10717 wxDC *arg1 = (wxDC *) 0 ;
10718 PyObject * obj0 = 0 ;
10719 char *kwnames[] = {
10720 (char *) "self", NULL
10721 };
10722
10723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10726 {
10727 PyThreadState* __tstate = wxPyBeginAllowThreads();
10728 delete arg1;
10729
10730 wxPyEndAllowThreads(__tstate);
10731 if (PyErr_Occurred()) SWIG_fail;
10732 }
10733 Py_INCREF(Py_None); resultobj = Py_None;
10734 return resultobj;
10735 fail:
10736 return NULL;
10737}
10738
10739
10740static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10741 PyObject *resultobj;
10742 wxDC *arg1 = (wxDC *) 0 ;
10743 PyObject * obj0 = 0 ;
10744 char *kwnames[] = {
10745 (char *) "self", NULL
10746 };
10747
10748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10751 {
10752 PyThreadState* __tstate = wxPyBeginAllowThreads();
10753 (arg1)->BeginDrawing();
10754
10755 wxPyEndAllowThreads(__tstate);
10756 if (PyErr_Occurred()) SWIG_fail;
10757 }
10758 Py_INCREF(Py_None); resultobj = Py_None;
10759 return resultobj;
10760 fail:
10761 return NULL;
10762}
10763
10764
10765static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10766 PyObject *resultobj;
10767 wxDC *arg1 = (wxDC *) 0 ;
10768 PyObject * obj0 = 0 ;
10769 char *kwnames[] = {
10770 (char *) "self", NULL
10771 };
10772
10773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
2f4c0a16
RD
10774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10776 {
10777 PyThreadState* __tstate = wxPyBeginAllowThreads();
10778 (arg1)->EndDrawing();
10779
10780 wxPyEndAllowThreads(__tstate);
10781 if (PyErr_Occurred()) SWIG_fail;
10782 }
10783 Py_INCREF(Py_None); resultobj = Py_None;
10784 return resultobj;
10785 fail:
10786 return NULL;
10787}
10788
10789
10790static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10791 PyObject *resultobj;
10792 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
10793 int arg2 ;
10794 int arg3 ;
d14a1e28
RD
10795 wxColour *arg4 = 0 ;
10796 int arg5 = (int) wxFLOOD_SURFACE ;
10797 bool result;
10798 wxColour temp4 ;
10799 PyObject * obj0 = 0 ;
8edf1c75
RD
10800 PyObject * obj1 = 0 ;
10801 PyObject * obj2 = 0 ;
d14a1e28 10802 PyObject * obj3 = 0 ;
8edf1c75 10803 PyObject * obj4 = 0 ;
d14a1e28
RD
10804 char *kwnames[] = {
10805 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10806 };
10807
8edf1c75 10808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
10809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10811 arg2 = (int) SWIG_AsInt(obj1);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 arg3 = (int) SWIG_AsInt(obj2);
10814 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10815 {
10816 arg4 = &temp4;
10817 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10818 }
8edf1c75 10819 if (obj4) {
2f4c0a16
RD
10820 arg5 = (int) SWIG_AsInt(obj4);
10821 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 10822 }
d14a1e28
RD
10823 {
10824 PyThreadState* __tstate = wxPyBeginAllowThreads();
10825 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10826
10827 wxPyEndAllowThreads(__tstate);
10828 if (PyErr_Occurred()) SWIG_fail;
10829 }
4e760a36 10830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10831 return resultobj;
10832 fail:
10833 return NULL;
10834}
10835
10836
10837static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10838 PyObject *resultobj;
10839 wxDC *arg1 = (wxDC *) 0 ;
10840 wxPoint *arg2 = 0 ;
10841 wxColour *arg3 = 0 ;
10842 int arg4 = (int) wxFLOOD_SURFACE ;
10843 bool result;
10844 wxPoint temp2 ;
10845 wxColour temp3 ;
10846 PyObject * obj0 = 0 ;
10847 PyObject * obj1 = 0 ;
10848 PyObject * obj2 = 0 ;
8edf1c75 10849 PyObject * obj3 = 0 ;
d14a1e28
RD
10850 char *kwnames[] = {
10851 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10852 };
10853
8edf1c75 10854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
10855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10857 {
10858 arg2 = &temp2;
10859 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10860 }
10861 {
10862 arg3 = &temp3;
10863 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10864 }
8edf1c75 10865 if (obj3) {
2f4c0a16
RD
10866 arg4 = (int) SWIG_AsInt(obj3);
10867 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 10868 }
d14a1e28
RD
10869 {
10870 PyThreadState* __tstate = wxPyBeginAllowThreads();
10871 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10872
10873 wxPyEndAllowThreads(__tstate);
10874 if (PyErr_Occurred()) SWIG_fail;
10875 }
4e760a36 10876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10877 return resultobj;
10878 fail:
10879 return NULL;
10880}
10881
10882
10883static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10884 PyObject *resultobj;
10885 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
10886 int arg2 ;
10887 int arg3 ;
d14a1e28
RD
10888 wxColour result;
10889 PyObject * obj0 = 0 ;
8edf1c75
RD
10890 PyObject * obj1 = 0 ;
10891 PyObject * obj2 = 0 ;
d14a1e28
RD
10892 char *kwnames[] = {
10893 (char *) "self",(char *) "x",(char *) "y", NULL
10894 };
10895
8edf1c75 10896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
10897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10899 arg2 = (int) SWIG_AsInt(obj1);
10900 if (PyErr_Occurred()) SWIG_fail;
10901 arg3 = (int) SWIG_AsInt(obj2);
10902 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10903 {
10904 PyThreadState* __tstate = wxPyBeginAllowThreads();
10905 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10906
10907 wxPyEndAllowThreads(__tstate);
10908 if (PyErr_Occurred()) SWIG_fail;
10909 }
10910 {
10911 wxColour * resultptr;
10912 resultptr = new wxColour((wxColour &) result);
2f4c0a16 10913 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
10914 }
10915 return resultobj;
10916 fail:
10917 return NULL;
10918}
10919
10920
10921static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10922 PyObject *resultobj;
10923 wxDC *arg1 = (wxDC *) 0 ;
10924 wxPoint *arg2 = 0 ;
10925 wxColour result;
10926 wxPoint temp2 ;
10927 PyObject * obj0 = 0 ;
10928 PyObject * obj1 = 0 ;
10929 char *kwnames[] = {
10930 (char *) "self",(char *) "pt", NULL
10931 };
10932
10933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
10934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10936 {
10937 arg2 = &temp2;
10938 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10939 }
10940 {
10941 PyThreadState* __tstate = wxPyBeginAllowThreads();
10942 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10943
10944 wxPyEndAllowThreads(__tstate);
10945 if (PyErr_Occurred()) SWIG_fail;
10946 }
10947 {
10948 wxColour * resultptr;
10949 resultptr = new wxColour((wxColour &) result);
2f4c0a16 10950 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
10951 }
10952 return resultobj;
10953 fail:
10954 return NULL;
10955}
10956
10957
10958static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10959 PyObject *resultobj;
10960 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
10961 int arg2 ;
10962 int arg3 ;
10963 int arg4 ;
10964 int arg5 ;
d14a1e28 10965 PyObject * obj0 = 0 ;
8edf1c75
RD
10966 PyObject * obj1 = 0 ;
10967 PyObject * obj2 = 0 ;
10968 PyObject * obj3 = 0 ;
10969 PyObject * obj4 = 0 ;
d14a1e28
RD
10970 char *kwnames[] = {
10971 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10972 };
10973
8edf1c75 10974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
10975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10977 arg2 = (int) SWIG_AsInt(obj1);
10978 if (PyErr_Occurred()) SWIG_fail;
10979 arg3 = (int) SWIG_AsInt(obj2);
10980 if (PyErr_Occurred()) SWIG_fail;
10981 arg4 = (int) SWIG_AsInt(obj3);
10982 if (PyErr_Occurred()) SWIG_fail;
10983 arg5 = (int) SWIG_AsInt(obj4);
10984 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10985 {
10986 PyThreadState* __tstate = wxPyBeginAllowThreads();
10987 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10988
10989 wxPyEndAllowThreads(__tstate);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 }
10992 Py_INCREF(Py_None); resultobj = Py_None;
10993 return resultobj;
10994 fail:
10995 return NULL;
10996}
10997
10998
10999static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
11000 PyObject *resultobj;
11001 wxDC *arg1 = (wxDC *) 0 ;
11002 wxPoint *arg2 = 0 ;
11003 wxPoint *arg3 = 0 ;
11004 wxPoint temp2 ;
11005 wxPoint temp3 ;
11006 PyObject * obj0 = 0 ;
11007 PyObject * obj1 = 0 ;
11008 PyObject * obj2 = 0 ;
11009 char *kwnames[] = {
11010 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11011 };
11012
11013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11016 {
11017 arg2 = &temp2;
11018 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11019 }
11020 {
11021 arg3 = &temp3;
11022 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11023 }
11024 {
11025 PyThreadState* __tstate = wxPyBeginAllowThreads();
11026 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11027
11028 wxPyEndAllowThreads(__tstate);
11029 if (PyErr_Occurred()) SWIG_fail;
11030 }
11031 Py_INCREF(Py_None); resultobj = Py_None;
11032 return resultobj;
11033 fail:
11034 return NULL;
11035}
11036
11037
11038static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11039 PyObject *resultobj;
11040 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11041 int arg2 ;
11042 int arg3 ;
d14a1e28 11043 PyObject * obj0 = 0 ;
8edf1c75
RD
11044 PyObject * obj1 = 0 ;
11045 PyObject * obj2 = 0 ;
d14a1e28
RD
11046 char *kwnames[] = {
11047 (char *) "self",(char *) "x",(char *) "y", NULL
11048 };
11049
8edf1c75 11050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11053 arg2 = (int) SWIG_AsInt(obj1);
11054 if (PyErr_Occurred()) SWIG_fail;
11055 arg3 = (int) SWIG_AsInt(obj2);
11056 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11057 {
11058 PyThreadState* __tstate = wxPyBeginAllowThreads();
11059 (arg1)->CrossHair(arg2,arg3);
11060
11061 wxPyEndAllowThreads(__tstate);
11062 if (PyErr_Occurred()) SWIG_fail;
11063 }
11064 Py_INCREF(Py_None); resultobj = Py_None;
11065 return resultobj;
11066 fail:
11067 return NULL;
11068}
11069
11070
11071static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
11072 PyObject *resultobj;
11073 wxDC *arg1 = (wxDC *) 0 ;
11074 wxPoint *arg2 = 0 ;
11075 wxPoint temp2 ;
11076 PyObject * obj0 = 0 ;
11077 PyObject * obj1 = 0 ;
11078 char *kwnames[] = {
11079 (char *) "self",(char *) "pt", NULL
11080 };
11081
11082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
11083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11085 {
11086 arg2 = &temp2;
11087 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11088 }
11089 {
11090 PyThreadState* __tstate = wxPyBeginAllowThreads();
11091 (arg1)->CrossHair((wxPoint const &)*arg2);
11092
11093 wxPyEndAllowThreads(__tstate);
11094 if (PyErr_Occurred()) SWIG_fail;
11095 }
11096 Py_INCREF(Py_None); resultobj = Py_None;
11097 return resultobj;
11098 fail:
11099 return NULL;
11100}
11101
11102
11103static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11104 PyObject *resultobj;
11105 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11106 int arg2 ;
11107 int arg3 ;
11108 int arg4 ;
11109 int arg5 ;
11110 int arg6 ;
11111 int arg7 ;
d14a1e28 11112 PyObject * obj0 = 0 ;
8edf1c75
RD
11113 PyObject * obj1 = 0 ;
11114 PyObject * obj2 = 0 ;
11115 PyObject * obj3 = 0 ;
11116 PyObject * obj4 = 0 ;
11117 PyObject * obj5 = 0 ;
11118 PyObject * obj6 = 0 ;
d14a1e28
RD
11119 char *kwnames[] = {
11120 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11121 };
11122
8edf1c75 11123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
2f4c0a16
RD
11124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11126 arg2 = (int) SWIG_AsInt(obj1);
11127 if (PyErr_Occurred()) SWIG_fail;
11128 arg3 = (int) SWIG_AsInt(obj2);
11129 if (PyErr_Occurred()) SWIG_fail;
11130 arg4 = (int) SWIG_AsInt(obj3);
11131 if (PyErr_Occurred()) SWIG_fail;
11132 arg5 = (int) SWIG_AsInt(obj4);
11133 if (PyErr_Occurred()) SWIG_fail;
11134 arg6 = (int) SWIG_AsInt(obj5);
11135 if (PyErr_Occurred()) SWIG_fail;
11136 arg7 = (int) SWIG_AsInt(obj6);
11137 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
11138 {
11139 PyThreadState* __tstate = wxPyBeginAllowThreads();
11140 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11141
11142 wxPyEndAllowThreads(__tstate);
11143 if (PyErr_Occurred()) SWIG_fail;
11144 }
11145 Py_INCREF(Py_None); resultobj = Py_None;
11146 return resultobj;
11147 fail:
11148 return NULL;
11149}
d14a1e28
RD
11150
11151
11152static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11153 PyObject *resultobj;
11154 wxDC *arg1 = (wxDC *) 0 ;
11155 wxPoint *arg2 = 0 ;
11156 wxPoint *arg3 = 0 ;
11157 wxPoint *arg4 = 0 ;
11158 wxPoint temp2 ;
11159 wxPoint temp3 ;
11160 wxPoint temp4 ;
11161 PyObject * obj0 = 0 ;
11162 PyObject * obj1 = 0 ;
11163 PyObject * obj2 = 0 ;
11164 PyObject * obj3 = 0 ;
11165 char *kwnames[] = {
11166 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
11167 };
11168
11169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
11170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11172 {
11173 arg2 = &temp2;
11174 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11175 }
11176 {
11177 arg3 = &temp3;
11178 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11179 }
11180 {
11181 arg4 = &temp4;
11182 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11183 }
11184 {
11185 PyThreadState* __tstate = wxPyBeginAllowThreads();
11186 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11187
11188 wxPyEndAllowThreads(__tstate);
11189 if (PyErr_Occurred()) SWIG_fail;
11190 }
11191 Py_INCREF(Py_None); resultobj = Py_None;
11192 return resultobj;
11193 fail:
11194 return NULL;
11195}
11196
11197
11198static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11199 PyObject *resultobj;
11200 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11201 int arg2 ;
11202 int arg3 ;
11203 int arg4 ;
11204 int arg5 ;
d14a1e28 11205 PyObject * obj0 = 0 ;
8edf1c75
RD
11206 PyObject * obj1 = 0 ;
11207 PyObject * obj2 = 0 ;
11208 PyObject * obj3 = 0 ;
11209 PyObject * obj4 = 0 ;
d14a1e28
RD
11210 char *kwnames[] = {
11211 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11212 };
11213
8edf1c75 11214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
11215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11217 arg2 = (int) SWIG_AsInt(obj1);
11218 if (PyErr_Occurred()) SWIG_fail;
11219 arg3 = (int) SWIG_AsInt(obj2);
11220 if (PyErr_Occurred()) SWIG_fail;
11221 arg4 = (int) SWIG_AsInt(obj3);
11222 if (PyErr_Occurred()) SWIG_fail;
11223 arg5 = (int) SWIG_AsInt(obj4);
11224 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11225 {
11226 PyThreadState* __tstate = wxPyBeginAllowThreads();
11227 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11228
11229 wxPyEndAllowThreads(__tstate);
11230 if (PyErr_Occurred()) SWIG_fail;
11231 }
11232 Py_INCREF(Py_None); resultobj = Py_None;
11233 return resultobj;
11234 fail:
11235 return NULL;
11236}
11237
11238
11239static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
11240 PyObject *resultobj;
11241 wxDC *arg1 = (wxDC *) 0 ;
11242 wxRect *arg2 = 0 ;
11243 wxRect temp2 ;
11244 PyObject * obj0 = 0 ;
11245 PyObject * obj1 = 0 ;
11246 char *kwnames[] = {
11247 (char *) "self",(char *) "rect", NULL
11248 };
11249
11250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
11251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11253 {
11254 arg2 = &temp2;
11255 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11256 }
11257 {
11258 PyThreadState* __tstate = wxPyBeginAllowThreads();
11259 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11260
11261 wxPyEndAllowThreads(__tstate);
11262 if (PyErr_Occurred()) SWIG_fail;
11263 }
11264 Py_INCREF(Py_None); resultobj = Py_None;
11265 return resultobj;
11266 fail:
11267 return NULL;
11268}
11269
11270
11271static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11272 PyObject *resultobj;
11273 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11274 int arg2 ;
11275 int arg3 ;
11276 int arg4 ;
11277 int arg5 ;
d14a1e28
RD
11278 double arg6 ;
11279 double arg7 ;
11280 PyObject * obj0 = 0 ;
8edf1c75
RD
11281 PyObject * obj1 = 0 ;
11282 PyObject * obj2 = 0 ;
11283 PyObject * obj3 = 0 ;
11284 PyObject * obj4 = 0 ;
11285 PyObject * obj5 = 0 ;
11286 PyObject * obj6 = 0 ;
d14a1e28
RD
11287 char *kwnames[] = {
11288 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
11289 };
11290
8edf1c75 11291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
2f4c0a16
RD
11292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11294 arg2 = (int) SWIG_AsInt(obj1);
11295 if (PyErr_Occurred()) SWIG_fail;
11296 arg3 = (int) SWIG_AsInt(obj2);
11297 if (PyErr_Occurred()) SWIG_fail;
11298 arg4 = (int) SWIG_AsInt(obj3);
11299 if (PyErr_Occurred()) SWIG_fail;
11300 arg5 = (int) SWIG_AsInt(obj4);
11301 if (PyErr_Occurred()) SWIG_fail;
11302 arg6 = (double) SWIG_AsDouble(obj5);
11303 if (PyErr_Occurred()) SWIG_fail;
11304 arg7 = (double) SWIG_AsDouble(obj6);
11305 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11306 {
11307 PyThreadState* __tstate = wxPyBeginAllowThreads();
11308 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11309
11310 wxPyEndAllowThreads(__tstate);
11311 if (PyErr_Occurred()) SWIG_fail;
11312 }
11313 Py_INCREF(Py_None); resultobj = Py_None;
11314 return resultobj;
11315 fail:
11316 return NULL;
11317}
11318
11319
11320static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11321 PyObject *resultobj;
11322 wxDC *arg1 = (wxDC *) 0 ;
11323 wxPoint *arg2 = 0 ;
11324 wxSize *arg3 = 0 ;
11325 double arg4 ;
11326 double arg5 ;
11327 wxPoint temp2 ;
11328 wxSize temp3 ;
11329 PyObject * obj0 = 0 ;
11330 PyObject * obj1 = 0 ;
11331 PyObject * obj2 = 0 ;
8edf1c75
RD
11332 PyObject * obj3 = 0 ;
11333 PyObject * obj4 = 0 ;
d14a1e28
RD
11334 char *kwnames[] = {
11335 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11336 };
11337
8edf1c75 11338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
11339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11341 {
11342 arg2 = &temp2;
11343 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11344 }
11345 {
11346 arg3 = &temp3;
11347 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11348 }
2f4c0a16
RD
11349 arg4 = (double) SWIG_AsDouble(obj3);
11350 if (PyErr_Occurred()) SWIG_fail;
11351 arg5 = (double) SWIG_AsDouble(obj4);
11352 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11353 {
11354 PyThreadState* __tstate = wxPyBeginAllowThreads();
11355 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11356
11357 wxPyEndAllowThreads(__tstate);
11358 if (PyErr_Occurred()) SWIG_fail;
11359 }
11360 Py_INCREF(Py_None); resultobj = Py_None;
11361 return resultobj;
11362 fail:
11363 return NULL;
11364}
11365
11366
11367static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11368 PyObject *resultobj;
11369 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11370 int arg2 ;
11371 int arg3 ;
d14a1e28 11372 PyObject * obj0 = 0 ;
8edf1c75
RD
11373 PyObject * obj1 = 0 ;
11374 PyObject * obj2 = 0 ;
d14a1e28
RD
11375 char *kwnames[] = {
11376 (char *) "self",(char *) "x",(char *) "y", NULL
11377 };
11378
8edf1c75 11379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11382 arg2 = (int) SWIG_AsInt(obj1);
11383 if (PyErr_Occurred()) SWIG_fail;
11384 arg3 = (int) SWIG_AsInt(obj2);
11385 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11386 {
11387 PyThreadState* __tstate = wxPyBeginAllowThreads();
11388 (arg1)->DrawPoint(arg2,arg3);
11389
11390 wxPyEndAllowThreads(__tstate);
11391 if (PyErr_Occurred()) SWIG_fail;
11392 }
11393 Py_INCREF(Py_None); resultobj = Py_None;
11394 return resultobj;
11395 fail:
11396 return NULL;
11397}
11398
11399
11400static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11401 PyObject *resultobj;
11402 wxDC *arg1 = (wxDC *) 0 ;
11403 wxPoint *arg2 = 0 ;
11404 wxPoint temp2 ;
11405 PyObject * obj0 = 0 ;
11406 PyObject * obj1 = 0 ;
11407 char *kwnames[] = {
11408 (char *) "self",(char *) "pt", NULL
11409 };
11410
11411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
11412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11414 {
11415 arg2 = &temp2;
11416 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11417 }
11418 {
11419 PyThreadState* __tstate = wxPyBeginAllowThreads();
11420 (arg1)->DrawPoint((wxPoint const &)*arg2);
11421
11422 wxPyEndAllowThreads(__tstate);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 Py_INCREF(Py_None); resultobj = Py_None;
11426 return resultobj;
11427 fail:
11428 return NULL;
11429}
11430
11431
11432static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11433 PyObject *resultobj;
11434 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11435 int arg2 ;
11436 int arg3 ;
11437 int arg4 ;
11438 int arg5 ;
d14a1e28 11439 PyObject * obj0 = 0 ;
8edf1c75
RD
11440 PyObject * obj1 = 0 ;
11441 PyObject * obj2 = 0 ;
11442 PyObject * obj3 = 0 ;
11443 PyObject * obj4 = 0 ;
d14a1e28
RD
11444 char *kwnames[] = {
11445 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11446 };
11447
8edf1c75 11448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
11449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11451 arg2 = (int) SWIG_AsInt(obj1);
11452 if (PyErr_Occurred()) SWIG_fail;
11453 arg3 = (int) SWIG_AsInt(obj2);
11454 if (PyErr_Occurred()) SWIG_fail;
11455 arg4 = (int) SWIG_AsInt(obj3);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 arg5 = (int) SWIG_AsInt(obj4);
11458 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11459 {
11460 PyThreadState* __tstate = wxPyBeginAllowThreads();
11461 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11462
11463 wxPyEndAllowThreads(__tstate);
11464 if (PyErr_Occurred()) SWIG_fail;
11465 }
11466 Py_INCREF(Py_None); resultobj = Py_None;
11467 return resultobj;
11468 fail:
11469 return NULL;
11470}
11471
11472
11473static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11474 PyObject *resultobj;
11475 wxDC *arg1 = (wxDC *) 0 ;
11476 wxPoint *arg2 = 0 ;
11477 wxSize *arg3 = 0 ;
11478 wxPoint temp2 ;
11479 wxSize temp3 ;
11480 PyObject * obj0 = 0 ;
11481 PyObject * obj1 = 0 ;
11482 PyObject * obj2 = 0 ;
11483 char *kwnames[] = {
11484 (char *) "self",(char *) "pt",(char *) "sz", NULL
11485 };
11486
11487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11490 {
11491 arg2 = &temp2;
11492 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11493 }
11494 {
11495 arg3 = &temp3;
11496 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11497 }
11498 {
11499 PyThreadState* __tstate = wxPyBeginAllowThreads();
11500 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11501
11502 wxPyEndAllowThreads(__tstate);
11503 if (PyErr_Occurred()) SWIG_fail;
11504 }
11505 Py_INCREF(Py_None); resultobj = Py_None;
11506 return resultobj;
11507 fail:
11508 return NULL;
11509}
11510
11511
11512static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11513 PyObject *resultobj;
11514 wxDC *arg1 = (wxDC *) 0 ;
11515 wxRect *arg2 = 0 ;
11516 wxRect temp2 ;
11517 PyObject * obj0 = 0 ;
11518 PyObject * obj1 = 0 ;
11519 char *kwnames[] = {
11520 (char *) "self",(char *) "rect", NULL
11521 };
11522
11523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
11524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11526 {
11527 arg2 = &temp2;
11528 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11529 }
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 (arg1)->DrawRectangle((wxRect const &)*arg2);
11533
11534 wxPyEndAllowThreads(__tstate);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 }
11537 Py_INCREF(Py_None); resultobj = Py_None;
11538 return resultobj;
11539 fail:
11540 return NULL;
11541}
11542
11543
11544static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11545 PyObject *resultobj;
11546 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11547 int arg2 ;
11548 int arg3 ;
11549 int arg4 ;
11550 int arg5 ;
d14a1e28
RD
11551 double arg6 ;
11552 PyObject * obj0 = 0 ;
8edf1c75
RD
11553 PyObject * obj1 = 0 ;
11554 PyObject * obj2 = 0 ;
11555 PyObject * obj3 = 0 ;
11556 PyObject * obj4 = 0 ;
11557 PyObject * obj5 = 0 ;
d14a1e28
RD
11558 char *kwnames[] = {
11559 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11560 };
11561
8edf1c75 11562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
2f4c0a16
RD
11563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11565 arg2 = (int) SWIG_AsInt(obj1);
11566 if (PyErr_Occurred()) SWIG_fail;
11567 arg3 = (int) SWIG_AsInt(obj2);
11568 if (PyErr_Occurred()) SWIG_fail;
11569 arg4 = (int) SWIG_AsInt(obj3);
11570 if (PyErr_Occurred()) SWIG_fail;
11571 arg5 = (int) SWIG_AsInt(obj4);
11572 if (PyErr_Occurred()) SWIG_fail;
11573 arg6 = (double) SWIG_AsDouble(obj5);
11574 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11575 {
11576 PyThreadState* __tstate = wxPyBeginAllowThreads();
11577 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11578
11579 wxPyEndAllowThreads(__tstate);
11580 if (PyErr_Occurred()) SWIG_fail;
11581 }
11582 Py_INCREF(Py_None); resultobj = Py_None;
11583 return resultobj;
11584 fail:
11585 return NULL;
11586}
11587
11588
11589static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11590 PyObject *resultobj;
11591 wxDC *arg1 = (wxDC *) 0 ;
11592 wxPoint *arg2 = 0 ;
11593 wxSize *arg3 = 0 ;
11594 double arg4 ;
11595 wxPoint temp2 ;
11596 wxSize temp3 ;
11597 PyObject * obj0 = 0 ;
11598 PyObject * obj1 = 0 ;
11599 PyObject * obj2 = 0 ;
8edf1c75 11600 PyObject * obj3 = 0 ;
d14a1e28
RD
11601 char *kwnames[] = {
11602 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11603 };
11604
8edf1c75 11605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
11606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11608 {
11609 arg2 = &temp2;
11610 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11611 }
11612 {
11613 arg3 = &temp3;
11614 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11615 }
2f4c0a16
RD
11616 arg4 = (double) SWIG_AsDouble(obj3);
11617 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11618 {
11619 PyThreadState* __tstate = wxPyBeginAllowThreads();
11620 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11621
11622 wxPyEndAllowThreads(__tstate);
11623 if (PyErr_Occurred()) SWIG_fail;
11624 }
11625 Py_INCREF(Py_None); resultobj = Py_None;
11626 return resultobj;
11627 fail:
11628 return NULL;
11629}
11630
11631
11632static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11633 PyObject *resultobj;
11634 wxDC *arg1 = (wxDC *) 0 ;
11635 wxRect *arg2 = 0 ;
11636 double arg3 ;
11637 wxRect temp2 ;
11638 PyObject * obj0 = 0 ;
11639 PyObject * obj1 = 0 ;
8edf1c75 11640 PyObject * obj2 = 0 ;
d14a1e28
RD
11641 char *kwnames[] = {
11642 (char *) "self",(char *) "r",(char *) "radius", NULL
11643 };
11644
8edf1c75 11645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11648 {
11649 arg2 = &temp2;
11650 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11651 }
2f4c0a16
RD
11652 arg3 = (double) SWIG_AsDouble(obj2);
11653 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11654 {
11655 PyThreadState* __tstate = wxPyBeginAllowThreads();
11656 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11657
11658 wxPyEndAllowThreads(__tstate);
11659 if (PyErr_Occurred()) SWIG_fail;
11660 }
11661 Py_INCREF(Py_None); resultobj = Py_None;
11662 return resultobj;
11663 fail:
11664 return NULL;
11665}
11666
11667
11668static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11669 PyObject *resultobj;
11670 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11671 int arg2 ;
11672 int arg3 ;
11673 int arg4 ;
d14a1e28 11674 PyObject * obj0 = 0 ;
8edf1c75
RD
11675 PyObject * obj1 = 0 ;
11676 PyObject * obj2 = 0 ;
11677 PyObject * obj3 = 0 ;
d14a1e28
RD
11678 char *kwnames[] = {
11679 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11680 };
11681
8edf1c75 11682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
11683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11685 arg2 = (int) SWIG_AsInt(obj1);
11686 if (PyErr_Occurred()) SWIG_fail;
11687 arg3 = (int) SWIG_AsInt(obj2);
11688 if (PyErr_Occurred()) SWIG_fail;
11689 arg4 = (int) SWIG_AsInt(obj3);
11690 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11691 {
11692 PyThreadState* __tstate = wxPyBeginAllowThreads();
11693 (arg1)->DrawCircle(arg2,arg3,arg4);
11694
11695 wxPyEndAllowThreads(__tstate);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 }
11698 Py_INCREF(Py_None); resultobj = Py_None;
11699 return resultobj;
11700 fail:
11701 return NULL;
11702}
11703
11704
11705static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11706 PyObject *resultobj;
11707 wxDC *arg1 = (wxDC *) 0 ;
11708 wxPoint *arg2 = 0 ;
423f194a 11709 int arg3 ;
d14a1e28
RD
11710 wxPoint temp2 ;
11711 PyObject * obj0 = 0 ;
11712 PyObject * obj1 = 0 ;
8edf1c75 11713 PyObject * obj2 = 0 ;
d14a1e28
RD
11714 char *kwnames[] = {
11715 (char *) "self",(char *) "pt",(char *) "radius", NULL
11716 };
11717
8edf1c75 11718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11721 {
11722 arg2 = &temp2;
11723 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11724 }
2f4c0a16
RD
11725 arg3 = (int) SWIG_AsInt(obj2);
11726 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11727 {
11728 PyThreadState* __tstate = wxPyBeginAllowThreads();
11729 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11730
11731 wxPyEndAllowThreads(__tstate);
11732 if (PyErr_Occurred()) SWIG_fail;
11733 }
11734 Py_INCREF(Py_None); resultobj = Py_None;
11735 return resultobj;
11736 fail:
11737 return NULL;
11738}
11739
11740
11741static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11742 PyObject *resultobj;
11743 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11744 int arg2 ;
11745 int arg3 ;
11746 int arg4 ;
11747 int arg5 ;
d14a1e28 11748 PyObject * obj0 = 0 ;
8edf1c75
RD
11749 PyObject * obj1 = 0 ;
11750 PyObject * obj2 = 0 ;
11751 PyObject * obj3 = 0 ;
11752 PyObject * obj4 = 0 ;
d14a1e28
RD
11753 char *kwnames[] = {
11754 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11755 };
11756
8edf1c75 11757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
11758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11760 arg2 = (int) SWIG_AsInt(obj1);
11761 if (PyErr_Occurred()) SWIG_fail;
11762 arg3 = (int) SWIG_AsInt(obj2);
11763 if (PyErr_Occurred()) SWIG_fail;
11764 arg4 = (int) SWIG_AsInt(obj3);
11765 if (PyErr_Occurred()) SWIG_fail;
11766 arg5 = (int) SWIG_AsInt(obj4);
11767 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11768 {
11769 PyThreadState* __tstate = wxPyBeginAllowThreads();
11770 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11771
11772 wxPyEndAllowThreads(__tstate);
11773 if (PyErr_Occurred()) SWIG_fail;
11774 }
11775 Py_INCREF(Py_None); resultobj = Py_None;
11776 return resultobj;
11777 fail:
11778 return NULL;
11779}
11780
11781
11782static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11783 PyObject *resultobj;
11784 wxDC *arg1 = (wxDC *) 0 ;
11785 wxPoint *arg2 = 0 ;
11786 wxSize *arg3 = 0 ;
11787 wxPoint temp2 ;
11788 wxSize temp3 ;
11789 PyObject * obj0 = 0 ;
11790 PyObject * obj1 = 0 ;
11791 PyObject * obj2 = 0 ;
11792 char *kwnames[] = {
11793 (char *) "self",(char *) "pt",(char *) "sz", NULL
11794 };
11795
11796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11799 {
11800 arg2 = &temp2;
11801 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11802 }
11803 {
11804 arg3 = &temp3;
11805 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11806 }
11807 {
11808 PyThreadState* __tstate = wxPyBeginAllowThreads();
11809 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11810
11811 wxPyEndAllowThreads(__tstate);
11812 if (PyErr_Occurred()) SWIG_fail;
11813 }
11814 Py_INCREF(Py_None); resultobj = Py_None;
11815 return resultobj;
11816 fail:
11817 return NULL;
11818}
11819
11820
11821static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11822 PyObject *resultobj;
11823 wxDC *arg1 = (wxDC *) 0 ;
11824 wxRect *arg2 = 0 ;
11825 wxRect temp2 ;
11826 PyObject * obj0 = 0 ;
11827 PyObject * obj1 = 0 ;
11828 char *kwnames[] = {
11829 (char *) "self",(char *) "rect", NULL
11830 };
11831
11832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
11833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11835 {
11836 arg2 = &temp2;
11837 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11838 }
11839 {
11840 PyThreadState* __tstate = wxPyBeginAllowThreads();
11841 (arg1)->DrawEllipse((wxRect const &)*arg2);
11842
11843 wxPyEndAllowThreads(__tstate);
11844 if (PyErr_Occurred()) SWIG_fail;
11845 }
11846 Py_INCREF(Py_None); resultobj = Py_None;
11847 return resultobj;
11848 fail:
11849 return NULL;
11850}
11851
11852
11853static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11854 PyObject *resultobj;
11855 wxDC *arg1 = (wxDC *) 0 ;
11856 wxIcon *arg2 = 0 ;
423f194a
RD
11857 int arg3 ;
11858 int arg4 ;
d14a1e28
RD
11859 PyObject * obj0 = 0 ;
11860 PyObject * obj1 = 0 ;
8edf1c75
RD
11861 PyObject * obj2 = 0 ;
11862 PyObject * obj3 = 0 ;
d14a1e28
RD
11863 char *kwnames[] = {
11864 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11865 };
11866
8edf1c75 11867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
11868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11870 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11871 SWIG_POINTER_EXCEPTION | 0)) == -1)
11872 SWIG_fail;
d14a1e28 11873 if (arg2 == NULL) {
2f4c0a16
RD
11874 PyErr_SetString(PyExc_TypeError,"null reference");
11875 SWIG_fail;
8edf1c75 11876 }
2f4c0a16
RD
11877 arg3 = (int) SWIG_AsInt(obj2);
11878 if (PyErr_Occurred()) SWIG_fail;
11879 arg4 = (int) SWIG_AsInt(obj3);
11880 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11881 {
11882 PyThreadState* __tstate = wxPyBeginAllowThreads();
11883 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11884
11885 wxPyEndAllowThreads(__tstate);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 }
11888 Py_INCREF(Py_None); resultobj = Py_None;
11889 return resultobj;
11890 fail:
11891 return NULL;
11892}
11893
11894
11895static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11896 PyObject *resultobj;
11897 wxDC *arg1 = (wxDC *) 0 ;
11898 wxIcon *arg2 = 0 ;
11899 wxPoint *arg3 = 0 ;
11900 wxPoint temp3 ;
11901 PyObject * obj0 = 0 ;
11902 PyObject * obj1 = 0 ;
11903 PyObject * obj2 = 0 ;
11904 char *kwnames[] = {
11905 (char *) "self",(char *) "icon",(char *) "pt", NULL
11906 };
11907
11908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
11909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11911 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11912 SWIG_POINTER_EXCEPTION | 0)) == -1)
11913 SWIG_fail;
d14a1e28 11914 if (arg2 == NULL) {
2f4c0a16
RD
11915 PyErr_SetString(PyExc_TypeError,"null reference");
11916 SWIG_fail;
d14a1e28
RD
11917 }
11918 {
11919 arg3 = &temp3;
11920 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11921 }
11922 {
11923 PyThreadState* __tstate = wxPyBeginAllowThreads();
11924 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11925
11926 wxPyEndAllowThreads(__tstate);
11927 if (PyErr_Occurred()) SWIG_fail;
11928 }
11929 Py_INCREF(Py_None); resultobj = Py_None;
11930 return resultobj;
11931 fail:
11932 return NULL;
11933}
11934
11935
11936static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11937 PyObject *resultobj;
11938 wxDC *arg1 = (wxDC *) 0 ;
11939 wxBitmap *arg2 = 0 ;
423f194a
RD
11940 int arg3 ;
11941 int arg4 ;
11942 bool arg5 = (bool) False ;
d14a1e28
RD
11943 PyObject * obj0 = 0 ;
11944 PyObject * obj1 = 0 ;
8edf1c75
RD
11945 PyObject * obj2 = 0 ;
11946 PyObject * obj3 = 0 ;
d14a1e28
RD
11947 PyObject * obj4 = 0 ;
11948 char *kwnames[] = {
11949 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11950 };
11951
8edf1c75 11952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
11953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11955 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11956 SWIG_POINTER_EXCEPTION | 0)) == -1)
11957 SWIG_fail;
d14a1e28 11958 if (arg2 == NULL) {
2f4c0a16
RD
11959 PyErr_SetString(PyExc_TypeError,"null reference");
11960 SWIG_fail;
8edf1c75 11961 }
2f4c0a16
RD
11962 arg3 = (int) SWIG_AsInt(obj2);
11963 if (PyErr_Occurred()) SWIG_fail;
11964 arg4 = (int) SWIG_AsInt(obj3);
11965 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 11966 if (obj4) {
2f4c0a16
RD
11967 arg5 = (bool) SWIG_AsBool(obj4);
11968 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11969 }
11970 {
11971 PyThreadState* __tstate = wxPyBeginAllowThreads();
11972 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11973
11974 wxPyEndAllowThreads(__tstate);
11975 if (PyErr_Occurred()) SWIG_fail;
11976 }
11977 Py_INCREF(Py_None); resultobj = Py_None;
11978 return resultobj;
11979 fail:
11980 return NULL;
11981}
11982
11983
11984static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11985 PyObject *resultobj;
11986 wxDC *arg1 = (wxDC *) 0 ;
11987 wxBitmap *arg2 = 0 ;
11988 wxPoint *arg3 = 0 ;
423f194a 11989 bool arg4 = (bool) False ;
d14a1e28
RD
11990 wxPoint temp3 ;
11991 PyObject * obj0 = 0 ;
11992 PyObject * obj1 = 0 ;
11993 PyObject * obj2 = 0 ;
11994 PyObject * obj3 = 0 ;
11995 char *kwnames[] = {
11996 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11997 };
11998
11999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
12000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12002 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12003 SWIG_POINTER_EXCEPTION | 0)) == -1)
12004 SWIG_fail;
d14a1e28 12005 if (arg2 == NULL) {
2f4c0a16
RD
12006 PyErr_SetString(PyExc_TypeError,"null reference");
12007 SWIG_fail;
d14a1e28
RD
12008 }
12009 {
12010 arg3 = &temp3;
12011 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12012 }
12013 if (obj3) {
2f4c0a16
RD
12014 arg4 = (bool) SWIG_AsBool(obj3);
12015 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12016 }
12017 {
12018 PyThreadState* __tstate = wxPyBeginAllowThreads();
12019 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12020
12021 wxPyEndAllowThreads(__tstate);
12022 if (PyErr_Occurred()) SWIG_fail;
12023 }
12024 Py_INCREF(Py_None); resultobj = Py_None;
12025 return resultobj;
12026 fail:
12027 return NULL;
12028}
12029
12030
12031static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12032 PyObject *resultobj;
12033 wxDC *arg1 = (wxDC *) 0 ;
12034 wxString *arg2 = 0 ;
423f194a
RD
12035 int arg3 ;
12036 int arg4 ;
12037 bool temp2 = False ;
d14a1e28
RD
12038 PyObject * obj0 = 0 ;
12039 PyObject * obj1 = 0 ;
8edf1c75
RD
12040 PyObject * obj2 = 0 ;
12041 PyObject * obj3 = 0 ;
d14a1e28
RD
12042 char *kwnames[] = {
12043 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12044 };
12045
8edf1c75 12046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
12047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75 12049 {
2f4c0a16
RD
12050 arg2 = wxString_in_helper(obj1);
12051 if (arg2 == NULL) SWIG_fail;
12052 temp2 = True;
8edf1c75 12053 }
2f4c0a16
RD
12054 arg3 = (int) SWIG_AsInt(obj2);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 arg4 = (int) SWIG_AsInt(obj3);
12057 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12058 {
12059 PyThreadState* __tstate = wxPyBeginAllowThreads();
12060 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12061
12062 wxPyEndAllowThreads(__tstate);
12063 if (PyErr_Occurred()) SWIG_fail;
12064 }
12065 Py_INCREF(Py_None); resultobj = Py_None;
12066 {
12067 if (temp2)
12068 delete arg2;
12069 }
12070 return resultobj;
12071 fail:
12072 {
12073 if (temp2)
12074 delete arg2;
12075 }
12076 return NULL;
12077}
12078
12079
12080static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
12081 PyObject *resultobj;
12082 wxDC *arg1 = (wxDC *) 0 ;
12083 wxString *arg2 = 0 ;
12084 wxPoint *arg3 = 0 ;
423f194a 12085 bool temp2 = False ;
d14a1e28
RD
12086 wxPoint temp3 ;
12087 PyObject * obj0 = 0 ;
12088 PyObject * obj1 = 0 ;
12089 PyObject * obj2 = 0 ;
12090 char *kwnames[] = {
12091 (char *) "self",(char *) "text",(char *) "pt", NULL
12092 };
12093
12094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
12095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12097 {
12098 arg2 = wxString_in_helper(obj1);
12099 if (arg2 == NULL) SWIG_fail;
423f194a 12100 temp2 = True;
d14a1e28
RD
12101 }
12102 {
12103 arg3 = &temp3;
12104 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12105 }
12106 {
12107 PyThreadState* __tstate = wxPyBeginAllowThreads();
12108 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12109
12110 wxPyEndAllowThreads(__tstate);
12111 if (PyErr_Occurred()) SWIG_fail;
12112 }
12113 Py_INCREF(Py_None); resultobj = Py_None;
12114 {
12115 if (temp2)
12116 delete arg2;
12117 }
12118 return resultobj;
12119 fail:
12120 {
12121 if (temp2)
12122 delete arg2;
12123 }
12124 return NULL;
12125}
12126
12127
12128static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12129 PyObject *resultobj;
12130 wxDC *arg1 = (wxDC *) 0 ;
12131 wxString *arg2 = 0 ;
423f194a
RD
12132 int arg3 ;
12133 int arg4 ;
d14a1e28 12134 double arg5 ;
423f194a 12135 bool temp2 = False ;
d14a1e28
RD
12136 PyObject * obj0 = 0 ;
12137 PyObject * obj1 = 0 ;
8edf1c75
RD
12138 PyObject * obj2 = 0 ;
12139 PyObject * obj3 = 0 ;
12140 PyObject * obj4 = 0 ;
d14a1e28
RD
12141 char *kwnames[] = {
12142 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12143 };
12144
8edf1c75 12145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
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;
423f194a 12151 temp2 = True;
d14a1e28 12152 }
2f4c0a16
RD
12153 arg3 = (int) SWIG_AsInt(obj2);
12154 if (PyErr_Occurred()) SWIG_fail;
12155 arg4 = (int) SWIG_AsInt(obj3);
12156 if (PyErr_Occurred()) SWIG_fail;
12157 arg5 = (double) SWIG_AsDouble(obj4);
12158 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12159 {
12160 PyThreadState* __tstate = wxPyBeginAllowThreads();
12161 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12162
12163 wxPyEndAllowThreads(__tstate);
12164 if (PyErr_Occurred()) SWIG_fail;
12165 }
12166 Py_INCREF(Py_None); resultobj = Py_None;
12167 {
12168 if (temp2)
12169 delete arg2;
12170 }
12171 return resultobj;
12172 fail:
12173 {
12174 if (temp2)
12175 delete arg2;
12176 }
12177 return NULL;
12178}
12179
12180
12181static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
12182 PyObject *resultobj;
12183 wxDC *arg1 = (wxDC *) 0 ;
12184 wxString *arg2 = 0 ;
12185 wxPoint *arg3 = 0 ;
12186 double arg4 ;
423f194a 12187 bool temp2 = False ;
d14a1e28
RD
12188 wxPoint temp3 ;
12189 PyObject * obj0 = 0 ;
12190 PyObject * obj1 = 0 ;
12191 PyObject * obj2 = 0 ;
8edf1c75 12192 PyObject * obj3 = 0 ;
d14a1e28
RD
12193 char *kwnames[] = {
12194 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12195 };
12196
8edf1c75 12197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
12198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12200 {
12201 arg2 = wxString_in_helper(obj1);
12202 if (arg2 == NULL) SWIG_fail;
423f194a 12203 temp2 = True;
d14a1e28
RD
12204 }
12205 {
12206 arg3 = &temp3;
12207 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12208 }
2f4c0a16
RD
12209 arg4 = (double) SWIG_AsDouble(obj3);
12210 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12211 {
12212 PyThreadState* __tstate = wxPyBeginAllowThreads();
12213 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12214
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
12218 Py_INCREF(Py_None); resultobj = Py_None;
12219 {
12220 if (temp2)
12221 delete arg2;
12222 }
12223 return resultobj;
12224 fail:
12225 {
12226 if (temp2)
12227 delete arg2;
12228 }
12229 return NULL;
12230}
12231
12232
12233static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12234 PyObject *resultobj;
12235 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
12236 int arg2 ;
12237 int arg3 ;
12238 int arg4 ;
12239 int arg5 ;
d14a1e28 12240 wxDC *arg6 = (wxDC *) 0 ;
423f194a
RD
12241 int arg7 ;
12242 int arg8 ;
d14a1e28 12243 int arg9 = (int) wxCOPY ;
423f194a
RD
12244 bool arg10 = (bool) False ;
12245 int arg11 = (int) -1 ;
12246 int arg12 = (int) -1 ;
d14a1e28
RD
12247 bool result;
12248 PyObject * obj0 = 0 ;
8edf1c75
RD
12249 PyObject * obj1 = 0 ;
12250 PyObject * obj2 = 0 ;
12251 PyObject * obj3 = 0 ;
12252 PyObject * obj4 = 0 ;
d14a1e28 12253 PyObject * obj5 = 0 ;
8edf1c75
RD
12254 PyObject * obj6 = 0 ;
12255 PyObject * obj7 = 0 ;
12256 PyObject * obj8 = 0 ;
d14a1e28 12257 PyObject * obj9 = 0 ;
8edf1c75
RD
12258 PyObject * obj10 = 0 ;
12259 PyObject * obj11 = 0 ;
d14a1e28
RD
12260 char *kwnames[] = {
12261 (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
12262 };
12263
8edf1c75 12264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_BlitXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
2f4c0a16
RD
12265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12267 arg2 = (int) SWIG_AsInt(obj1);
12268 if (PyErr_Occurred()) SWIG_fail;
12269 arg3 = (int) SWIG_AsInt(obj2);
12270 if (PyErr_Occurred()) SWIG_fail;
12271 arg4 = (int) SWIG_AsInt(obj3);
12272 if (PyErr_Occurred()) SWIG_fail;
12273 arg5 = (int) SWIG_AsInt(obj4);
12274 if (PyErr_Occurred()) SWIG_fail;
12275 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12277 arg7 = (int) SWIG_AsInt(obj6);
12278 if (PyErr_Occurred()) SWIG_fail;
12279 arg8 = (int) SWIG_AsInt(obj7);
12280 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 12281 if (obj8) {
2f4c0a16
RD
12282 arg9 = (int) SWIG_AsInt(obj8);
12283 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 12284 }
d14a1e28 12285 if (obj9) {
2f4c0a16
RD
12286 arg10 = (bool) SWIG_AsBool(obj9);
12287 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
12288 }
12289 if (obj10) {
2f4c0a16
RD
12290 arg11 = (int) SWIG_AsInt(obj10);
12291 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
12292 }
12293 if (obj11) {
2f4c0a16
RD
12294 arg12 = (int) SWIG_AsInt(obj11);
12295 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12296 }
12297 {
12298 PyThreadState* __tstate = wxPyBeginAllowThreads();
12299 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12300
12301 wxPyEndAllowThreads(__tstate);
12302 if (PyErr_Occurred()) SWIG_fail;
12303 }
4e760a36 12304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12305 return resultobj;
12306 fail:
12307 return NULL;
12308}
12309
12310
12311static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12312 PyObject *resultobj;
12313 wxDC *arg1 = (wxDC *) 0 ;
12314 wxPoint *arg2 = 0 ;
12315 wxSize *arg3 = 0 ;
12316 wxDC *arg4 = (wxDC *) 0 ;
12317 wxPoint *arg5 = 0 ;
12318 int arg6 = (int) wxCOPY ;
423f194a 12319 bool arg7 = (bool) False ;
d14a1e28
RD
12320 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12321 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12322 bool result;
12323 wxPoint temp2 ;
12324 wxSize temp3 ;
12325 wxPoint temp5 ;
12326 wxPoint temp8 ;
12327 PyObject * obj0 = 0 ;
12328 PyObject * obj1 = 0 ;
12329 PyObject * obj2 = 0 ;
12330 PyObject * obj3 = 0 ;
12331 PyObject * obj4 = 0 ;
8edf1c75 12332 PyObject * obj5 = 0 ;
d14a1e28
RD
12333 PyObject * obj6 = 0 ;
12334 PyObject * obj7 = 0 ;
12335 char *kwnames[] = {
12336 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12337 };
12338
8edf1c75 12339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2f4c0a16
RD
12340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12342 {
12343 arg2 = &temp2;
12344 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12345 }
12346 {
12347 arg3 = &temp3;
12348 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12349 }
2f4c0a16
RD
12350 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12352 {
12353 arg5 = &temp5;
12354 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12355 }
8edf1c75 12356 if (obj5) {
2f4c0a16
RD
12357 arg6 = (int) SWIG_AsInt(obj5);
12358 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 12359 }
d14a1e28 12360 if (obj6) {
2f4c0a16
RD
12361 arg7 = (bool) SWIG_AsBool(obj6);
12362 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12363 }
12364 if (obj7) {
12365 {
12366 arg8 = &temp8;
12367 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12368 }
12369 }
12370 {
12371 PyThreadState* __tstate = wxPyBeginAllowThreads();
12372 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12373
12374 wxPyEndAllowThreads(__tstate);
12375 if (PyErr_Occurred()) SWIG_fail;
12376 }
4e760a36 12377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12378 return resultobj;
12379 fail:
12380 return NULL;
12381}
12382
12383
12384static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12385 PyObject *resultobj;
12386 wxDC *arg1 = (wxDC *) 0 ;
12387 int arg2 ;
12388 wxPoint *arg3 = (wxPoint *) 0 ;
423f194a
RD
12389 int arg4 = (int) 0 ;
12390 int arg5 = (int) 0 ;
d14a1e28
RD
12391 PyObject * obj0 = 0 ;
12392 PyObject * obj1 = 0 ;
8edf1c75
RD
12393 PyObject * obj2 = 0 ;
12394 PyObject * obj3 = 0 ;
d14a1e28
RD
12395 char *kwnames[] = {
12396 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12397 };
12398
8edf1c75 12399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
12400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12402 {
12403 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12404 if (arg3 == NULL) SWIG_fail;
12405 }
8edf1c75 12406 if (obj2) {
2f4c0a16
RD
12407 arg4 = (int) SWIG_AsInt(obj2);
12408 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
12409 }
12410 if (obj3) {
2f4c0a16
RD
12411 arg5 = (int) SWIG_AsInt(obj3);
12412 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 12413 }
d14a1e28
RD
12414 {
12415 PyThreadState* __tstate = wxPyBeginAllowThreads();
12416 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12417
12418 wxPyEndAllowThreads(__tstate);
12419 if (PyErr_Occurred()) SWIG_fail;
12420 }
12421 Py_INCREF(Py_None); resultobj = Py_None;
12422 {
12423 if (arg3) delete [] arg3;
12424 }
12425 return resultobj;
12426 fail:
12427 {
12428 if (arg3) delete [] arg3;
12429 }
12430 return NULL;
12431}
12432
12433
12434static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12435 PyObject *resultobj;
12436 wxDC *arg1 = (wxDC *) 0 ;
12437 int arg2 ;
12438 wxPoint *arg3 = (wxPoint *) 0 ;
423f194a
RD
12439 int arg4 = (int) 0 ;
12440 int arg5 = (int) 0 ;
d14a1e28
RD
12441 int arg6 = (int) wxODDEVEN_RULE ;
12442 PyObject * obj0 = 0 ;
12443 PyObject * obj1 = 0 ;
8edf1c75
RD
12444 PyObject * obj2 = 0 ;
12445 PyObject * obj3 = 0 ;
12446 PyObject * obj4 = 0 ;
d14a1e28
RD
12447 char *kwnames[] = {
12448 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12449 };
12450
8edf1c75 12451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
12452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12454 {
12455 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12456 if (arg3 == NULL) SWIG_fail;
12457 }
8edf1c75 12458 if (obj2) {
2f4c0a16
RD
12459 arg4 = (int) SWIG_AsInt(obj2);
12460 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
12461 }
12462 if (obj3) {
2f4c0a16
RD
12463 arg5 = (int) SWIG_AsInt(obj3);
12464 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
12465 }
12466 if (obj4) {
2f4c0a16
RD
12467 arg6 = (int) SWIG_AsInt(obj4);
12468 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 12469 }
d14a1e28
RD
12470 {
12471 PyThreadState* __tstate = wxPyBeginAllowThreads();
12472 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12473
12474 wxPyEndAllowThreads(__tstate);
12475 if (PyErr_Occurred()) SWIG_fail;
12476 }
12477 Py_INCREF(Py_None); resultobj = Py_None;
12478 {
12479 if (arg3) delete [] arg3;
12480 }
12481 return resultobj;
12482 fail:
12483 {
12484 if (arg3) delete [] arg3;
12485 }
12486 return NULL;
12487}
12488
12489
12490static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12491 PyObject *resultobj;
12492 wxDC *arg1 = (wxDC *) 0 ;
12493 wxString *arg2 = 0 ;
12494 wxRect *arg3 = 0 ;
12495 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12496 int arg5 = (int) -1 ;
423f194a 12497 bool temp2 = False ;
d14a1e28
RD
12498 wxRect temp3 ;
12499 PyObject * obj0 = 0 ;
12500 PyObject * obj1 = 0 ;
12501 PyObject * obj2 = 0 ;
8edf1c75
RD
12502 PyObject * obj3 = 0 ;
12503 PyObject * obj4 = 0 ;
d14a1e28
RD
12504 char *kwnames[] = {
12505 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12506 };
12507
8edf1c75 12508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
12509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12511 {
12512 arg2 = wxString_in_helper(obj1);
12513 if (arg2 == NULL) SWIG_fail;
423f194a 12514 temp2 = True;
d14a1e28
RD
12515 }
12516 {
12517 arg3 = &temp3;
12518 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12519 }
8edf1c75 12520 if (obj3) {
2f4c0a16
RD
12521 arg4 = (int) SWIG_AsInt(obj3);
12522 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
12523 }
12524 if (obj4) {
2f4c0a16
RD
12525 arg5 = (int) SWIG_AsInt(obj4);
12526 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 12527 }
d14a1e28
RD
12528 {
12529 PyThreadState* __tstate = wxPyBeginAllowThreads();
12530 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12531
12532 wxPyEndAllowThreads(__tstate);
12533 if (PyErr_Occurred()) SWIG_fail;
12534 }
12535 Py_INCREF(Py_None); resultobj = Py_None;
12536 {
12537 if (temp2)
12538 delete arg2;
12539 }
12540 return resultobj;
12541 fail:
12542 {
12543 if (temp2)
12544 delete arg2;
12545 }
12546 return NULL;
12547}
12548
12549
12550static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12551 PyObject *resultobj;
12552 wxDC *arg1 = (wxDC *) 0 ;
12553 wxString *arg2 = 0 ;
12554 wxBitmap *arg3 = 0 ;
12555 wxRect *arg4 = 0 ;
12556 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12557 int arg6 = (int) -1 ;
12558 wxRect result;
423f194a 12559 bool temp2 = False ;
d14a1e28
RD
12560 wxRect temp4 ;
12561 PyObject * obj0 = 0 ;
12562 PyObject * obj1 = 0 ;
12563 PyObject * obj2 = 0 ;
12564 PyObject * obj3 = 0 ;
8edf1c75
RD
12565 PyObject * obj4 = 0 ;
12566 PyObject * obj5 = 0 ;
d14a1e28
RD
12567 char *kwnames[] = {
12568 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12569 };
12570
8edf1c75 12571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
2f4c0a16
RD
12572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12574 {
12575 arg2 = wxString_in_helper(obj1);
12576 if (arg2 == NULL) SWIG_fail;
423f194a 12577 temp2 = True;
d14a1e28 12578 }
2f4c0a16
RD
12579 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12580 SWIG_POINTER_EXCEPTION | 0)) == -1)
12581 SWIG_fail;
d14a1e28 12582 if (arg3 == NULL) {
2f4c0a16
RD
12583 PyErr_SetString(PyExc_TypeError,"null reference");
12584 SWIG_fail;
d14a1e28
RD
12585 }
12586 {
12587 arg4 = &temp4;
12588 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12589 }
8edf1c75 12590 if (obj4) {
2f4c0a16
RD
12591 arg5 = (int) SWIG_AsInt(obj4);
12592 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
12593 }
12594 if (obj5) {
2f4c0a16
RD
12595 arg6 = (int) SWIG_AsInt(obj5);
12596 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 12597 }
d14a1e28
RD
12598 {
12599 PyThreadState* __tstate = wxPyBeginAllowThreads();
12600 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12601
12602 wxPyEndAllowThreads(__tstate);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 {
12606 wxRect * resultptr;
12607 resultptr = new wxRect((wxRect &) result);
2f4c0a16 12608 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
12609 }
12610 {
12611 if (temp2)
12612 delete arg2;
12613 }
12614 return resultobj;
12615 fail:
12616 {
12617 if (temp2)
12618 delete arg2;
12619 }
12620 return NULL;
12621}
12622
12623
12624static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12625 PyObject *resultobj;
12626 wxDC *arg1 = (wxDC *) 0 ;
12627 int arg2 ;
12628 wxPoint *arg3 = (wxPoint *) 0 ;
12629 PyObject * obj0 = 0 ;
12630 PyObject * obj1 = 0 ;
12631 char *kwnames[] = {
12632 (char *) "self",(char *) "points", NULL
12633 };
12634
12635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
12636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12638 {
12639 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12640 if (arg3 == NULL) SWIG_fail;
12641 }
12642 {
12643 PyThreadState* __tstate = wxPyBeginAllowThreads();
12644 (arg1)->DrawSpline(arg2,arg3);
12645
12646 wxPyEndAllowThreads(__tstate);
12647 if (PyErr_Occurred()) SWIG_fail;
12648 }
12649 Py_INCREF(Py_None); resultobj = Py_None;
12650 {
12651 if (arg3) delete [] arg3;
12652 }
12653 return resultobj;
12654 fail:
12655 {
12656 if (arg3) delete [] arg3;
12657 }
12658 return NULL;
12659}
12660
12661
12662static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12663 PyObject *resultobj;
12664 wxDC *arg1 = (wxDC *) 0 ;
12665 PyObject * obj0 = 0 ;
12666 char *kwnames[] = {
12667 (char *) "self", NULL
12668 };
12669
12670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
2f4c0a16
RD
12671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12673 {
12674 PyThreadState* __tstate = wxPyBeginAllowThreads();
12675 (arg1)->Clear();
12676
12677 wxPyEndAllowThreads(__tstate);
12678 if (PyErr_Occurred()) SWIG_fail;
12679 }
12680 Py_INCREF(Py_None); resultobj = Py_None;
12681 return resultobj;
12682 fail:
12683 return NULL;
12684}
12685
12686
12687static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12688 PyObject *resultobj;
12689 wxDC *arg1 = (wxDC *) 0 ;
12690 wxString *arg2 = 0 ;
12691 bool result;
423f194a 12692 bool temp2 = False ;
d14a1e28
RD
12693 PyObject * obj0 = 0 ;
12694 PyObject * obj1 = 0 ;
12695 char *kwnames[] = {
12696 (char *) "self",(char *) "message", NULL
12697 };
12698
12699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
12700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12702 {
12703 arg2 = wxString_in_helper(obj1);
12704 if (arg2 == NULL) SWIG_fail;
423f194a 12705 temp2 = True;
d14a1e28
RD
12706 }
12707 {
12708 PyThreadState* __tstate = wxPyBeginAllowThreads();
12709 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12710
12711 wxPyEndAllowThreads(__tstate);
12712 if (PyErr_Occurred()) SWIG_fail;
12713 }
4e760a36 12714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12715 {
12716 if (temp2)
12717 delete arg2;
12718 }
12719 return resultobj;
12720 fail:
12721 {
12722 if (temp2)
12723 delete arg2;
12724 }
12725 return NULL;
12726}
12727
12728
12729static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12730 PyObject *resultobj;
12731 wxDC *arg1 = (wxDC *) 0 ;
12732 PyObject * obj0 = 0 ;
12733 char *kwnames[] = {
12734 (char *) "self", NULL
12735 };
12736
12737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
2f4c0a16
RD
12738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12740 {
12741 PyThreadState* __tstate = wxPyBeginAllowThreads();
12742 (arg1)->EndDoc();
12743
12744 wxPyEndAllowThreads(__tstate);
12745 if (PyErr_Occurred()) SWIG_fail;
12746 }
12747 Py_INCREF(Py_None); resultobj = Py_None;
12748 return resultobj;
12749 fail:
12750 return NULL;
12751}
12752
12753
12754static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12755 PyObject *resultobj;
12756 wxDC *arg1 = (wxDC *) 0 ;
12757 PyObject * obj0 = 0 ;
12758 char *kwnames[] = {
12759 (char *) "self", NULL
12760 };
12761
12762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
2f4c0a16
RD
12763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12765 {
12766 PyThreadState* __tstate = wxPyBeginAllowThreads();
12767 (arg1)->StartPage();
12768
12769 wxPyEndAllowThreads(__tstate);
12770 if (PyErr_Occurred()) SWIG_fail;
12771 }
12772 Py_INCREF(Py_None); resultobj = Py_None;
12773 return resultobj;
12774 fail:
12775 return NULL;
12776}
12777
12778
12779static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12780 PyObject *resultobj;
12781 wxDC *arg1 = (wxDC *) 0 ;
12782 PyObject * obj0 = 0 ;
12783 char *kwnames[] = {
12784 (char *) "self", NULL
12785 };
12786
12787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
2f4c0a16
RD
12788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12790 {
12791 PyThreadState* __tstate = wxPyBeginAllowThreads();
12792 (arg1)->EndPage();
12793
12794 wxPyEndAllowThreads(__tstate);
12795 if (PyErr_Occurred()) SWIG_fail;
12796 }
12797 Py_INCREF(Py_None); resultobj = Py_None;
12798 return resultobj;
12799 fail:
12800 return NULL;
12801}
12802
12803
12804static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12805 PyObject *resultobj;
12806 wxDC *arg1 = (wxDC *) 0 ;
12807 wxFont *arg2 = 0 ;
12808 PyObject * obj0 = 0 ;
12809 PyObject * obj1 = 0 ;
12810 char *kwnames[] = {
12811 (char *) "self",(char *) "font", NULL
12812 };
12813
12814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
12815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12817 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12818 SWIG_POINTER_EXCEPTION | 0)) == -1)
12819 SWIG_fail;
d14a1e28 12820 if (arg2 == NULL) {
2f4c0a16
RD
12821 PyErr_SetString(PyExc_TypeError,"null reference");
12822 SWIG_fail;
d14a1e28
RD
12823 }
12824 {
12825 PyThreadState* __tstate = wxPyBeginAllowThreads();
12826 (arg1)->SetFont((wxFont const &)*arg2);
12827
12828 wxPyEndAllowThreads(__tstate);
12829 if (PyErr_Occurred()) SWIG_fail;
12830 }
12831 Py_INCREF(Py_None); resultobj = Py_None;
12832 return resultobj;
12833 fail:
12834 return NULL;
12835}
12836
12837
12838static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12839 PyObject *resultobj;
12840 wxDC *arg1 = (wxDC *) 0 ;
12841 wxPen *arg2 = 0 ;
12842 PyObject * obj0 = 0 ;
12843 PyObject * obj1 = 0 ;
12844 char *kwnames[] = {
12845 (char *) "self",(char *) "pen", NULL
12846 };
12847
12848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
12849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12851 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12852 SWIG_POINTER_EXCEPTION | 0)) == -1)
12853 SWIG_fail;
d14a1e28 12854 if (arg2 == NULL) {
2f4c0a16
RD
12855 PyErr_SetString(PyExc_TypeError,"null reference");
12856 SWIG_fail;
d14a1e28
RD
12857 }
12858 {
12859 PyThreadState* __tstate = wxPyBeginAllowThreads();
12860 (arg1)->SetPen((wxPen const &)*arg2);
12861
12862 wxPyEndAllowThreads(__tstate);
12863 if (PyErr_Occurred()) SWIG_fail;
12864 }
12865 Py_INCREF(Py_None); resultobj = Py_None;
12866 return resultobj;
12867 fail:
12868 return NULL;
12869}
12870
12871
12872static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12873 PyObject *resultobj;
12874 wxDC *arg1 = (wxDC *) 0 ;
12875 wxBrush *arg2 = 0 ;
12876 PyObject * obj0 = 0 ;
12877 PyObject * obj1 = 0 ;
12878 char *kwnames[] = {
12879 (char *) "self",(char *) "brush", NULL
12880 };
12881
12882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
12883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12885 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12886 SWIG_POINTER_EXCEPTION | 0)) == -1)
12887 SWIG_fail;
d14a1e28 12888 if (arg2 == NULL) {
2f4c0a16
RD
12889 PyErr_SetString(PyExc_TypeError,"null reference");
12890 SWIG_fail;
d14a1e28
RD
12891 }
12892 {
12893 PyThreadState* __tstate = wxPyBeginAllowThreads();
12894 (arg1)->SetBrush((wxBrush const &)*arg2);
12895
12896 wxPyEndAllowThreads(__tstate);
12897 if (PyErr_Occurred()) SWIG_fail;
12898 }
12899 Py_INCREF(Py_None); resultobj = Py_None;
12900 return resultobj;
12901 fail:
12902 return NULL;
12903}
12904
12905
12906static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12907 PyObject *resultobj;
12908 wxDC *arg1 = (wxDC *) 0 ;
12909 wxBrush *arg2 = 0 ;
12910 PyObject * obj0 = 0 ;
12911 PyObject * obj1 = 0 ;
12912 char *kwnames[] = {
12913 (char *) "self",(char *) "brush", NULL
12914 };
12915
12916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
12917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12919 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12920 SWIG_POINTER_EXCEPTION | 0)) == -1)
12921 SWIG_fail;
d14a1e28 12922 if (arg2 == NULL) {
2f4c0a16
RD
12923 PyErr_SetString(PyExc_TypeError,"null reference");
12924 SWIG_fail;
d14a1e28
RD
12925 }
12926 {
12927 PyThreadState* __tstate = wxPyBeginAllowThreads();
12928 (arg1)->SetBackground((wxBrush const &)*arg2);
12929
12930 wxPyEndAllowThreads(__tstate);
12931 if (PyErr_Occurred()) SWIG_fail;
12932 }
12933 Py_INCREF(Py_None); resultobj = Py_None;
12934 return resultobj;
12935 fail:
12936 return NULL;
12937}
12938
12939
12940static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12941 PyObject *resultobj;
12942 wxDC *arg1 = (wxDC *) 0 ;
12943 int arg2 ;
12944 PyObject * obj0 = 0 ;
8edf1c75 12945 PyObject * obj1 = 0 ;
d14a1e28
RD
12946 char *kwnames[] = {
12947 (char *) "self",(char *) "mode", NULL
12948 };
12949
8edf1c75 12950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
12951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12953 arg2 = (int) SWIG_AsInt(obj1);
12954 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12955 {
12956 PyThreadState* __tstate = wxPyBeginAllowThreads();
12957 (arg1)->SetBackgroundMode(arg2);
12958
12959 wxPyEndAllowThreads(__tstate);
12960 if (PyErr_Occurred()) SWIG_fail;
12961 }
12962 Py_INCREF(Py_None); resultobj = Py_None;
12963 return resultobj;
12964 fail:
12965 return NULL;
12966}
12967
12968
12969static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12970 PyObject *resultobj;
12971 wxDC *arg1 = (wxDC *) 0 ;
12972 wxPalette *arg2 = 0 ;
12973 PyObject * obj0 = 0 ;
12974 PyObject * obj1 = 0 ;
12975 char *kwnames[] = {
12976 (char *) "self",(char *) "palette", NULL
12977 };
12978
12979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
12980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12982 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12983 SWIG_POINTER_EXCEPTION | 0)) == -1)
12984 SWIG_fail;
d14a1e28 12985 if (arg2 == NULL) {
2f4c0a16
RD
12986 PyErr_SetString(PyExc_TypeError,"null reference");
12987 SWIG_fail;
d14a1e28
RD
12988 }
12989 {
12990 PyThreadState* __tstate = wxPyBeginAllowThreads();
12991 (arg1)->SetPalette((wxPalette const &)*arg2);
12992
12993 wxPyEndAllowThreads(__tstate);
12994 if (PyErr_Occurred()) SWIG_fail;
12995 }
12996 Py_INCREF(Py_None); resultobj = Py_None;
12997 return resultobj;
12998 fail:
12999 return NULL;
13000}
13001
13002
f0983263 13003static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13004 PyObject *resultobj;
13005 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13006 int arg2 ;
13007 int arg3 ;
13008 int arg4 ;
13009 int arg5 ;
d14a1e28 13010 PyObject * obj0 = 0 ;
8edf1c75
RD
13011 PyObject * obj1 = 0 ;
13012 PyObject * obj2 = 0 ;
13013 PyObject * obj3 = 0 ;
13014 PyObject * obj4 = 0 ;
d14a1e28
RD
13015 char *kwnames[] = {
13016 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13017 };
13018
8edf1c75 13019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
13020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13022 arg2 = (int) SWIG_AsInt(obj1);
13023 if (PyErr_Occurred()) SWIG_fail;
13024 arg3 = (int) SWIG_AsInt(obj2);
13025 if (PyErr_Occurred()) SWIG_fail;
13026 arg4 = (int) SWIG_AsInt(obj3);
13027 if (PyErr_Occurred()) SWIG_fail;
13028 arg5 = (int) SWIG_AsInt(obj4);
13029 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13030 {
13031 PyThreadState* __tstate = wxPyBeginAllowThreads();
13032 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
13033
13034 wxPyEndAllowThreads(__tstate);
13035 if (PyErr_Occurred()) SWIG_fail;
13036 }
13037 Py_INCREF(Py_None); resultobj = Py_None;
13038 return resultobj;
13039 fail:
13040 return NULL;
13041}
13042
13043
f0983263
RD
13044static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13045 PyObject *resultobj;
13046 wxDC *arg1 = (wxDC *) 0 ;
13047 wxPoint *arg2 = 0 ;
13048 wxSize *arg3 = 0 ;
13049 wxPoint temp2 ;
13050 wxSize temp3 ;
13051 PyObject * obj0 = 0 ;
13052 PyObject * obj1 = 0 ;
13053 PyObject * obj2 = 0 ;
13054 char *kwnames[] = {
13055 (char *) "self",(char *) "pt",(char *) "sz", NULL
13056 };
13057
13058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
13059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
f0983263
RD
13061 {
13062 arg2 = &temp2;
13063 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13064 }
13065 {
13066 arg3 = &temp3;
13067 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13068 }
13069 {
13070 PyThreadState* __tstate = wxPyBeginAllowThreads();
13071 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
13072
13073 wxPyEndAllowThreads(__tstate);
13074 if (PyErr_Occurred()) SWIG_fail;
13075 }
13076 Py_INCREF(Py_None); resultobj = Py_None;
13077 return resultobj;
13078 fail:
13079 return NULL;
13080}
13081
13082
d14a1e28
RD
13083static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13084 PyObject *resultobj;
13085 wxDC *arg1 = (wxDC *) 0 ;
13086 wxRect *arg2 = 0 ;
13087 wxRect temp2 ;
13088 PyObject * obj0 = 0 ;
13089 PyObject * obj1 = 0 ;
13090 char *kwnames[] = {
13091 (char *) "self",(char *) "rect", NULL
13092 };
13093
13094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13097 {
13098 arg2 = &temp2;
13099 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13100 }
13101 {
13102 PyThreadState* __tstate = wxPyBeginAllowThreads();
13103 (arg1)->SetClippingRegion((wxRect const &)*arg2);
13104
13105 wxPyEndAllowThreads(__tstate);
13106 if (PyErr_Occurred()) SWIG_fail;
13107 }
13108 Py_INCREF(Py_None); resultobj = Py_None;
13109 return resultobj;
13110 fail:
13111 return NULL;
13112}
13113
13114
13115static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13116 PyObject *resultobj;
13117 wxDC *arg1 = (wxDC *) 0 ;
13118 wxRegion *arg2 = 0 ;
13119 PyObject * obj0 = 0 ;
13120 PyObject * obj1 = 0 ;
13121 char *kwnames[] = {
13122 (char *) "self",(char *) "region", NULL
13123 };
13124
13125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13128 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
13129 SWIG_POINTER_EXCEPTION | 0)) == -1)
13130 SWIG_fail;
d14a1e28 13131 if (arg2 == NULL) {
2f4c0a16
RD
13132 PyErr_SetString(PyExc_TypeError,"null reference");
13133 SWIG_fail;
d14a1e28
RD
13134 }
13135 {
13136 PyThreadState* __tstate = wxPyBeginAllowThreads();
13137 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
13138
13139 wxPyEndAllowThreads(__tstate);
13140 if (PyErr_Occurred()) SWIG_fail;
13141 }
13142 Py_INCREF(Py_None); resultobj = Py_None;
13143 return resultobj;
13144 fail:
13145 return NULL;
13146}
13147
13148
13149static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13150 PyObject *resultobj;
13151 wxDC *arg1 = (wxDC *) 0 ;
13152 PyObject * obj0 = 0 ;
13153 char *kwnames[] = {
13154 (char *) "self", NULL
13155 };
13156
13157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13160 {
13161 PyThreadState* __tstate = wxPyBeginAllowThreads();
13162 (arg1)->DestroyClippingRegion();
13163
13164 wxPyEndAllowThreads(__tstate);
13165 if (PyErr_Occurred()) SWIG_fail;
13166 }
13167 Py_INCREF(Py_None); resultobj = Py_None;
13168 return resultobj;
13169 fail:
13170 return NULL;
13171}
13172
13173
13174static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13175 PyObject *resultobj;
13176 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13177 int *arg2 = (int *) 0 ;
13178 int *arg3 = (int *) 0 ;
13179 int *arg4 = (int *) 0 ;
13180 int *arg5 = (int *) 0 ;
13181 int temp2 ;
13182 int temp3 ;
13183 int temp4 ;
13184 int temp5 ;
d14a1e28
RD
13185 PyObject * obj0 = 0 ;
13186 char *kwnames[] = {
13187 (char *) "self", NULL
13188 };
13189
13190 arg2 = &temp2;
13191 arg3 = &temp3;
13192 arg4 = &temp4;
13193 arg5 = &temp5;
13194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13197 {
13198 PyThreadState* __tstate = wxPyBeginAllowThreads();
13199 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13200
13201 wxPyEndAllowThreads(__tstate);
13202 if (PyErr_Occurred()) SWIG_fail;
13203 }
13204 Py_INCREF(Py_None); resultobj = Py_None;
13205 {
13206 PyObject *o = PyInt_FromLong((long) (*arg2));
13207 resultobj = t_output_helper(resultobj,o);
13208 }
13209 {
13210 PyObject *o = PyInt_FromLong((long) (*arg3));
13211 resultobj = t_output_helper(resultobj,o);
13212 }
13213 {
13214 PyObject *o = PyInt_FromLong((long) (*arg4));
13215 resultobj = t_output_helper(resultobj,o);
13216 }
13217 {
13218 PyObject *o = PyInt_FromLong((long) (*arg5));
13219 resultobj = t_output_helper(resultobj,o);
13220 }
13221 return resultobj;
13222 fail:
13223 return NULL;
13224}
13225
13226
13227static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13228 PyObject *resultobj;
13229 wxDC *arg1 = (wxDC *) 0 ;
13230 wxRect result;
13231 PyObject * obj0 = 0 ;
13232 char *kwnames[] = {
13233 (char *) "self", NULL
13234 };
13235
13236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13239 {
13240 PyThreadState* __tstate = wxPyBeginAllowThreads();
13241 result = wxDC_GetClippingRect(arg1);
13242
13243 wxPyEndAllowThreads(__tstate);
13244 if (PyErr_Occurred()) SWIG_fail;
13245 }
13246 {
13247 wxRect * resultptr;
13248 resultptr = new wxRect((wxRect &) result);
2f4c0a16 13249 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
13250 }
13251 return resultobj;
13252 fail:
13253 return NULL;
13254}
13255
13256
13257static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13258 PyObject *resultobj;
13259 wxDC *arg1 = (wxDC *) 0 ;
423f194a 13260 int result;
d14a1e28
RD
13261 PyObject * obj0 = 0 ;
13262 char *kwnames[] = {
13263 (char *) "self", NULL
13264 };
13265
13266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13269 {
13270 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13271 result = (int)((wxDC const *)arg1)->GetCharHeight();
d14a1e28
RD
13272
13273 wxPyEndAllowThreads(__tstate);
13274 if (PyErr_Occurred()) SWIG_fail;
13275 }
2f4c0a16 13276 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13277 return resultobj;
13278 fail:
13279 return NULL;
13280}
13281
13282
13283static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13284 PyObject *resultobj;
13285 wxDC *arg1 = (wxDC *) 0 ;
423f194a 13286 int result;
d14a1e28
RD
13287 PyObject * obj0 = 0 ;
13288 char *kwnames[] = {
13289 (char *) "self", NULL
13290 };
13291
13292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13295 {
13296 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13297 result = (int)((wxDC const *)arg1)->GetCharWidth();
d14a1e28
RD
13298
13299 wxPyEndAllowThreads(__tstate);
13300 if (PyErr_Occurred()) SWIG_fail;
13301 }
2f4c0a16 13302 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13303 return resultobj;
13304 fail:
13305 return NULL;
13306}
13307
13308
13309static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13310 PyObject *resultobj;
13311 wxDC *arg1 = (wxDC *) 0 ;
13312 wxString *arg2 = 0 ;
423f194a
RD
13313 int *arg3 = (int *) 0 ;
13314 int *arg4 = (int *) 0 ;
13315 bool temp2 = False ;
13316 int temp3 ;
13317 int temp4 ;
d14a1e28
RD
13318 PyObject * obj0 = 0 ;
13319 PyObject * obj1 = 0 ;
13320 char *kwnames[] = {
13321 (char *) "self",(char *) "string", NULL
13322 };
13323
13324 arg3 = &temp3;
13325 arg4 = &temp4;
13326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13329 {
13330 arg2 = wxString_in_helper(obj1);
13331 if (arg2 == NULL) SWIG_fail;
423f194a 13332 temp2 = True;
d14a1e28
RD
13333 }
13334 {
13335 PyThreadState* __tstate = wxPyBeginAllowThreads();
13336 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13337
13338 wxPyEndAllowThreads(__tstate);
13339 if (PyErr_Occurred()) SWIG_fail;
13340 }
13341 Py_INCREF(Py_None); resultobj = Py_None;
13342 {
13343 PyObject *o = PyInt_FromLong((long) (*arg3));
13344 resultobj = t_output_helper(resultobj,o);
13345 }
13346 {
13347 PyObject *o = PyInt_FromLong((long) (*arg4));
13348 resultobj = t_output_helper(resultobj,o);
13349 }
13350 {
13351 if (temp2)
13352 delete arg2;
13353 }
13354 return resultobj;
13355 fail:
13356 {
13357 if (temp2)
13358 delete arg2;
13359 }
13360 return NULL;
13361}
13362
13363
13364static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13365 PyObject *resultobj;
13366 wxDC *arg1 = (wxDC *) 0 ;
13367 wxString *arg2 = 0 ;
423f194a
RD
13368 int *arg3 = (int *) 0 ;
13369 int *arg4 = (int *) 0 ;
13370 int *arg5 = (int *) 0 ;
13371 int *arg6 = (int *) 0 ;
d14a1e28 13372 wxFont *arg7 = (wxFont *) NULL ;
423f194a
RD
13373 bool temp2 = False ;
13374 int temp3 ;
13375 int temp4 ;
13376 int temp5 ;
13377 int temp6 ;
d14a1e28
RD
13378 PyObject * obj0 = 0 ;
13379 PyObject * obj1 = 0 ;
13380 PyObject * obj2 = 0 ;
13381 char *kwnames[] = {
13382 (char *) "self",(char *) "string",(char *) "font", NULL
13383 };
13384
13385 arg3 = &temp3;
13386 arg4 = &temp4;
13387 arg5 = &temp5;
13388 arg6 = &temp6;
13389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
13390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13392 {
13393 arg2 = wxString_in_helper(obj1);
13394 if (arg2 == NULL) SWIG_fail;
423f194a 13395 temp2 = True;
d14a1e28
RD
13396 }
13397 if (obj2) {
2f4c0a16
RD
13398 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13400 }
13401 {
13402 PyThreadState* __tstate = wxPyBeginAllowThreads();
13403 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13404
13405 wxPyEndAllowThreads(__tstate);
13406 if (PyErr_Occurred()) SWIG_fail;
13407 }
13408 Py_INCREF(Py_None); resultobj = Py_None;
13409 {
13410 PyObject *o = PyInt_FromLong((long) (*arg3));
13411 resultobj = t_output_helper(resultobj,o);
13412 }
13413 {
13414 PyObject *o = PyInt_FromLong((long) (*arg4));
13415 resultobj = t_output_helper(resultobj,o);
13416 }
13417 {
13418 PyObject *o = PyInt_FromLong((long) (*arg5));
13419 resultobj = t_output_helper(resultobj,o);
13420 }
13421 {
13422 PyObject *o = PyInt_FromLong((long) (*arg6));
13423 resultobj = t_output_helper(resultobj,o);
13424 }
13425 {
13426 if (temp2)
13427 delete arg2;
13428 }
13429 return resultobj;
13430 fail:
13431 {
13432 if (temp2)
13433 delete arg2;
13434 }
13435 return NULL;
13436}
13437
13438
13439static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13440 PyObject *resultobj;
13441 wxDC *arg1 = (wxDC *) 0 ;
13442 wxString *arg2 = 0 ;
423f194a
RD
13443 int *arg3 = (int *) 0 ;
13444 int *arg4 = (int *) 0 ;
13445 int *arg5 = (int *) 0 ;
d14a1e28 13446 wxFont *arg6 = (wxFont *) NULL ;
423f194a
RD
13447 bool temp2 = False ;
13448 int temp3 ;
13449 int temp4 ;
13450 int temp5 ;
d14a1e28
RD
13451 PyObject * obj0 = 0 ;
13452 PyObject * obj1 = 0 ;
13453 PyObject * obj2 = 0 ;
13454 char *kwnames[] = {
13455 (char *) "self",(char *) "text",(char *) "font", NULL
13456 };
13457
13458 arg3 = &temp3;
13459 arg4 = &temp4;
13460 arg5 = &temp5;
13461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
13462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13464 {
13465 arg2 = wxString_in_helper(obj1);
13466 if (arg2 == NULL) SWIG_fail;
423f194a 13467 temp2 = True;
d14a1e28
RD
13468 }
13469 if (obj2) {
2f4c0a16
RD
13470 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13472 }
13473 {
13474 PyThreadState* __tstate = wxPyBeginAllowThreads();
13475 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13476
13477 wxPyEndAllowThreads(__tstate);
13478 if (PyErr_Occurred()) SWIG_fail;
13479 }
13480 Py_INCREF(Py_None); resultobj = Py_None;
13481 {
13482 PyObject *o = PyInt_FromLong((long) (*arg3));
13483 resultobj = t_output_helper(resultobj,o);
13484 }
13485 {
13486 PyObject *o = PyInt_FromLong((long) (*arg4));
13487 resultobj = t_output_helper(resultobj,o);
13488 }
13489 {
13490 PyObject *o = PyInt_FromLong((long) (*arg5));
13491 resultobj = t_output_helper(resultobj,o);
13492 }
13493 {
13494 if (temp2)
13495 delete arg2;
13496 }
13497 return resultobj;
13498 fail:
13499 {
13500 if (temp2)
13501 delete arg2;
13502 }
13503 return NULL;
13504}
13505
13506
db914595
RD
13507static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13508 PyObject *resultobj;
13509 wxDC *arg1 = (wxDC *) 0 ;
13510 wxString *arg2 = 0 ;
13511 wxArrayInt result;
13512 bool temp2 = False ;
13513 PyObject * obj0 = 0 ;
13514 PyObject * obj1 = 0 ;
13515 char *kwnames[] = {
13516 (char *) "self",(char *) "text", NULL
13517 };
13518
13519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
db914595
RD
13522 {
13523 arg2 = wxString_in_helper(obj1);
13524 if (arg2 == NULL) SWIG_fail;
13525 temp2 = True;
13526 }
13527 {
13528 PyThreadState* __tstate = wxPyBeginAllowThreads();
13529 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13530
13531 wxPyEndAllowThreads(__tstate);
13532 if (PyErr_Occurred()) SWIG_fail;
13533 }
13534 {
13535 resultobj = PyList_New(0);
13536 size_t idx;
13537 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13538 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13539 PyList_Append(resultobj, val);
13540 Py_DECREF(val);
13541 }
13542 }
13543 {
13544 if (temp2)
13545 delete arg2;
13546 }
13547 return resultobj;
13548 fail:
13549 {
13550 if (temp2)
13551 delete arg2;
13552 }
13553 return NULL;
13554}
13555
13556
44127b65
RD
13557static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13558 PyObject *resultobj;
13559 wxDC *arg1 = (wxDC *) 0 ;
13560 wxSize result;
13561 PyObject * obj0 = 0 ;
13562 char *kwnames[] = {
13563 (char *) "self", NULL
13564 };
13565
13566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
44127b65
RD
13569 {
13570 PyThreadState* __tstate = wxPyBeginAllowThreads();
13571 result = (arg1)->GetSize();
13572
13573 wxPyEndAllowThreads(__tstate);
13574 if (PyErr_Occurred()) SWIG_fail;
13575 }
13576 {
13577 wxSize * resultptr;
13578 resultptr = new wxSize((wxSize &) result);
2f4c0a16 13579 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
44127b65
RD
13580 }
13581 return resultobj;
13582 fail:
13583 return NULL;
13584}
13585
13586
d14a1e28
RD
13587static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13588 PyObject *resultobj;
13589 wxDC *arg1 = (wxDC *) 0 ;
13590 int *arg2 = (int *) 0 ;
13591 int *arg3 = (int *) 0 ;
13592 int temp2 ;
13593 int temp3 ;
13594 PyObject * obj0 = 0 ;
13595 char *kwnames[] = {
13596 (char *) "self", NULL
13597 };
13598
13599 arg2 = &temp2;
13600 arg3 = &temp3;
13601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13604 {
13605 PyThreadState* __tstate = wxPyBeginAllowThreads();
13606 (arg1)->GetSize(arg2,arg3);
13607
13608 wxPyEndAllowThreads(__tstate);
13609 if (PyErr_Occurred()) SWIG_fail;
13610 }
13611 Py_INCREF(Py_None); resultobj = Py_None;
13612 {
13613 PyObject *o = PyInt_FromLong((long) (*arg2));
13614 resultobj = t_output_helper(resultobj,o);
13615 }
13616 {
13617 PyObject *o = PyInt_FromLong((long) (*arg3));
13618 resultobj = t_output_helper(resultobj,o);
13619 }
13620 return resultobj;
13621 fail:
13622 return NULL;
13623}
13624
13625
44127b65 13626static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13627 PyObject *resultobj;
13628 wxDC *arg1 = (wxDC *) 0 ;
13629 wxSize result;
13630 PyObject * obj0 = 0 ;
13631 char *kwnames[] = {
13632 (char *) "self", NULL
13633 };
13634
44127b65 13635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13638 {
13639 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 13640 result = ((wxDC const *)arg1)->GetSizeMM();
d14a1e28
RD
13641
13642 wxPyEndAllowThreads(__tstate);
13643 if (PyErr_Occurred()) SWIG_fail;
13644 }
13645 {
13646 wxSize * resultptr;
13647 resultptr = new wxSize((wxSize &) result);
2f4c0a16 13648 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
13649 }
13650 return resultobj;
13651 fail:
13652 return NULL;
13653}
13654
13655
44127b65 13656static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13657 PyObject *resultobj;
13658 wxDC *arg1 = (wxDC *) 0 ;
13659 int *arg2 = (int *) 0 ;
13660 int *arg3 = (int *) 0 ;
13661 int temp2 ;
13662 int temp3 ;
13663 PyObject * obj0 = 0 ;
13664 char *kwnames[] = {
13665 (char *) "self", NULL
13666 };
13667
13668 arg2 = &temp2;
13669 arg3 = &temp3;
44127b65 13670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13673 {
13674 PyThreadState* __tstate = wxPyBeginAllowThreads();
13675 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13676
13677 wxPyEndAllowThreads(__tstate);
13678 if (PyErr_Occurred()) SWIG_fail;
13679 }
13680 Py_INCREF(Py_None); resultobj = Py_None;
13681 {
13682 PyObject *o = PyInt_FromLong((long) (*arg2));
13683 resultobj = t_output_helper(resultobj,o);
13684 }
13685 {
13686 PyObject *o = PyInt_FromLong((long) (*arg3));
13687 resultobj = t_output_helper(resultobj,o);
13688 }
13689 return resultobj;
13690 fail:
13691 return NULL;
13692}
13693
13694
d14a1e28
RD
13695static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13696 PyObject *resultobj;
13697 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13698 int arg2 ;
13699 int result;
d14a1e28 13700 PyObject * obj0 = 0 ;
8edf1c75 13701 PyObject * obj1 = 0 ;
d14a1e28
RD
13702 char *kwnames[] = {
13703 (char *) "self",(char *) "x", NULL
13704 };
13705
8edf1c75 13706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13709 arg2 = (int) SWIG_AsInt(obj1);
13710 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13711 {
13712 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13713 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
d14a1e28
RD
13714
13715 wxPyEndAllowThreads(__tstate);
13716 if (PyErr_Occurred()) SWIG_fail;
13717 }
2f4c0a16 13718 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13719 return resultobj;
13720 fail:
13721 return NULL;
13722}
13723
13724
13725static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13726 PyObject *resultobj;
13727 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13728 int arg2 ;
13729 int result;
d14a1e28 13730 PyObject * obj0 = 0 ;
8edf1c75 13731 PyObject * obj1 = 0 ;
d14a1e28
RD
13732 char *kwnames[] = {
13733 (char *) "self",(char *) "y", NULL
13734 };
13735
8edf1c75 13736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13739 arg2 = (int) SWIG_AsInt(obj1);
13740 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13741 {
13742 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13743 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
d14a1e28
RD
13744
13745 wxPyEndAllowThreads(__tstate);
13746 if (PyErr_Occurred()) SWIG_fail;
13747 }
2f4c0a16 13748 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13749 return resultobj;
13750 fail:
13751 return NULL;
13752}
13753
13754
13755static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13756 PyObject *resultobj;
13757 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13758 int arg2 ;
13759 int result;
d14a1e28 13760 PyObject * obj0 = 0 ;
8edf1c75 13761 PyObject * obj1 = 0 ;
d14a1e28
RD
13762 char *kwnames[] = {
13763 (char *) "self",(char *) "x", NULL
13764 };
13765
8edf1c75 13766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13769 arg2 = (int) SWIG_AsInt(obj1);
13770 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13771 {
13772 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13773 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
d14a1e28
RD
13774
13775 wxPyEndAllowThreads(__tstate);
13776 if (PyErr_Occurred()) SWIG_fail;
13777 }
2f4c0a16 13778 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13779 return resultobj;
13780 fail:
13781 return NULL;
13782}
13783
13784
13785static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13786 PyObject *resultobj;
13787 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13788 int arg2 ;
13789 int result;
d14a1e28 13790 PyObject * obj0 = 0 ;
8edf1c75 13791 PyObject * obj1 = 0 ;
d14a1e28
RD
13792 char *kwnames[] = {
13793 (char *) "self",(char *) "y", NULL
13794 };
13795
8edf1c75 13796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13799 arg2 = (int) SWIG_AsInt(obj1);
13800 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13801 {
13802 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13803 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
d14a1e28
RD
13804
13805 wxPyEndAllowThreads(__tstate);
13806 if (PyErr_Occurred()) SWIG_fail;
13807 }
2f4c0a16 13808 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13809 return resultobj;
13810 fail:
13811 return NULL;
13812}
13813
13814
13815static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13816 PyObject *resultobj;
13817 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13818 int arg2 ;
13819 int result;
d14a1e28 13820 PyObject * obj0 = 0 ;
8edf1c75 13821 PyObject * obj1 = 0 ;
d14a1e28
RD
13822 char *kwnames[] = {
13823 (char *) "self",(char *) "x", NULL
13824 };
13825
8edf1c75 13826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13829 arg2 = (int) SWIG_AsInt(obj1);
13830 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13831 {
13832 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13833 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
d14a1e28
RD
13834
13835 wxPyEndAllowThreads(__tstate);
13836 if (PyErr_Occurred()) SWIG_fail;
13837 }
2f4c0a16 13838 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13839 return resultobj;
13840 fail:
13841 return NULL;
13842}
13843
13844
13845static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13846 PyObject *resultobj;
13847 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13848 int arg2 ;
13849 int result;
d14a1e28 13850 PyObject * obj0 = 0 ;
8edf1c75 13851 PyObject * obj1 = 0 ;
d14a1e28
RD
13852 char *kwnames[] = {
13853 (char *) "self",(char *) "y", NULL
13854 };
13855
8edf1c75 13856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13859 arg2 = (int) SWIG_AsInt(obj1);
13860 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13861 {
13862 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13863 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
d14a1e28
RD
13864
13865 wxPyEndAllowThreads(__tstate);
13866 if (PyErr_Occurred()) SWIG_fail;
13867 }
2f4c0a16 13868 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13869 return resultobj;
13870 fail:
13871 return NULL;
13872}
13873
13874
13875static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13876 PyObject *resultobj;
13877 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13878 int arg2 ;
13879 int result;
d14a1e28 13880 PyObject * obj0 = 0 ;
8edf1c75 13881 PyObject * obj1 = 0 ;
d14a1e28
RD
13882 char *kwnames[] = {
13883 (char *) "self",(char *) "x", NULL
13884 };
13885
8edf1c75 13886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13889 arg2 = (int) SWIG_AsInt(obj1);
13890 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13891 {
13892 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13893 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
d14a1e28
RD
13894
13895 wxPyEndAllowThreads(__tstate);
13896 if (PyErr_Occurred()) SWIG_fail;
13897 }
2f4c0a16 13898 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13899 return resultobj;
13900 fail:
13901 return NULL;
13902}
13903
13904
13905static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13906 PyObject *resultobj;
13907 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
13908 int arg2 ;
13909 int result;
d14a1e28 13910 PyObject * obj0 = 0 ;
8edf1c75 13911 PyObject * obj1 = 0 ;
d14a1e28
RD
13912 char *kwnames[] = {
13913 (char *) "self",(char *) "y", NULL
13914 };
13915
8edf1c75 13916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
13917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13919 arg2 = (int) SWIG_AsInt(obj1);
13920 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13921 {
13922 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13923 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
d14a1e28
RD
13924
13925 wxPyEndAllowThreads(__tstate);
13926 if (PyErr_Occurred()) SWIG_fail;
13927 }
2f4c0a16 13928 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13929 return resultobj;
13930 fail:
13931 return NULL;
13932}
13933
13934
13935static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13936 PyObject *resultobj;
13937 wxDC *arg1 = (wxDC *) 0 ;
13938 bool result;
13939 PyObject * obj0 = 0 ;
13940 char *kwnames[] = {
13941 (char *) "self", NULL
13942 };
13943
13944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13947 {
13948 PyThreadState* __tstate = wxPyBeginAllowThreads();
13949 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13950
13951 wxPyEndAllowThreads(__tstate);
13952 if (PyErr_Occurred()) SWIG_fail;
13953 }
4e760a36 13954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13955 return resultobj;
13956 fail:
13957 return NULL;
13958}
13959
13960
13961static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13962 PyObject *resultobj;
13963 wxDC *arg1 = (wxDC *) 0 ;
13964 bool result;
13965 PyObject * obj0 = 0 ;
13966 char *kwnames[] = {
13967 (char *) "self", NULL
13968 };
13969
13970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
2f4c0a16
RD
13971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13973 {
13974 PyThreadState* __tstate = wxPyBeginAllowThreads();
13975 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13976
13977 wxPyEndAllowThreads(__tstate);
13978 if (PyErr_Occurred()) SWIG_fail;
13979 }
4e760a36 13980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13981 return resultobj;
13982 fail:
13983 return NULL;
13984}
13985
13986
13987static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13988 PyObject *resultobj;
13989 wxDC *arg1 = (wxDC *) 0 ;
13990 int result;
13991 PyObject * obj0 = 0 ;
13992 char *kwnames[] = {
13993 (char *) "self", NULL
13994 };
13995
13996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
2f4c0a16
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 result = (int)((wxDC const *)arg1)->GetDepth();
14002
14003 wxPyEndAllowThreads(__tstate);
14004 if (PyErr_Occurred()) SWIG_fail;
14005 }
2f4c0a16 14006 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14007 return resultobj;
14008 fail:
14009 return NULL;
14010}
14011
14012
14013static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
14014 PyObject *resultobj;
14015 wxDC *arg1 = (wxDC *) 0 ;
14016 wxSize result;
14017 PyObject * obj0 = 0 ;
14018 char *kwnames[] = {
14019 (char *) "self", NULL
14020 };
14021
14022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14025 {
14026 PyThreadState* __tstate = wxPyBeginAllowThreads();
14027 result = ((wxDC const *)arg1)->GetPPI();
14028
14029 wxPyEndAllowThreads(__tstate);
14030 if (PyErr_Occurred()) SWIG_fail;
14031 }
14032 {
14033 wxSize * resultptr;
14034 resultptr = new wxSize((wxSize &) result);
2f4c0a16 14035 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
14036 }
14037 return resultobj;
14038 fail:
14039 return NULL;
14040}
14041
14042
14043static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
14044 PyObject *resultobj;
14045 wxDC *arg1 = (wxDC *) 0 ;
14046 bool result;
14047 PyObject * obj0 = 0 ;
14048 char *kwnames[] = {
14049 (char *) "self", NULL
14050 };
14051
14052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14055 {
14056 PyThreadState* __tstate = wxPyBeginAllowThreads();
14057 result = (bool)((wxDC const *)arg1)->Ok();
14058
14059 wxPyEndAllowThreads(__tstate);
14060 if (PyErr_Occurred()) SWIG_fail;
14061 }
4e760a36 14062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14063 return resultobj;
14064 fail:
14065 return NULL;
14066}
14067
14068
14069static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14070 PyObject *resultobj;
14071 wxDC *arg1 = (wxDC *) 0 ;
14072 int result;
14073 PyObject * obj0 = 0 ;
14074 char *kwnames[] = {
14075 (char *) "self", NULL
14076 };
14077
14078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14081 {
14082 PyThreadState* __tstate = wxPyBeginAllowThreads();
14083 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14084
14085 wxPyEndAllowThreads(__tstate);
14086 if (PyErr_Occurred()) SWIG_fail;
14087 }
2f4c0a16 14088 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14089 return resultobj;
14090 fail:
14091 return NULL;
14092}
14093
14094
14095static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14096 PyObject *resultobj;
14097 wxDC *arg1 = (wxDC *) 0 ;
14098 wxBrush *result;
14099 PyObject * obj0 = 0 ;
14100 char *kwnames[] = {
14101 (char *) "self", NULL
14102 };
14103
14104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14107 {
14108 PyThreadState* __tstate = wxPyBeginAllowThreads();
14109 {
14110 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14111 result = (wxBrush *) &_result_ref;
14112 }
14113
14114 wxPyEndAllowThreads(__tstate);
14115 if (PyErr_Occurred()) SWIG_fail;
14116 }
fe763115
RD
14117 {
14118 wxBrush* resultptr = new wxBrush(*result);
14119 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14120 }
d14a1e28
RD
14121 return resultobj;
14122 fail:
14123 return NULL;
14124}
14125
14126
14127static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14128 PyObject *resultobj;
14129 wxDC *arg1 = (wxDC *) 0 ;
14130 wxBrush *result;
14131 PyObject * obj0 = 0 ;
14132 char *kwnames[] = {
14133 (char *) "self", NULL
14134 };
14135
14136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14139 {
14140 PyThreadState* __tstate = wxPyBeginAllowThreads();
14141 {
14142 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14143 result = (wxBrush *) &_result_ref;
14144 }
14145
14146 wxPyEndAllowThreads(__tstate);
14147 if (PyErr_Occurred()) SWIG_fail;
14148 }
fe763115
RD
14149 {
14150 wxBrush* resultptr = new wxBrush(*result);
14151 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14152 }
d14a1e28
RD
14153 return resultobj;
14154 fail:
14155 return NULL;
14156}
14157
14158
14159static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14160 PyObject *resultobj;
14161 wxDC *arg1 = (wxDC *) 0 ;
14162 wxFont *result;
14163 PyObject * obj0 = 0 ;
14164 char *kwnames[] = {
14165 (char *) "self", NULL
14166 };
14167
14168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14171 {
14172 PyThreadState* __tstate = wxPyBeginAllowThreads();
14173 {
14174 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14175 result = (wxFont *) &_result_ref;
14176 }
14177
14178 wxPyEndAllowThreads(__tstate);
14179 if (PyErr_Occurred()) SWIG_fail;
14180 }
fe763115
RD
14181 {
14182 wxFont* resultptr = new wxFont(*result);
14183 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14184 }
d14a1e28
RD
14185 return resultobj;
14186 fail:
14187 return NULL;
14188}
14189
14190
14191static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14192 PyObject *resultobj;
14193 wxDC *arg1 = (wxDC *) 0 ;
14194 wxPen *result;
14195 PyObject * obj0 = 0 ;
14196 char *kwnames[] = {
14197 (char *) "self", NULL
14198 };
14199
14200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14203 {
14204 PyThreadState* __tstate = wxPyBeginAllowThreads();
14205 {
14206 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14207 result = (wxPen *) &_result_ref;
14208 }
14209
14210 wxPyEndAllowThreads(__tstate);
14211 if (PyErr_Occurred()) SWIG_fail;
14212 }
fe763115
RD
14213 {
14214 wxPen* resultptr = new wxPen(*result);
14215 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14216 }
d14a1e28
RD
14217 return resultobj;
14218 fail:
14219 return NULL;
14220}
14221
14222
14223static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14224 PyObject *resultobj;
14225 wxDC *arg1 = (wxDC *) 0 ;
14226 wxColour *result;
14227 PyObject * obj0 = 0 ;
14228 char *kwnames[] = {
14229 (char *) "self", NULL
14230 };
14231
14232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14235 {
14236 PyThreadState* __tstate = wxPyBeginAllowThreads();
14237 {
14238 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14239 result = (wxColour *) &_result_ref;
14240 }
14241
14242 wxPyEndAllowThreads(__tstate);
14243 if (PyErr_Occurred()) SWIG_fail;
14244 }
2f4c0a16 14245 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
14246 return resultobj;
14247 fail:
14248 return NULL;
14249}
14250
14251
14252static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14253 PyObject *resultobj;
14254 wxDC *arg1 = (wxDC *) 0 ;
14255 wxColour *result;
14256 PyObject * obj0 = 0 ;
14257 char *kwnames[] = {
14258 (char *) "self", NULL
14259 };
14260
14261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14264 {
14265 PyThreadState* __tstate = wxPyBeginAllowThreads();
14266 {
14267 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14268 result = (wxColour *) &_result_ref;
14269 }
14270
14271 wxPyEndAllowThreads(__tstate);
14272 if (PyErr_Occurred()) SWIG_fail;
14273 }
2f4c0a16 14274 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
14275 return resultobj;
14276 fail:
14277 return NULL;
14278}
14279
14280
14281static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14282 PyObject *resultobj;
14283 wxDC *arg1 = (wxDC *) 0 ;
14284 wxColour *arg2 = 0 ;
14285 wxColour temp2 ;
14286 PyObject * obj0 = 0 ;
14287 PyObject * obj1 = 0 ;
14288 char *kwnames[] = {
14289 (char *) "self",(char *) "colour", NULL
14290 };
14291
14292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
14293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14295 {
14296 arg2 = &temp2;
14297 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14298 }
14299 {
14300 PyThreadState* __tstate = wxPyBeginAllowThreads();
14301 (arg1)->SetTextForeground((wxColour const &)*arg2);
14302
14303 wxPyEndAllowThreads(__tstate);
14304 if (PyErr_Occurred()) SWIG_fail;
14305 }
14306 Py_INCREF(Py_None); resultobj = Py_None;
14307 return resultobj;
14308 fail:
14309 return NULL;
14310}
14311
14312
14313static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14314 PyObject *resultobj;
14315 wxDC *arg1 = (wxDC *) 0 ;
14316 wxColour *arg2 = 0 ;
14317 wxColour temp2 ;
14318 PyObject * obj0 = 0 ;
14319 PyObject * obj1 = 0 ;
14320 char *kwnames[] = {
14321 (char *) "self",(char *) "colour", NULL
14322 };
14323
14324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
14325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14327 {
14328 arg2 = &temp2;
14329 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14330 }
14331 {
14332 PyThreadState* __tstate = wxPyBeginAllowThreads();
14333 (arg1)->SetTextBackground((wxColour const &)*arg2);
14334
14335 wxPyEndAllowThreads(__tstate);
14336 if (PyErr_Occurred()) SWIG_fail;
14337 }
14338 Py_INCREF(Py_None); resultobj = Py_None;
14339 return resultobj;
14340 fail:
14341 return NULL;
14342}
14343
14344
14345static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14346 PyObject *resultobj;
14347 wxDC *arg1 = (wxDC *) 0 ;
14348 int result;
14349 PyObject * obj0 = 0 ;
14350 char *kwnames[] = {
14351 (char *) "self", NULL
14352 };
14353
14354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14357 {
14358 PyThreadState* __tstate = wxPyBeginAllowThreads();
14359 result = (int)((wxDC const *)arg1)->GetMapMode();
14360
14361 wxPyEndAllowThreads(__tstate);
14362 if (PyErr_Occurred()) SWIG_fail;
14363 }
2f4c0a16 14364 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14365 return resultobj;
14366 fail:
14367 return NULL;
14368}
14369
14370
14371static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14372 PyObject *resultobj;
14373 wxDC *arg1 = (wxDC *) 0 ;
14374 int arg2 ;
14375 PyObject * obj0 = 0 ;
8edf1c75 14376 PyObject * obj1 = 0 ;
d14a1e28
RD
14377 char *kwnames[] = {
14378 (char *) "self",(char *) "mode", NULL
14379 };
14380
8edf1c75 14381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
14382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14384 arg2 = (int) SWIG_AsInt(obj1);
14385 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14386 {
14387 PyThreadState* __tstate = wxPyBeginAllowThreads();
14388 (arg1)->SetMapMode(arg2);
14389
14390 wxPyEndAllowThreads(__tstate);
14391 if (PyErr_Occurred()) SWIG_fail;
14392 }
14393 Py_INCREF(Py_None); resultobj = Py_None;
14394 return resultobj;
14395 fail:
14396 return NULL;
14397}
14398
14399
14400static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14401 PyObject *resultobj;
14402 wxDC *arg1 = (wxDC *) 0 ;
14403 double *arg2 = (double *) 0 ;
14404 double *arg3 = (double *) 0 ;
14405 double temp2 ;
14406 double temp3 ;
14407 PyObject * obj0 = 0 ;
14408 char *kwnames[] = {
14409 (char *) "self", NULL
14410 };
14411
14412 arg2 = &temp2;
14413 arg3 = &temp3;
14414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14417 {
14418 PyThreadState* __tstate = wxPyBeginAllowThreads();
14419 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14420
14421 wxPyEndAllowThreads(__tstate);
14422 if (PyErr_Occurred()) SWIG_fail;
14423 }
14424 Py_INCREF(Py_None); resultobj = Py_None;
14425 {
14426 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14427 resultobj = t_output_helper(resultobj,o);
14428 }
14429 {
14430 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14431 resultobj = t_output_helper(resultobj,o);
14432 }
14433 return resultobj;
14434 fail:
14435 return NULL;
14436}
14437
14438
14439static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14440 PyObject *resultobj;
14441 wxDC *arg1 = (wxDC *) 0 ;
14442 double arg2 ;
14443 double arg3 ;
14444 PyObject * obj0 = 0 ;
8edf1c75
RD
14445 PyObject * obj1 = 0 ;
14446 PyObject * obj2 = 0 ;
d14a1e28
RD
14447 char *kwnames[] = {
14448 (char *) "self",(char *) "x",(char *) "y", NULL
14449 };
14450
8edf1c75 14451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
14452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14454 arg2 = (double) SWIG_AsDouble(obj1);
14455 if (PyErr_Occurred()) SWIG_fail;
14456 arg3 = (double) SWIG_AsDouble(obj2);
14457 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14458 {
14459 PyThreadState* __tstate = wxPyBeginAllowThreads();
14460 (arg1)->SetUserScale(arg2,arg3);
14461
14462 wxPyEndAllowThreads(__tstate);
14463 if (PyErr_Occurred()) SWIG_fail;
14464 }
14465 Py_INCREF(Py_None); resultobj = Py_None;
14466 return resultobj;
14467 fail:
14468 return NULL;
14469}
14470
14471
14472static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14473 PyObject *resultobj;
14474 wxDC *arg1 = (wxDC *) 0 ;
14475 double *arg2 = (double *) 0 ;
14476 double *arg3 = (double *) 0 ;
14477 double temp2 ;
14478 double temp3 ;
14479 PyObject * obj0 = 0 ;
14480 char *kwnames[] = {
14481 (char *) "self", NULL
14482 };
14483
14484 arg2 = &temp2;
14485 arg3 = &temp3;
14486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14489 {
14490 PyThreadState* __tstate = wxPyBeginAllowThreads();
14491 (arg1)->GetLogicalScale(arg2,arg3);
14492
14493 wxPyEndAllowThreads(__tstate);
14494 if (PyErr_Occurred()) SWIG_fail;
14495 }
14496 Py_INCREF(Py_None); resultobj = Py_None;
14497 {
14498 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14499 resultobj = t_output_helper(resultobj,o);
14500 }
14501 {
14502 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14503 resultobj = t_output_helper(resultobj,o);
14504 }
14505 return resultobj;
14506 fail:
14507 return NULL;
14508}
14509
14510
14511static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14512 PyObject *resultobj;
14513 wxDC *arg1 = (wxDC *) 0 ;
14514 double arg2 ;
14515 double arg3 ;
14516 PyObject * obj0 = 0 ;
8edf1c75
RD
14517 PyObject * obj1 = 0 ;
14518 PyObject * obj2 = 0 ;
d14a1e28
RD
14519 char *kwnames[] = {
14520 (char *) "self",(char *) "x",(char *) "y", NULL
14521 };
14522
8edf1c75 14523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
14524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14526 arg2 = (double) SWIG_AsDouble(obj1);
14527 if (PyErr_Occurred()) SWIG_fail;
14528 arg3 = (double) SWIG_AsDouble(obj2);
14529 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14530 {
14531 PyThreadState* __tstate = wxPyBeginAllowThreads();
14532 (arg1)->SetLogicalScale(arg2,arg3);
14533
14534 wxPyEndAllowThreads(__tstate);
14535 if (PyErr_Occurred()) SWIG_fail;
14536 }
14537 Py_INCREF(Py_None); resultobj = Py_None;
14538 return resultobj;
14539 fail:
14540 return NULL;
14541}
14542
14543
44127b65 14544static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14545 PyObject *resultobj;
14546 wxDC *arg1 = (wxDC *) 0 ;
44127b65 14547 wxPoint result;
d14a1e28
RD
14548 PyObject * obj0 = 0 ;
14549 char *kwnames[] = {
14550 (char *) "self", NULL
14551 };
14552
44127b65 14553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14556 {
14557 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 14558 result = ((wxDC const *)arg1)->GetLogicalOrigin();
d14a1e28
RD
14559
14560 wxPyEndAllowThreads(__tstate);
14561 if (PyErr_Occurred()) SWIG_fail;
14562 }
d14a1e28 14563 {
44127b65
RD
14564 wxPoint * resultptr;
14565 resultptr = new wxPoint((wxPoint &) result);
2f4c0a16 14566 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
14567 }
14568 return resultobj;
14569 fail:
14570 return NULL;
14571}
14572
14573
44127b65 14574static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14575 PyObject *resultobj;
14576 wxDC *arg1 = (wxDC *) 0 ;
44127b65
RD
14577 int *arg2 = (int *) 0 ;
14578 int *arg3 = (int *) 0 ;
14579 int temp2 ;
14580 int temp3 ;
d14a1e28
RD
14581 PyObject * obj0 = 0 ;
14582 char *kwnames[] = {
14583 (char *) "self", NULL
14584 };
14585
44127b65
RD
14586 arg2 = &temp2;
14587 arg3 = &temp3;
14588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14591 {
14592 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 14593 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
d14a1e28
RD
14594
14595 wxPyEndAllowThreads(__tstate);
14596 if (PyErr_Occurred()) SWIG_fail;
14597 }
44127b65 14598 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 14599 {
44127b65
RD
14600 PyObject *o = PyInt_FromLong((long) (*arg2));
14601 resultobj = t_output_helper(resultobj,o);
14602 }
14603 {
14604 PyObject *o = PyInt_FromLong((long) (*arg3));
14605 resultobj = t_output_helper(resultobj,o);
d14a1e28
RD
14606 }
14607 return resultobj;
14608 fail:
14609 return NULL;
14610}
14611
14612
14613static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14614 PyObject *resultobj;
14615 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
14616 int arg2 ;
14617 int arg3 ;
d14a1e28 14618 PyObject * obj0 = 0 ;
8edf1c75
RD
14619 PyObject * obj1 = 0 ;
14620 PyObject * obj2 = 0 ;
d14a1e28
RD
14621 char *kwnames[] = {
14622 (char *) "self",(char *) "x",(char *) "y", NULL
14623 };
14624
8edf1c75 14625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
14626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14628 arg2 = (int) SWIG_AsInt(obj1);
14629 if (PyErr_Occurred()) SWIG_fail;
14630 arg3 = (int) SWIG_AsInt(obj2);
14631 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14632 {
14633 PyThreadState* __tstate = wxPyBeginAllowThreads();
14634 (arg1)->SetLogicalOrigin(arg2,arg3);
14635
14636 wxPyEndAllowThreads(__tstate);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 }
14639 Py_INCREF(Py_None); resultobj = Py_None;
14640 return resultobj;
14641 fail:
14642 return NULL;
14643}
14644
14645
44127b65 14646static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14647 PyObject *resultobj;
14648 wxDC *arg1 = (wxDC *) 0 ;
44127b65 14649 wxPoint result;
d14a1e28
RD
14650 PyObject * obj0 = 0 ;
14651 char *kwnames[] = {
14652 (char *) "self", NULL
14653 };
14654
44127b65 14655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14658 {
14659 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 14660 result = ((wxDC const *)arg1)->GetDeviceOrigin();
d14a1e28
RD
14661
14662 wxPyEndAllowThreads(__tstate);
14663 if (PyErr_Occurred()) SWIG_fail;
14664 }
d14a1e28 14665 {
44127b65
RD
14666 wxPoint * resultptr;
14667 resultptr = new wxPoint((wxPoint &) result);
2f4c0a16 14668 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
14669 }
14670 return resultobj;
14671 fail:
14672 return NULL;
14673}
14674
14675
44127b65 14676static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14677 PyObject *resultobj;
14678 wxDC *arg1 = (wxDC *) 0 ;
44127b65
RD
14679 int *arg2 = (int *) 0 ;
14680 int *arg3 = (int *) 0 ;
14681 int temp2 ;
14682 int temp3 ;
d14a1e28
RD
14683 PyObject * obj0 = 0 ;
14684 char *kwnames[] = {
14685 (char *) "self", NULL
14686 };
14687
44127b65
RD
14688 arg2 = &temp2;
14689 arg3 = &temp3;
14690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14693 {
14694 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 14695 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
d14a1e28
RD
14696
14697 wxPyEndAllowThreads(__tstate);
14698 if (PyErr_Occurred()) SWIG_fail;
14699 }
44127b65 14700 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 14701 {
44127b65
RD
14702 PyObject *o = PyInt_FromLong((long) (*arg2));
14703 resultobj = t_output_helper(resultobj,o);
14704 }
14705 {
14706 PyObject *o = PyInt_FromLong((long) (*arg3));
14707 resultobj = t_output_helper(resultobj,o);
d14a1e28
RD
14708 }
14709 return resultobj;
14710 fail:
14711 return NULL;
14712}
14713
14714
14715static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14716 PyObject *resultobj;
14717 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
14718 int arg2 ;
14719 int arg3 ;
d14a1e28 14720 PyObject * obj0 = 0 ;
8edf1c75
RD
14721 PyObject * obj1 = 0 ;
14722 PyObject * obj2 = 0 ;
d14a1e28
RD
14723 char *kwnames[] = {
14724 (char *) "self",(char *) "x",(char *) "y", NULL
14725 };
14726
8edf1c75 14727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
14728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14730 arg2 = (int) SWIG_AsInt(obj1);
14731 if (PyErr_Occurred()) SWIG_fail;
14732 arg3 = (int) SWIG_AsInt(obj2);
14733 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14734 {
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
14736 (arg1)->SetDeviceOrigin(arg2,arg3);
14737
14738 wxPyEndAllowThreads(__tstate);
14739 if (PyErr_Occurred()) SWIG_fail;
14740 }
14741 Py_INCREF(Py_None); resultobj = Py_None;
14742 return resultobj;
14743 fail:
14744 return NULL;
14745}
14746
14747
14748static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14749 PyObject *resultobj;
14750 wxDC *arg1 = (wxDC *) 0 ;
14751 bool arg2 ;
14752 bool arg3 ;
14753 PyObject * obj0 = 0 ;
14754 PyObject * obj1 = 0 ;
14755 PyObject * obj2 = 0 ;
14756 char *kwnames[] = {
14757 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14758 };
14759
14760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
14761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14763 arg2 = (bool) SWIG_AsBool(obj1);
14764 if (PyErr_Occurred()) SWIG_fail;
14765 arg3 = (bool) SWIG_AsBool(obj2);
14766 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14767 {
14768 PyThreadState* __tstate = wxPyBeginAllowThreads();
14769 (arg1)->SetAxisOrientation(arg2,arg3);
14770
14771 wxPyEndAllowThreads(__tstate);
14772 if (PyErr_Occurred()) SWIG_fail;
14773 }
14774 Py_INCREF(Py_None); resultobj = Py_None;
14775 return resultobj;
14776 fail:
14777 return NULL;
14778}
14779
14780
14781static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14782 PyObject *resultobj;
14783 wxDC *arg1 = (wxDC *) 0 ;
14784 int result;
14785 PyObject * obj0 = 0 ;
14786 char *kwnames[] = {
14787 (char *) "self", NULL
14788 };
14789
14790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14793 {
14794 PyThreadState* __tstate = wxPyBeginAllowThreads();
14795 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14796
14797 wxPyEndAllowThreads(__tstate);
14798 if (PyErr_Occurred()) SWIG_fail;
14799 }
2f4c0a16 14800 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14801 return resultobj;
14802 fail:
14803 return NULL;
14804}
14805
14806
14807static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14808 PyObject *resultobj;
14809 wxDC *arg1 = (wxDC *) 0 ;
14810 int arg2 ;
14811 PyObject * obj0 = 0 ;
8edf1c75 14812 PyObject * obj1 = 0 ;
d14a1e28
RD
14813 char *kwnames[] = {
14814 (char *) "self",(char *) "function", NULL
14815 };
14816
8edf1c75 14817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
14818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14820 arg2 = (int) SWIG_AsInt(obj1);
14821 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14822 {
14823 PyThreadState* __tstate = wxPyBeginAllowThreads();
14824 (arg1)->SetLogicalFunction(arg2);
14825
14826 wxPyEndAllowThreads(__tstate);
14827 if (PyErr_Occurred()) SWIG_fail;
14828 }
14829 Py_INCREF(Py_None); resultobj = Py_None;
14830 return resultobj;
14831 fail:
14832 return NULL;
14833}
14834
14835
14836static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14837 PyObject *resultobj;
14838 wxDC *arg1 = (wxDC *) 0 ;
14839 bool arg2 ;
14840 PyObject * obj0 = 0 ;
14841 PyObject * obj1 = 0 ;
14842 char *kwnames[] = {
14843 (char *) "self",(char *) "opt", NULL
14844 };
14845
14846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
14847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14849 arg2 = (bool) SWIG_AsBool(obj1);
14850 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14851 {
14852 PyThreadState* __tstate = wxPyBeginAllowThreads();
14853 (arg1)->SetOptimization(arg2);
14854
14855 wxPyEndAllowThreads(__tstate);
14856 if (PyErr_Occurred()) SWIG_fail;
14857 }
14858 Py_INCREF(Py_None); resultobj = Py_None;
14859 return resultobj;
14860 fail:
14861 return NULL;
14862}
14863
14864
14865static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14866 PyObject *resultobj;
14867 wxDC *arg1 = (wxDC *) 0 ;
14868 bool result;
14869 PyObject * obj0 = 0 ;
14870 char *kwnames[] = {
14871 (char *) "self", NULL
14872 };
14873
14874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14877 {
14878 PyThreadState* __tstate = wxPyBeginAllowThreads();
14879 result = (bool)(arg1)->GetOptimization();
14880
14881 wxPyEndAllowThreads(__tstate);
14882 if (PyErr_Occurred()) SWIG_fail;
14883 }
4e760a36 14884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14885 return resultobj;
14886 fail:
14887 return NULL;
14888}
14889
14890
14891static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14892 PyObject *resultobj;
14893 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
14894 int arg2 ;
14895 int arg3 ;
d14a1e28 14896 PyObject * obj0 = 0 ;
8edf1c75
RD
14897 PyObject * obj1 = 0 ;
14898 PyObject * obj2 = 0 ;
d14a1e28
RD
14899 char *kwnames[] = {
14900 (char *) "self",(char *) "x",(char *) "y", NULL
14901 };
14902
8edf1c75 14903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
14904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14906 arg2 = (int) SWIG_AsInt(obj1);
14907 if (PyErr_Occurred()) SWIG_fail;
14908 arg3 = (int) SWIG_AsInt(obj2);
14909 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14910 {
14911 PyThreadState* __tstate = wxPyBeginAllowThreads();
14912 (arg1)->CalcBoundingBox(arg2,arg3);
14913
14914 wxPyEndAllowThreads(__tstate);
14915 if (PyErr_Occurred()) SWIG_fail;
14916 }
14917 Py_INCREF(Py_None); resultobj = Py_None;
14918 return resultobj;
14919 fail:
14920 return NULL;
14921}
14922
14923
14924static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14925 PyObject *resultobj;
14926 wxDC *arg1 = (wxDC *) 0 ;
14927 PyObject * obj0 = 0 ;
14928 char *kwnames[] = {
14929 (char *) "self", NULL
14930 };
14931
14932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14935 {
14936 PyThreadState* __tstate = wxPyBeginAllowThreads();
14937 (arg1)->ResetBoundingBox();
14938
14939 wxPyEndAllowThreads(__tstate);
14940 if (PyErr_Occurred()) SWIG_fail;
14941 }
14942 Py_INCREF(Py_None); resultobj = Py_None;
14943 return resultobj;
14944 fail:
14945 return NULL;
14946}
14947
14948
14949static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14950 PyObject *resultobj;
14951 wxDC *arg1 = (wxDC *) 0 ;
423f194a 14952 int result;
d14a1e28
RD
14953 PyObject * obj0 = 0 ;
14954 char *kwnames[] = {
14955 (char *) "self", NULL
14956 };
14957
14958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14961 {
14962 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 14963 result = (int)((wxDC const *)arg1)->MinX();
d14a1e28
RD
14964
14965 wxPyEndAllowThreads(__tstate);
14966 if (PyErr_Occurred()) SWIG_fail;
14967 }
2f4c0a16 14968 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14969 return resultobj;
14970 fail:
14971 return NULL;
14972}
14973
14974
14975static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14976 PyObject *resultobj;
14977 wxDC *arg1 = (wxDC *) 0 ;
423f194a 14978 int result;
d14a1e28
RD
14979 PyObject * obj0 = 0 ;
14980 char *kwnames[] = {
14981 (char *) "self", NULL
14982 };
14983
14984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
2f4c0a16
RD
14985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14987 {
14988 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 14989 result = (int)((wxDC const *)arg1)->MaxX();
d14a1e28
RD
14990
14991 wxPyEndAllowThreads(__tstate);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 }
2f4c0a16 14994 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14995 return resultobj;
14996 fail:
14997 return NULL;
14998}
14999
15000
15001static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
15002 PyObject *resultobj;
15003 wxDC *arg1 = (wxDC *) 0 ;
423f194a 15004 int result;
d14a1e28
RD
15005 PyObject * obj0 = 0 ;
15006 char *kwnames[] = {
15007 (char *) "self", NULL
15008 };
15009
15010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15013 {
15014 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 15015 result = (int)((wxDC const *)arg1)->MinY();
d14a1e28
RD
15016
15017 wxPyEndAllowThreads(__tstate);
15018 if (PyErr_Occurred()) SWIG_fail;
15019 }
2f4c0a16 15020 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
15021 return resultobj;
15022 fail:
15023 return NULL;
15024}
15025
15026
15027static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
15028 PyObject *resultobj;
15029 wxDC *arg1 = (wxDC *) 0 ;
423f194a 15030 int result;
d14a1e28
RD
15031 PyObject * obj0 = 0 ;
15032 char *kwnames[] = {
15033 (char *) "self", NULL
15034 };
15035
15036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15039 {
15040 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 15041 result = (int)((wxDC const *)arg1)->MaxY();
d14a1e28
RD
15042
15043 wxPyEndAllowThreads(__tstate);
15044 if (PyErr_Occurred()) SWIG_fail;
15045 }
2f4c0a16 15046 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
15047 return resultobj;
15048 fail:
15049 return NULL;
15050}
15051
15052
15053static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15054 PyObject *resultobj;
15055 wxDC *arg1 = (wxDC *) 0 ;
15056 int *arg2 = (int *) 0 ;
15057 int *arg3 = (int *) 0 ;
15058 int *arg4 = (int *) 0 ;
15059 int *arg5 = (int *) 0 ;
15060 int temp2 ;
15061 int temp3 ;
15062 int temp4 ;
15063 int temp5 ;
15064 PyObject * obj0 = 0 ;
15065 char *kwnames[] = {
15066 (char *) "self", NULL
15067 };
15068
15069 arg2 = &temp2;
15070 arg3 = &temp3;
15071 arg4 = &temp4;
15072 arg5 = &temp5;
15073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15076 {
15077 PyThreadState* __tstate = wxPyBeginAllowThreads();
15078 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15079
15080 wxPyEndAllowThreads(__tstate);
15081 if (PyErr_Occurred()) SWIG_fail;
15082 }
15083 Py_INCREF(Py_None); resultobj = Py_None;
15084 {
15085 PyObject *o = PyInt_FromLong((long) (*arg2));
15086 resultobj = t_output_helper(resultobj,o);
15087 }
15088 {
15089 PyObject *o = PyInt_FromLong((long) (*arg3));
15090 resultobj = t_output_helper(resultobj,o);
15091 }
15092 {
15093 PyObject *o = PyInt_FromLong((long) (*arg4));
15094 resultobj = t_output_helper(resultobj,o);
15095 }
15096 {
15097 PyObject *o = PyInt_FromLong((long) (*arg5));
15098 resultobj = t_output_helper(resultobj,o);
15099 }
15100 return resultobj;
15101 fail:
15102 return NULL;
15103}
15104
15105
15106static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
15107 PyObject *resultobj;
15108 wxDC *arg1 = (wxDC *) 0 ;
15109 PyObject *arg2 = (PyObject *) 0 ;
15110 PyObject *arg3 = (PyObject *) 0 ;
15111 PyObject *arg4 = (PyObject *) 0 ;
15112 PyObject *result;
15113 PyObject * obj0 = 0 ;
15114 PyObject * obj1 = 0 ;
15115 PyObject * obj2 = 0 ;
15116 PyObject * obj3 = 0 ;
15117 char *kwnames[] = {
15118 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15119 };
15120
15121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
15122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15124 arg2 = obj1;
15125 arg3 = obj2;
15126 arg4 = obj3;
15127 {
15128 PyThreadState* __tstate = wxPyBeginAllowThreads();
15129 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15130
15131 wxPyEndAllowThreads(__tstate);
15132 if (PyErr_Occurred()) SWIG_fail;
15133 }
15134 resultobj = result;
15135 return resultobj;
15136 fail:
15137 return NULL;
15138}
15139
15140
15141static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
15142 PyObject *resultobj;
15143 wxDC *arg1 = (wxDC *) 0 ;
15144 PyObject *arg2 = (PyObject *) 0 ;
15145 PyObject *arg3 = (PyObject *) 0 ;
15146 PyObject *arg4 = (PyObject *) 0 ;
15147 PyObject *result;
15148 PyObject * obj0 = 0 ;
15149 PyObject * obj1 = 0 ;
15150 PyObject * obj2 = 0 ;
15151 PyObject * obj3 = 0 ;
15152 char *kwnames[] = {
15153 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15154 };
15155
15156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
15157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15159 arg2 = obj1;
15160 arg3 = obj2;
15161 arg4 = obj3;
15162 {
15163 PyThreadState* __tstate = wxPyBeginAllowThreads();
15164 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15165
15166 wxPyEndAllowThreads(__tstate);
15167 if (PyErr_Occurred()) SWIG_fail;
15168 }
15169 resultobj = result;
15170 return resultobj;
15171 fail:
15172 return NULL;
15173}
15174
15175
15176static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
15177 PyObject *resultobj;
15178 wxDC *arg1 = (wxDC *) 0 ;
15179 PyObject *arg2 = (PyObject *) 0 ;
15180 PyObject *arg3 = (PyObject *) 0 ;
15181 PyObject *arg4 = (PyObject *) 0 ;
15182 PyObject *result;
15183 PyObject * obj0 = 0 ;
15184 PyObject * obj1 = 0 ;
15185 PyObject * obj2 = 0 ;
15186 PyObject * obj3 = 0 ;
15187 char *kwnames[] = {
15188 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15189 };
15190
15191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
15192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15194 arg2 = obj1;
15195 arg3 = obj2;
15196 arg4 = obj3;
15197 {
15198 PyThreadState* __tstate = wxPyBeginAllowThreads();
15199 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15200
15201 wxPyEndAllowThreads(__tstate);
15202 if (PyErr_Occurred()) SWIG_fail;
15203 }
15204 resultobj = result;
15205 return resultobj;
15206 fail:
15207 return NULL;
15208}
15209
15210
15211static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
15212 PyObject *resultobj;
15213 wxDC *arg1 = (wxDC *) 0 ;
15214 PyObject *arg2 = (PyObject *) 0 ;
15215 PyObject *arg3 = (PyObject *) 0 ;
15216 PyObject *arg4 = (PyObject *) 0 ;
15217 PyObject *result;
15218 PyObject * obj0 = 0 ;
15219 PyObject * obj1 = 0 ;
15220 PyObject * obj2 = 0 ;
15221 PyObject * obj3 = 0 ;
15222 char *kwnames[] = {
15223 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15224 };
15225
15226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
15227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15229 arg2 = obj1;
15230 arg3 = obj2;
15231 arg4 = obj3;
15232 {
15233 PyThreadState* __tstate = wxPyBeginAllowThreads();
15234 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15235
15236 wxPyEndAllowThreads(__tstate);
15237 if (PyErr_Occurred()) SWIG_fail;
15238 }
15239 resultobj = result;
15240 return resultobj;
15241 fail:
15242 return NULL;
15243}
15244
15245
15246static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
15247 PyObject *resultobj;
15248 wxDC *arg1 = (wxDC *) 0 ;
15249 PyObject *arg2 = (PyObject *) 0 ;
15250 PyObject *arg3 = (PyObject *) 0 ;
15251 PyObject *arg4 = (PyObject *) 0 ;
15252 PyObject *result;
15253 PyObject * obj0 = 0 ;
15254 PyObject * obj1 = 0 ;
15255 PyObject * obj2 = 0 ;
15256 PyObject * obj3 = 0 ;
15257 char *kwnames[] = {
15258 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15259 };
15260
15261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
15262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15264 arg2 = obj1;
15265 arg3 = obj2;
15266 arg4 = obj3;
15267 {
15268 PyThreadState* __tstate = wxPyBeginAllowThreads();
15269 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15270
15271 wxPyEndAllowThreads(__tstate);
15272 if (PyErr_Occurred()) SWIG_fail;
15273 }
15274 resultobj = result;
15275 return resultobj;
15276 fail:
15277 return NULL;
15278}
15279
15280
15281static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15282 PyObject *resultobj;
15283 wxDC *arg1 = (wxDC *) 0 ;
15284 PyObject *arg2 = (PyObject *) 0 ;
15285 PyObject *arg3 = (PyObject *) 0 ;
15286 PyObject *arg4 = (PyObject *) 0 ;
15287 PyObject *arg5 = (PyObject *) 0 ;
15288 PyObject *result;
15289 PyObject * obj0 = 0 ;
15290 PyObject * obj1 = 0 ;
15291 PyObject * obj2 = 0 ;
15292 PyObject * obj3 = 0 ;
15293 PyObject * obj4 = 0 ;
15294 char *kwnames[] = {
15295 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15296 };
15297
15298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
15299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15301 arg2 = obj1;
15302 arg3 = obj2;
15303 arg4 = obj3;
15304 arg5 = obj4;
15305 {
15306 PyThreadState* __tstate = wxPyBeginAllowThreads();
15307 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15308
15309 wxPyEndAllowThreads(__tstate);
15310 if (PyErr_Occurred()) SWIG_fail;
15311 }
15312 resultobj = result;
15313 return resultobj;
15314 fail:
15315 return NULL;
15316}
15317
15318
15319static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15320 PyObject *obj;
15321 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15322 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15323 Py_INCREF(obj);
15324 return Py_BuildValue((char *)"");
15325}
15326static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15327 PyObject *resultobj;
15328 wxMemoryDC *result;
15329 char *kwnames[] = {
15330 NULL
15331 };
15332
15333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15334 {
15335 PyThreadState* __tstate = wxPyBeginAllowThreads();
15336 result = (wxMemoryDC *)new wxMemoryDC();
15337
15338 wxPyEndAllowThreads(__tstate);
15339 if (PyErr_Occurred()) SWIG_fail;
15340 }
2f4c0a16 15341 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
d14a1e28
RD
15342 return resultobj;
15343 fail:
15344 return NULL;
15345}
15346
15347
15348static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15349 PyObject *resultobj;
15350 wxDC *arg1 = (wxDC *) 0 ;
15351 wxMemoryDC *result;
15352 PyObject * obj0 = 0 ;
15353 char *kwnames[] = {
15354 (char *) "oldDC", NULL
15355 };
15356
15357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15360 {
15361 PyThreadState* __tstate = wxPyBeginAllowThreads();
15362 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15363
15364 wxPyEndAllowThreads(__tstate);
15365 if (PyErr_Occurred()) SWIG_fail;
15366 }
2f4c0a16 15367 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
d14a1e28
RD
15368 return resultobj;
15369 fail:
15370 return NULL;
15371}
15372
15373
15374static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15375 PyObject *resultobj;
15376 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15377 wxBitmap *arg2 = 0 ;
15378 PyObject * obj0 = 0 ;
15379 PyObject * obj1 = 0 ;
15380 char *kwnames[] = {
15381 (char *) "self",(char *) "bitmap", NULL
15382 };
15383
15384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
15385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15387 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15388 SWIG_POINTER_EXCEPTION | 0)) == -1)
15389 SWIG_fail;
d14a1e28 15390 if (arg2 == NULL) {
2f4c0a16
RD
15391 PyErr_SetString(PyExc_TypeError,"null reference");
15392 SWIG_fail;
d14a1e28
RD
15393 }
15394 {
15395 PyThreadState* __tstate = wxPyBeginAllowThreads();
15396 (arg1)->SelectObject((wxBitmap const &)*arg2);
15397
15398 wxPyEndAllowThreads(__tstate);
15399 if (PyErr_Occurred()) SWIG_fail;
15400 }
15401 Py_INCREF(Py_None); resultobj = Py_None;
15402 return resultobj;
15403 fail:
15404 return NULL;
15405}
15406
15407
15408static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15409 PyObject *obj;
15410 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15411 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15412 Py_INCREF(obj);
15413 return Py_BuildValue((char *)"");
15414}
db914595 15415static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
d14a1e28
RD
15416 PyObject *resultobj;
15417 wxDC *arg1 = (wxDC *) 0 ;
15418 wxBitmap *arg2 = 0 ;
15419 wxBufferedDC *result;
15420 PyObject * obj0 = 0 ;
15421 PyObject * obj1 = 0 ;
d14a1e28 15422
db914595 15423 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
2f4c0a16
RD
15424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15426 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15427 SWIG_POINTER_EXCEPTION | 0)) == -1)
15428 SWIG_fail;
d14a1e28 15429 if (arg2 == NULL) {
2f4c0a16
RD
15430 PyErr_SetString(PyExc_TypeError,"null reference");
15431 SWIG_fail;
d14a1e28
RD
15432 }
15433 {
15434 PyThreadState* __tstate = wxPyBeginAllowThreads();
15435 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15436
15437 wxPyEndAllowThreads(__tstate);
15438 if (PyErr_Occurred()) SWIG_fail;
15439 }
2f4c0a16 15440 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
d14a1e28
RD
15441 return resultobj;
15442 fail:
15443 return NULL;
15444}
15445
15446
db914595 15447static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
d14a1e28
RD
15448 PyObject *resultobj;
15449 wxDC *arg1 = (wxDC *) 0 ;
15450 wxSize *arg2 = 0 ;
15451 wxBufferedDC *result;
15452 wxSize temp2 ;
15453 PyObject * obj0 = 0 ;
15454 PyObject * obj1 = 0 ;
db914595 15455
328fcd84 15456 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
2f4c0a16
RD
15457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
db914595
RD
15459 {
15460 arg2 = &temp2;
15461 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15462 }
db914595
RD
15463 {
15464 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 15465 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
db914595
RD
15466
15467 wxPyEndAllowThreads(__tstate);
15468 if (PyErr_Occurred()) SWIG_fail;
15469 }
2f4c0a16 15470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
db914595
RD
15471 return resultobj;
15472 fail:
15473 return NULL;
15474}
15475
15476
15477static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15478 int argc;
328fcd84 15479 PyObject *argv[3];
db914595
RD
15480 int ii;
15481
15482 argc = PyObject_Length(args);
328fcd84 15483 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
db914595
RD
15484 argv[ii] = PyTuple_GetItem(args,ii);
15485 }
15486 if (argc == 2) {
15487 int _v;
15488 {
15489 void *ptr;
2f4c0a16 15490 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
db914595
RD
15491 _v = 0;
15492 PyErr_Clear();
15493 } else {
15494 _v = 1;
15495 }
15496 }
15497 if (_v) {
15498 {
15499 void *ptr;
2f4c0a16 15500 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
db914595
RD
15501 _v = 0;
15502 PyErr_Clear();
15503 } else {
15504 _v = 1;
15505 }
15506 }
15507 if (_v) {
15508 return _wrap_new_BufferedDC__SWIG_0(self,args);
15509 }
15510 }
15511 }
328fcd84 15512 if (argc == 2) {
db914595
RD
15513 int _v;
15514 {
15515 void *ptr;
2f4c0a16 15516 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
db914595
RD
15517 _v = 0;
15518 PyErr_Clear();
15519 } else {
15520 _v = 1;
15521 }
15522 }
15523 if (_v) {
15524 {
15525 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15526 }
15527 if (_v) {
328fcd84 15528 return _wrap_new_BufferedDC__SWIG_1(self,args);
db914595
RD
15529 }
15530 }
15531 }
d14a1e28 15532
db914595
RD
15533 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15534 return NULL;
15535}
15536
15537
15538static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15539 PyObject *resultobj;
15540 wxDC *arg1 = (wxDC *) 0 ;
15541 wxSize *arg2 = 0 ;
db914595
RD
15542 wxBufferedDC *result;
15543 wxSize temp2 ;
15544 PyObject * obj0 = 0 ;
15545 PyObject * obj1 = 0 ;
db914595 15546
328fcd84 15547 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
2f4c0a16
RD
15548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15550 {
15551 arg2 = &temp2;
15552 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15553 }
15554 {
15555 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 15556 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
d14a1e28
RD
15557
15558 wxPyEndAllowThreads(__tstate);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 }
2f4c0a16 15561 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
d14a1e28
RD
15562 return resultobj;
15563 fail:
15564 return NULL;
15565}
15566
15567
328fcd84 15568static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15569 PyObject *resultobj;
15570 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15571 PyObject * obj0 = 0 ;
15572 char *kwnames[] = {
15573 (char *) "self", NULL
15574 };
15575
328fcd84 15576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15579 {
15580 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 15581 delete arg1;
d14a1e28
RD
15582
15583 wxPyEndAllowThreads(__tstate);
15584 if (PyErr_Occurred()) SWIG_fail;
15585 }
15586 Py_INCREF(Py_None); resultobj = Py_None;
15587 return resultobj;
15588 fail:
15589 return NULL;
15590}
15591
15592
328fcd84 15593static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15594 PyObject *resultobj;
328fcd84 15595 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
db914595 15596 PyObject * obj0 = 0 ;
328fcd84
RD
15597 char *kwnames[] = {
15598 (char *) "self", NULL
15599 };
db914595 15600
328fcd84 15601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
db914595
RD
15604 {
15605 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 15606 (arg1)->UnMask();
db914595
RD
15607
15608 wxPyEndAllowThreads(__tstate);
15609 if (PyErr_Occurred()) SWIG_fail;
15610 }
328fcd84 15611 Py_INCREF(Py_None); resultobj = Py_None;
db914595
RD
15612 return resultobj;
15613 fail:
15614 return NULL;
15615}
15616
15617
328fcd84
RD
15618static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15619 PyObject *obj;
15620 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15621 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15622 Py_INCREF(obj);
15623 return Py_BuildValue((char *)"");
15624}
15625static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
db914595
RD
15626 PyObject *resultobj;
15627 wxWindow *arg1 = (wxWindow *) 0 ;
328fcd84
RD
15628 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15629 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
d14a1e28
RD
15630 wxBufferedPaintDC *result;
15631 PyObject * obj0 = 0 ;
15632 PyObject * obj1 = 0 ;
328fcd84
RD
15633 char *kwnames[] = {
15634 (char *) "window",(char *) "buffer", NULL
15635 };
d14a1e28 15636
328fcd84 15637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
15638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15640 if (obj1) {
2f4c0a16
RD
15641 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15642 SWIG_POINTER_EXCEPTION | 0)) == -1)
15643 SWIG_fail;
328fcd84 15644 if (arg2 == NULL) {
2f4c0a16
RD
15645 PyErr_SetString(PyExc_TypeError,"null reference");
15646 SWIG_fail;
d14a1e28
RD
15647 }
15648 }
15649 {
15650 PyThreadState* __tstate = wxPyBeginAllowThreads();
328fcd84 15651 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
d14a1e28
RD
15652
15653 wxPyEndAllowThreads(__tstate);
15654 if (PyErr_Occurred()) SWIG_fail;
15655 }
2f4c0a16 15656 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
d14a1e28
RD
15657 return resultobj;
15658 fail:
15659 return NULL;
15660}
15661
15662
15663static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15664 PyObject *obj;
15665 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15666 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15667 Py_INCREF(obj);
15668 return Py_BuildValue((char *)"");
15669}
15670static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15671 PyObject *resultobj;
15672 wxScreenDC *result;
15673 char *kwnames[] = {
15674 NULL
15675 };
15676
15677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15678 {
15679 PyThreadState* __tstate = wxPyBeginAllowThreads();
15680 result = (wxScreenDC *)new wxScreenDC();
15681
15682 wxPyEndAllowThreads(__tstate);
15683 if (PyErr_Occurred()) SWIG_fail;
15684 }
2f4c0a16 15685 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
d14a1e28
RD
15686 return resultobj;
15687 fail:
15688 return NULL;
15689}
15690
15691
15692static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15693 PyObject *resultobj;
15694 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15695 wxWindow *arg2 = (wxWindow *) 0 ;
15696 bool result;
15697 PyObject * obj0 = 0 ;
15698 PyObject * obj1 = 0 ;
15699 char *kwnames[] = {
15700 (char *) "self",(char *) "window", NULL
15701 };
15702
15703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
15704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15706 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15708 {
15709 PyThreadState* __tstate = wxPyBeginAllowThreads();
15710 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15711
15712 wxPyEndAllowThreads(__tstate);
15713 if (PyErr_Occurred()) SWIG_fail;
15714 }
4e760a36 15715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15716 return resultobj;
15717 fail:
15718 return NULL;
15719}
15720
15721
15722static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15723 PyObject *resultobj;
15724 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15725 wxRect *arg2 = (wxRect *) NULL ;
15726 bool result;
15727 PyObject * obj0 = 0 ;
15728 PyObject * obj1 = 0 ;
15729 char *kwnames[] = {
15730 (char *) "self",(char *) "rect", NULL
15731 };
15732
15733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
15734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15736 if (obj1) {
2f4c0a16
RD
15737 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15739 }
15740 {
15741 PyThreadState* __tstate = wxPyBeginAllowThreads();
15742 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15743
15744 wxPyEndAllowThreads(__tstate);
15745 if (PyErr_Occurred()) SWIG_fail;
15746 }
4e760a36 15747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15748 return resultobj;
15749 fail:
15750 return NULL;
15751}
15752
15753
15754static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15755 PyObject *resultobj;
15756 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15757 bool result;
15758 PyObject * obj0 = 0 ;
15759 char *kwnames[] = {
15760 (char *) "self", NULL
15761 };
15762
15763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15766 {
15767 PyThreadState* __tstate = wxPyBeginAllowThreads();
15768 result = (bool)(arg1)->EndDrawingOnTop();
15769
15770 wxPyEndAllowThreads(__tstate);
15771 if (PyErr_Occurred()) SWIG_fail;
15772 }
4e760a36 15773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15774 return resultobj;
15775 fail:
15776 return NULL;
15777}
15778
15779
15780static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15781 PyObject *obj;
15782 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15783 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15784 Py_INCREF(obj);
15785 return Py_BuildValue((char *)"");
15786}
15787static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15788 PyObject *resultobj;
15789 wxWindow *arg1 = (wxWindow *) 0 ;
15790 wxClientDC *result;
15791 PyObject * obj0 = 0 ;
15792 char *kwnames[] = {
15793 (char *) "win", NULL
15794 };
15795
15796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15799 {
15800 PyThreadState* __tstate = wxPyBeginAllowThreads();
15801 result = (wxClientDC *)new wxClientDC(arg1);
15802
15803 wxPyEndAllowThreads(__tstate);
15804 if (PyErr_Occurred()) SWIG_fail;
15805 }
2f4c0a16 15806 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
d14a1e28
RD
15807 return resultobj;
15808 fail:
15809 return NULL;
15810}
15811
15812
15813static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15814 PyObject *obj;
15815 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15816 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15817 Py_INCREF(obj);
15818 return Py_BuildValue((char *)"");
15819}
15820static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15821 PyObject *resultobj;
15822 wxWindow *arg1 = (wxWindow *) 0 ;
15823 wxPaintDC *result;
15824 PyObject * obj0 = 0 ;
15825 char *kwnames[] = {
15826 (char *) "win", NULL
15827 };
15828
15829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15832 {
15833 PyThreadState* __tstate = wxPyBeginAllowThreads();
15834 result = (wxPaintDC *)new wxPaintDC(arg1);
15835
15836 wxPyEndAllowThreads(__tstate);
15837 if (PyErr_Occurred()) SWIG_fail;
15838 }
2f4c0a16 15839 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
d14a1e28
RD
15840 return resultobj;
15841 fail:
15842 return NULL;
15843}
15844
15845
15846static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15847 PyObject *obj;
15848 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15849 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15850 Py_INCREF(obj);
15851 return Py_BuildValue((char *)"");
15852}
15853static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15854 PyObject *resultobj;
15855 wxWindow *arg1 = (wxWindow *) 0 ;
15856 wxWindowDC *result;
15857 PyObject * obj0 = 0 ;
15858 char *kwnames[] = {
15859 (char *) "win", NULL
15860 };
15861
15862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15865 {
15866 PyThreadState* __tstate = wxPyBeginAllowThreads();
15867 result = (wxWindowDC *)new wxWindowDC(arg1);
15868
15869 wxPyEndAllowThreads(__tstate);
15870 if (PyErr_Occurred()) SWIG_fail;
15871 }
2f4c0a16 15872 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
d14a1e28
RD
15873 return resultobj;
15874 fail:
15875 return NULL;
15876}
15877
15878
15879static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15880 PyObject *obj;
15881 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15882 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15883 Py_INCREF(obj);
15884 return Py_BuildValue((char *)"");
15885}
15886static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15887 PyObject *resultobj;
15888 wxDC *arg1 = 0 ;
15889 bool arg2 ;
15890 wxMirrorDC *result;
15891 PyObject * obj0 = 0 ;
15892 PyObject * obj1 = 0 ;
15893 char *kwnames[] = {
15894 (char *) "dc",(char *) "mirror", NULL
15895 };
15896
15897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
15898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15899 SWIG_POINTER_EXCEPTION | 0)) == -1)
15900 SWIG_fail;
d14a1e28 15901 if (arg1 == NULL) {
2f4c0a16
RD
15902 PyErr_SetString(PyExc_TypeError,"null reference");
15903 SWIG_fail;
83448d71 15904 }
2f4c0a16
RD
15905 arg2 = (bool) SWIG_AsBool(obj1);
15906 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
15907 {
15908 PyThreadState* __tstate = wxPyBeginAllowThreads();
15909 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15910
15911 wxPyEndAllowThreads(__tstate);
15912 if (PyErr_Occurred()) SWIG_fail;
15913 }
2f4c0a16 15914 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
d14a1e28
RD
15915 return resultobj;
15916 fail:
15917 return NULL;
15918}
15919
15920
15921static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15922 PyObject *obj;
15923 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15924 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15925 Py_INCREF(obj);
15926 return Py_BuildValue((char *)"");
15927}
15928static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15929 PyObject *resultobj;
15930 wxPrintData *arg1 = 0 ;
15931 wxPostScriptDC *result;
15932 PyObject * obj0 = 0 ;
15933 char *kwnames[] = {
15934 (char *) "printData", NULL
15935 };
15936
15937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15939 SWIG_POINTER_EXCEPTION | 0)) == -1)
15940 SWIG_fail;
d14a1e28 15941 if (arg1 == NULL) {
2f4c0a16
RD
15942 PyErr_SetString(PyExc_TypeError,"null reference");
15943 SWIG_fail;
d14a1e28
RD
15944 }
15945 {
15946 PyThreadState* __tstate = wxPyBeginAllowThreads();
15947 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15948
15949 wxPyEndAllowThreads(__tstate);
15950 if (PyErr_Occurred()) SWIG_fail;
15951 }
2f4c0a16 15952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
d14a1e28
RD
15953 return resultobj;
15954 fail:
15955 return NULL;
15956}
15957
15958
15959static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15960 PyObject *resultobj;
15961 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15962 wxPrintData *result;
15963 PyObject * obj0 = 0 ;
15964 char *kwnames[] = {
15965 (char *) "self", NULL
15966 };
15967
15968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
2f4c0a16
RD
15969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15971 {
15972 PyThreadState* __tstate = wxPyBeginAllowThreads();
15973 {
15974 wxPrintData &_result_ref = (arg1)->GetPrintData();
15975 result = (wxPrintData *) &_result_ref;
15976 }
15977
15978 wxPyEndAllowThreads(__tstate);
15979 if (PyErr_Occurred()) SWIG_fail;
15980 }
2f4c0a16 15981 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
d14a1e28
RD
15982 return resultobj;
15983 fail:
15984 return NULL;
15985}
15986
15987
15988static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15989 PyObject *resultobj;
15990 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15991 wxPrintData *arg2 = 0 ;
15992 PyObject * obj0 = 0 ;
15993 PyObject * obj1 = 0 ;
15994 char *kwnames[] = {
15995 (char *) "self",(char *) "data", NULL
15996 };
15997
15998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
15999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16001 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16002 SWIG_POINTER_EXCEPTION | 0)) == -1)
16003 SWIG_fail;
d14a1e28 16004 if (arg2 == NULL) {
2f4c0a16
RD
16005 PyErr_SetString(PyExc_TypeError,"null reference");
16006 SWIG_fail;
d14a1e28
RD
16007 }
16008 {
16009 PyThreadState* __tstate = wxPyBeginAllowThreads();
16010 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16011
16012 wxPyEndAllowThreads(__tstate);
16013 if (PyErr_Occurred()) SWIG_fail;
16014 }
16015 Py_INCREF(Py_None); resultobj = Py_None;
16016 return resultobj;
16017 fail:
16018 return NULL;
16019}
16020
16021
16022static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16023 PyObject *resultobj;
16024 int arg1 ;
8edf1c75 16025 PyObject * obj0 = 0 ;
d14a1e28
RD
16026 char *kwnames[] = {
16027 (char *) "ppi", NULL
16028 };
16029
8edf1c75 16030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16031 arg1 = (int) SWIG_AsInt(obj0);
16032 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16033 {
16034 PyThreadState* __tstate = wxPyBeginAllowThreads();
16035 wxPostScriptDC::SetResolution(arg1);
16036
16037 wxPyEndAllowThreads(__tstate);
16038 if (PyErr_Occurred()) SWIG_fail;
16039 }
16040 Py_INCREF(Py_None); resultobj = Py_None;
16041 return resultobj;
16042 fail:
16043 return NULL;
16044}
16045
16046
16047static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16048 PyObject *resultobj;
16049 int result;
16050 char *kwnames[] = {
16051 NULL
16052 };
16053
16054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16055 {
16056 PyThreadState* __tstate = wxPyBeginAllowThreads();
16057 result = (int)wxPostScriptDC::GetResolution();
16058
16059 wxPyEndAllowThreads(__tstate);
16060 if (PyErr_Occurred()) SWIG_fail;
16061 }
2f4c0a16 16062 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16063 return resultobj;
16064 fail:
16065 return NULL;
16066}
16067
16068
16069static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
16070 PyObject *obj;
16071 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16072 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16073 Py_INCREF(obj);
16074 return Py_BuildValue((char *)"");
16075}
16076static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16077 PyObject *resultobj;
16078 wxString const &arg1_defvalue = wxPyEmptyString ;
16079 wxString *arg1 = (wxString *) &arg1_defvalue ;
16080 wxMetaFile *result;
423f194a 16081 bool temp1 = False ;
d14a1e28
RD
16082 PyObject * obj0 = 0 ;
16083 char *kwnames[] = {
16084 (char *) "filename", NULL
16085 };
16086
16087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16088 if (obj0) {
16089 {
16090 arg1 = wxString_in_helper(obj0);
16091 if (arg1 == NULL) SWIG_fail;
423f194a 16092 temp1 = True;
d14a1e28
RD
16093 }
16094 }
16095 {
16096 PyThreadState* __tstate = wxPyBeginAllowThreads();
16097 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16098
16099 wxPyEndAllowThreads(__tstate);
16100 if (PyErr_Occurred()) SWIG_fail;
16101 }
2f4c0a16 16102 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
d14a1e28
RD
16103 {
16104 if (temp1)
16105 delete arg1;
16106 }
16107 return resultobj;
16108 fail:
16109 {
16110 if (temp1)
16111 delete arg1;
16112 }
16113 return NULL;
16114}
16115
16116
16117static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16118 PyObject *resultobj;
16119 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16120 PyObject * obj0 = 0 ;
16121 char *kwnames[] = {
16122 (char *) "self", NULL
16123 };
16124
16125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16128 {
16129 PyThreadState* __tstate = wxPyBeginAllowThreads();
16130 delete arg1;
16131
16132 wxPyEndAllowThreads(__tstate);
16133 if (PyErr_Occurred()) SWIG_fail;
16134 }
16135 Py_INCREF(Py_None); resultobj = Py_None;
16136 return resultobj;
16137 fail:
16138 return NULL;
16139}
16140
16141
16142static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
16143 PyObject *resultobj;
16144 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16145 bool result;
16146 PyObject * obj0 = 0 ;
16147 char *kwnames[] = {
16148 (char *) "self", NULL
16149 };
16150
16151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16154 {
16155 PyThreadState* __tstate = wxPyBeginAllowThreads();
16156 result = (bool)(arg1)->Ok();
16157
16158 wxPyEndAllowThreads(__tstate);
16159 if (PyErr_Occurred()) SWIG_fail;
16160 }
4e760a36 16161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16162 return resultobj;
16163 fail:
16164 return NULL;
16165}
16166
16167
16168static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
16169 PyObject *resultobj;
16170 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16171 int arg2 = (int) 0 ;
16172 int arg3 = (int) 0 ;
16173 bool result;
16174 PyObject * obj0 = 0 ;
8edf1c75
RD
16175 PyObject * obj1 = 0 ;
16176 PyObject * obj2 = 0 ;
d14a1e28
RD
16177 char *kwnames[] = {
16178 (char *) "self",(char *) "width",(char *) "height", NULL
16179 };
16180
8edf1c75 16181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
16182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75 16184 if (obj1) {
2f4c0a16
RD
16185 arg2 = (int) SWIG_AsInt(obj1);
16186 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
16187 }
16188 if (obj2) {
2f4c0a16
RD
16189 arg3 = (int) SWIG_AsInt(obj2);
16190 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 16191 }
d14a1e28
RD
16192 {
16193 PyThreadState* __tstate = wxPyBeginAllowThreads();
16194 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16195
16196 wxPyEndAllowThreads(__tstate);
16197 if (PyErr_Occurred()) SWIG_fail;
16198 }
4e760a36 16199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16200 return resultobj;
16201 fail:
16202 return NULL;
16203}
16204
16205
16206static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16207 PyObject *resultobj;
16208 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16209 wxSize result;
16210 PyObject * obj0 = 0 ;
16211 char *kwnames[] = {
16212 (char *) "self", NULL
16213 };
16214
16215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16218 {
16219 PyThreadState* __tstate = wxPyBeginAllowThreads();
16220 result = (arg1)->GetSize();
16221
16222 wxPyEndAllowThreads(__tstate);
16223 if (PyErr_Occurred()) SWIG_fail;
16224 }
16225 {
16226 wxSize * resultptr;
16227 resultptr = new wxSize((wxSize &) result);
2f4c0a16 16228 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
16229 }
16230 return resultobj;
16231 fail:
16232 return NULL;
16233}
16234
16235
16236static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
16237 PyObject *resultobj;
16238 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16239 int result;
16240 PyObject * obj0 = 0 ;
16241 char *kwnames[] = {
16242 (char *) "self", NULL
16243 };
16244
16245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 result = (int)(arg1)->GetWidth();
16251
16252 wxPyEndAllowThreads(__tstate);
16253 if (PyErr_Occurred()) SWIG_fail;
16254 }
2f4c0a16 16255 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16256 return resultobj;
16257 fail:
16258 return NULL;
16259}
16260
16261
16262static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
16263 PyObject *resultobj;
16264 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16265 int result;
16266 PyObject * obj0 = 0 ;
16267 char *kwnames[] = {
16268 (char *) "self", NULL
16269 };
16270
16271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16274 {
16275 PyThreadState* __tstate = wxPyBeginAllowThreads();
16276 result = (int)(arg1)->GetHeight();
16277
16278 wxPyEndAllowThreads(__tstate);
16279 if (PyErr_Occurred()) SWIG_fail;
16280 }
2f4c0a16 16281 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16282 return resultobj;
16283 fail:
16284 return NULL;
16285}
16286
16287
16288static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
16289 PyObject *resultobj;
16290 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16291 wxString *result;
16292 PyObject * obj0 = 0 ;
16293 char *kwnames[] = {
16294 (char *) "self", NULL
16295 };
16296
16297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16300 {
16301 PyThreadState* __tstate = wxPyBeginAllowThreads();
16302 {
16303 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16304 result = (wxString *) &_result_ref;
16305 }
16306
16307 wxPyEndAllowThreads(__tstate);
16308 if (PyErr_Occurred()) SWIG_fail;
16309 }
f0983263
RD
16310 {
16311#if wxUSE_UNICODE
16312 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16313#else
16314 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16315#endif
16316 }
d14a1e28
RD
16317 return resultobj;
16318 fail:
16319 return NULL;
16320}
16321
16322
16323static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
16324 PyObject *obj;
16325 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16326 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16327 Py_INCREF(obj);
16328 return Py_BuildValue((char *)"");
16329}
16330static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16331 PyObject *resultobj;
16332 wxString const &arg1_defvalue = wxPyEmptyString ;
16333 wxString *arg1 = (wxString *) &arg1_defvalue ;
16334 int arg2 = (int) 0 ;
16335 int arg3 = (int) 0 ;
16336 wxString const &arg4_defvalue = wxPyEmptyString ;
16337 wxString *arg4 = (wxString *) &arg4_defvalue ;
16338 wxMetaFileDC *result;
423f194a
RD
16339 bool temp1 = False ;
16340 bool temp4 = False ;
d14a1e28 16341 PyObject * obj0 = 0 ;
8edf1c75
RD
16342 PyObject * obj1 = 0 ;
16343 PyObject * obj2 = 0 ;
d14a1e28
RD
16344 PyObject * obj3 = 0 ;
16345 char *kwnames[] = {
16346 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16347 };
16348
8edf1c75 16349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
16350 if (obj0) {
16351 {
16352 arg1 = wxString_in_helper(obj0);
16353 if (arg1 == NULL) SWIG_fail;
423f194a 16354 temp1 = True;
d14a1e28
RD
16355 }
16356 }
8edf1c75 16357 if (obj1) {
2f4c0a16
RD
16358 arg2 = (int) SWIG_AsInt(obj1);
16359 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
16360 }
16361 if (obj2) {
2f4c0a16
RD
16362 arg3 = (int) SWIG_AsInt(obj2);
16363 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 16364 }
d14a1e28
RD
16365 if (obj3) {
16366 {
16367 arg4 = wxString_in_helper(obj3);
16368 if (arg4 == NULL) SWIG_fail;
423f194a 16369 temp4 = True;
d14a1e28
RD
16370 }
16371 }
16372 {
16373 PyThreadState* __tstate = wxPyBeginAllowThreads();
16374 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16375
16376 wxPyEndAllowThreads(__tstate);
16377 if (PyErr_Occurred()) SWIG_fail;
16378 }
2f4c0a16 16379 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
d14a1e28
RD
16380 {
16381 if (temp1)
16382 delete arg1;
16383 }
16384 {
16385 if (temp4)
16386 delete arg4;
16387 }
16388 return resultobj;
16389 fail:
16390 {
16391 if (temp1)
16392 delete arg1;
16393 }
16394 {
16395 if (temp4)
16396 delete arg4;
16397 }
16398 return NULL;
16399}
16400
16401
16402static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16403 PyObject *resultobj;
16404 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16405 wxMetaFile *result;
16406 PyObject * obj0 = 0 ;
16407 char *kwnames[] = {
16408 (char *) "self", NULL
16409 };
16410
16411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16414 {
16415 PyThreadState* __tstate = wxPyBeginAllowThreads();
16416 result = (wxMetaFile *)(arg1)->Close();
16417
16418 wxPyEndAllowThreads(__tstate);
16419 if (PyErr_Occurred()) SWIG_fail;
16420 }
2f4c0a16 16421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
d14a1e28
RD
16422 return resultobj;
16423 fail:
16424 return NULL;
16425}
16426
16427
16428static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16429 PyObject *obj;
16430 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16431 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16432 Py_INCREF(obj);
16433 return Py_BuildValue((char *)"");
16434}
16435static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16436 PyObject *resultobj;
16437 wxPrintData *arg1 = 0 ;
16438 wxPrinterDC *result;
16439 PyObject * obj0 = 0 ;
16440 char *kwnames[] = {
16441 (char *) "printData", NULL
16442 };
16443
16444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16446 SWIG_POINTER_EXCEPTION | 0)) == -1)
16447 SWIG_fail;
d14a1e28 16448 if (arg1 == NULL) {
2f4c0a16
RD
16449 PyErr_SetString(PyExc_TypeError,"null reference");
16450 SWIG_fail;
d14a1e28
RD
16451 }
16452 {
16453 PyThreadState* __tstate = wxPyBeginAllowThreads();
16454 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16455
16456 wxPyEndAllowThreads(__tstate);
16457 if (PyErr_Occurred()) SWIG_fail;
16458 }
2f4c0a16 16459 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
d14a1e28
RD
16460 return resultobj;
16461 fail:
16462 return NULL;
16463}
16464
16465
16466static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16467 PyObject *obj;
16468 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16469 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16470 Py_INCREF(obj);
16471 return Py_BuildValue((char *)"");
16472}
16473static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16474 PyObject *resultobj;
16475 int arg1 ;
16476 int arg2 ;
423f194a 16477 int arg3 = (int) True ;
d14a1e28
RD
16478 int arg4 = (int) 1 ;
16479 wxImageList *result;
8edf1c75
RD
16480 PyObject * obj0 = 0 ;
16481 PyObject * obj1 = 0 ;
16482 PyObject * obj2 = 0 ;
16483 PyObject * obj3 = 0 ;
d14a1e28
RD
16484 char *kwnames[] = {
16485 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16486 };
16487
8edf1c75 16488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
16489 arg1 = (int) SWIG_AsInt(obj0);
16490 if (PyErr_Occurred()) SWIG_fail;
16491 arg2 = (int) SWIG_AsInt(obj1);
16492 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 16493 if (obj2) {
2f4c0a16
RD
16494 arg3 = (int) SWIG_AsInt(obj2);
16495 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
16496 }
16497 if (obj3) {
2f4c0a16
RD
16498 arg4 = (int) SWIG_AsInt(obj3);
16499 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 16500 }
d14a1e28
RD
16501 {
16502 PyThreadState* __tstate = wxPyBeginAllowThreads();
16503 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16504
16505 wxPyEndAllowThreads(__tstate);
16506 if (PyErr_Occurred()) SWIG_fail;
16507 }
16508 {
16509 resultobj = wxPyMake_wxObject(result);
16510 }
16511 return resultobj;
16512 fail:
16513 return NULL;
16514}
16515
16516
16517static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16518 PyObject *resultobj;
16519 wxImageList *arg1 = (wxImageList *) 0 ;
16520 PyObject * obj0 = 0 ;
16521 char *kwnames[] = {
16522 (char *) "self", NULL
16523 };
16524
16525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16528 {
16529 PyThreadState* __tstate = wxPyBeginAllowThreads();
16530 delete arg1;
16531
16532 wxPyEndAllowThreads(__tstate);
16533 if (PyErr_Occurred()) SWIG_fail;
16534 }
16535 Py_INCREF(Py_None); resultobj = Py_None;
16536 return resultobj;
16537 fail:
16538 return NULL;
16539}
16540
16541
16542static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16543 PyObject *resultobj;
16544 wxImageList *arg1 = (wxImageList *) 0 ;
16545 wxBitmap *arg2 = 0 ;
16546 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16547 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16548 int result;
16549 PyObject * obj0 = 0 ;
16550 PyObject * obj1 = 0 ;
16551 PyObject * obj2 = 0 ;
16552 char *kwnames[] = {
16553 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16554 };
16555
16556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
16557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16559 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16560 SWIG_POINTER_EXCEPTION | 0)) == -1)
16561 SWIG_fail;
d14a1e28 16562 if (arg2 == NULL) {
2f4c0a16
RD
16563 PyErr_SetString(PyExc_TypeError,"null reference");
16564 SWIG_fail;
d14a1e28
RD
16565 }
16566 if (obj2) {
2f4c0a16
RD
16567 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16568 SWIG_POINTER_EXCEPTION | 0)) == -1)
16569 SWIG_fail;
d14a1e28 16570 if (arg3 == NULL) {
2f4c0a16
RD
16571 PyErr_SetString(PyExc_TypeError,"null reference");
16572 SWIG_fail;
d14a1e28
RD
16573 }
16574 }
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
16577 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16578
16579 wxPyEndAllowThreads(__tstate);
16580 if (PyErr_Occurred()) SWIG_fail;
16581 }
2f4c0a16 16582 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16583 return resultobj;
16584 fail:
16585 return NULL;
16586}
16587
16588
16589static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16590 PyObject *resultobj;
16591 wxImageList *arg1 = (wxImageList *) 0 ;
16592 wxBitmap *arg2 = 0 ;
16593 wxColour *arg3 = 0 ;
16594 int result;
16595 wxColour temp3 ;
16596 PyObject * obj0 = 0 ;
16597 PyObject * obj1 = 0 ;
16598 PyObject * obj2 = 0 ;
16599 char *kwnames[] = {
16600 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16601 };
16602
16603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
16604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16606 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16607 SWIG_POINTER_EXCEPTION | 0)) == -1)
16608 SWIG_fail;
d14a1e28 16609 if (arg2 == NULL) {
2f4c0a16
RD
16610 PyErr_SetString(PyExc_TypeError,"null reference");
16611 SWIG_fail;
d14a1e28
RD
16612 }
16613 {
16614 arg3 = &temp3;
16615 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16616 }
16617 {
16618 PyThreadState* __tstate = wxPyBeginAllowThreads();
16619 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16620
16621 wxPyEndAllowThreads(__tstate);
16622 if (PyErr_Occurred()) SWIG_fail;
16623 }
2f4c0a16 16624 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16625 return resultobj;
16626 fail:
16627 return NULL;
16628}
16629
16630
16631static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16632 PyObject *resultobj;
16633 wxImageList *arg1 = (wxImageList *) 0 ;
16634 wxIcon *arg2 = 0 ;
16635 int result;
16636 PyObject * obj0 = 0 ;
16637 PyObject * obj1 = 0 ;
16638 char *kwnames[] = {
16639 (char *) "self",(char *) "icon", NULL
16640 };
16641
16642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
16643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16645 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16646 SWIG_POINTER_EXCEPTION | 0)) == -1)
16647 SWIG_fail;
d14a1e28 16648 if (arg2 == NULL) {
2f4c0a16
RD
16649 PyErr_SetString(PyExc_TypeError,"null reference");
16650 SWIG_fail;
d14a1e28
RD
16651 }
16652 {
16653 PyThreadState* __tstate = wxPyBeginAllowThreads();
16654 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16655
16656 wxPyEndAllowThreads(__tstate);
16657 if (PyErr_Occurred()) SWIG_fail;
16658 }
2f4c0a16 16659 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16660 return resultobj;
16661 fail:
16662 return NULL;
16663}
16664
16665
16666static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16667 PyObject *resultobj;
16668 wxImageList *arg1 = (wxImageList *) 0 ;
16669 int arg2 ;
16670 wxBitmap *arg3 = 0 ;
16671 wxBitmap const &arg4_defvalue = wxNullBitmap ;
16672 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
16673 bool result;
16674 PyObject * obj0 = 0 ;
8edf1c75 16675 PyObject * obj1 = 0 ;
d14a1e28
RD
16676 PyObject * obj2 = 0 ;
16677 PyObject * obj3 = 0 ;
16678 char *kwnames[] = {
16679 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
16680 };
16681
8edf1c75 16682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
16683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16685 arg2 = (int) SWIG_AsInt(obj1);
16686 if (PyErr_Occurred()) SWIG_fail;
16687 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16688 SWIG_POINTER_EXCEPTION | 0)) == -1)
16689 SWIG_fail;
d14a1e28 16690 if (arg3 == NULL) {
2f4c0a16
RD
16691 PyErr_SetString(PyExc_TypeError,"null reference");
16692 SWIG_fail;
d14a1e28
RD
16693 }
16694 if (obj3) {
2f4c0a16
RD
16695 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16696 SWIG_POINTER_EXCEPTION | 0)) == -1)
16697 SWIG_fail;
d14a1e28 16698 if (arg4 == NULL) {
2f4c0a16
RD
16699 PyErr_SetString(PyExc_TypeError,"null reference");
16700 SWIG_fail;
d14a1e28
RD
16701 }
16702 }
16703 {
16704 PyThreadState* __tstate = wxPyBeginAllowThreads();
16705 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
16706
16707 wxPyEndAllowThreads(__tstate);
16708 if (PyErr_Occurred()) SWIG_fail;
16709 }
4e760a36 16710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16711 return resultobj;
16712 fail:
16713 return NULL;
16714}
16715
16716
16717static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16718 PyObject *resultobj;
16719 wxImageList *arg1 = (wxImageList *) 0 ;
16720 int arg2 ;
16721 wxDC *arg3 = 0 ;
16722 int arg4 ;
16723 int arg5 ;
16724 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
423f194a 16725 bool arg7 = (bool) (bool)False ;
d14a1e28
RD
16726 bool result;
16727 PyObject * obj0 = 0 ;
8edf1c75 16728 PyObject * obj1 = 0 ;
d14a1e28 16729 PyObject * obj2 = 0 ;
8edf1c75
RD
16730 PyObject * obj3 = 0 ;
16731 PyObject * obj4 = 0 ;
16732 PyObject * obj5 = 0 ;
d14a1e28
RD
16733 PyObject * obj6 = 0 ;
16734 char *kwnames[] = {
16735 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16736 };
16737
8edf1c75 16738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
2f4c0a16
RD
16739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16741 arg2 = (int) SWIG_AsInt(obj1);
16742 if (PyErr_Occurred()) SWIG_fail;
16743 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16744 SWIG_POINTER_EXCEPTION | 0)) == -1)
16745 SWIG_fail;
d14a1e28 16746 if (arg3 == NULL) {
2f4c0a16
RD
16747 PyErr_SetString(PyExc_TypeError,"null reference");
16748 SWIG_fail;
8edf1c75 16749 }
2f4c0a16
RD
16750 arg4 = (int) SWIG_AsInt(obj3);
16751 if (PyErr_Occurred()) SWIG_fail;
16752 arg5 = (int) SWIG_AsInt(obj4);
16753 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 16754 if (obj5) {
2f4c0a16
RD
16755 arg6 = (int) SWIG_AsInt(obj5);
16756 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 16757 }
d14a1e28 16758 if (obj6) {
2f4c0a16
RD
16759 arg7 = (bool const) SWIG_AsBool(obj6);
16760 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16761 }
16762 {
16763 PyThreadState* __tstate = wxPyBeginAllowThreads();
16764 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16765
16766 wxPyEndAllowThreads(__tstate);
16767 if (PyErr_Occurred()) SWIG_fail;
16768 }
4e760a36 16769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16770 return resultobj;
16771 fail:
16772 return NULL;
16773}
16774
16775
16776static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16777 PyObject *resultobj;
16778 wxImageList *arg1 = (wxImageList *) 0 ;
16779 int result;
16780 PyObject * obj0 = 0 ;
16781 char *kwnames[] = {
16782 (char *) "self", NULL
16783 };
16784
16785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16788 {
16789 PyThreadState* __tstate = wxPyBeginAllowThreads();
16790 result = (int)(arg1)->GetImageCount();
16791
16792 wxPyEndAllowThreads(__tstate);
16793 if (PyErr_Occurred()) SWIG_fail;
16794 }
2f4c0a16 16795 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16796 return resultobj;
16797 fail:
16798 return NULL;
16799}
16800
16801
16802static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16803 PyObject *resultobj;
16804 wxImageList *arg1 = (wxImageList *) 0 ;
16805 int arg2 ;
16806 bool result;
16807 PyObject * obj0 = 0 ;
8edf1c75 16808 PyObject * obj1 = 0 ;
d14a1e28
RD
16809 char *kwnames[] = {
16810 (char *) "self",(char *) "index", NULL
16811 };
16812
8edf1c75 16813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
16814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16816 arg2 = (int) SWIG_AsInt(obj1);
16817 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16818 {
16819 PyThreadState* __tstate = wxPyBeginAllowThreads();
16820 result = (bool)(arg1)->Remove(arg2);
16821
16822 wxPyEndAllowThreads(__tstate);
16823 if (PyErr_Occurred()) SWIG_fail;
16824 }
4e760a36 16825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16826 return resultobj;
16827 fail:
16828 return NULL;
16829}
16830
16831
16832static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16833 PyObject *resultobj;
16834 wxImageList *arg1 = (wxImageList *) 0 ;
16835 bool result;
16836 PyObject * obj0 = 0 ;
16837 char *kwnames[] = {
16838 (char *) "self", NULL
16839 };
16840
16841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
2f4c0a16
RD
16842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16844 {
16845 PyThreadState* __tstate = wxPyBeginAllowThreads();
16846 result = (bool)(arg1)->RemoveAll();
16847
16848 wxPyEndAllowThreads(__tstate);
16849 if (PyErr_Occurred()) SWIG_fail;
16850 }
4e760a36 16851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16852 return resultobj;
16853 fail:
16854 return NULL;
16855}
16856
16857
16858static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16859 PyObject *resultobj;
16860 wxImageList *arg1 = (wxImageList *) 0 ;
16861 int arg2 ;
16862 int *arg3 = 0 ;
16863 int *arg4 = 0 ;
16864 int temp3 ;
16865 int temp4 ;
16866 PyObject * obj0 = 0 ;
8edf1c75 16867 PyObject * obj1 = 0 ;
d14a1e28
RD
16868 char *kwnames[] = {
16869 (char *) "self",(char *) "index", NULL
16870 };
16871
16872 arg3 = &temp3;
16873 arg4 = &temp4;
8edf1c75 16874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
16875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16877 arg2 = (int) SWIG_AsInt(obj1);
16878 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16879 {
16880 PyThreadState* __tstate = wxPyBeginAllowThreads();
16881 (arg1)->GetSize(arg2,*arg3,*arg4);
16882
16883 wxPyEndAllowThreads(__tstate);
16884 if (PyErr_Occurred()) SWIG_fail;
16885 }
16886 Py_INCREF(Py_None); resultobj = Py_None;
16887 {
16888 PyObject *o = PyInt_FromLong((long) (*arg3));
16889 resultobj = t_output_helper(resultobj,o);
16890 }
16891 {
16892 PyObject *o = PyInt_FromLong((long) (*arg4));
16893 resultobj = t_output_helper(resultobj,o);
16894 }
16895 return resultobj;
16896 fail:
16897 return NULL;
16898}
16899
16900
16901static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16902 PyObject *obj;
16903 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16904 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16905 Py_INCREF(obj);
16906 return Py_BuildValue((char *)"");
16907}
2f4c0a16 16908static int _wrap_NORMAL_FONT_set(PyObject *_val) {
8edf1c75
RD
16909 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16910 return 1;
16911}
16912
16913
16914static PyObject *_wrap_NORMAL_FONT_get() {
16915 PyObject *pyobj;
d14a1e28 16916
2f4c0a16 16917 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
8edf1c75 16918 return pyobj;
d14a1e28
RD
16919}
16920
16921
2f4c0a16 16922static int _wrap_SMALL_FONT_set(PyObject *_val) {
8edf1c75
RD
16923 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16924 return 1;
d14a1e28
RD
16925}
16926
16927
8edf1c75
RD
16928static PyObject *_wrap_SMALL_FONT_get() {
16929 PyObject *pyobj;
d14a1e28 16930
2f4c0a16 16931 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
8edf1c75 16932 return pyobj;
d14a1e28
RD
16933}
16934
16935
2f4c0a16 16936static int _wrap_ITALIC_FONT_set(PyObject *_val) {
8edf1c75
RD
16937 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16938 return 1;
d14a1e28
RD
16939}
16940
16941
8edf1c75
RD
16942static PyObject *_wrap_ITALIC_FONT_get() {
16943 PyObject *pyobj;
d14a1e28 16944
2f4c0a16 16945 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
8edf1c75 16946 return pyobj;
d14a1e28
RD
16947}
16948
16949
2f4c0a16 16950static int _wrap_SWISS_FONT_set(PyObject *_val) {
8edf1c75
RD
16951 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16952 return 1;
d14a1e28
RD
16953}
16954
16955
8edf1c75
RD
16956static PyObject *_wrap_SWISS_FONT_get() {
16957 PyObject *pyobj;
d14a1e28 16958
2f4c0a16 16959 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
8edf1c75 16960 return pyobj;
d14a1e28
RD
16961}
16962
16963
2f4c0a16 16964static int _wrap_RED_PEN_set(PyObject *_val) {
8edf1c75
RD
16965 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16966 return 1;
16967}
16968
16969
16970static PyObject *_wrap_RED_PEN_get() {
16971 PyObject *pyobj;
d14a1e28 16972
2f4c0a16 16973 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 16974 return pyobj;
d14a1e28
RD
16975}
16976
16977
2f4c0a16 16978static int _wrap_CYAN_PEN_set(PyObject *_val) {
8edf1c75
RD
16979 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16980 return 1;
d14a1e28 16981}
8edf1c75
RD
16982
16983
16984static PyObject *_wrap_CYAN_PEN_get() {
16985 PyObject *pyobj;
d14a1e28 16986
2f4c0a16 16987 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 16988 return pyobj;
d14a1e28
RD
16989}
16990
16991
2f4c0a16 16992static int _wrap_GREEN_PEN_set(PyObject *_val) {
8edf1c75
RD
16993 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16994 return 1;
d14a1e28
RD
16995}
16996
16997
8edf1c75
RD
16998static PyObject *_wrap_GREEN_PEN_get() {
16999 PyObject *pyobj;
d14a1e28 17000
2f4c0a16 17001 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17002 return pyobj;
d14a1e28
RD
17003}
17004
17005
2f4c0a16 17006static int _wrap_BLACK_PEN_set(PyObject *_val) {
8edf1c75
RD
17007 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17008 return 1;
d14a1e28
RD
17009}
17010
17011
8edf1c75
RD
17012static PyObject *_wrap_BLACK_PEN_get() {
17013 PyObject *pyobj;
d14a1e28 17014
2f4c0a16 17015 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17016 return pyobj;
d14a1e28
RD
17017}
17018
17019
2f4c0a16 17020static int _wrap_WHITE_PEN_set(PyObject *_val) {
8edf1c75
RD
17021 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17022 return 1;
17023}
17024
17025
17026static PyObject *_wrap_WHITE_PEN_get() {
17027 PyObject *pyobj;
d14a1e28 17028
2f4c0a16 17029 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17030 return pyobj;
d14a1e28
RD
17031}
17032
17033
2f4c0a16 17034static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
8edf1c75
RD
17035 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17036 return 1;
d14a1e28 17037}
8edf1c75
RD
17038
17039
17040static PyObject *_wrap_TRANSPARENT_PEN_get() {
17041 PyObject *pyobj;
d14a1e28 17042
2f4c0a16 17043 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17044 return pyobj;
d14a1e28
RD
17045}
17046
17047
2f4c0a16 17048static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
8edf1c75
RD
17049 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17050 return 1;
17051}
17052
17053
17054static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17055 PyObject *pyobj;
d14a1e28 17056
2f4c0a16 17057 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17058 return pyobj;
d14a1e28
RD
17059}
17060
17061
2f4c0a16 17062static int _wrap_GREY_PEN_set(PyObject *_val) {
8edf1c75
RD
17063 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17064 return 1;
17065}
17066
17067
17068static PyObject *_wrap_GREY_PEN_get() {
17069 PyObject *pyobj;
d14a1e28 17070
2f4c0a16 17071 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17072 return pyobj;
d14a1e28
RD
17073}
17074
17075
2f4c0a16 17076static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
8edf1c75
RD
17077 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17078 return 1;
17079}
17080
17081
17082static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17083 PyObject *pyobj;
d14a1e28 17084
2f4c0a16 17085 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75 17086 return pyobj;
d14a1e28
RD
17087}
17088
17089
2f4c0a16 17090static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
8edf1c75
RD
17091 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17092 return 1;
d14a1e28 17093}
8edf1c75
RD
17094
17095
17096static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17097 PyObject *pyobj;
17098
2f4c0a16 17099 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
8edf1c75
RD
17100 return pyobj;
17101}
17102
17103
2f4c0a16 17104static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
8edf1c75 17105 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
d14a1e28
RD
17106 return 1;
17107}
17108
17109
8edf1c75 17110static PyObject *_wrap_BLUE_BRUSH_get() {
d14a1e28
RD
17111 PyObject *pyobj;
17112
2f4c0a16 17113 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17114 return pyobj;
17115}
17116
17117
2f4c0a16 17118static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
8edf1c75 17119 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
d14a1e28
RD
17120 return 1;
17121}
17122
17123
8edf1c75 17124static PyObject *_wrap_GREEN_BRUSH_get() {
d14a1e28
RD
17125 PyObject *pyobj;
17126
2f4c0a16 17127 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17128 return pyobj;
17129}
17130
17131
2f4c0a16 17132static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
8edf1c75 17133 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
d14a1e28
RD
17134 return 1;
17135}
17136
17137
8edf1c75 17138static PyObject *_wrap_WHITE_BRUSH_get() {
d14a1e28
RD
17139 PyObject *pyobj;
17140
2f4c0a16 17141 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17142 return pyobj;
17143}
17144
17145
2f4c0a16 17146static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
8edf1c75 17147 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
d14a1e28
RD
17148 return 1;
17149}
17150
17151
8edf1c75 17152static PyObject *_wrap_BLACK_BRUSH_get() {
d14a1e28
RD
17153 PyObject *pyobj;
17154
2f4c0a16 17155 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17156 return pyobj;
17157}
17158
17159
2f4c0a16 17160static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
8edf1c75 17161 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
d14a1e28
RD
17162 return 1;
17163}
17164
17165
8edf1c75 17166static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
d14a1e28
RD
17167 PyObject *pyobj;
17168
2f4c0a16 17169 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17170 return pyobj;
17171}
17172
17173
2f4c0a16 17174static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
8edf1c75 17175 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
d14a1e28
RD
17176 return 1;
17177}
17178
17179
8edf1c75 17180static PyObject *_wrap_CYAN_BRUSH_get() {
d14a1e28
RD
17181 PyObject *pyobj;
17182
2f4c0a16 17183 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17184 return pyobj;
17185}
17186
17187
2f4c0a16 17188static int _wrap_RED_BRUSH_set(PyObject *_val) {
8edf1c75 17189 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
d14a1e28
RD
17190 return 1;
17191}
17192
17193
8edf1c75 17194static PyObject *_wrap_RED_BRUSH_get() {
d14a1e28
RD
17195 PyObject *pyobj;
17196
2f4c0a16 17197 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17198 return pyobj;
17199}
17200
17201
2f4c0a16 17202static int _wrap_GREY_BRUSH_set(PyObject *_val) {
8edf1c75 17203 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
d14a1e28
RD
17204 return 1;
17205}
17206
17207
8edf1c75 17208static PyObject *_wrap_GREY_BRUSH_get() {
d14a1e28
RD
17209 PyObject *pyobj;
17210
2f4c0a16 17211 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17212 return pyobj;
17213}
17214
17215
2f4c0a16 17216static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
8edf1c75 17217 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
d14a1e28
RD
17218 return 1;
17219}
17220
17221
8edf1c75 17222static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
d14a1e28
RD
17223 PyObject *pyobj;
17224
2f4c0a16 17225 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17226 return pyobj;
17227}
17228
17229
2f4c0a16 17230static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
8edf1c75 17231 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
d14a1e28
RD
17232 return 1;
17233}
17234
17235
8edf1c75 17236static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
d14a1e28
RD
17237 PyObject *pyobj;
17238
2f4c0a16 17239 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17240 return pyobj;
17241}
17242
17243
2f4c0a16 17244static int _wrap_BLACK_set(PyObject *_val) {
8edf1c75 17245 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
d14a1e28
RD
17246 return 1;
17247}
17248
17249
8edf1c75 17250static PyObject *_wrap_BLACK_get() {
d14a1e28
RD
17251 PyObject *pyobj;
17252
2f4c0a16 17253 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17254 return pyobj;
17255}
17256
17257
2f4c0a16 17258static int _wrap_WHITE_set(PyObject *_val) {
8edf1c75 17259 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
d14a1e28
RD
17260 return 1;
17261}
17262
17263
8edf1c75 17264static PyObject *_wrap_WHITE_get() {
d14a1e28
RD
17265 PyObject *pyobj;
17266
2f4c0a16 17267 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17268 return pyobj;
17269}
17270
17271
2f4c0a16 17272static int _wrap_RED_set(PyObject *_val) {
8edf1c75 17273 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
d14a1e28
RD
17274 return 1;
17275}
17276
17277
8edf1c75 17278static PyObject *_wrap_RED_get() {
d14a1e28
RD
17279 PyObject *pyobj;
17280
2f4c0a16 17281 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17282 return pyobj;
17283}
17284
17285
2f4c0a16 17286static int _wrap_BLUE_set(PyObject *_val) {
8edf1c75 17287 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
d14a1e28
RD
17288 return 1;
17289}
17290
17291
8edf1c75 17292static PyObject *_wrap_BLUE_get() {
d14a1e28
RD
17293 PyObject *pyobj;
17294
2f4c0a16 17295 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17296 return pyobj;
17297}
17298
17299
2f4c0a16 17300static int _wrap_GREEN_set(PyObject *_val) {
8edf1c75 17301 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
d14a1e28
RD
17302 return 1;
17303}
17304
17305
8edf1c75 17306static PyObject *_wrap_GREEN_get() {
d14a1e28
RD
17307 PyObject *pyobj;
17308
2f4c0a16 17309 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17310 return pyobj;
17311}
17312
17313
2f4c0a16 17314static int _wrap_CYAN_set(PyObject *_val) {
8edf1c75 17315 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
d14a1e28
RD
17316 return 1;
17317}
17318
17319
8edf1c75 17320static PyObject *_wrap_CYAN_get() {
d14a1e28
RD
17321 PyObject *pyobj;
17322
2f4c0a16 17323 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17324 return pyobj;
17325}
17326
17327
2f4c0a16 17328static int _wrap_LIGHT_GREY_set(PyObject *_val) {
8edf1c75 17329 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
d14a1e28
RD
17330 return 1;
17331}
17332
17333
8edf1c75 17334static PyObject *_wrap_LIGHT_GREY_get() {
d14a1e28
RD
17335 PyObject *pyobj;
17336
2f4c0a16 17337 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17338 return pyobj;
17339}
17340
17341
2f4c0a16 17342static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
8edf1c75 17343 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
d14a1e28
RD
17344 return 1;
17345}
17346
17347
8edf1c75 17348static PyObject *_wrap_STANDARD_CURSOR_get() {
d14a1e28
RD
17349 PyObject *pyobj;
17350
2f4c0a16 17351 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
17352 return pyobj;
17353}
17354
17355
2f4c0a16 17356static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
8edf1c75 17357 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
d14a1e28
RD
17358 return 1;
17359}
17360
17361
8edf1c75 17362static PyObject *_wrap_HOURGLASS_CURSOR_get() {
d14a1e28
RD
17363 PyObject *pyobj;
17364
2f4c0a16 17365 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
17366 return pyobj;
17367}
17368
17369
2f4c0a16 17370static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
8edf1c75 17371 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
d14a1e28
RD
17372 return 1;
17373}
17374
17375
8edf1c75 17376static PyObject *_wrap_CROSS_CURSOR_get() {
d14a1e28
RD
17377 PyObject *pyobj;
17378
2f4c0a16 17379 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
17380 return pyobj;
17381}
17382
17383
2f4c0a16 17384static int _wrap_NullBitmap_set(PyObject *_val) {
8edf1c75 17385 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
d14a1e28
RD
17386 return 1;
17387}
17388
17389
8edf1c75 17390static PyObject *_wrap_NullBitmap_get() {
d14a1e28
RD
17391 PyObject *pyobj;
17392
2f4c0a16 17393 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
d14a1e28
RD
17394 return pyobj;
17395}
17396
17397
2f4c0a16 17398static int _wrap_NullIcon_set(PyObject *_val) {
8edf1c75 17399 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
d14a1e28
RD
17400 return 1;
17401}
17402
17403
8edf1c75 17404static PyObject *_wrap_NullIcon_get() {
d14a1e28
RD
17405 PyObject *pyobj;
17406
2f4c0a16 17407 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
d14a1e28
RD
17408 return pyobj;
17409}
17410
17411
2f4c0a16 17412static int _wrap_NullCursor_set(PyObject *_val) {
8edf1c75 17413 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
d14a1e28
RD
17414 return 1;
17415}
17416
17417
8edf1c75 17418static PyObject *_wrap_NullCursor_get() {
d14a1e28
RD
17419 PyObject *pyobj;
17420
2f4c0a16 17421 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
17422 return pyobj;
17423}
17424
17425
2f4c0a16 17426static int _wrap_NullPen_set(PyObject *_val) {
8edf1c75 17427 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
d14a1e28
RD
17428 return 1;
17429}
17430
17431
8edf1c75 17432static PyObject *_wrap_NullPen_get() {
d14a1e28
RD
17433 PyObject *pyobj;
17434
2f4c0a16 17435 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
17436 return pyobj;
17437}
17438
17439
2f4c0a16 17440static int _wrap_NullBrush_set(PyObject *_val) {
8edf1c75 17441 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
d14a1e28
RD
17442 return 1;
17443}
17444
17445
8edf1c75 17446static PyObject *_wrap_NullBrush_get() {
d14a1e28
RD
17447 PyObject *pyobj;
17448
2f4c0a16 17449 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
17450 return pyobj;
17451}
17452
17453
2f4c0a16 17454static int _wrap_NullPalette_set(PyObject *_val) {
8edf1c75 17455 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
d14a1e28
RD
17456 return 1;
17457}
17458
17459
8edf1c75 17460static PyObject *_wrap_NullPalette_get() {
d14a1e28
RD
17461 PyObject *pyobj;
17462
2f4c0a16 17463 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
d14a1e28
RD
17464 return pyobj;
17465}
17466
17467
2f4c0a16 17468static int _wrap_NullFont_set(PyObject *_val) {
8edf1c75 17469 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
d14a1e28
RD
17470 return 1;
17471}
17472
17473
8edf1c75 17474static PyObject *_wrap_NullFont_get() {
d14a1e28
RD
17475 PyObject *pyobj;
17476
2f4c0a16 17477 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
d14a1e28
RD
17478 return pyobj;
17479}
17480
17481
2f4c0a16 17482static int _wrap_NullColour_set(PyObject *_val) {
8edf1c75 17483 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
d14a1e28
RD
17484 return 1;
17485}
17486
17487
8edf1c75 17488static PyObject *_wrap_NullColour_get() {
d14a1e28
RD
17489 PyObject *pyobj;
17490
2f4c0a16 17491 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17492 return pyobj;
17493}
17494
17495
8edf1c75
RD
17496static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17497 PyObject *resultobj;
17498 wxPenList *arg1 = (wxPenList *) 0 ;
17499 wxPen *arg2 = (wxPen *) 0 ;
17500 PyObject * obj0 = 0 ;
17501 PyObject * obj1 = 0 ;
17502 char *kwnames[] = {
17503 (char *) "self",(char *) "pen", NULL
17504 };
17505
17506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
17507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17509 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17511 {
17512 PyThreadState* __tstate = wxPyBeginAllowThreads();
17513 (arg1)->AddPen(arg2);
17514
17515 wxPyEndAllowThreads(__tstate);
17516 if (PyErr_Occurred()) SWIG_fail;
17517 }
17518 Py_INCREF(Py_None); resultobj = Py_None;
17519 return resultobj;
17520 fail:
17521 return NULL;
d14a1e28
RD
17522}
17523
17524
8edf1c75
RD
17525static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17526 PyObject *resultobj;
17527 wxPenList *arg1 = (wxPenList *) 0 ;
17528 wxColour *arg2 = 0 ;
17529 int arg3 ;
17530 int arg4 ;
17531 wxPen *result;
17532 wxColour temp2 ;
17533 PyObject * obj0 = 0 ;
17534 PyObject * obj1 = 0 ;
17535 PyObject * obj2 = 0 ;
17536 PyObject * obj3 = 0 ;
17537 char *kwnames[] = {
17538 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17539 };
d14a1e28 17540
8edf1c75 17541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
17542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17544 {
17545 arg2 = &temp2;
17546 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17547 }
2f4c0a16
RD
17548 arg3 = (int) SWIG_AsInt(obj2);
17549 if (PyErr_Occurred()) SWIG_fail;
17550 arg4 = (int) SWIG_AsInt(obj3);
17551 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
17552 {
17553 PyThreadState* __tstate = wxPyBeginAllowThreads();
17554 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17555
17556 wxPyEndAllowThreads(__tstate);
17557 if (PyErr_Occurred()) SWIG_fail;
17558 }
2f4c0a16 17559 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
8edf1c75
RD
17560 return resultobj;
17561 fail:
17562 return NULL;
d14a1e28
RD
17563}
17564
17565
8edf1c75
RD
17566static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17567 PyObject *resultobj;
17568 wxPenList *arg1 = (wxPenList *) 0 ;
17569 wxPen *arg2 = (wxPen *) 0 ;
17570 PyObject * obj0 = 0 ;
17571 PyObject * obj1 = 0 ;
17572 char *kwnames[] = {
17573 (char *) "self",(char *) "pen", NULL
17574 };
17575
17576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
17577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17579 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17581 {
17582 PyThreadState* __tstate = wxPyBeginAllowThreads();
17583 (arg1)->RemovePen(arg2);
17584
17585 wxPyEndAllowThreads(__tstate);
17586 if (PyErr_Occurred()) SWIG_fail;
17587 }
17588 Py_INCREF(Py_None); resultobj = Py_None;
17589 return resultobj;
17590 fail:
17591 return NULL;
d14a1e28
RD
17592}
17593
17594
8edf1c75
RD
17595static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17596 PyObject *resultobj;
17597 wxPenList *arg1 = (wxPenList *) 0 ;
17598 int result;
17599 PyObject * obj0 = 0 ;
17600 char *kwnames[] = {
17601 (char *) "self", NULL
17602 };
d14a1e28 17603
8edf1c75 17604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
2f4c0a16
RD
17605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17607 {
17608 PyThreadState* __tstate = wxPyBeginAllowThreads();
17609 result = (int)(arg1)->GetCount();
17610
17611 wxPyEndAllowThreads(__tstate);
17612 if (PyErr_Occurred()) SWIG_fail;
17613 }
2f4c0a16 17614 resultobj = SWIG_FromInt((int)result);
8edf1c75
RD
17615 return resultobj;
17616 fail:
17617 return NULL;
d14a1e28
RD
17618}
17619
17620
8edf1c75
RD
17621static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17622 PyObject *obj;
17623 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17624 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17625 Py_INCREF(obj);
17626 return Py_BuildValue((char *)"");
d14a1e28 17627}
8edf1c75
RD
17628static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17629 PyObject *resultobj;
17630 wxBrushList *arg1 = (wxBrushList *) 0 ;
17631 wxBrush *arg2 = (wxBrush *) 0 ;
17632 PyObject * obj0 = 0 ;
17633 PyObject * obj1 = 0 ;
17634 char *kwnames[] = {
17635 (char *) "self",(char *) "brush", NULL
17636 };
d14a1e28 17637
8edf1c75 17638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
17639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17641 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17643 {
17644 PyThreadState* __tstate = wxPyBeginAllowThreads();
17645 (arg1)->AddBrush(arg2);
17646
17647 wxPyEndAllowThreads(__tstate);
17648 if (PyErr_Occurred()) SWIG_fail;
17649 }
17650 Py_INCREF(Py_None); resultobj = Py_None;
17651 return resultobj;
17652 fail:
17653 return NULL;
d14a1e28
RD
17654}
17655
17656
8edf1c75
RD
17657static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17658 PyObject *resultobj;
17659 wxBrushList *arg1 = (wxBrushList *) 0 ;
17660 wxColour *arg2 = 0 ;
17661 int arg3 ;
17662 wxBrush *result;
17663 wxColour temp2 ;
17664 PyObject * obj0 = 0 ;
17665 PyObject * obj1 = 0 ;
17666 PyObject * obj2 = 0 ;
17667 char *kwnames[] = {
17668 (char *) "self",(char *) "colour",(char *) "style", NULL
17669 };
17670
17671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
17672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17674 {
17675 arg2 = &temp2;
17676 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17677 }
2f4c0a16
RD
17678 arg3 = (int) SWIG_AsInt(obj2);
17679 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
17680 {
17681 PyThreadState* __tstate = wxPyBeginAllowThreads();
17682 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17683
17684 wxPyEndAllowThreads(__tstate);
17685 if (PyErr_Occurred()) SWIG_fail;
17686 }
2f4c0a16 17687 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
8edf1c75
RD
17688 return resultobj;
17689 fail:
17690 return NULL;
d14a1e28
RD
17691}
17692
17693
8edf1c75
RD
17694static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17695 PyObject *resultobj;
17696 wxBrushList *arg1 = (wxBrushList *) 0 ;
17697 wxBrush *arg2 = (wxBrush *) 0 ;
17698 PyObject * obj0 = 0 ;
17699 PyObject * obj1 = 0 ;
17700 char *kwnames[] = {
17701 (char *) "self",(char *) "brush", NULL
17702 };
d14a1e28 17703
8edf1c75 17704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
17705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17707 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17709 {
17710 PyThreadState* __tstate = wxPyBeginAllowThreads();
17711 (arg1)->RemoveBrush(arg2);
17712
17713 wxPyEndAllowThreads(__tstate);
17714 if (PyErr_Occurred()) SWIG_fail;
17715 }
17716 Py_INCREF(Py_None); resultobj = Py_None;
17717 return resultobj;
17718 fail:
17719 return NULL;
d14a1e28
RD
17720}
17721
17722
8edf1c75
RD
17723static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17724 PyObject *resultobj;
17725 wxBrushList *arg1 = (wxBrushList *) 0 ;
17726 int result;
17727 PyObject * obj0 = 0 ;
17728 char *kwnames[] = {
17729 (char *) "self", NULL
17730 };
d14a1e28 17731
8edf1c75 17732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
2f4c0a16
RD
17733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17735 {
17736 PyThreadState* __tstate = wxPyBeginAllowThreads();
17737 result = (int)(arg1)->GetCount();
17738
17739 wxPyEndAllowThreads(__tstate);
17740 if (PyErr_Occurred()) SWIG_fail;
17741 }
2f4c0a16 17742 resultobj = SWIG_FromInt((int)result);
8edf1c75
RD
17743 return resultobj;
17744 fail:
17745 return NULL;
d14a1e28
RD
17746}
17747
17748
8edf1c75
RD
17749static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17750 PyObject *obj;
17751 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17752 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17753 Py_INCREF(obj);
17754 return Py_BuildValue((char *)"");
d14a1e28 17755}
8edf1c75
RD
17756static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17757 PyObject *resultobj;
17758 wxColourDatabase *result;
17759 char *kwnames[] = {
17760 NULL
17761 };
d14a1e28 17762
8edf1c75
RD
17763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17764 {
17765 PyThreadState* __tstate = wxPyBeginAllowThreads();
17766 result = (wxColourDatabase *)new wxColourDatabase();
17767
17768 wxPyEndAllowThreads(__tstate);
17769 if (PyErr_Occurred()) SWIG_fail;
17770 }
2f4c0a16 17771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
8edf1c75
RD
17772 return resultobj;
17773 fail:
17774 return NULL;
d14a1e28
RD
17775}
17776
17777
8edf1c75
RD
17778static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17779 PyObject *resultobj;
17780 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17781 PyObject * obj0 = 0 ;
17782 char *kwnames[] = {
17783 (char *) "self", NULL
17784 };
d14a1e28 17785
8edf1c75 17786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
2f4c0a16
RD
17787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17789 {
17790 PyThreadState* __tstate = wxPyBeginAllowThreads();
17791 delete arg1;
17792
17793 wxPyEndAllowThreads(__tstate);
17794 if (PyErr_Occurred()) SWIG_fail;
17795 }
17796 Py_INCREF(Py_None); resultobj = Py_None;
17797 return resultobj;
17798 fail:
17799 return NULL;
d14a1e28
RD
17800}
17801
17802
8edf1c75
RD
17803static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17804 PyObject *resultobj;
17805 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17806 wxString *arg2 = 0 ;
17807 wxColour result;
17808 bool temp2 = False ;
17809 PyObject * obj0 = 0 ;
17810 PyObject * obj1 = 0 ;
17811 char *kwnames[] = {
17812 (char *) "self",(char *) "name", NULL
17813 };
d14a1e28 17814
8edf1c75 17815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
17816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17818 {
17819 arg2 = wxString_in_helper(obj1);
17820 if (arg2 == NULL) SWIG_fail;
17821 temp2 = True;
17822 }
17823 {
17824 PyThreadState* __tstate = wxPyBeginAllowThreads();
17825 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17826
17827 wxPyEndAllowThreads(__tstate);
17828 if (PyErr_Occurred()) SWIG_fail;
17829 }
17830 {
17831 wxColour * resultptr;
17832 resultptr = new wxColour((wxColour &) result);
2f4c0a16 17833 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
8edf1c75
RD
17834 }
17835 {
17836 if (temp2)
17837 delete arg2;
17838 }
17839 return resultobj;
17840 fail:
17841 {
17842 if (temp2)
17843 delete arg2;
17844 }
17845 return NULL;
d14a1e28
RD
17846}
17847
17848
8edf1c75
RD
17849static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17850 PyObject *resultobj;
17851 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17852 wxColour *arg2 = 0 ;
17853 wxString result;
17854 wxColour temp2 ;
17855 PyObject * obj0 = 0 ;
17856 PyObject * obj1 = 0 ;
17857 char *kwnames[] = {
17858 (char *) "self",(char *) "colour", NULL
17859 };
d14a1e28 17860
8edf1c75 17861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
17862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17864 {
17865 arg2 = &temp2;
17866 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17867 }
17868 {
17869 PyThreadState* __tstate = wxPyBeginAllowThreads();
17870 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17871
17872 wxPyEndAllowThreads(__tstate);
17873 if (PyErr_Occurred()) SWIG_fail;
17874 }
17875 {
17876#if wxUSE_UNICODE
17877 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17878#else
17879 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17880#endif
17881 }
17882 return resultobj;
17883 fail:
17884 return NULL;
d14a1e28
RD
17885}
17886
17887
8edf1c75
RD
17888static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17889 PyObject *resultobj;
17890 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17891 wxString *arg2 = 0 ;
17892 wxColour *arg3 = 0 ;
17893 bool temp2 = False ;
17894 wxColour temp3 ;
17895 PyObject * obj0 = 0 ;
17896 PyObject * obj1 = 0 ;
17897 PyObject * obj2 = 0 ;
17898 char *kwnames[] = {
17899 (char *) "self",(char *) "name",(char *) "colour", NULL
17900 };
17901
17902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
2f4c0a16
RD
17903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17905 {
17906 arg2 = wxString_in_helper(obj1);
17907 if (arg2 == NULL) SWIG_fail;
17908 temp2 = True;
17909 }
17910 {
17911 arg3 = &temp3;
17912 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17913 }
17914 {
17915 PyThreadState* __tstate = wxPyBeginAllowThreads();
17916 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17917
17918 wxPyEndAllowThreads(__tstate);
17919 if (PyErr_Occurred()) SWIG_fail;
17920 }
17921 Py_INCREF(Py_None); resultobj = Py_None;
17922 {
17923 if (temp2)
17924 delete arg2;
17925 }
17926 return resultobj;
17927 fail:
17928 {
17929 if (temp2)
17930 delete arg2;
17931 }
17932 return NULL;
d14a1e28
RD
17933}
17934
17935
8edf1c75
RD
17936static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17937 PyObject *resultobj;
17938 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17939 wxString *arg2 = 0 ;
17940 int arg3 ;
17941 int arg4 ;
17942 int arg5 ;
17943 bool temp2 = False ;
17944 PyObject * obj0 = 0 ;
17945 PyObject * obj1 = 0 ;
17946 PyObject * obj2 = 0 ;
17947 PyObject * obj3 = 0 ;
17948 PyObject * obj4 = 0 ;
17949 char *kwnames[] = {
17950 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17951 };
d14a1e28 17952
8edf1c75 17953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2f4c0a16
RD
17954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
17956 {
17957 arg2 = wxString_in_helper(obj1);
17958 if (arg2 == NULL) SWIG_fail;
17959 temp2 = True;
17960 }
2f4c0a16
RD
17961 arg3 = (int) SWIG_AsInt(obj2);
17962 if (PyErr_Occurred()) SWIG_fail;
17963 arg4 = (int) SWIG_AsInt(obj3);
17964 if (PyErr_Occurred()) SWIG_fail;
17965 arg5 = (int) SWIG_AsInt(obj4);
17966 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
17967 {
17968 PyThreadState* __tstate = wxPyBeginAllowThreads();
17969 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17970
17971 wxPyEndAllowThreads(__tstate);
17972 if (PyErr_Occurred()) SWIG_fail;
17973 }
17974 Py_INCREF(Py_None); resultobj = Py_None;
17975 {
17976 if (temp2)
17977 delete arg2;
17978 }
17979 return resultobj;
17980 fail:
17981 {
17982 if (temp2)
17983 delete arg2;
17984 }
17985 return NULL;
d14a1e28
RD
17986}
17987
17988
8edf1c75
RD
17989static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17990 PyObject *obj;
17991 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17992 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17993 Py_INCREF(obj);
17994 return Py_BuildValue((char *)"");
d14a1e28 17995}
8edf1c75
RD
17996static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17997 PyObject *resultobj;
17998 wxFontList *arg1 = (wxFontList *) 0 ;
17999 wxFont *arg2 = (wxFont *) 0 ;
18000 PyObject * obj0 = 0 ;
18001 PyObject * obj1 = 0 ;
18002 char *kwnames[] = {
18003 (char *) "self",(char *) "font", NULL
18004 };
d14a1e28 18005
8edf1c75 18006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18009 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
18011 {
18012 PyThreadState* __tstate = wxPyBeginAllowThreads();
18013 (arg1)->AddFont(arg2);
18014
18015 wxPyEndAllowThreads(__tstate);
18016 if (PyErr_Occurred()) SWIG_fail;
18017 }
18018 Py_INCREF(Py_None); resultobj = Py_None;
18019 return resultobj;
18020 fail:
18021 return NULL;
d14a1e28
RD
18022}
18023
18024
8edf1c75
RD
18025static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18026 PyObject *resultobj;
18027 wxFontList *arg1 = (wxFontList *) 0 ;
18028 int arg2 ;
18029 int arg3 ;
18030 int arg4 ;
18031 int arg5 ;
18032 bool arg6 = (bool) False ;
18033 wxString const &arg7_defvalue = wxPyEmptyString ;
18034 wxString *arg7 = (wxString *) &arg7_defvalue ;
18035 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18036 wxFont *result;
18037 bool temp7 = False ;
18038 PyObject * obj0 = 0 ;
18039 PyObject * obj1 = 0 ;
18040 PyObject * obj2 = 0 ;
18041 PyObject * obj3 = 0 ;
18042 PyObject * obj4 = 0 ;
18043 PyObject * obj5 = 0 ;
18044 PyObject * obj6 = 0 ;
18045 PyObject * obj7 = 0 ;
18046 char *kwnames[] = {
18047 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18048 };
d14a1e28 18049
8edf1c75 18050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2f4c0a16
RD
18051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18053 arg2 = (int) SWIG_AsInt(obj1);
18054 if (PyErr_Occurred()) SWIG_fail;
18055 arg3 = (int) SWIG_AsInt(obj2);
18056 if (PyErr_Occurred()) SWIG_fail;
18057 arg4 = (int) SWIG_AsInt(obj3);
18058 if (PyErr_Occurred()) SWIG_fail;
18059 arg5 = (int) SWIG_AsInt(obj4);
18060 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 18061 if (obj5) {
2f4c0a16
RD
18062 arg6 = (bool) SWIG_AsBool(obj5);
18063 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
18064 }
18065 if (obj6) {
18066 {
18067 arg7 = wxString_in_helper(obj6);
18068 if (arg7 == NULL) SWIG_fail;
18069 temp7 = True;
18070 }
18071 }
18072 if (obj7) {
2f4c0a16
RD
18073 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
18074 if (PyErr_Occurred()) SWIG_fail;
8edf1c75
RD
18075 }
18076 {
18077 PyThreadState* __tstate = wxPyBeginAllowThreads();
18078 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18079
18080 wxPyEndAllowThreads(__tstate);
18081 if (PyErr_Occurred()) SWIG_fail;
18082 }
2f4c0a16 18083 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
8edf1c75
RD
18084 {
18085 if (temp7)
18086 delete arg7;
18087 }
18088 return resultobj;
18089 fail:
18090 {
18091 if (temp7)
18092 delete arg7;
18093 }
18094 return NULL;
d14a1e28
RD
18095}
18096
18097
8edf1c75
RD
18098static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18099 PyObject *resultobj;
18100 wxFontList *arg1 = (wxFontList *) 0 ;
18101 wxFont *arg2 = (wxFont *) 0 ;
18102 PyObject * obj0 = 0 ;
18103 PyObject * obj1 = 0 ;
18104 char *kwnames[] = {
18105 (char *) "self",(char *) "font", NULL
18106 };
d14a1e28 18107
8edf1c75 18108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18111 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
18113 {
18114 PyThreadState* __tstate = wxPyBeginAllowThreads();
18115 (arg1)->RemoveFont(arg2);
18116
18117 wxPyEndAllowThreads(__tstate);
18118 if (PyErr_Occurred()) SWIG_fail;
18119 }
18120 Py_INCREF(Py_None); resultobj = Py_None;
18121 return resultobj;
18122 fail:
18123 return NULL;
d14a1e28
RD
18124}
18125
18126
8edf1c75
RD
18127static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
18128 PyObject *resultobj;
18129 wxFontList *arg1 = (wxFontList *) 0 ;
18130 int result;
18131 PyObject * obj0 = 0 ;
18132 char *kwnames[] = {
18133 (char *) "self", NULL
18134 };
d14a1e28 18135
8edf1c75 18136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
2f4c0a16
RD
18137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75
RD
18139 {
18140 PyThreadState* __tstate = wxPyBeginAllowThreads();
18141 result = (int)(arg1)->GetCount();
18142
18143 wxPyEndAllowThreads(__tstate);
18144 if (PyErr_Occurred()) SWIG_fail;
18145 }
2f4c0a16 18146 resultobj = SWIG_FromInt((int)result);
8edf1c75
RD
18147 return resultobj;
18148 fail:
18149 return NULL;
d14a1e28
RD
18150}
18151
18152
8edf1c75
RD
18153static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
18154 PyObject *obj;
18155 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18156 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18157 Py_INCREF(obj);
18158 return Py_BuildValue((char *)"");
18159}
2f4c0a16 18160static int _wrap_TheFontList_set(PyObject *_val) {
d14a1e28
RD
18161 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18162 return 1;
18163}
18164
18165
18166static PyObject *_wrap_TheFontList_get() {
18167 PyObject *pyobj;
18168
2f4c0a16 18169 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
d14a1e28
RD
18170 return pyobj;
18171}
18172
18173
2f4c0a16 18174static int _wrap_ThePenList_set(PyObject *_val) {
d14a1e28
RD
18175 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18176 return 1;
18177}
18178
18179
18180static PyObject *_wrap_ThePenList_get() {
18181 PyObject *pyobj;
18182
2f4c0a16 18183 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
d14a1e28
RD
18184 return pyobj;
18185}
18186
18187
2f4c0a16 18188static int _wrap_TheBrushList_set(PyObject *_val) {
d14a1e28
RD
18189 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18190 return 1;
18191}
18192
18193
18194static PyObject *_wrap_TheBrushList_get() {
18195 PyObject *pyobj;
18196
2f4c0a16 18197 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
d14a1e28
RD
18198 return pyobj;
18199}
18200
18201
2f4c0a16 18202static int _wrap_TheColourDatabase_set(PyObject *_val) {
d14a1e28
RD
18203 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18204 return 1;
18205}
18206
18207
18208static PyObject *_wrap_TheColourDatabase_get() {
18209 PyObject *pyobj;
18210
2f4c0a16 18211 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
d14a1e28
RD
18212 return pyobj;
18213}
18214
18215
423f194a 18216static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 18217 PyObject *resultobj;
423f194a 18218 wxEffects *result;
d14a1e28 18219 char *kwnames[] = {
423f194a 18220 NULL
d14a1e28
RD
18221 };
18222
423f194a 18223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
d14a1e28
RD
18224 {
18225 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 18226 result = (wxEffects *)new wxEffects();
d14a1e28
RD
18227
18228 wxPyEndAllowThreads(__tstate);
18229 if (PyErr_Occurred()) SWIG_fail;
18230 }
2f4c0a16 18231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
d14a1e28
RD
18232 return resultobj;
18233 fail:
18234 return NULL;
18235}
18236
18237
423f194a 18238static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 18239 PyObject *resultobj;
423f194a
RD
18240 wxEffects *arg1 = (wxEffects *) 0 ;
18241 wxColour result;
d14a1e28 18242 PyObject * obj0 = 0 ;
d14a1e28 18243 char *kwnames[] = {
423f194a 18244 (char *) "self", NULL
d14a1e28
RD
18245 };
18246
423f194a 18247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
2f4c0a16
RD
18248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18250 {
18251 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 18252 result = ((wxEffects const *)arg1)->GetHighlightColour();
d14a1e28
RD
18253
18254 wxPyEndAllowThreads(__tstate);
18255 if (PyErr_Occurred()) SWIG_fail;
18256 }
423f194a
RD
18257 {
18258 wxColour * resultptr;
18259 resultptr = new wxColour((wxColour &) result);
2f4c0a16 18260 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
423f194a 18261 }
d14a1e28
RD
18262 return resultobj;
18263 fail:
18264 return NULL;
18265}
18266
18267
423f194a 18268static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 18269 PyObject *resultobj;
423f194a
RD
18270 wxEffects *arg1 = (wxEffects *) 0 ;
18271 wxColour result;
d14a1e28 18272 PyObject * obj0 = 0 ;
d14a1e28 18273 char *kwnames[] = {
423f194a 18274 (char *) "self", NULL
d14a1e28
RD
18275 };
18276
423f194a 18277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
2f4c0a16
RD
18278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18280 {
18281 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 18282 result = ((wxEffects const *)arg1)->GetLightShadow();
d14a1e28
RD
18283
18284 wxPyEndAllowThreads(__tstate);
18285 if (PyErr_Occurred()) SWIG_fail;
18286 }
d14a1e28 18287 {
423f194a
RD
18288 wxColour * resultptr;
18289 resultptr = new wxColour((wxColour &) result);
2f4c0a16 18290 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
18291 }
18292 return resultobj;
18293 fail:
d14a1e28
RD
18294 return NULL;
18295}
18296
18297
423f194a 18298static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 18299 PyObject *resultobj;
423f194a
RD
18300 wxEffects *arg1 = (wxEffects *) 0 ;
18301 wxColour result;
d14a1e28 18302 PyObject * obj0 = 0 ;
d14a1e28 18303 char *kwnames[] = {
423f194a 18304 (char *) "self", NULL
d14a1e28
RD
18305 };
18306
423f194a 18307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
2f4c0a16
RD
18308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18310 {
18311 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 18312 result = ((wxEffects const *)arg1)->GetFaceColour();
d14a1e28
RD
18313
18314 wxPyEndAllowThreads(__tstate);
18315 if (PyErr_Occurred()) SWIG_fail;
18316 }
423f194a
RD
18317 {
18318 wxColour * resultptr;
18319 resultptr = new wxColour((wxColour &) result);
2f4c0a16 18320 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
423f194a 18321 }
d14a1e28
RD
18322 return resultobj;
18323 fail:
18324 return NULL;
18325}
18326
18327
423f194a 18328static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 18329 PyObject *resultobj;
423f194a
RD
18330 wxEffects *arg1 = (wxEffects *) 0 ;
18331 wxColour result;
d14a1e28
RD
18332 PyObject * obj0 = 0 ;
18333 char *kwnames[] = {
18334 (char *) "self", NULL
18335 };
18336
18337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
2f4c0a16
RD
18338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18340 {
18341 PyThreadState* __tstate = wxPyBeginAllowThreads();
18342 result = ((wxEffects const *)arg1)->GetMediumShadow();
18343
18344 wxPyEndAllowThreads(__tstate);
18345 if (PyErr_Occurred()) SWIG_fail;
18346 }
18347 {
18348 wxColour * resultptr;
18349 resultptr = new wxColour((wxColour &) result);
2f4c0a16 18350 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
18351 }
18352 return resultobj;
18353 fail:
18354 return NULL;
18355}
18356
18357
18358static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18359 PyObject *resultobj;
18360 wxEffects *arg1 = (wxEffects *) 0 ;
18361 wxColour result;
18362 PyObject * obj0 = 0 ;
18363 char *kwnames[] = {
18364 (char *) "self", NULL
18365 };
18366
18367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
2f4c0a16
RD
18368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18370 {
18371 PyThreadState* __tstate = wxPyBeginAllowThreads();
18372 result = ((wxEffects const *)arg1)->GetDarkShadow();
18373
18374 wxPyEndAllowThreads(__tstate);
18375 if (PyErr_Occurred()) SWIG_fail;
18376 }
18377 {
18378 wxColour * resultptr;
18379 resultptr = new wxColour((wxColour &) result);
2f4c0a16 18380 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
18381 }
18382 return resultobj;
18383 fail:
18384 return NULL;
18385}
18386
18387
18388static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18389 PyObject *resultobj;
18390 wxEffects *arg1 = (wxEffects *) 0 ;
18391 wxColour *arg2 = 0 ;
18392 wxColour temp2 ;
18393 PyObject * obj0 = 0 ;
18394 PyObject * obj1 = 0 ;
18395 char *kwnames[] = {
18396 (char *) "self",(char *) "c", NULL
18397 };
18398
18399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18402 {
18403 arg2 = &temp2;
18404 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18405 }
18406 {
18407 PyThreadState* __tstate = wxPyBeginAllowThreads();
18408 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18409
18410 wxPyEndAllowThreads(__tstate);
18411 if (PyErr_Occurred()) SWIG_fail;
18412 }
18413 Py_INCREF(Py_None); resultobj = Py_None;
18414 return resultobj;
18415 fail:
18416 return NULL;
18417}
18418
18419
18420static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18421 PyObject *resultobj;
18422 wxEffects *arg1 = (wxEffects *) 0 ;
18423 wxColour *arg2 = 0 ;
18424 wxColour temp2 ;
18425 PyObject * obj0 = 0 ;
18426 PyObject * obj1 = 0 ;
18427 char *kwnames[] = {
18428 (char *) "self",(char *) "c", NULL
18429 };
18430
18431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18434 {
18435 arg2 = &temp2;
18436 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18437 }
18438 {
18439 PyThreadState* __tstate = wxPyBeginAllowThreads();
18440 (arg1)->SetLightShadow((wxColour const &)*arg2);
18441
18442 wxPyEndAllowThreads(__tstate);
18443 if (PyErr_Occurred()) SWIG_fail;
18444 }
18445 Py_INCREF(Py_None); resultobj = Py_None;
18446 return resultobj;
18447 fail:
18448 return NULL;
18449}
18450
18451
18452static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18453 PyObject *resultobj;
18454 wxEffects *arg1 = (wxEffects *) 0 ;
18455 wxColour *arg2 = 0 ;
18456 wxColour temp2 ;
18457 PyObject * obj0 = 0 ;
18458 PyObject * obj1 = 0 ;
18459 char *kwnames[] = {
18460 (char *) "self",(char *) "c", NULL
18461 };
18462
18463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18466 {
18467 arg2 = &temp2;
18468 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18469 }
18470 {
18471 PyThreadState* __tstate = wxPyBeginAllowThreads();
18472 (arg1)->SetFaceColour((wxColour const &)*arg2);
18473
18474 wxPyEndAllowThreads(__tstate);
18475 if (PyErr_Occurred()) SWIG_fail;
18476 }
18477 Py_INCREF(Py_None); resultobj = Py_None;
18478 return resultobj;
18479 fail:
18480 return NULL;
18481}
18482
18483
18484static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18485 PyObject *resultobj;
18486 wxEffects *arg1 = (wxEffects *) 0 ;
18487 wxColour *arg2 = 0 ;
18488 wxColour temp2 ;
18489 PyObject * obj0 = 0 ;
18490 PyObject * obj1 = 0 ;
18491 char *kwnames[] = {
18492 (char *) "self",(char *) "c", NULL
18493 };
18494
18495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18498 {
18499 arg2 = &temp2;
18500 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18501 }
18502 {
18503 PyThreadState* __tstate = wxPyBeginAllowThreads();
18504 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18505
18506 wxPyEndAllowThreads(__tstate);
18507 if (PyErr_Occurred()) SWIG_fail;
18508 }
18509 Py_INCREF(Py_None); resultobj = Py_None;
18510 return resultobj;
18511 fail:
18512 return NULL;
18513}
18514
18515
18516static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18517 PyObject *resultobj;
18518 wxEffects *arg1 = (wxEffects *) 0 ;
18519 wxColour *arg2 = 0 ;
18520 wxColour temp2 ;
18521 PyObject * obj0 = 0 ;
18522 PyObject * obj1 = 0 ;
18523 char *kwnames[] = {
18524 (char *) "self",(char *) "c", NULL
18525 };
18526
18527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
18528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18530 {
18531 arg2 = &temp2;
18532 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18533 }
18534 {
18535 PyThreadState* __tstate = wxPyBeginAllowThreads();
18536 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18537
18538 wxPyEndAllowThreads(__tstate);
18539 if (PyErr_Occurred()) SWIG_fail;
18540 }
18541 Py_INCREF(Py_None); resultobj = Py_None;
18542 return resultobj;
18543 fail:
18544 return NULL;
18545}
18546
18547
18548static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18549 PyObject *resultobj;
18550 wxEffects *arg1 = (wxEffects *) 0 ;
18551 wxColour *arg2 = 0 ;
18552 wxColour *arg3 = 0 ;
18553 wxColour *arg4 = 0 ;
18554 wxColour *arg5 = 0 ;
18555 wxColour *arg6 = 0 ;
18556 wxColour temp2 ;
18557 wxColour temp3 ;
18558 wxColour temp4 ;
18559 wxColour temp5 ;
18560 wxColour temp6 ;
18561 PyObject * obj0 = 0 ;
18562 PyObject * obj1 = 0 ;
18563 PyObject * obj2 = 0 ;
18564 PyObject * obj3 = 0 ;
18565 PyObject * obj4 = 0 ;
18566 PyObject * obj5 = 0 ;
18567 char *kwnames[] = {
18568 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18569 };
18570
18571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
2f4c0a16
RD
18572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18574 {
18575 arg2 = &temp2;
18576 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18577 }
18578 {
18579 arg3 = &temp3;
18580 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18581 }
18582 {
18583 arg4 = &temp4;
18584 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18585 }
18586 {
18587 arg5 = &temp5;
18588 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18589 }
18590 {
18591 arg6 = &temp6;
18592 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18593 }
18594 {
18595 PyThreadState* __tstate = wxPyBeginAllowThreads();
18596 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18597
18598 wxPyEndAllowThreads(__tstate);
18599 if (PyErr_Occurred()) SWIG_fail;
18600 }
18601 Py_INCREF(Py_None); resultobj = Py_None;
18602 return resultobj;
18603 fail:
18604 return NULL;
18605}
18606
18607
18608static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18609 PyObject *resultobj;
18610 wxEffects *arg1 = (wxEffects *) 0 ;
18611 wxDC *arg2 = 0 ;
18612 wxRect *arg3 = 0 ;
18613 int arg4 = (int) 1 ;
18614 wxRect temp3 ;
18615 PyObject * obj0 = 0 ;
18616 PyObject * obj1 = 0 ;
18617 PyObject * obj2 = 0 ;
8edf1c75 18618 PyObject * obj3 = 0 ;
d14a1e28
RD
18619 char *kwnames[] = {
18620 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18621 };
18622
8edf1c75 18623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
18624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18626 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18627 SWIG_POINTER_EXCEPTION | 0)) == -1)
18628 SWIG_fail;
d14a1e28 18629 if (arg2 == NULL) {
2f4c0a16
RD
18630 PyErr_SetString(PyExc_TypeError,"null reference");
18631 SWIG_fail;
d14a1e28
RD
18632 }
18633 {
18634 arg3 = &temp3;
18635 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18636 }
8edf1c75 18637 if (obj3) {
2f4c0a16
RD
18638 arg4 = (int) SWIG_AsInt(obj3);
18639 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 18640 }
d14a1e28
RD
18641 {
18642 PyThreadState* __tstate = wxPyBeginAllowThreads();
18643 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18644
18645 wxPyEndAllowThreads(__tstate);
18646 if (PyErr_Occurred()) SWIG_fail;
18647 }
18648 Py_INCREF(Py_None); resultobj = Py_None;
18649 return resultobj;
18650 fail:
18651 return NULL;
18652}
18653
18654
18655static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18656 PyObject *resultobj;
18657 wxEffects *arg1 = (wxEffects *) 0 ;
18658 wxRect *arg2 = 0 ;
18659 wxDC *arg3 = 0 ;
18660 wxBitmap *arg4 = 0 ;
18661 bool result;
18662 wxRect temp2 ;
18663 PyObject * obj0 = 0 ;
18664 PyObject * obj1 = 0 ;
18665 PyObject * obj2 = 0 ;
18666 PyObject * obj3 = 0 ;
18667 char *kwnames[] = {
18668 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18669 };
18670
18671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2f4c0a16
RD
18672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18674 {
18675 arg2 = &temp2;
18676 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18677 }
2f4c0a16
RD
18678 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18679 SWIG_POINTER_EXCEPTION | 0)) == -1)
18680 SWIG_fail;
d14a1e28 18681 if (arg3 == NULL) {
2f4c0a16
RD
18682 PyErr_SetString(PyExc_TypeError,"null reference");
18683 SWIG_fail;
d14a1e28 18684 }
2f4c0a16
RD
18685 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18686 SWIG_POINTER_EXCEPTION | 0)) == -1)
18687 SWIG_fail;
d14a1e28 18688 if (arg4 == NULL) {
2f4c0a16
RD
18689 PyErr_SetString(PyExc_TypeError,"null reference");
18690 SWIG_fail;
d14a1e28
RD
18691 }
18692 {
18693 PyThreadState* __tstate = wxPyBeginAllowThreads();
18694 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18695
18696 wxPyEndAllowThreads(__tstate);
18697 if (PyErr_Occurred()) SWIG_fail;
18698 }
4e760a36 18699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
18700 return resultobj;
18701 fail:
18702 return NULL;
18703}
18704
18705
18706static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18707 PyObject *obj;
18708 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18709 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18710 Py_INCREF(obj);
18711 return Py_BuildValue((char *)"");
18712}
18713static PyMethodDef SwigMethods[] = {
18714 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18715 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18717 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18718 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18719 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18720 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18721 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
328fcd84 18723 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18724 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18728 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
9fd4be55 18729 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
328fcd84
RD
18730 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18732 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
328fcd84 18735 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18736 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18737 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18740 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18743 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18745 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18751 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18755 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18756 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18757 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
db914595 18758 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
328fcd84 18759 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
9fd4be55 18760 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18761 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
18762 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
18763 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18764 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
18765 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
18766 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18767 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
18768 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18769 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18770 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18771 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18772 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18773 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18774 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18775 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18776 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18777 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18778 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18779 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18780 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18781 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18782 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18783 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18784 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18785 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
18786 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
18787 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
18788 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18789 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18790 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18791 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18792 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18793 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18794 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18795 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18796 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18797 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18798 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18799 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18800 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18801 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18802 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18803 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
18804 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
18805 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
fe763115
RD
18806 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18807 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18808 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18809 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18810 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18811 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18812 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18813 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18814 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18815 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18816 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18817 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18818 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
18819 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
18820 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18821 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18822 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18823 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18824 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18825 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18826 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18827 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
18828 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18829 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18830 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18831 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18832 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18833 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18834 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18835 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18836 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18837 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18838 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18839 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18840 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18841 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18842 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18843 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18844 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18845 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18846 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18847 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18848 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18849 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18850 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
18851 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
18852 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18853 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
18854 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
18855 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
18856 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
18857 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
18858 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
18859 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
18860 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18861 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18862 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18863 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18864 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18865 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18866 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18867 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18868 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18869 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18870 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18871 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18872 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18873 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18874 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18875 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18876 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18877 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18878 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18879 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18880 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18881 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18882 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18883 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18884 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18885 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18886 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18887 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18888 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18889 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18890 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18891 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18892 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18893 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18894 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18895 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18896 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18897 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18898 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18899 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18900 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18901 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18902 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18903 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18904 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18905 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18906 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18907 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18908 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18909 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18910 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18911 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18912 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18913 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18914 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18915 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18916 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18917 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18918 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18919 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18920 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18921 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18922 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18923 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18924 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18925 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18926 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18927 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18928 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18929 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18930 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18931 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18932 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18933 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18934 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18935 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18936 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18937 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18938 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18939 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18940 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18941 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18942 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18943 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18944 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18945 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18946 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18947 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18948 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18949 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18950 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18951 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18952 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18953 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18954 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18955 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18956 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18957 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18958 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18959 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18960 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18961 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18962 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18963 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18964 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18965 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18966 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18967 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18968 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18969 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18970 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18971 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18972 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18973 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18974 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18975 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18976 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18977 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18978 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18979 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18980 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18981 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18982 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18983 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18984 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18985 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18986 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18987 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18988 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18989 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18990 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18991 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18992 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18993 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18994 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18995 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18996 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18997 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18998 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18999 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
19000 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
19001 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
19002 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
19003 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
19004 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
19005 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
19006 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
19007 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
19008 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
19009 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
19010 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
19011 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
19012 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
19013 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
19014 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
19015 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
19016 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
19017 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
19018 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
19019 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
19020 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
19021 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19022 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
19023 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19024 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
19025 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
19026 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
19027 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
19028 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
19029 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
19030 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19031 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19032 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
19033 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
19034 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
19035 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
19036 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
19037 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
19038 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
19039 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
19040 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
19041 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
19042 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
19043 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
19044 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
19045 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
19046 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
19047 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
19048 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
19049 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
19050 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
19051 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
19052 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
19053 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
19054 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
19055 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
19056 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
19057 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
19058 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
19059 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
19060 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
19061 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
19062 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
19063 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
19064 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
19065 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
19066 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
19067 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
19068 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
19069 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
19070 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
19071 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
19072 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
19073 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
19074 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
19075 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
19076 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
19077 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
19078 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
19079 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
19080 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
19081 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
19082 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
19083 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
19084 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
19085 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
19086 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
19087 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
19088 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
19089 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
19090 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
19091 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
19092 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19093 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
f0983263 19094 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
19095 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
19096 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
19097 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
19098 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
19099 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
19100 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
19101 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
19102 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
19103 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
19104 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
19105 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
db914595 19106 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
d14a1e28 19107 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
44127b65 19108 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 19109 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
44127b65 19110 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
19111 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
19112 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
19113 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
19114 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
19115 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
19116 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
19117 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
19118 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
19119 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
19120 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
19121 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
19122 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
19123 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
19124 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19125 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
19126 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
19127 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
19128 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
19129 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
19130 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
19131 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
19132 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
19133 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
19134 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
19135 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
19136 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
19137 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19138 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
d14a1e28 19139 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
44127b65 19140 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 19141 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
d14a1e28 19142 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
44127b65 19143 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
19144 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19145 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
19146 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19147 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19148 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
19149 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
19150 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
19151 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19152 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
19153 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
19154 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
19155 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
19156 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19157 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
19158 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
19159 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
19160 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
19161 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
19162 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
19163 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
19164 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
19165 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
19166 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
19167 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
db914595
RD
19168 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
19169 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
328fcd84 19170 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
19171 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
19172 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
328fcd84 19173 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
19174 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
19175 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
19176 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
19177 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19178 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19179 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
19180 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
19181 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
19182 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
19183 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
19184 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
19185 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
19186 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
19187 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
19188 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
19189 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
19190 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
19191 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
19192 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
19193 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
19194 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
19195 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
19196 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
19197 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
19198 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
19199 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
19200 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
19201 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
19202 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
19203 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
19204 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
19205 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
19206 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
19207 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
19208 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
19209 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
19210 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
19211 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
19212 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
19213 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
19214 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
19215 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
19216 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
19217 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
19218 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
19219 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
19220 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
19221 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
19222 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
19223 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
19224 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
19225 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
19226 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
19227 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
19228 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
19229 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
19230 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19231 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19232 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
19233 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
19234 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
19235 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
19236 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
19237 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
19238 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
19239 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
19240 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
19241 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
d14a1e28
RD
19242 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
19243 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19244 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
19245 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
19246 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19247 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19248 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19249 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
19250 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
19251 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19252 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19253 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
19254 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
19255 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
19256 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
19257 { NULL, NULL }
19258};
19259
19260
19261/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19262
423f194a
RD
19263static void *_p_wxControlTo_p_wxWindow(void *x) {
19264 return (void *)((wxWindow *) ((wxControl *) x));
19265}
19266static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19267 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19268}
19269static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19270 return (void *)((wxWindow *) ((wxMenuBar *) x));
19271}
d14a1e28
RD
19272static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19273 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19274}
19275static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19276 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19277}
d14a1e28
RD
19278static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19279 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19280}
19281static void *_p_wxPenTo_p_wxObject(void *x) {
19282 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19283}
19284static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19285 return (void *)((wxObject *) ((wxRegionIterator *) x));
19286}
19287static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19288 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19289}
19290static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19291 return (void *)((wxObject *) ((wxSizerItem *) x));
19292}
19293static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19294 return (void *)((wxObject *) ((wxColourDatabase *) x));
19295}
19296static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19297 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19298}
19299static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19300 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19301}
19302static void *_p_wxIconTo_p_wxObject(void *x) {
19303 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19304}
19305static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19306 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19307}
19308static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19309 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19310}
19311static void *_p_wxSizerTo_p_wxObject(void *x) {
19312 return (void *)((wxObject *) ((wxSizer *) x));
19313}
19314static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19315 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19316}
19317static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19318 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19319}
19320static void *_p_wxPenListTo_p_wxObject(void *x) {
19321 return (void *)((wxObject *) ((wxPenList *) x));
19322}
19323static void *_p_wxEventTo_p_wxObject(void *x) {
19324 return (void *)((wxObject *) ((wxEvent *) x));
19325}
19326static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19327 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19328}
19329static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19330 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19331}
19332static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19333 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19334}
19335static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19336 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19337}
19338static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19339 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19340}
19341static void *_p_wxDCTo_p_wxObject(void *x) {
19342 return (void *)((wxObject *) ((wxDC *) x));
19343}
19344static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19345 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19346}
19347static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19348 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19349}
19350static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19351 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19352}
19353static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19354 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19355}
19356static void *_p_wxControlTo_p_wxObject(void *x) {
19357 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19358}
19359static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19360 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19361}
19362static void *_p_wxClientDCTo_p_wxObject(void *x) {
19363 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19364}
19365static void *_p_wxFSFileTo_p_wxObject(void *x) {
19366 return (void *)((wxObject *) ((wxFSFile *) x));
19367}
19368static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19369 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19370}
19371static void *_p_wxRegionTo_p_wxObject(void *x) {
19372 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19373}
19374static void *_p_wxPySizerTo_p_wxObject(void *x) {
19375 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19376}
19377static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19378 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19379}
19380static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19381 return (void *)((wxObject *) ((wxGDIObject *) x));
19382}
19383static void *_p_wxEffectsTo_p_wxObject(void *x) {
19384 return (void *)((wxObject *) ((wxEffects *) x));
19385}
19386static void *_p_wxPyEventTo_p_wxObject(void *x) {
19387 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19388}
19389static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19390 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19391}
19392static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19393 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19394}
19395static void *_p_wxShowEventTo_p_wxObject(void *x) {
19396 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19397}
19398static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19399 return (void *)((wxObject *) ((wxMenuItem *) x));
19400}
19401static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19402 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19403}
19404static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19405 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19406}
19407static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19408 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19409}
19410static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19411 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19412}
19413static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19414 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19415}
19416static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19417 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19418}
19419static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19420 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19421}
19422static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19423 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19424}
19425static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19426 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19427}
19428static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19429 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19430}
19431static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19432 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19433}
19434static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19435 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19436}
19437static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19438 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19439}
19440static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19441 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19442}
19443static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19444 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19445}
19446static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19447 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19448}
19449static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19450 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19451}
19452static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19453 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19454}
19455static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19456 return (void *)((wxObject *) ((wxImageHandler *) x));
19457}
19458static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19459 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19460}
19461static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19462 return (void *)((wxObject *) ((wxEvtHandler *) x));
19463}
19464static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19465 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19466}
19467static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19468 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19469}
19470static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19471 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19472}
19473static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19474 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19475}
41f1cec7
RD
19476static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19477 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19478}
d14a1e28
RD
19479static void *_p_wxImageTo_p_wxObject(void *x) {
19480 return (void *)((wxObject *) ((wxImage *) x));
19481}
19482static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19483 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19484}
d14a1e28
RD
19485static void *_p_wxPaletteTo_p_wxObject(void *x) {
19486 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19487}
19488static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19489 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19490}
19491static void *_p_wxImageListTo_p_wxObject(void *x) {
19492 return (void *)((wxObject *) ((wxImageList *) x));
19493}
19494static void *_p_wxCursorTo_p_wxObject(void *x) {
19495 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19496}
19497static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19498 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19499}
19500static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19501 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19502}
19503static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19504 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19505}
19506static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19507 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19508}
19509static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19510 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19511}
19512static void *_p_wxWindowTo_p_wxObject(void *x) {
19513 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19514}
19515static void *_p_wxMenuTo_p_wxObject(void *x) {
19516 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19517}
19518static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19519 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19520}
19521static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19522 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19523}
19524static void *_p_wxBrushListTo_p_wxObject(void *x) {
19525 return (void *)((wxObject *) ((wxBrushList *) x));
19526}
19527static void *_p_wxPyPenTo_p_wxObject(void *x) {
19528 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19529}
19530static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19531 return (void *)((wxObject *) ((wxFileSystem *) x));
19532}
19533static void *_p_wxBitmapTo_p_wxObject(void *x) {
19534 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19535}
19536static void *_p_wxMaskTo_p_wxObject(void *x) {
19537 return (void *)((wxObject *) ((wxMask *) x));
19538}
19539static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19540 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19541}
19542static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19543 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19544}
19545static void *_p_wxPyAppTo_p_wxObject(void *x) {
19546 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19547}
19548static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19549 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19550}
19551static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19552 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19553}
19554static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19555 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19556}
19557static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19558 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19559}
19560static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19561 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19562}
19563static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19564 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19565}
19566static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19567 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19568}
19569static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19570 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19571}
19572static void *_p_wxFontTo_p_wxObject(void *x) {
19573 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19574}
19575static void *_p_wxBrushTo_p_wxObject(void *x) {
19576 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19577}
19578static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19579 return (void *)((wxObject *) ((wxMetaFile *) x));
19580}
19581static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19582 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19583}
19584static void *_p_wxColourTo_p_wxObject(void *x) {
19585 return (void *)((wxObject *) ((wxColour *) x));
19586}
19587static void *_p_wxFontListTo_p_wxObject(void *x) {
19588 return (void *)((wxObject *) ((wxFontList *) x));
19589}
19590static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19591 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19592}
19593static void *_p_wxValidatorTo_p_wxObject(void *x) {
19594 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19595}
423f194a
RD
19596static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19597 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
d14a1e28 19598}
423f194a
RD
19599static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19600 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
d14a1e28 19601}
423f194a
RD
19602static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19603 return (void *)((wxDC *) ((wxScreenDC *) x));
19604}
19605static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19606 return (void *)((wxDC *) ((wxMirrorDC *) x));
19607}
19608static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19609 return (void *)((wxDC *) ((wxMemoryDC *) x));
19610}
19611static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19612 return (void *)((wxDC *) ((wxWindowDC *) x));
19613}
19614static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19615 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19616}
19617static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19618 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19619}
19620static void *_p_wxClientDCTo_p_wxDC(void *x) {
19621 return (void *)((wxDC *) ((wxClientDC *) x));
19622}
19623static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19624 return (void *)((wxDC *) ((wxPaintDC *) x));
19625}
19626static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19627 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19628}
19629static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19630 return (void *)((wxDC *) ((wxPrinterDC *) x));
19631}
19632static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19633 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19634}
19635static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19636 return (void *)((wxGDIObject *) ((wxIcon *) x));
19637}
19638static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19639 return (void *)((wxGDIObject *) ((wxPalette *) x));
19640}
19641static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19642 return (void *)((wxGDIObject *) ((wxPen *) x));
19643}
19644static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19645 return (void *)((wxGDIObject *) ((wxFont *) x));
19646}
19647static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19648 return (void *)((wxGDIObject *) ((wxCursor *) x));
19649}
19650static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19651 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19652}
19653static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19654 return (void *)((wxGDIObject *) ((wxRegion *) x));
19655}
19656static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19657 return (void *)((wxGDIObject *) ((wxBrush *) x));
19658}
19659static void *_p_wxPyPenTo_p_wxPen(void *x) {
19660 return (void *)((wxPen *) ((wxPyPen *) x));
d14a1e28 19661}
2f4c0a16
RD
19662static 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}};
19663static 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}};
19664static 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}};
19665static 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}};
19666static 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}};
19667static 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}};
19668static 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}};
19669static 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}};
19670static 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}};
19671static 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}};
19672static 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}};
19673static 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}};
19674static 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}};
19675static 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}};
19676static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19677static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0, 0, 0, 0},{"_p_double", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19678static 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}};
19679static 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}};
19680static 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}};
19681static 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}};
19682static 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}};
19683static 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}};
19684static 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}};
19685static 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}};
19686static 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}};
19687static 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}};
19688static 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}};
19689static 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}};
19690static 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}};
19691static 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}};
19692static 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}};
19693static 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}};
19694static 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}};
19695static 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}};
19696static 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}};
19697static 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}};
19698static 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}};
19699static 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}};
19700static 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}};
19701static 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}};
19702static 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}};
19703static 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}};
19704static 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}};
19705static 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}};
19706static 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}};
19707static 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}};
19708static 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}};
19709static 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}};
19710static 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}};
19711static 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}};
19712static 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}};
19713static 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}};
19714static 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}};
19715static 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}};
19716static 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}};
19717static 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
19718
19719static swig_type_info *swig_types_initial[] = {
19720_swigt__p_wxPostScriptDC,
d14a1e28
RD
19721_swigt__p_wxBrush,
19722_swigt__p_wxColour,
d14a1e28
RD
19723_swigt__p_wxDC,
19724_swigt__p_wxMirrorDC,
19725_swigt__p_byte,
19726_swigt__p_wxPyFontEnumerator,
8edf1c75 19727_swigt__p_char,
d14a1e28
RD
19728_swigt__p_wxIconLocation,
19729_swigt__p_wxImage,
19730_swigt__p_wxMetaFileDC,
19731_swigt__p_wxMask,
19732_swigt__p_wxFont,
19733_swigt__p_wxWindow,
19734_swigt__p_wxSize,
19735_swigt__p_double,
19736_swigt__p_wxMemoryDC,
19737_swigt__p_wxFontMapper,
d14a1e28
RD
19738_swigt__p_wxEffects,
19739_swigt__p_wxNativeEncodingInfo,
19740_swigt__p_wxPalette,
19741_swigt__p_wxBitmap,
19742_swigt__p_wxObject,
19743_swigt__p_wxRegionIterator,
19744_swigt__p_wxRect,
19745_swigt__p_wxString,
19746_swigt__p_wxPrinterDC,
19747_swigt__p_wxIconBundle,
19748_swigt__p_wxPoint,
19749_swigt__p_wxDash,
19750_swigt__p_wxScreenDC,
19751_swigt__p_wxCursor,
19752_swigt__p_wxClientDC,
d14a1e28
RD
19753_swigt__p_wxBufferedDC,
19754_swigt__p_wxImageList,
19755_swigt__p_unsigned_char,
19756_swigt__p_wxGDIObject,
d14a1e28 19757_swigt__p_wxIcon,
8edf1c75 19758_swigt__p_wxLocale,
d14a1e28
RD
19759_swigt__p_wxRegion,
19760_swigt__p_wxLanguageInfo,
19761_swigt__p_wxConfigBase,
19762_swigt__p_wxWindowDC,
19763_swigt__p_wxPrintData,
19764_swigt__p_wxBrushList,
19765_swigt__p_wxFontList,
19766_swigt__p_wxPen,
19767_swigt__p_wxBufferedPaintDC,
19768_swigt__p_wxPaintDC,
19769_swigt__p_wxPenList,
d14a1e28
RD
19770_swigt__p_wxPyPen,
19771_swigt__p_int,
19772_swigt__p_wxMetaFile,
19773_swigt__p_wxNativeFontInfo,
19774_swigt__p_wxEncodingConverter,
19775_swigt__p_wxColourDatabase,
197760
19777};
19778
19779
19780/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19781
19782static swig_const_info swig_const_table[] = {
d14a1e28
RD
19783{0}};
19784
19785#ifdef __cplusplus
19786}
19787#endif
19788
19789#ifdef __cplusplus
19790extern "C"
19791#endif
19792SWIGEXPORT(void) SWIG_init(void) {
19793 static PyObject *SWIG_globals = 0;
19794 static int typeinit = 0;
19795 PyObject *m, *d;
19796 int i;
19797 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19798 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19799 d = PyModule_GetDict(m);
19800
19801 if (!typeinit) {
19802 for (i = 0; swig_types_initial[i]; i++) {
19803 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19804 }
19805 typeinit = 1;
19806 }
19807 SWIG_InstallConstants(d,swig_const_table);
19808
2f4c0a16
RD
19809 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19810 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19811 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19812 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19813 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19814 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19815 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19816 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19817 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19818 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19819 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19820 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19821 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19822 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19823 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19824 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19825 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19826 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19827 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19828 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19829 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19830 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19831 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19832 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19833 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19834 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19835 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19836 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19837 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19838 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19839 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19840 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19841 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19842 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19843 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19844 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19845 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19846 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19847 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19848 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19849 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19850 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19851 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19852 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19853 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19854 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19855 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19856 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19857 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19858 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19859 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19860 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19861 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19862 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19863 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19864 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19865 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19866 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19867 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19868 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19869 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19870 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19871 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19872 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19873 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19874 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19875 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19876 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19877 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19878 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19879 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19880 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19881 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19882 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19883 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19884 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19885 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19886 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19887 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19888 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19889 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19890 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19891 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19892 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19893 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19894 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19895 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19896 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19897 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19898 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19899 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19900 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19901 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19902 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19903 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19904 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19905 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19906 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19907 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19908 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19909 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19910 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19911 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19912 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19913 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19914 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19915 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19916 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19917 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19918 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19919 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19920 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19921 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19922 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19923 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19924 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19925 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19926 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19927 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19928 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19929 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19930 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19931 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19932 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19933 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19934 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
d14a1e28
RD
19935
19936 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19937
2f4c0a16
RD
19938 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19939 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19940 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19941 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19942 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19943 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19944 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19945 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19946 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19947 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19948 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19949 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19950 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19951 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19952 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19953 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19954 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19955 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19956 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19957 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19958 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19959 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19960 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19961 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19962 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19963 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19964 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19965 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19966 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19967 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19968 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19969 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19970 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19971 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19972 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19973 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19974 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19975 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19976 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19977 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19978 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19979 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19980 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19981 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19982 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19983 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19984 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19985 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19986 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19987 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19988 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19989 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19990 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19991 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19992 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19993 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19994 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19995 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19996 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19997 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19998 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19999 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20000 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
20001 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20002 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
20003 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
20004 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
20005 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20006 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20007 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20008 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20009 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20010 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
20011 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
20012 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
20013 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
20014 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
20015 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
20016 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
20017 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
20018 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
20019 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20020 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
20021 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
20022 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
20023 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
20024 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
20025 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
20026 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20027 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
20028 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20029 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20030 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
20031 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
20032 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
20033 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
20034 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
20035 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
20036 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
20037 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
20038 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
20039 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
20040 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
20041 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
20042 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
20043 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
20044 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
20045 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
20046 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
20047 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
20048 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
20049 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
20050 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
20051 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
20052 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
20053 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
20054 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
20055 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
20056 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
20057 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
20058 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
20059 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
20060 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
20061 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
20062 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
20063 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
20064 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
20065 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
20066 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
20067 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
20068 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
20069 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
20070 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20071 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
20072 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
20073 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
20074 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
20075 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
20076 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
20077 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
20078 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
20079 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
20080 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
20081 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20082 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20083 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
20084 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
20085 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
20086 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
20087 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
20088 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
20089 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20090 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
20091 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
20092 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
20093 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
20094 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
20095 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20096 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
20097 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
20098 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
20099 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
20100 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
20101 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20102 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
20103 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
20104 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
20105 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
20106 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
20107 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
20108 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
20109 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
20110 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
20111 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
20112 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
20113 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
20114 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
20115 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
20116 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
20117 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
20118 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20119 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20120 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
20121 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20122 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
20123 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
20124 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
20125 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
20126 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
20127 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
20128 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
20129 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
20130 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20131 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
20132 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
20133 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
20134 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
20135 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
20136 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
20137 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
20138 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
20139 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
20140 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
20141 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
20142 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
20143 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
20144 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
20145 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
20146 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
20147 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
20148 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
20149 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
20150 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
20151 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
20152 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
20153 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
20154 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
20155 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
20156 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
20157 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
20158 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
20159 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
20160 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
20161 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
20162 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
20163 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
20164 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
20165 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
20166 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
20167 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
20168 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
20169 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
20170 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
20171 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
20172 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
20173 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
20174 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
20175 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
20176 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
20177 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
20178 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
20179 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
20180 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
20181 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
20182 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
20183 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
20184 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
20185 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
20186 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
20187 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
20188 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
20189 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
20190 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
d14a1e28
RD
20191 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20192 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20193 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20194 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20195 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20196 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20197 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20198 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20199 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20200 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20201 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20202 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20203 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20204 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20205 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20206 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20207 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20208 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20209 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20210 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20211 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20212 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20213 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20214 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20215 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20216 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20217 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20218 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20219 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20220 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20221 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20222 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20223 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20224 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20225 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20226 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20227 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20228 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20229 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20230 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20231 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20232 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20233 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20234 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20235 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20236 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20237 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
44127b65
RD
20238
20239 // Work around a chicken/egg problem in drawlist.cpp
20240 wxPyDrawList_SetAPIPtr();
20241
d14a1e28
RD
20242}
20243