]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_gdi_wrap.cpp
Add a link to the changes file, move the log file
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
a41e16b6 3 * Version 1.3.22
d14a1e28
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_NOINCLUDE
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27};
28#endif
29
30
31#include "Python.h"
32
33/*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41#define SWIG_TypeRegister SWIG_Python_TypeRegister
42#define SWIG_TypeCheck SWIG_Python_TypeCheck
43#define SWIG_TypeCast SWIG_Python_TypeCast
44#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45#define SWIG_TypeName SWIG_Python_TypeName
46#define SWIG_TypeQuery SWIG_Python_TypeQuery
47#define SWIG_TypeClientData SWIG_Python_TypeClientData
c9c7117a
RD
48#define SWIG_PackData SWIG_Python_PackData
49#define SWIG_UnpackData SWIG_Python_UnpackData
50
d14a1e28
RD
51
52/***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62#include <string.h>
63
cc6dd355
RD
64#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65# if defined(_MSC_VER) || defined(__GNUC__)
66# if defined(STATIC_LINKED)
67# define SWIGEXPORT(a) a
68# define SWIGIMPORT(a) extern a
69# else
70# define SWIGEXPORT(a) __declspec(dllexport) a
71# define SWIGIMPORT(a) extern a
72# endif
73# else
74# if defined(__BORLANDC__)
75# define SWIGEXPORT(a) a _export
76# define SWIGIMPORT(a) a _export
77# else
78# define SWIGEXPORT(a) a
79# define SWIGIMPORT(a) a
80# endif
81# endif
d14a1e28 82#else
cc6dd355
RD
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
d14a1e28
RD
85#endif
86
87#ifdef SWIG_GLOBAL
cc6dd355 88# define SWIGRUNTIME(a) SWIGEXPORT(a)
d14a1e28 89#else
cc6dd355 90# define SWIGRUNTIME(a) static a
d14a1e28
RD
91#endif
92
d14a1e28
RD
93#ifdef __cplusplus
94extern "C" {
95#endif
96
97typedef void *(*swig_converter_func)(void *);
98typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100typedef struct swig_type_info {
cc6dd355 101 const char *name;
d14a1e28
RD
102 swig_converter_func converter;
103 const char *str;
cc6dd355 104 void *clientdata;
d14a1e28
RD
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108} swig_type_info;
109
110
111SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
cc6dd355
RD
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
d14a1e28
RD
120
121
122#ifdef __cplusplus
123}
124#endif
125
126/***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
d14a1e28
RD
136#include "Python.h"
137
138#ifdef __cplusplus
139extern "C" {
140#endif
141
142#define SWIG_PY_INT 1
143#define SWIG_PY_FLOAT 2
144#define SWIG_PY_STRING 3
145#define SWIG_PY_POINTER 4
146#define SWIG_PY_BINARY 5
147
148/* Flags for pointer conversion */
149
150#define SWIG_POINTER_EXCEPTION 0x1
151#define SWIG_POINTER_DISOWN 0x2
152
153/* Exception handling in wrappers */
154#define SWIG_fail goto fail
155
156/* Constant information structure */
157typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164} swig_const_info;
165
d14a1e28
RD
166/* Common SWIG API */
167#define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169#define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171#define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
a41e16b6 173
d14a1e28
RD
174/* Python-specific SWIG API */
175#define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177#define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
d14a1e28
RD
181#define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183#define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
994141e6 186typedef double (*py_objasdbl_conv)(PyObject *obj);
d14a1e28 187
cc6dd355
RD
188SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
d14a1e28 196
d14a1e28
RD
197
198/* Contract support */
199
9d1d5697 200#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
d14a1e28 201
d14a1e28
RD
202#ifdef __cplusplus
203}
204#endif
205
206
d14a1e28
RD
207/* -------- TYPES TABLE (BEGIN) -------- */
208
209#define SWIGTYPE_p_wxPostScriptDC swig_types[0]
e811c8ce
RD
210#define SWIGTYPE_p_wxBrush swig_types[1]
211#define SWIGTYPE_p_wxColour swig_types[2]
212#define SWIGTYPE_p_wxDC swig_types[3]
213#define SWIGTYPE_p_wxMirrorDC swig_types[4]
214#define SWIGTYPE_p_byte swig_types[5]
215#define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
994141e6
RD
216#define SWIGTYPE_p_char swig_types[7]
217#define SWIGTYPE_p_wxIconLocation swig_types[8]
218#define SWIGTYPE_p_wxImage swig_types[9]
219#define SWIGTYPE_p_wxMetaFileDC swig_types[10]
220#define SWIGTYPE_p_wxMask swig_types[11]
b2df227b
RD
221#define SWIGTYPE_p_wxSize swig_types[12]
222#define SWIGTYPE_p_wxFont swig_types[13]
223#define SWIGTYPE_p_wxWindow swig_types[14]
994141e6
RD
224#define SWIGTYPE_p_double swig_types[15]
225#define SWIGTYPE_p_wxMemoryDC swig_types[16]
226#define SWIGTYPE_p_wxFontMapper swig_types[17]
227#define SWIGTYPE_p_wxEffects swig_types[18]
228#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
229#define SWIGTYPE_p_wxPalette swig_types[20]
230#define SWIGTYPE_p_wxBitmap swig_types[21]
231#define SWIGTYPE_p_wxObject swig_types[22]
232#define SWIGTYPE_p_wxRegionIterator swig_types[23]
233#define SWIGTYPE_p_wxRect swig_types[24]
234#define SWIGTYPE_p_wxString swig_types[25]
235#define SWIGTYPE_p_wxPrinterDC swig_types[26]
236#define SWIGTYPE_p_wxIconBundle swig_types[27]
237#define SWIGTYPE_p_wxPoint swig_types[28]
238#define SWIGTYPE_p_wxDash swig_types[29]
239#define SWIGTYPE_p_wxScreenDC swig_types[30]
240#define SWIGTYPE_p_wxCursor swig_types[31]
241#define SWIGTYPE_p_wxClientDC swig_types[32]
242#define SWIGTYPE_p_wxBufferedDC swig_types[33]
243#define SWIGTYPE_p_wxImageList swig_types[34]
244#define SWIGTYPE_p_unsigned_char swig_types[35]
245#define SWIGTYPE_p_wxGDIObject swig_types[36]
e811c8ce 246#define SWIGTYPE_p_wxIcon swig_types[37]
994141e6
RD
247#define SWIGTYPE_p_wxLocale swig_types[38]
248#define SWIGTYPE_p_wxRegion swig_types[39]
66c033b4
RD
249#define SWIGTYPE_p_wxLanguageInfo swig_types[40]
250#define SWIGTYPE_p_wxConfigBase swig_types[41]
994141e6
RD
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]
66c033b4
RD
259#define SWIGTYPE_p_int swig_types[50]
260#define SWIGTYPE_p_wxMetaFile swig_types[51]
261#define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
262#define SWIGTYPE_p_wxEncodingConverter swig_types[53]
263#define SWIGTYPE_p_wxColourDatabase swig_types[54]
264static swig_type_info *swig_types[56];
d14a1e28
RD
265
266/* -------- TYPES TABLE (END) -------- */
267
268
269/*-----------------------------------------------
54f9ee45 270 @(target):= _gdi_.so
d14a1e28 271 ------------------------------------------------*/
54f9ee45 272#define SWIG_init init_gdi_
d14a1e28 273
54f9ee45 274#define SWIG_name "_gdi_"
d14a1e28 275
15afbcd0 276/* Auxiliar swig macros */
994141e6 277
994141e6 278#ifdef __cplusplus
15afbcd0 279#define SWIGSTATICINLINE(a) static inline a
994141e6 280#define SWIGSTATIC(a) static a
15afbcd0
RD
281#define swig_new_array(type, size) (new type[(size)])
282#define swig_delete_array(cptr) delete[] cptr
283#define swig_const_cast(type,a) const_cast<type>(a)
284#define swig_static_cast(type,a) static_cast<type>(a)
285#define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
994141e6 286
994141e6 287#ifdef HAVE_NUMERIC_CAST
15afbcd0 288#define swig_numeric_cast(type,a) numeric_cast<type>(a)
994141e6 289#else
15afbcd0 290#define swig_numeric_cast(type,a) static_cast<type>(a)
994141e6
RD
291#endif
292
15afbcd0
RD
293#else /* C case */
294
295#define SWIGSTATICINLINE(a) static a
296#define SWIGSTATIC(a) static a
297#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
298#define swig_delete_array(cptr) free((char*)cptr)
299#define swig_const_cast(type,a) (type)(a)
300#define swig_static_cast(type,a) (type)(a)
301#define swig_reinterpret_cast(type,a) (type)(a)
302#define swig_numeric_cast(type,a) (type)(a)
303
304#endif /* __cplusplus */
994141e6
RD
305
306
15afbcd0
RD
307#define SWIG_FromSignedChar PyInt_FromLong
308#define SWIG_FromUnsignedChar PyInt_FromLong
309#define SWIG_FromShort PyInt_FromLong
310#define SWIG_FromUnsignedShort PyInt_FromLong
311#define SWIG_FromInt PyInt_FromLong
312#define SWIG_FromLong PyInt_FromLong
313#define SWIG_FromFloat PyFloat_FromDouble
314#define SWIG_FromDouble PyFloat_FromDouble
315#define SWIG_FromFloat PyFloat_FromDouble
316#define SWIG_FromDouble PyFloat_FromDouble
994141e6
RD
317
318
d14a1e28
RD
319#include "wx/wxPython/wxPython.h"
320#include "wx/wxPython/pyclasses.h"
321
d14a1e28 322
b2dc1044 323 static const wxString wxPyEmptyString(wxEmptyString);
994141e6 324
15afbcd0
RD
325SWIGSTATICINLINE(bool)
326SWIG_AsBool(PyObject *obj)
994141e6
RD
327{
328 return PyObject_IsTrue(obj) ? true : false;
329}
330
331
15afbcd0
RD
332SWIGSTATICINLINE(int)
333SWIG_CheckBool(PyObject* obj)
334{
335 SWIG_AsBool(obj);
336 if (PyErr_Occurred()) {
337 PyErr_Clear();
338 return 0;
339 } else {
340 return 1;
341 }
342}
343
344
345#include <limits.h>
346
347
348SWIGSTATICINLINE(unsigned long)
349SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
350 unsigned long max_value)
351{
352 if (!PyErr_Occurred()) {
353 if (value > max_value) {
354 PyObject *err =
355 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
356 value, type, max_value);
357 PyErr_SetObject(PyExc_OverflowError, err);
358 Py_DECREF(err);
359 }
360 }
361 return value;
362}
363
364
69223c70
RD
365SWIGSTATICINLINE(long)
366SWIG_AsLong(PyObject * obj)
367{
368 if (PyNumber_Check(obj))
369 return PyInt_AsLong(obj);
370 else {
371 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
372 obj->ob_type->tp_name);
373 PyErr_SetObject(PyExc_TypeError, errmsg);
374 Py_DECREF(errmsg);
375 return 0;
376 }
377}
378
379
15afbcd0
RD
380SWIGSTATICINLINE(unsigned long)
381SWIG_AsUnsignedLong(PyObject * obj)
382{
383 if (PyLong_Check(obj)) {
384 return PyLong_AsUnsignedLong(obj);
385 } else {
69223c70 386 long i = SWIG_AsLong(obj);
15afbcd0 387 if ( !PyErr_Occurred() && (i < 0)) {
69223c70 388 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
15afbcd0
RD
389 }
390 return i;
391 }
392}
393
394
395SWIGSTATICINLINE(unsigned char)
396SWIG_AsUnsignedChar(PyObject *obj)
994141e6 397{
15afbcd0
RD
398 return swig_numeric_cast(unsigned char,
399 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
400 "unsigned char", UCHAR_MAX));
401}
402
403
404SWIGSTATICINLINE(int)
405SWIG_CheckUnsignedChar(PyObject* obj)
406{
407 SWIG_AsUnsignedChar(obj);
408 if (PyErr_Occurred()) {
409 PyErr_Clear();
410 return 0;
411 } else {
412 return 1;
413 }
414}
415
416
417SWIGSTATICINLINE(int)
418SWIG_CheckUnsignedLong(PyObject* obj)
419{
420 SWIG_AsUnsignedLong(obj);
421 if (PyErr_Occurred()) {
422 PyErr_Clear();
423 return 0;
424 } else {
425 return 1;
426 }
994141e6
RD
427}
428
d14a1e28
RD
429PyObject *wxColour_Get(wxColour *self){
430 PyObject* rv = PyTuple_New(3);
431 int red = -1;
432 int green = -1;
433 int blue = -1;
434 if (self->Ok()) {
435 red = self->Red();
436 green = self->Green();
437 blue = self->Blue();
438 }
439 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
440 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
441 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
442 return rv;
443 }
b88bce5f
RD
444unsigned long wxColour_GetRGB(wxColour *self){
445 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
446 }
447
15afbcd0
RD
448SWIGSTATICINLINE(PyObject* )
449SWIG_FromUnsignedLong(unsigned long value)
450{
451 return (value > LONG_MAX) ?
452 PyLong_FromUnsignedLong(value)
453 : PyInt_FromLong(swig_numeric_cast(long,value));
454}
455
456
457SWIGSTATICINLINE(long)
458SWIG_CheckLongInRange(long value, const char* type,
459 long min_value, long max_value)
460{
461 if (!PyErr_Occurred()) {
462 if (value < min_value) {
463 PyObject *err =
464 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
465 value, type, min_value);
466
467 PyErr_SetObject(PyExc_OverflowError, err);
468 Py_DECREF(err);
469 } else if (value > max_value) {
470 PyObject *err =
471 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
472 value, type, max_value);
473 PyErr_SetObject(PyExc_OverflowError, err);
474 Py_DECREF(err);
475 }
476 }
477 return value;
478}
479
480
15afbcd0
RD
481#if INT_MAX != LONG_MAX
482SWIGSTATICINLINE(int)
483SWIG_AsInt(PyObject *obj)
994141e6 484{
15afbcd0
RD
485 return swig_numeric_cast(int,
486 SWIG_CheckLongInRange(SWIG_AsLong(obj),
487 "int", INT_MIN, INT_MAX));
488}
489#else
490#define SWIG_AsInt SWIG_AsLong
491#endif
492
493
494SWIGSTATICINLINE(int)
495SWIG_CheckInt(PyObject* obj)
496{
497 SWIG_AsInt(obj);
498 if (PyErr_Occurred()) {
499 PyErr_Clear();
500 return 0;
501 } else {
502 return 1;
503 }
994141e6
RD
504}
505
506
d14a1e28
RD
507static PyObject* t_output_helper(PyObject* target, PyObject* o) {
508 PyObject* o2;
509 PyObject* o3;
510
511 if (!target) {
512 target = o;
513 } else if (target == Py_None) {
514 Py_DECREF(Py_None);
515 target = o;
516 } else {
517 if (!PyTuple_Check(target)) {
518 o2 = target;
519 target = PyTuple_New(1);
520 PyTuple_SetItem(target, 0, o2);
521 }
522 o3 = PyTuple_New(1);
523 PyTuple_SetItem(o3, 0, o);
524
525 o2 = target;
526 target = PySequence_Concat(o2, o3);
527 Py_DECREF(o2);
528 Py_DECREF(o3);
529 }
530 return target;
531}
532
533PyObject *wxPen_GetDashes(wxPen *self){
534 wxDash* dashes;
535 int count = self->GetDashes(&dashes);
4f89f6a3 536 bool blocked = wxPyBeginBlockThreads();
d14a1e28 537 PyObject* retval = PyList_New(0);
1a10c483
RD
538 for (int x=0; x<count; x++) {
539 PyObject* pyint = PyInt_FromLong(dashes[x]);
540 PyList_Append(retval, pyint);
541 Py_DECREF(pyint);
542 }
4f89f6a3 543 wxPyEndBlockThreads(blocked);
d14a1e28
RD
544 return retval;
545 }
66c033b4
RD
546void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
547 bool blocked = wxPyBeginBlockThreads();
548 int size = PyList_Size(pyDashes);
549 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
550
551 // black magic warning! The array of wxDashes needs to exist as
552 // long as the pen does because wxPen does not copy the array. So
553 // stick a copy in a Python string object and attach it to _self,
554 // and then call SetDashes with a pointer to that array. Then
555 // when the Python pen object is destroyed the array will be
556 // cleaned up too.
557 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
558 PyObject_SetAttrString(_self, "_dashes", strDashes);
559
560 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
561 delete [] dashes;
562 Py_DECREF(strDashes);
563 wxPyEndBlockThreads(blocked);
564 }
22faec7d
RD
565bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
566bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
d14a1e28 567
d14a1e28
RD
568#include <wx/image.h>
569
570 static char** ConvertListOfStrings(PyObject* listOfStrings) {
571 char** cArray = NULL;
572 int count;
573
574 if (!PyList_Check(listOfStrings)) {
575 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
576 return NULL;
577 }
578 count = PyList_Size(listOfStrings);
579 cArray = new char*[count];
580
581 for(int x=0; x<count; x++) {
582 // TODO: Need some validation and error checking here
583 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
584 }
585 return cArray;
586 }
587
588
589wxBitmap *new_wxBitmap(PyObject *listOfStrings){
590 char** cArray = NULL;
591 wxBitmap* bmp;
592
593 cArray = ConvertListOfStrings(listOfStrings);
594 if (! cArray)
595 return NULL;
596 bmp = new wxBitmap(cArray);
597 delete [] cArray;
598 return bmp;
599 }
600wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
601 char* buf;
602 int length;
603 PyString_AsStringAndSize(bits, &buf, &length);
604 return new wxBitmap(buf, width, height, depth);
605 }
b2df227b
RD
606wxSize wxBitmap_GetSize(wxBitmap *self){
607 wxSize size(self->GetWidth(), self->GetHeight());
608 return size;
609 }
d14a1e28
RD
610void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
611 wxMask *mask = new wxMask(*self, colour);
612 self->SetMask(mask);
613 }
b2df227b
RD
614void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
615 self->SetWidth(size.x);
616 self->SetHeight(size.y);
617 }
4276dc52
RD
618bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
619bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
0482c494
RD
620wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
621 if ( !colour.Ok() )
622 return new wxMask(bitmap, *wxBLACK);
623 else
624 return new wxMask(bitmap, colour);
625 }
d14a1e28
RD
626
627#include <wx/iconbndl.h>
628
629wxIcon *new_wxIcon(wxBitmap const &bmp){
630 wxIcon* icon = new wxIcon();
631 icon->CopyFromBitmap(bmp);
632 return icon;
633 }
634wxIcon *new_wxIcon(PyObject *listOfStrings){
635 char** cArray = NULL;
636 wxIcon* icon;
637
638 cArray = ConvertListOfStrings(listOfStrings);
639 if (! cArray)
640 return NULL;
641 icon = new wxIcon(cArray);
642 delete [] cArray;
643 return icon;
644 }
645wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
646
647
648
649 return new wxIconLocation(*filename);
650
651 }
652void wxIconLocation_SetIndex(wxIconLocation *self,int num){
653
654
655
656 // do nothing
657
658 }
659int wxIconLocation_GetIndex(wxIconLocation *self){
660
661
662
663 return -1;
664
665 }
994141e6 666
15afbcd0
RD
667SWIGSTATICINLINE(int)
668SWIG_CheckLong(PyObject* obj)
994141e6 669{
15afbcd0
RD
670 SWIG_AsLong(obj);
671 if (PyErr_Occurred()) {
672 PyErr_Clear();
673 return 0;
674 } else {
675 return 1;
676 }
994141e6
RD
677}
678
15afbcd0
RD
679wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
680#ifdef __WXGTK__
e811c8ce 681 wxCHECK_MSG(False, NULL,
15afbcd0
RD
682 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
683#else
684 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
685#endif
d14a1e28
RD
686 }
687
688
689void wxRegionIterator_Next(wxRegionIterator *self){
690 (*self) ++;
691 }
692bool wxRegionIterator___nonzero__(wxRegionIterator *self){
693 return self->operator bool();
694 }
695
696#include <wx/fontutil.h>
697#include <wx/fontmap.h>
698#include <wx/fontenum.h>
699
700wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
701 return self->ToString();
702 }
703
704 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
705 static wxNativeEncodingInfo info;
706 if ( wxGetNativeFontEncoding(encoding, &info) )
707 return &info;
708 else
709 return NULL;
710 }
711
712PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
713 wxFontEncoding alt_enc;
714 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
715 return PyInt_FromLong(alt_enc);
716 else {
717 Py_INCREF(Py_None);
718 return Py_None;
719 }
720 }
721wxFont *new_wxFont(wxString const &info){
722 wxNativeFontInfo nfi;
723 nfi.FromString(info);
724 return new wxFont(nfi);
725 }
726wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
727 return wxFont::New(pointSize, family, flags, face, encoding);
728 }
22faec7d
RD
729bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
730bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
d14a1e28
RD
731
732class wxPyFontEnumerator : public wxFontEnumerator {
733public:
734 wxPyFontEnumerator() {}
735 ~wxPyFontEnumerator() {}
736
737 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
738 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
739
740 PYPRIVATE;
741};
742
743IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
744IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
745
746
747PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
748 wxArrayString* arr = self->GetEncodings();
0dcf9a74
RD
749 if (arr)
750 return wxArrayString2PyList_helper(*arr);
751 else
752 return PyList_New(0);
d14a1e28
RD
753 }
754PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
755 wxArrayString* arr = self->GetFacenames();
0dcf9a74
RD
756 if (arr)
757 return wxArrayString2PyList_helper(*arr);
758 else
759 return PyList_New(0);
d14a1e28
RD
760 }
761
762
41e2b43e
RD
763wxLocale *new_wxLocale(int language,int flags){
764 if (language == -1)
765 return new wxLocale();
766 else
767 return new wxLocale(language, flags);
768 }
d14a1e28
RD
769
770#include "wx/wxPython/pydrawxxx.h"
771
03e37cd5 772wxColour wxDC_GetPixel(wxDC *self,int x,int y){
d14a1e28
RD
773 wxColour col;
774 self->GetPixel(x, y, &col);
775 return col;
776 }
03e37cd5 777wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
d14a1e28
RD
778 wxColour col;
779 self->GetPixel(pt, &col);
780 return col;
781 }
994141e6 782
15afbcd0
RD
783SWIGSTATICINLINE(double)
784SWIG_AsDouble(PyObject *obj)
994141e6 785{
69223c70
RD
786 if (PyNumber_Check(obj))
787 return PyFloat_AsDouble(obj);
788 else {
789 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
790 obj->ob_type->tp_name);
791 PyErr_SetObject(PyExc_TypeError, errmsg);
792 Py_DECREF(errmsg);
793 return 0;
794 }
15afbcd0
RD
795}
796
797
798SWIGSTATICINLINE(int)
799SWIG_CheckDouble(PyObject* obj)
800{
801 SWIG_AsDouble(obj);
802 if (PyErr_Occurred()) {
803 PyErr_Clear();
804 return 0;
805 } else {
806 return 1;
807 }
994141e6
RD
808}
809
d14a1e28
RD
810wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
811 wxRect rv;
812 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
813 return rv;
814 }
815wxRect wxDC_GetClippingRect(wxDC *self){
816 wxRect rect;
817 self->GetClippingBox(rect);
818 return rect;
819 }
db914595
RD
820wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
821 wxArrayInt widths;
822 self->GetPartialTextExtents(text, widths);
823 return widths;
824 }
03e37cd5
RD
825void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
826 self->SetLogicalOrigin(point.x, point.y);
827 }
828void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
829 self->SetDeviceOrigin(point.x, point.y);
830 }
831void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
832 self->CalcBoundingBox(point.x, point.y);
833 }
d14a1e28
RD
834PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
835 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
836 }
837PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
838 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
839 }
840PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
841 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
842 }
843PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
844 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
845 }
846PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
847 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
848 }
849PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
850 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
851 }
852
853static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
854 *x1 = dc->MinX();
855 *y1 = dc->MinY();
856 *x2 = dc->MaxX();
857 *y2 = dc->MaxY();
858}
859
860
b88bce5f 861#include <wx/dcbuffer.h>
b88bce5f 862
b88bce5f 863
d14a1e28
RD
864#include <wx/dcps.h>
865
866
867class wxMetaFile : public wxObject {
868public:
869 wxMetaFile(const wxString&)
39f61e25 870 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
871};
872
873class wxMetaFileDC : public wxClientDC {
874public:
875 wxMetaFileDC(const wxString&, int, int, const wxString&)
39f61e25 876 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
877};
878
879
880
881class wxPrinterDC : public wxClientDC {
882public:
883 wxPrinterDC(const wxPrintData&)
39f61e25 884 { wxPyRaiseNotImplemented(); }
33b885b9 885
d14a1e28 886// wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
39f61e25 887// { wxPyRaiseNotImplemented(); }
d14a1e28
RD
888};
889
890
891
892void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
893 self->AddColour(name, wxColour(red, green, blue));
894 }
895
d14a1e28
RD
896#include <wx/effects.h>
897
898#ifdef __cplusplus
899extern "C" {
900#endif
901static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
902 PyObject *resultobj;
903 wxGDIObject *result;
904 char *kwnames[] = {
905 NULL
906 };
907
908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
909 {
e3b71cb8 910 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
911 PyThreadState* __tstate = wxPyBeginAllowThreads();
912 result = (wxGDIObject *)new wxGDIObject();
913
914 wxPyEndAllowThreads(__tstate);
110da5b0 915 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 916 }
15afbcd0 917 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
d14a1e28
RD
918 return resultobj;
919 fail:
920 return NULL;
921}
922
923
924static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
925 PyObject *resultobj;
926 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
927 PyObject * obj0 = 0 ;
928 char *kwnames[] = {
929 (char *) "self", NULL
930 };
931
932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
15afbcd0
RD
933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
935 {
936 PyThreadState* __tstate = wxPyBeginAllowThreads();
937 delete arg1;
938
939 wxPyEndAllowThreads(__tstate);
940 if (PyErr_Occurred()) SWIG_fail;
941 }
942 Py_INCREF(Py_None); resultobj = Py_None;
943 return resultobj;
944 fail:
945 return NULL;
946}
947
948
949static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
950 PyObject *resultobj;
951 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
952 bool result;
953 PyObject * obj0 = 0 ;
954 char *kwnames[] = {
955 (char *) "self", NULL
956 };
957
958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
15afbcd0
RD
959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
961 {
962 PyThreadState* __tstate = wxPyBeginAllowThreads();
963 result = (bool)(arg1)->GetVisible();
964
965 wxPyEndAllowThreads(__tstate);
966 if (PyErr_Occurred()) SWIG_fail;
967 }
4f89f6a3
RD
968 {
969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
970 }
d14a1e28
RD
971 return resultobj;
972 fail:
973 return NULL;
974}
975
976
977static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
978 PyObject *resultobj;
979 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
980 bool arg2 ;
981 PyObject * obj0 = 0 ;
982 PyObject * obj1 = 0 ;
983 char *kwnames[] = {
984 (char *) "self",(char *) "visible", NULL
985 };
986
987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
990 arg2 = (bool) SWIG_AsBool(obj1);
991 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
992 {
993 PyThreadState* __tstate = wxPyBeginAllowThreads();
994 (arg1)->SetVisible(arg2);
995
996 wxPyEndAllowThreads(__tstate);
997 if (PyErr_Occurred()) SWIG_fail;
998 }
999 Py_INCREF(Py_None); resultobj = Py_None;
1000 return resultobj;
1001 fail:
1002 return NULL;
1003}
1004
1005
1006static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1007 PyObject *resultobj;
1008 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1009 bool result;
1010 PyObject * obj0 = 0 ;
1011 char *kwnames[] = {
1012 (char *) "self", NULL
1013 };
1014
1015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
15afbcd0
RD
1016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1018 {
1019 PyThreadState* __tstate = wxPyBeginAllowThreads();
1020 result = (bool)(arg1)->IsNull();
1021
1022 wxPyEndAllowThreads(__tstate);
1023 if (PyErr_Occurred()) SWIG_fail;
1024 }
4f89f6a3
RD
1025 {
1026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1027 }
d14a1e28
RD
1028 return resultobj;
1029 fail:
1030 return NULL;
1031}
1032
1033
1034static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1035 PyObject *obj;
1036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1037 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1038 Py_INCREF(obj);
1039 return Py_BuildValue((char *)"");
1040}
1041static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1042 PyObject *resultobj;
41e2b43e
RD
1043 byte arg1 = (byte) 0 ;
1044 byte arg2 = (byte) 0 ;
1045 byte arg3 = (byte) 0 ;
d14a1e28
RD
1046 wxColour *result;
1047 PyObject * obj0 = 0 ;
1048 PyObject * obj1 = 0 ;
1049 PyObject * obj2 = 0 ;
1050 char *kwnames[] = {
1051 (char *) "red",(char *) "green",(char *) "blue", NULL
1052 };
1053
1054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1055 if (obj0) {
41e2b43e 1056 arg1 = (byte) SWIG_AsUnsignedChar(obj0);
15afbcd0 1057 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1058 }
1059 if (obj1) {
41e2b43e 1060 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
15afbcd0 1061 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1062 }
1063 if (obj2) {
41e2b43e 1064 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
15afbcd0 1065 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1066 }
1067 {
1068 PyThreadState* __tstate = wxPyBeginAllowThreads();
1069 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1070
1071 wxPyEndAllowThreads(__tstate);
1072 if (PyErr_Occurred()) SWIG_fail;
1073 }
15afbcd0 1074 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1075 return resultobj;
1076 fail:
1077 return NULL;
1078}
1079
1080
d14a1e28
RD
1081static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1082 PyObject *resultobj;
1083 wxString *arg1 = 0 ;
1084 wxColour *result;
e811c8ce 1085 bool temp1 = False ;
d14a1e28
RD
1086 PyObject * obj0 = 0 ;
1087 char *kwnames[] = {
1088 (char *) "colorName", NULL
1089 };
1090
1091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1092 {
1093 arg1 = wxString_in_helper(obj0);
1094 if (arg1 == NULL) SWIG_fail;
e811c8ce 1095 temp1 = True;
d14a1e28
RD
1096 }
1097 {
eab6e45e 1098 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
1099 PyThreadState* __tstate = wxPyBeginAllowThreads();
1100 result = (wxColour *)new wxColour((wxString const &)*arg1);
1101
1102 wxPyEndAllowThreads(__tstate);
1103 if (PyErr_Occurred()) SWIG_fail;
1104 }
15afbcd0 1105 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1106 {
1107 if (temp1)
1108 delete arg1;
1109 }
1110 return resultobj;
1111 fail:
1112 {
1113 if (temp1)
1114 delete arg1;
1115 }
1116 return NULL;
1117}
1118
1119
1120static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1121 PyObject *resultobj;
1122 unsigned long arg1 ;
1123 wxColour *result;
1124 PyObject * obj0 = 0 ;
1125 char *kwnames[] = {
1126 (char *) "colRGB", NULL
1127 };
1128
1129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
15afbcd0
RD
1130 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1131 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1132 {
1133 PyThreadState* __tstate = wxPyBeginAllowThreads();
1134 result = (wxColour *)new wxColour(arg1);
1135
1136 wxPyEndAllowThreads(__tstate);
1137 if (PyErr_Occurred()) SWIG_fail;
1138 }
15afbcd0 1139 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1140 return resultobj;
1141 fail:
1142 return NULL;
1143}
1144
1145
b88bce5f
RD
1146static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1147 PyObject *resultobj;
1148 wxColour *arg1 = (wxColour *) 0 ;
1149 PyObject * obj0 = 0 ;
1150 char *kwnames[] = {
1151 (char *) "self", NULL
1152 };
1153
1154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
15afbcd0
RD
1155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
b88bce5f
RD
1157 {
1158 PyThreadState* __tstate = wxPyBeginAllowThreads();
1159 delete arg1;
1160
1161 wxPyEndAllowThreads(__tstate);
1162 if (PyErr_Occurred()) SWIG_fail;
1163 }
1164 Py_INCREF(Py_None); resultobj = Py_None;
1165 return resultobj;
1166 fail:
1167 return NULL;
1168}
1169
1170
d14a1e28
RD
1171static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1172 PyObject *resultobj;
1173 wxColour *arg1 = (wxColour *) 0 ;
41e2b43e 1174 byte result;
d14a1e28
RD
1175 PyObject * obj0 = 0 ;
1176 char *kwnames[] = {
1177 (char *) "self", NULL
1178 };
1179
1180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
15afbcd0
RD
1181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1183 {
1184 PyThreadState* __tstate = wxPyBeginAllowThreads();
41e2b43e 1185 result = (byte)(arg1)->Red();
d14a1e28
RD
1186
1187 wxPyEndAllowThreads(__tstate);
1188 if (PyErr_Occurred()) SWIG_fail;
1189 }
15afbcd0 1190 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1191 return resultobj;
1192 fail:
1193 return NULL;
1194}
1195
1196
1197static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1198 PyObject *resultobj;
1199 wxColour *arg1 = (wxColour *) 0 ;
41e2b43e 1200 byte result;
d14a1e28
RD
1201 PyObject * obj0 = 0 ;
1202 char *kwnames[] = {
1203 (char *) "self", NULL
1204 };
1205
1206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
15afbcd0
RD
1207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1209 {
1210 PyThreadState* __tstate = wxPyBeginAllowThreads();
41e2b43e 1211 result = (byte)(arg1)->Green();
d14a1e28
RD
1212
1213 wxPyEndAllowThreads(__tstate);
1214 if (PyErr_Occurred()) SWIG_fail;
1215 }
15afbcd0 1216 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1217 return resultobj;
1218 fail:
1219 return NULL;
1220}
1221
1222
1223static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1224 PyObject *resultobj;
1225 wxColour *arg1 = (wxColour *) 0 ;
41e2b43e 1226 byte result;
d14a1e28
RD
1227 PyObject * obj0 = 0 ;
1228 char *kwnames[] = {
1229 (char *) "self", NULL
1230 };
1231
1232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
15afbcd0
RD
1233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1235 {
1236 PyThreadState* __tstate = wxPyBeginAllowThreads();
41e2b43e 1237 result = (byte)(arg1)->Blue();
d14a1e28
RD
1238
1239 wxPyEndAllowThreads(__tstate);
1240 if (PyErr_Occurred()) SWIG_fail;
1241 }
15afbcd0 1242 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1243 return resultobj;
1244 fail:
1245 return NULL;
1246}
1247
1248
1249static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1250 PyObject *resultobj;
1251 wxColour *arg1 = (wxColour *) 0 ;
1252 bool result;
1253 PyObject * obj0 = 0 ;
1254 char *kwnames[] = {
1255 (char *) "self", NULL
1256 };
1257
1258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
1259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1261 {
1262 PyThreadState* __tstate = wxPyBeginAllowThreads();
1263 result = (bool)(arg1)->Ok();
1264
1265 wxPyEndAllowThreads(__tstate);
1266 if (PyErr_Occurred()) SWIG_fail;
1267 }
4f89f6a3
RD
1268 {
1269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1270 }
d14a1e28
RD
1271 return resultobj;
1272 fail:
1273 return NULL;
1274}
1275
1276
1277static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1278 PyObject *resultobj;
1279 wxColour *arg1 = (wxColour *) 0 ;
41e2b43e
RD
1280 byte arg2 ;
1281 byte arg3 ;
1282 byte arg4 ;
d14a1e28
RD
1283 PyObject * obj0 = 0 ;
1284 PyObject * obj1 = 0 ;
1285 PyObject * obj2 = 0 ;
1286 PyObject * obj3 = 0 ;
1287 char *kwnames[] = {
1288 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1289 };
1290
1291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
1292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
41e2b43e 1294 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
15afbcd0 1295 if (PyErr_Occurred()) SWIG_fail;
41e2b43e 1296 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
15afbcd0 1297 if (PyErr_Occurred()) SWIG_fail;
41e2b43e 1298 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
15afbcd0 1299 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1300 {
1301 PyThreadState* __tstate = wxPyBeginAllowThreads();
1302 (arg1)->Set(arg2,arg3,arg4);
1303
1304 wxPyEndAllowThreads(__tstate);
1305 if (PyErr_Occurred()) SWIG_fail;
1306 }
1307 Py_INCREF(Py_None); resultobj = Py_None;
1308 return resultobj;
1309 fail:
1310 return NULL;
1311}
1312
1313
c9c7117a 1314static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1315 PyObject *resultobj;
1316 wxColour *arg1 = (wxColour *) 0 ;
1317 unsigned long arg2 ;
1318 PyObject * obj0 = 0 ;
1319 PyObject * obj1 = 0 ;
1320 char *kwnames[] = {
1321 (char *) "self",(char *) "colRGB", NULL
1322 };
1323
c9c7117a 1324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1327 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1328 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1329 {
1330 PyThreadState* __tstate = wxPyBeginAllowThreads();
1331 (arg1)->Set(arg2);
1332
1333 wxPyEndAllowThreads(__tstate);
1334 if (PyErr_Occurred()) SWIG_fail;
1335 }
1336 Py_INCREF(Py_None); resultobj = Py_None;
1337 return resultobj;
1338 fail:
1339 return NULL;
1340}
1341
1342
b88bce5f
RD
1343static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1344 PyObject *resultobj;
1345 wxColour *arg1 = (wxColour *) 0 ;
1346 wxString *arg2 = 0 ;
1347 bool temp2 = False ;
1348 PyObject * obj0 = 0 ;
1349 PyObject * obj1 = 0 ;
1350 char *kwnames[] = {
1351 (char *) "self",(char *) "colourName", NULL
1352 };
1353
1354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
b88bce5f
RD
1357 {
1358 arg2 = wxString_in_helper(obj1);
1359 if (arg2 == NULL) SWIG_fail;
1360 temp2 = True;
1361 }
1362 {
1363 PyThreadState* __tstate = wxPyBeginAllowThreads();
1364 (arg1)->InitFromName((wxString const &)*arg2);
1365
1366 wxPyEndAllowThreads(__tstate);
1367 if (PyErr_Occurred()) SWIG_fail;
1368 }
1369 Py_INCREF(Py_None); resultobj = Py_None;
1370 {
1371 if (temp2)
1372 delete arg2;
1373 }
1374 return resultobj;
1375 fail:
1376 {
1377 if (temp2)
1378 delete arg2;
1379 }
1380 return NULL;
1381}
1382
1383
1384static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1385 PyObject *resultobj;
1386 wxColour *arg1 = (wxColour *) 0 ;
1387 long result;
1388 PyObject * obj0 = 0 ;
1389 char *kwnames[] = {
1390 (char *) "self", NULL
1391 };
1392
1393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
15afbcd0
RD
1394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
b88bce5f
RD
1396 {
1397 PyThreadState* __tstate = wxPyBeginAllowThreads();
1398 result = (long)((wxColour const *)arg1)->GetPixel();
1399
1400 wxPyEndAllowThreads(__tstate);
1401 if (PyErr_Occurred()) SWIG_fail;
1402 }
15afbcd0 1403 resultobj = SWIG_FromLong((long)result);
b88bce5f
RD
1404 return resultobj;
1405 fail:
1406 return NULL;
1407}
1408
1409
d14a1e28
RD
1410static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1411 PyObject *resultobj;
1412 wxColour *arg1 = (wxColour *) 0 ;
1413 wxColour *arg2 = 0 ;
1414 bool result;
1415 wxColour temp2 ;
1416 PyObject * obj0 = 0 ;
1417 PyObject * obj1 = 0 ;
1418 char *kwnames[] = {
1419 (char *) "self",(char *) "colour", NULL
1420 };
1421
1422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1425 {
1426 arg2 = &temp2;
1427 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1428 }
1429 {
1430 PyThreadState* __tstate = wxPyBeginAllowThreads();
1431 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1432
1433 wxPyEndAllowThreads(__tstate);
1434 if (PyErr_Occurred()) SWIG_fail;
1435 }
4f89f6a3
RD
1436 {
1437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1438 }
d14a1e28
RD
1439 return resultobj;
1440 fail:
1441 return NULL;
1442}
1443
1444
1445static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1446 PyObject *resultobj;
1447 wxColour *arg1 = (wxColour *) 0 ;
1448 wxColour *arg2 = 0 ;
1449 bool result;
1450 wxColour temp2 ;
1451 PyObject * obj0 = 0 ;
1452 PyObject * obj1 = 0 ;
1453 char *kwnames[] = {
1454 (char *) "self",(char *) "colour", NULL
1455 };
1456
1457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1460 {
1461 arg2 = &temp2;
1462 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1463 }
1464 {
1465 PyThreadState* __tstate = wxPyBeginAllowThreads();
1466 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1467
1468 wxPyEndAllowThreads(__tstate);
1469 if (PyErr_Occurred()) SWIG_fail;
1470 }
4f89f6a3
RD
1471 {
1472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1473 }
d14a1e28
RD
1474 return resultobj;
1475 fail:
1476 return NULL;
1477}
1478
1479
b88bce5f 1480static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
c9c7117a
RD
1481 PyObject *resultobj;
1482 wxColour *arg1 = (wxColour *) 0 ;
b88bce5f 1483 PyObject *result;
c9c7117a 1484 PyObject * obj0 = 0 ;
c9c7117a 1485 char *kwnames[] = {
b88bce5f 1486 (char *) "self", NULL
c9c7117a
RD
1487 };
1488
b88bce5f 1489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
15afbcd0
RD
1490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c9c7117a
RD
1492 {
1493 PyThreadState* __tstate = wxPyBeginAllowThreads();
b88bce5f 1494 result = (PyObject *)wxColour_Get(arg1);
c9c7117a
RD
1495
1496 wxPyEndAllowThreads(__tstate);
1497 if (PyErr_Occurred()) SWIG_fail;
1498 }
b88bce5f 1499 resultobj = result;
c9c7117a
RD
1500 return resultobj;
1501 fail:
c9c7117a
RD
1502 return NULL;
1503}
1504
1505
b88bce5f 1506static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1507 PyObject *resultobj;
1508 wxColour *arg1 = (wxColour *) 0 ;
b88bce5f 1509 unsigned long result;
d14a1e28
RD
1510 PyObject * obj0 = 0 ;
1511 char *kwnames[] = {
1512 (char *) "self", NULL
1513 };
1514
b88bce5f 1515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
15afbcd0
RD
1516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1518 {
1519 PyThreadState* __tstate = wxPyBeginAllowThreads();
b88bce5f 1520 result = (unsigned long)wxColour_GetRGB(arg1);
d14a1e28
RD
1521
1522 wxPyEndAllowThreads(__tstate);
1523 if (PyErr_Occurred()) SWIG_fail;
1524 }
15afbcd0 1525 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
1526 return resultobj;
1527 fail:
1528 return NULL;
1529}
1530
1531
1532static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1533 PyObject *obj;
1534 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1535 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1536 Py_INCREF(obj);
1537 return Py_BuildValue((char *)"");
1538}
1539static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1540 PyObject *resultobj;
1541 int arg1 ;
1542 unsigned char *arg2 = (unsigned char *) 0 ;
1543 unsigned char *arg3 = (unsigned char *) 0 ;
1544 unsigned char *arg4 = (unsigned char *) 0 ;
1545 wxPalette *result;
994141e6 1546 PyObject * obj0 = 0 ;
d14a1e28
RD
1547 PyObject * obj1 = 0 ;
1548 PyObject * obj2 = 0 ;
1549 PyObject * obj3 = 0 ;
1550 char *kwnames[] = {
1551 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1552 };
1553
994141e6 1554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
1555 arg1 = (int) SWIG_AsInt(obj0);
1556 if (PyErr_Occurred()) SWIG_fail;
1557 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1559 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1561 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 1563 {
e3b71cb8 1564 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
1565 PyThreadState* __tstate = wxPyBeginAllowThreads();
1566 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1567
1568 wxPyEndAllowThreads(__tstate);
110da5b0 1569 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 1570 }
15afbcd0 1571 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
d14a1e28
RD
1572 return resultobj;
1573 fail:
1574 return NULL;
1575}
1576
1577
1578static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1579 PyObject *resultobj;
1580 wxPalette *arg1 = (wxPalette *) 0 ;
1581 PyObject * obj0 = 0 ;
1582 char *kwnames[] = {
1583 (char *) "self", NULL
1584 };
1585
1586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
15afbcd0
RD
1587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1589 {
1590 PyThreadState* __tstate = wxPyBeginAllowThreads();
1591 delete arg1;
1592
1593 wxPyEndAllowThreads(__tstate);
1594 if (PyErr_Occurred()) SWIG_fail;
1595 }
1596 Py_INCREF(Py_None); resultobj = Py_None;
1597 return resultobj;
1598 fail:
1599 return NULL;
1600}
1601
1602
1603static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1604 PyObject *resultobj;
1605 wxPalette *arg1 = (wxPalette *) 0 ;
1606 byte arg2 ;
1607 byte arg3 ;
1608 byte arg4 ;
1609 int result;
1610 PyObject * obj0 = 0 ;
1611 PyObject * obj1 = 0 ;
1612 PyObject * obj2 = 0 ;
1613 PyObject * obj3 = 0 ;
1614 char *kwnames[] = {
1615 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1616 };
1617
1618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
1619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1621 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1622 if (PyErr_Occurred()) SWIG_fail;
1623 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1624 if (PyErr_Occurred()) SWIG_fail;
1625 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1626 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1627 {
1628 PyThreadState* __tstate = wxPyBeginAllowThreads();
1629 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1630
1631 wxPyEndAllowThreads(__tstate);
1632 if (PyErr_Occurred()) SWIG_fail;
1633 }
15afbcd0 1634 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1635 return resultobj;
1636 fail:
1637 return NULL;
1638}
1639
1640
1641static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1642 PyObject *resultobj;
1643 wxPalette *arg1 = (wxPalette *) 0 ;
1644 int arg2 ;
1645 byte *arg3 = (byte *) 0 ;
1646 byte *arg4 = (byte *) 0 ;
1647 byte *arg5 = (byte *) 0 ;
1648 bool result;
1649 byte temp3 ;
1650 byte temp4 ;
1651 byte temp5 ;
1652 PyObject * obj0 = 0 ;
994141e6 1653 PyObject * obj1 = 0 ;
d14a1e28
RD
1654 char *kwnames[] = {
1655 (char *) "self",(char *) "pixel", NULL
1656 };
1657
1658 arg3 = &temp3;
1659 arg4 = &temp4;
1660 arg5 = &temp5;
994141e6 1661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1664 arg2 = (int) SWIG_AsInt(obj1);
1665 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1666 {
1667 PyThreadState* __tstate = wxPyBeginAllowThreads();
1668 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1669
1670 wxPyEndAllowThreads(__tstate);
1671 if (PyErr_Occurred()) SWIG_fail;
1672 }
4f89f6a3
RD
1673 {
1674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1675 }
d14a1e28
RD
1676 {
1677 PyObject *o = PyInt_FromLong((long) (*arg3));
1678 resultobj = t_output_helper(resultobj,o);
1679 }
1680 {
1681 PyObject *o = PyInt_FromLong((long) (*arg4));
1682 resultobj = t_output_helper(resultobj,o);
1683 }
1684 {
1685 PyObject *o = PyInt_FromLong((long) (*arg5));
1686 resultobj = t_output_helper(resultobj,o);
1687 }
1688 return resultobj;
1689 fail:
1690 return NULL;
1691}
1692
1693
1694static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1695 PyObject *resultobj;
1696 wxPalette *arg1 = (wxPalette *) 0 ;
1697 bool result;
1698 PyObject * obj0 = 0 ;
1699 char *kwnames[] = {
1700 (char *) "self", NULL
1701 };
1702
1703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
1704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1706 {
1707 PyThreadState* __tstate = wxPyBeginAllowThreads();
1708 result = (bool)(arg1)->Ok();
1709
1710 wxPyEndAllowThreads(__tstate);
1711 if (PyErr_Occurred()) SWIG_fail;
1712 }
4f89f6a3
RD
1713 {
1714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1715 }
d14a1e28
RD
1716 return resultobj;
1717 fail:
1718 return NULL;
1719}
1720
1721
1722static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1723 PyObject *obj;
1724 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1725 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1726 Py_INCREF(obj);
1727 return Py_BuildValue((char *)"");
1728}
1729static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1730 PyObject *resultobj;
1731 wxColour *arg1 = 0 ;
1732 int arg2 = (int) 1 ;
1733 int arg3 = (int) wxSOLID ;
1734 wxPen *result;
1735 wxColour temp1 ;
1736 PyObject * obj0 = 0 ;
994141e6
RD
1737 PyObject * obj1 = 0 ;
1738 PyObject * obj2 = 0 ;
d14a1e28
RD
1739 char *kwnames[] = {
1740 (char *) "colour",(char *) "width",(char *) "style", NULL
1741 };
1742
994141e6 1743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
1744 {
1745 arg1 = &temp1;
1746 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1747 }
994141e6 1748 if (obj1) {
15afbcd0
RD
1749 arg2 = (int) SWIG_AsInt(obj1);
1750 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
1751 }
1752 if (obj2) {
15afbcd0
RD
1753 arg3 = (int) SWIG_AsInt(obj2);
1754 if (PyErr_Occurred()) SWIG_fail;
994141e6 1755 }
d14a1e28 1756 {
e3b71cb8 1757 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
1758 PyThreadState* __tstate = wxPyBeginAllowThreads();
1759 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1760
1761 wxPyEndAllowThreads(__tstate);
110da5b0 1762 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 1763 }
15afbcd0 1764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
d14a1e28
RD
1765 return resultobj;
1766 fail:
1767 return NULL;
1768}
1769
1770
1771static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1772 PyObject *resultobj;
1773 wxPen *arg1 = (wxPen *) 0 ;
1774 PyObject * obj0 = 0 ;
1775 char *kwnames[] = {
1776 (char *) "self", NULL
1777 };
1778
1779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
15afbcd0
RD
1780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1782 {
1783 PyThreadState* __tstate = wxPyBeginAllowThreads();
1784 delete arg1;
1785
1786 wxPyEndAllowThreads(__tstate);
1787 if (PyErr_Occurred()) SWIG_fail;
1788 }
1789 Py_INCREF(Py_None); resultobj = Py_None;
1790 return resultobj;
1791 fail:
1792 return NULL;
1793}
1794
1795
1796static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1797 PyObject *resultobj;
1798 wxPen *arg1 = (wxPen *) 0 ;
1799 int result;
1800 PyObject * obj0 = 0 ;
1801 char *kwnames[] = {
1802 (char *) "self", NULL
1803 };
1804
1805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
15afbcd0
RD
1806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1808 {
1809 PyThreadState* __tstate = wxPyBeginAllowThreads();
1810 result = (int)(arg1)->GetCap();
1811
1812 wxPyEndAllowThreads(__tstate);
1813 if (PyErr_Occurred()) SWIG_fail;
1814 }
15afbcd0 1815 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1816 return resultobj;
1817 fail:
1818 return NULL;
1819}
1820
1821
1822static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1823 PyObject *resultobj;
1824 wxPen *arg1 = (wxPen *) 0 ;
1825 wxColour result;
1826 PyObject * obj0 = 0 ;
1827 char *kwnames[] = {
1828 (char *) "self", NULL
1829 };
1830
1831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
15afbcd0
RD
1832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1834 {
1835 PyThreadState* __tstate = wxPyBeginAllowThreads();
1836 result = (arg1)->GetColour();
1837
1838 wxPyEndAllowThreads(__tstate);
1839 if (PyErr_Occurred()) SWIG_fail;
1840 }
1841 {
1842 wxColour * resultptr;
1843 resultptr = new wxColour((wxColour &) result);
15afbcd0 1844 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1845 }
1846 return resultobj;
1847 fail:
1848 return NULL;
1849}
1850
1851
1852static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1853 PyObject *resultobj;
1854 wxPen *arg1 = (wxPen *) 0 ;
1855 int result;
1856 PyObject * obj0 = 0 ;
1857 char *kwnames[] = {
1858 (char *) "self", NULL
1859 };
1860
1861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
15afbcd0
RD
1862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1864 {
1865 PyThreadState* __tstate = wxPyBeginAllowThreads();
1866 result = (int)(arg1)->GetJoin();
1867
1868 wxPyEndAllowThreads(__tstate);
1869 if (PyErr_Occurred()) SWIG_fail;
1870 }
15afbcd0 1871 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1872 return resultobj;
1873 fail:
1874 return NULL;
1875}
1876
1877
1878static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1879 PyObject *resultobj;
1880 wxPen *arg1 = (wxPen *) 0 ;
1881 int result;
1882 PyObject * obj0 = 0 ;
1883 char *kwnames[] = {
1884 (char *) "self", NULL
1885 };
1886
1887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
15afbcd0
RD
1888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1890 {
1891 PyThreadState* __tstate = wxPyBeginAllowThreads();
1892 result = (int)(arg1)->GetStyle();
1893
1894 wxPyEndAllowThreads(__tstate);
1895 if (PyErr_Occurred()) SWIG_fail;
1896 }
15afbcd0 1897 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1898 return resultobj;
1899 fail:
1900 return NULL;
1901}
1902
1903
1904static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1905 PyObject *resultobj;
1906 wxPen *arg1 = (wxPen *) 0 ;
1907 int result;
1908 PyObject * obj0 = 0 ;
1909 char *kwnames[] = {
1910 (char *) "self", NULL
1911 };
1912
1913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
1914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1916 {
1917 PyThreadState* __tstate = wxPyBeginAllowThreads();
1918 result = (int)(arg1)->GetWidth();
1919
1920 wxPyEndAllowThreads(__tstate);
1921 if (PyErr_Occurred()) SWIG_fail;
1922 }
15afbcd0 1923 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1924 return resultobj;
1925 fail:
1926 return NULL;
1927}
1928
1929
1930static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1931 PyObject *resultobj;
1932 wxPen *arg1 = (wxPen *) 0 ;
1933 bool result;
1934 PyObject * obj0 = 0 ;
1935 char *kwnames[] = {
1936 (char *) "self", NULL
1937 };
1938
1939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
1940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1942 {
1943 PyThreadState* __tstate = wxPyBeginAllowThreads();
1944 result = (bool)(arg1)->Ok();
1945
1946 wxPyEndAllowThreads(__tstate);
1947 if (PyErr_Occurred()) SWIG_fail;
1948 }
4f89f6a3
RD
1949 {
1950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1951 }
d14a1e28
RD
1952 return resultobj;
1953 fail:
1954 return NULL;
1955}
1956
1957
1958static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1959 PyObject *resultobj;
1960 wxPen *arg1 = (wxPen *) 0 ;
1961 int arg2 ;
1962 PyObject * obj0 = 0 ;
994141e6 1963 PyObject * obj1 = 0 ;
d14a1e28
RD
1964 char *kwnames[] = {
1965 (char *) "self",(char *) "cap_style", NULL
1966 };
1967
994141e6 1968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1971 arg2 = (int) SWIG_AsInt(obj1);
1972 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1973 {
1974 PyThreadState* __tstate = wxPyBeginAllowThreads();
1975 (arg1)->SetCap(arg2);
1976
1977 wxPyEndAllowThreads(__tstate);
1978 if (PyErr_Occurred()) SWIG_fail;
1979 }
1980 Py_INCREF(Py_None); resultobj = Py_None;
1981 return resultobj;
1982 fail:
1983 return NULL;
1984}
1985
1986
1987static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1988 PyObject *resultobj;
1989 wxPen *arg1 = (wxPen *) 0 ;
1990 wxColour *arg2 = 0 ;
1991 wxColour temp2 ;
1992 PyObject * obj0 = 0 ;
1993 PyObject * obj1 = 0 ;
1994 char *kwnames[] = {
1995 (char *) "self",(char *) "colour", NULL
1996 };
1997
1998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2001 {
2002 arg2 = &temp2;
2003 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2004 }
2005 {
2006 PyThreadState* __tstate = wxPyBeginAllowThreads();
2007 (arg1)->SetColour(*arg2);
2008
2009 wxPyEndAllowThreads(__tstate);
2010 if (PyErr_Occurred()) SWIG_fail;
2011 }
2012 Py_INCREF(Py_None); resultobj = Py_None;
2013 return resultobj;
2014 fail:
2015 return NULL;
2016}
2017
2018
2019static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2020 PyObject *resultobj;
2021 wxPen *arg1 = (wxPen *) 0 ;
2022 int arg2 ;
2023 PyObject * obj0 = 0 ;
994141e6 2024 PyObject * obj1 = 0 ;
d14a1e28
RD
2025 char *kwnames[] = {
2026 (char *) "self",(char *) "join_style", NULL
2027 };
2028
994141e6 2029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2032 arg2 = (int) SWIG_AsInt(obj1);
2033 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2034 {
2035 PyThreadState* __tstate = wxPyBeginAllowThreads();
2036 (arg1)->SetJoin(arg2);
2037
2038 wxPyEndAllowThreads(__tstate);
2039 if (PyErr_Occurred()) SWIG_fail;
2040 }
2041 Py_INCREF(Py_None); resultobj = Py_None;
2042 return resultobj;
2043 fail:
2044 return NULL;
2045}
2046
2047
2048static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2049 PyObject *resultobj;
2050 wxPen *arg1 = (wxPen *) 0 ;
2051 int arg2 ;
2052 PyObject * obj0 = 0 ;
994141e6 2053 PyObject * obj1 = 0 ;
d14a1e28
RD
2054 char *kwnames[] = {
2055 (char *) "self",(char *) "style", NULL
2056 };
2057
994141e6 2058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2061 arg2 = (int) SWIG_AsInt(obj1);
2062 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2063 {
2064 PyThreadState* __tstate = wxPyBeginAllowThreads();
2065 (arg1)->SetStyle(arg2);
2066
2067 wxPyEndAllowThreads(__tstate);
2068 if (PyErr_Occurred()) SWIG_fail;
2069 }
2070 Py_INCREF(Py_None); resultobj = Py_None;
2071 return resultobj;
2072 fail:
2073 return NULL;
2074}
2075
2076
2077static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2078 PyObject *resultobj;
2079 wxPen *arg1 = (wxPen *) 0 ;
2080 int arg2 ;
2081 PyObject * obj0 = 0 ;
994141e6 2082 PyObject * obj1 = 0 ;
d14a1e28
RD
2083 char *kwnames[] = {
2084 (char *) "self",(char *) "width", NULL
2085 };
2086
994141e6 2087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2090 arg2 = (int) SWIG_AsInt(obj1);
2091 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2092 {
2093 PyThreadState* __tstate = wxPyBeginAllowThreads();
2094 (arg1)->SetWidth(arg2);
2095
2096 wxPyEndAllowThreads(__tstate);
2097 if (PyErr_Occurred()) SWIG_fail;
2098 }
2099 Py_INCREF(Py_None); resultobj = Py_None;
2100 return resultobj;
2101 fail:
2102 return NULL;
2103}
2104
2105
2106static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2107 PyObject *resultobj;
2108 wxPen *arg1 = (wxPen *) 0 ;
2109 int arg2 ;
2110 wxDash *arg3 = (wxDash *) 0 ;
2111 PyObject * obj0 = 0 ;
2112 PyObject * obj1 = 0 ;
2113 char *kwnames[] = {
2114 (char *) "self",(char *) "dashes", NULL
2115 };
2116
2117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2120 {
2121 arg2 = PyList_Size(obj1);
2122 arg3 = (wxDash*)byte_LIST_helper(obj1);
2123 if (arg3 == NULL) SWIG_fail;
2124 }
2125 {
2126 PyThreadState* __tstate = wxPyBeginAllowThreads();
2127 (arg1)->SetDashes(arg2,arg3);
2128
2129 wxPyEndAllowThreads(__tstate);
2130 if (PyErr_Occurred()) SWIG_fail;
2131 }
2132 Py_INCREF(Py_None); resultobj = Py_None;
2133 {
2134 if (arg3) delete [] arg3;
2135 }
2136 return resultobj;
2137 fail:
2138 {
2139 if (arg3) delete [] arg3;
2140 }
2141 return NULL;
2142}
2143
2144
2145static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2146 PyObject *resultobj;
2147 wxPen *arg1 = (wxPen *) 0 ;
2148 PyObject *result;
2149 PyObject * obj0 = 0 ;
2150 char *kwnames[] = {
2151 (char *) "self", NULL
2152 };
2153
2154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
15afbcd0
RD
2155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2157 {
2158 PyThreadState* __tstate = wxPyBeginAllowThreads();
2159 result = (PyObject *)wxPen_GetDashes(arg1);
2160
2161 wxPyEndAllowThreads(__tstate);
2162 if (PyErr_Occurred()) SWIG_fail;
2163 }
2164 resultobj = result;
2165 return resultobj;
2166 fail:
2167 return NULL;
2168}
2169
2170
66c033b4 2171static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
22faec7d
RD
2172 PyObject *resultobj;
2173 wxPen *arg1 = (wxPen *) 0 ;
66c033b4
RD
2174 PyObject *arg2 = (PyObject *) 0 ;
2175 PyObject *arg3 = (PyObject *) 0 ;
22faec7d
RD
2176 PyObject * obj0 = 0 ;
2177 PyObject * obj1 = 0 ;
66c033b4 2178 PyObject * obj2 = 0 ;
22faec7d 2179 char *kwnames[] = {
66c033b4 2180 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
22faec7d
RD
2181 };
2182
66c033b4 2183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
2184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
66c033b4
RD
2186 arg2 = obj1;
2187 arg3 = obj2;
3adfb63b
RD
2188 {
2189 PyThreadState* __tstate = wxPyBeginAllowThreads();
66c033b4 2190 wxPen__SetDashes(arg1,arg2,arg3);
3adfb63b
RD
2191
2192 wxPyEndAllowThreads(__tstate);
2193 if (PyErr_Occurred()) SWIG_fail;
2194 }
66c033b4 2195 Py_INCREF(Py_None); resultobj = Py_None;
3adfb63b
RD
2196 return resultobj;
2197 fail:
2198 return NULL;
2199}
2200
2201
c9c7117a
RD
2202static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2203 PyObject *resultobj;
2204 wxPen *arg1 = (wxPen *) 0 ;
2205 int result;
2206 PyObject * obj0 = 0 ;
2207 char *kwnames[] = {
2208 (char *) "self", NULL
2209 };
2210
2211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
2212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c9c7117a
RD
2214 {
2215 PyThreadState* __tstate = wxPyBeginAllowThreads();
2216 result = (int)((wxPen const *)arg1)->GetDashCount();
2217
2218 wxPyEndAllowThreads(__tstate);
2219 if (PyErr_Occurred()) SWIG_fail;
2220 }
15afbcd0 2221 resultobj = SWIG_FromInt((int)result);
c9c7117a
RD
2222 return resultobj;
2223 fail:
2224 return NULL;
2225}
2226
2227
66c033b4 2228static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 2229 PyObject *resultobj;
66c033b4
RD
2230 wxPen *arg1 = (wxPen *) 0 ;
2231 wxPen *arg2 = (wxPen *) 0 ;
2232 bool result;
d14a1e28 2233 PyObject * obj0 = 0 ;
994141e6 2234 PyObject * obj1 = 0 ;
d14a1e28 2235 char *kwnames[] = {
66c033b4 2236 (char *) "self",(char *) "other", NULL
d14a1e28
RD
2237 };
2238
66c033b4
RD
2239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2242 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2244 {
2245 PyThreadState* __tstate = wxPyBeginAllowThreads();
66c033b4 2246 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
d14a1e28
RD
2247
2248 wxPyEndAllowThreads(__tstate);
2249 if (PyErr_Occurred()) SWIG_fail;
2250 }
d14a1e28 2251 {
66c033b4 2252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28 2253 }
d14a1e28
RD
2254 return resultobj;
2255 fail:
2256 return NULL;
2257}
2258
2259
66c033b4 2260static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 2261 PyObject *resultobj;
66c033b4
RD
2262 wxPen *arg1 = (wxPen *) 0 ;
2263 wxPen *arg2 = (wxPen *) 0 ;
2264 bool result;
d14a1e28
RD
2265 PyObject * obj0 = 0 ;
2266 PyObject * obj1 = 0 ;
2267 char *kwnames[] = {
66c033b4 2268 (char *) "self",(char *) "other", NULL
d14a1e28
RD
2269 };
2270
66c033b4
RD
2271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2274 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
15afbcd0 2275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2276 {
2277 PyThreadState* __tstate = wxPyBeginAllowThreads();
66c033b4 2278 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
d14a1e28
RD
2279
2280 wxPyEndAllowThreads(__tstate);
2281 if (PyErr_Occurred()) SWIG_fail;
2282 }
d14a1e28 2283 {
66c033b4 2284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
2285 }
2286 return resultobj;
2287 fail:
d14a1e28
RD
2288 return NULL;
2289}
2290
2291
66c033b4 2292static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
d14a1e28
RD
2293 PyObject *obj;
2294 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
66c033b4 2295 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
d14a1e28
RD
2296 Py_INCREF(obj);
2297 return Py_BuildValue((char *)"");
2298}
2299static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2300 PyObject *resultobj;
2301 wxColour *arg1 = 0 ;
2302 int arg2 = (int) wxSOLID ;
2303 wxBrush *result;
2304 wxColour temp1 ;
2305 PyObject * obj0 = 0 ;
994141e6 2306 PyObject * obj1 = 0 ;
d14a1e28
RD
2307 char *kwnames[] = {
2308 (char *) "colour",(char *) "style", NULL
2309 };
2310
994141e6 2311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2312 {
2313 arg1 = &temp1;
2314 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2315 }
994141e6 2316 if (obj1) {
15afbcd0
RD
2317 arg2 = (int) SWIG_AsInt(obj1);
2318 if (PyErr_Occurred()) SWIG_fail;
994141e6 2319 }
d14a1e28 2320 {
e3b71cb8 2321 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2322 PyThreadState* __tstate = wxPyBeginAllowThreads();
2323 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2324
2325 wxPyEndAllowThreads(__tstate);
110da5b0 2326 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2327 }
15afbcd0 2328 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
d14a1e28
RD
2329 return resultobj;
2330 fail:
2331 return NULL;
2332}
2333
2334
2335static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2336 PyObject *resultobj;
2337 wxBrush *arg1 = (wxBrush *) 0 ;
2338 PyObject * obj0 = 0 ;
2339 char *kwnames[] = {
2340 (char *) "self", NULL
2341 };
2342
2343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
15afbcd0
RD
2344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2346 {
2347 PyThreadState* __tstate = wxPyBeginAllowThreads();
2348 delete arg1;
2349
2350 wxPyEndAllowThreads(__tstate);
2351 if (PyErr_Occurred()) SWIG_fail;
2352 }
2353 Py_INCREF(Py_None); resultobj = Py_None;
2354 return resultobj;
2355 fail:
2356 return NULL;
2357}
2358
2359
2360static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2361 PyObject *resultobj;
2362 wxBrush *arg1 = (wxBrush *) 0 ;
2363 wxColour *arg2 = 0 ;
2364 wxColour temp2 ;
2365 PyObject * obj0 = 0 ;
2366 PyObject * obj1 = 0 ;
2367 char *kwnames[] = {
2368 (char *) "self",(char *) "col", NULL
2369 };
2370
2371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2374 {
2375 arg2 = &temp2;
2376 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2377 }
2378 {
2379 PyThreadState* __tstate = wxPyBeginAllowThreads();
2380 (arg1)->SetColour((wxColour const &)*arg2);
2381
2382 wxPyEndAllowThreads(__tstate);
2383 if (PyErr_Occurred()) SWIG_fail;
2384 }
2385 Py_INCREF(Py_None); resultobj = Py_None;
2386 return resultobj;
2387 fail:
2388 return NULL;
2389}
2390
2391
2392static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2393 PyObject *resultobj;
2394 wxBrush *arg1 = (wxBrush *) 0 ;
2395 int arg2 ;
2396 PyObject * obj0 = 0 ;
994141e6 2397 PyObject * obj1 = 0 ;
d14a1e28
RD
2398 char *kwnames[] = {
2399 (char *) "self",(char *) "style", NULL
2400 };
2401
994141e6 2402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2405 arg2 = (int) SWIG_AsInt(obj1);
2406 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2407 {
2408 PyThreadState* __tstate = wxPyBeginAllowThreads();
2409 (arg1)->SetStyle(arg2);
2410
2411 wxPyEndAllowThreads(__tstate);
2412 if (PyErr_Occurred()) SWIG_fail;
2413 }
2414 Py_INCREF(Py_None); resultobj = Py_None;
2415 return resultobj;
2416 fail:
2417 return NULL;
2418}
2419
2420
2421static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2422 PyObject *resultobj;
2423 wxBrush *arg1 = (wxBrush *) 0 ;
2424 wxBitmap *arg2 = 0 ;
2425 PyObject * obj0 = 0 ;
2426 PyObject * obj1 = 0 ;
2427 char *kwnames[] = {
2428 (char *) "self",(char *) "stipple", NULL
2429 };
2430
2431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2434 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2435 SWIG_POINTER_EXCEPTION | 0)) == -1)
2436 SWIG_fail;
d14a1e28 2437 if (arg2 == NULL) {
15afbcd0
RD
2438 PyErr_SetString(PyExc_TypeError,"null reference");
2439 SWIG_fail;
d14a1e28
RD
2440 }
2441 {
2442 PyThreadState* __tstate = wxPyBeginAllowThreads();
2443 (arg1)->SetStipple((wxBitmap const &)*arg2);
2444
2445 wxPyEndAllowThreads(__tstate);
2446 if (PyErr_Occurred()) SWIG_fail;
2447 }
2448 Py_INCREF(Py_None); resultobj = Py_None;
2449 return resultobj;
2450 fail:
2451 return NULL;
2452}
2453
2454
2455static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2456 PyObject *resultobj;
2457 wxBrush *arg1 = (wxBrush *) 0 ;
2458 wxColour result;
2459 PyObject * obj0 = 0 ;
2460 char *kwnames[] = {
2461 (char *) "self", NULL
2462 };
2463
2464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
15afbcd0
RD
2465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2467 {
2468 PyThreadState* __tstate = wxPyBeginAllowThreads();
2469 result = ((wxBrush const *)arg1)->GetColour();
2470
2471 wxPyEndAllowThreads(__tstate);
2472 if (PyErr_Occurred()) SWIG_fail;
2473 }
2474 {
2475 wxColour * resultptr;
2476 resultptr = new wxColour((wxColour &) result);
15afbcd0 2477 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
2478 }
2479 return resultobj;
2480 fail:
2481 return NULL;
2482}
2483
2484
2485static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2486 PyObject *resultobj;
2487 wxBrush *arg1 = (wxBrush *) 0 ;
2488 int result;
2489 PyObject * obj0 = 0 ;
2490 char *kwnames[] = {
2491 (char *) "self", NULL
2492 };
2493
2494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
15afbcd0
RD
2495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2497 {
2498 PyThreadState* __tstate = wxPyBeginAllowThreads();
2499 result = (int)((wxBrush const *)arg1)->GetStyle();
2500
2501 wxPyEndAllowThreads(__tstate);
2502 if (PyErr_Occurred()) SWIG_fail;
2503 }
15afbcd0 2504 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
2505 return resultobj;
2506 fail:
2507 return NULL;
2508}
2509
2510
2511static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2512 PyObject *resultobj;
2513 wxBrush *arg1 = (wxBrush *) 0 ;
2514 wxBitmap *result;
2515 PyObject * obj0 = 0 ;
2516 char *kwnames[] = {
2517 (char *) "self", NULL
2518 };
2519
2520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
15afbcd0
RD
2521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2523 {
2524 PyThreadState* __tstate = wxPyBeginAllowThreads();
2525 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2526
2527 wxPyEndAllowThreads(__tstate);
2528 if (PyErr_Occurred()) SWIG_fail;
2529 }
15afbcd0 2530 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
d14a1e28
RD
2531 return resultobj;
2532 fail:
2533 return NULL;
2534}
2535
2536
2537static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2538 PyObject *resultobj;
2539 wxBrush *arg1 = (wxBrush *) 0 ;
2540 bool result;
2541 PyObject * obj0 = 0 ;
2542 char *kwnames[] = {
2543 (char *) "self", NULL
2544 };
2545
2546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
2547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2549 {
2550 PyThreadState* __tstate = wxPyBeginAllowThreads();
2551 result = (bool)(arg1)->Ok();
2552
2553 wxPyEndAllowThreads(__tstate);
2554 if (PyErr_Occurred()) SWIG_fail;
2555 }
4f89f6a3
RD
2556 {
2557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2558 }
d14a1e28
RD
2559 return resultobj;
2560 fail:
2561 return NULL;
2562}
2563
2564
2565static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2566 PyObject *obj;
2567 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2568 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2569 Py_INCREF(obj);
2570 return Py_BuildValue((char *)"");
2571}
2572static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2573 PyObject *resultobj;
2574 wxString *arg1 = 0 ;
2575 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2576 wxBitmap *result;
e811c8ce 2577 bool temp1 = False ;
d14a1e28 2578 PyObject * obj0 = 0 ;
994141e6 2579 PyObject * obj1 = 0 ;
d14a1e28
RD
2580 char *kwnames[] = {
2581 (char *) "name",(char *) "type", NULL
2582 };
2583
994141e6 2584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2585 {
2586 arg1 = wxString_in_helper(obj0);
2587 if (arg1 == NULL) SWIG_fail;
e811c8ce 2588 temp1 = True;
d14a1e28 2589 }
994141e6 2590 if (obj1) {
15afbcd0
RD
2591 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2592 if (PyErr_Occurred()) SWIG_fail;
994141e6 2593 }
d14a1e28 2594 {
e3b71cb8 2595 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2596 PyThreadState* __tstate = wxPyBeginAllowThreads();
2597 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2598
2599 wxPyEndAllowThreads(__tstate);
110da5b0 2600 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2601 }
15afbcd0 2602 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2603 {
2604 if (temp1)
2605 delete arg1;
2606 }
2607 return resultobj;
2608 fail:
2609 {
2610 if (temp1)
2611 delete arg1;
2612 }
2613 return NULL;
2614}
2615
2616
2617static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2618 PyObject *resultobj;
2619 wxBitmap *arg1 = (wxBitmap *) 0 ;
2620 PyObject * obj0 = 0 ;
2621 char *kwnames[] = {
2622 (char *) "self", NULL
2623 };
2624
2625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
15afbcd0
RD
2626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2628 {
2629 PyThreadState* __tstate = wxPyBeginAllowThreads();
2630 delete arg1;
2631
2632 wxPyEndAllowThreads(__tstate);
2633 if (PyErr_Occurred()) SWIG_fail;
2634 }
2635 Py_INCREF(Py_None); resultobj = Py_None;
2636 return resultobj;
2637 fail:
2638 return NULL;
2639}
2640
2641
66c033b4
RD
2642static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2643 PyObject *resultobj;
2644 int arg1 ;
2645 int arg2 ;
2646 int arg3 = (int) -1 ;
2647 wxBitmap *result;
2648 PyObject * obj0 = 0 ;
2649 PyObject * obj1 = 0 ;
2650 PyObject * obj2 = 0 ;
2651 char *kwnames[] = {
2652 (char *) "width",(char *) "height",(char *) "depth", NULL
2653 };
2654
2655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2656 arg1 = (int) SWIG_AsInt(obj0);
2657 if (PyErr_Occurred()) SWIG_fail;
2658 arg2 = (int) SWIG_AsInt(obj1);
2659 if (PyErr_Occurred()) SWIG_fail;
2660 if (obj2) {
2661 arg3 = (int) SWIG_AsInt(obj2);
2662 if (PyErr_Occurred()) SWIG_fail;
2663 }
2664 {
e3b71cb8 2665 if (!wxPyCheckForApp()) SWIG_fail;
66c033b4
RD
2666 PyThreadState* __tstate = wxPyBeginAllowThreads();
2667 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2668
2669 wxPyEndAllowThreads(__tstate);
110da5b0 2670 if (PyErr_Occurred()) SWIG_fail;
66c033b4
RD
2671 }
2672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2673 return resultobj;
2674 fail:
2675 return NULL;
2676}
2677
2678
d14a1e28
RD
2679static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2680 PyObject *resultobj;
2681 wxIcon *arg1 = 0 ;
2682 wxBitmap *result;
2683 PyObject * obj0 = 0 ;
2684 char *kwnames[] = {
2685 (char *) "icon", NULL
2686 };
2687
2688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
15afbcd0
RD
2689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2690 SWIG_POINTER_EXCEPTION | 0)) == -1)
2691 SWIG_fail;
d14a1e28 2692 if (arg1 == NULL) {
15afbcd0
RD
2693 PyErr_SetString(PyExc_TypeError,"null reference");
2694 SWIG_fail;
d14a1e28
RD
2695 }
2696 {
e3b71cb8 2697 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2698 PyThreadState* __tstate = wxPyBeginAllowThreads();
2699 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2700
2701 wxPyEndAllowThreads(__tstate);
110da5b0 2702 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2703 }
15afbcd0 2704 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2705 return resultobj;
2706 fail:
2707 return NULL;
2708}
2709
2710
2711static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2712 PyObject *resultobj;
2713 wxImage *arg1 = 0 ;
2714 int arg2 = (int) -1 ;
2715 wxBitmap *result;
2716 PyObject * obj0 = 0 ;
994141e6 2717 PyObject * obj1 = 0 ;
d14a1e28
RD
2718 char *kwnames[] = {
2719 (char *) "image",(char *) "depth", NULL
2720 };
2721
994141e6 2722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2724 SWIG_POINTER_EXCEPTION | 0)) == -1)
2725 SWIG_fail;
d14a1e28 2726 if (arg1 == NULL) {
15afbcd0
RD
2727 PyErr_SetString(PyExc_TypeError,"null reference");
2728 SWIG_fail;
d14a1e28 2729 }
994141e6 2730 if (obj1) {
15afbcd0
RD
2731 arg2 = (int) SWIG_AsInt(obj1);
2732 if (PyErr_Occurred()) SWIG_fail;
994141e6 2733 }
d14a1e28 2734 {
e3b71cb8 2735 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2736 PyThreadState* __tstate = wxPyBeginAllowThreads();
2737 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2738
2739 wxPyEndAllowThreads(__tstate);
110da5b0 2740 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2741 }
15afbcd0 2742 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2743 return resultobj;
2744 fail:
2745 return NULL;
2746}
2747
2748
2749static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2750 PyObject *resultobj;
2751 PyObject *arg1 = (PyObject *) 0 ;
2752 wxBitmap *result;
2753 PyObject * obj0 = 0 ;
2754 char *kwnames[] = {
2755 (char *) "listOfStrings", NULL
2756 };
2757
2758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2759 arg1 = obj0;
2760 {
e3b71cb8 2761 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2762 PyThreadState* __tstate = wxPyBeginAllowThreads();
2763 result = (wxBitmap *)new_wxBitmap(arg1);
2764
2765 wxPyEndAllowThreads(__tstate);
110da5b0 2766 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2767 }
15afbcd0 2768 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2769 return resultobj;
2770 fail:
2771 return NULL;
2772}
2773
2774
2775static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2776 PyObject *resultobj;
2777 PyObject *arg1 = (PyObject *) 0 ;
2778 int arg2 ;
2779 int arg3 ;
2780 int arg4 = (int) 1 ;
2781 wxBitmap *result;
2782 PyObject * obj0 = 0 ;
994141e6
RD
2783 PyObject * obj1 = 0 ;
2784 PyObject * obj2 = 0 ;
2785 PyObject * obj3 = 0 ;
d14a1e28
RD
2786 char *kwnames[] = {
2787 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2788 };
2789
994141e6 2790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 2791 arg1 = obj0;
15afbcd0
RD
2792 arg2 = (int) SWIG_AsInt(obj1);
2793 if (PyErr_Occurred()) SWIG_fail;
2794 arg3 = (int) SWIG_AsInt(obj2);
2795 if (PyErr_Occurred()) SWIG_fail;
994141e6 2796 if (obj3) {
15afbcd0
RD
2797 arg4 = (int) SWIG_AsInt(obj3);
2798 if (PyErr_Occurred()) SWIG_fail;
994141e6 2799 }
d14a1e28 2800 {
e3b71cb8 2801 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2802 PyThreadState* __tstate = wxPyBeginAllowThreads();
2803 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2804
2805 wxPyEndAllowThreads(__tstate);
110da5b0 2806 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2807 }
15afbcd0 2808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2809 return resultobj;
2810 fail:
2811 return NULL;
2812}
2813
2814
2815static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2816 PyObject *resultobj;
2817 wxBitmap *arg1 = (wxBitmap *) 0 ;
2818 bool result;
2819 PyObject * obj0 = 0 ;
2820 char *kwnames[] = {
2821 (char *) "self", NULL
2822 };
2823
2824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
2825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2827 {
2828 PyThreadState* __tstate = wxPyBeginAllowThreads();
2829 result = (bool)(arg1)->Ok();
2830
2831 wxPyEndAllowThreads(__tstate);
2832 if (PyErr_Occurred()) SWIG_fail;
2833 }
4f89f6a3
RD
2834 {
2835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2836 }
d14a1e28
RD
2837 return resultobj;
2838 fail:
2839 return NULL;
2840}
2841
2842
2843static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2844 PyObject *resultobj;
2845 wxBitmap *arg1 = (wxBitmap *) 0 ;
2846 int result;
2847 PyObject * obj0 = 0 ;
2848 char *kwnames[] = {
2849 (char *) "self", NULL
2850 };
2851
2852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
2853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2855 {
2856 PyThreadState* __tstate = wxPyBeginAllowThreads();
2857 result = (int)(arg1)->GetWidth();
2858
2859 wxPyEndAllowThreads(__tstate);
2860 if (PyErr_Occurred()) SWIG_fail;
2861 }
15afbcd0 2862 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
2863 return resultobj;
2864 fail:
2865 return NULL;
2866}
2867
2868
2869static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2870 PyObject *resultobj;
2871 wxBitmap *arg1 = (wxBitmap *) 0 ;
2872 int result;
2873 PyObject * obj0 = 0 ;
2874 char *kwnames[] = {
2875 (char *) "self", NULL
2876 };
2877
2878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
2879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2881 {
2882 PyThreadState* __tstate = wxPyBeginAllowThreads();
2883 result = (int)(arg1)->GetHeight();
2884
2885 wxPyEndAllowThreads(__tstate);
2886 if (PyErr_Occurred()) SWIG_fail;
2887 }
15afbcd0 2888 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
2889 return resultobj;
2890 fail:
2891 return NULL;
2892}
2893
2894
2895static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2896 PyObject *resultobj;
2897 wxBitmap *arg1 = (wxBitmap *) 0 ;
2898 int result;
2899 PyObject * obj0 = 0 ;
2900 char *kwnames[] = {
2901 (char *) "self", NULL
2902 };
2903
2904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
15afbcd0
RD
2905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2907 {
2908 PyThreadState* __tstate = wxPyBeginAllowThreads();
2909 result = (int)(arg1)->GetDepth();
2910
2911 wxPyEndAllowThreads(__tstate);
2912 if (PyErr_Occurred()) SWIG_fail;
2913 }
15afbcd0 2914 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
2915 return resultobj;
2916 fail:
2917 return NULL;
2918}
2919
2920
b2df227b
RD
2921static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2922 PyObject *resultobj;
2923 wxBitmap *arg1 = (wxBitmap *) 0 ;
2924 wxSize result;
2925 PyObject * obj0 = 0 ;
2926 char *kwnames[] = {
2927 (char *) "self", NULL
2928 };
2929
2930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
2931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2933 {
2934 PyThreadState* __tstate = wxPyBeginAllowThreads();
2935 result = wxBitmap_GetSize(arg1);
2936
2937 wxPyEndAllowThreads(__tstate);
2938 if (PyErr_Occurred()) SWIG_fail;
2939 }
2940 {
2941 wxSize * resultptr;
2942 resultptr = new wxSize((wxSize &) result);
2943 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2944 }
2945 return resultobj;
2946 fail:
2947 return NULL;
2948}
2949
2950
d14a1e28
RD
2951static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2952 PyObject *resultobj;
2953 wxBitmap *arg1 = (wxBitmap *) 0 ;
2954 SwigValueWrapper< wxImage > result;
2955 PyObject * obj0 = 0 ;
2956 char *kwnames[] = {
2957 (char *) "self", NULL
2958 };
2959
2960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
15afbcd0
RD
2961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2963 {
2964 PyThreadState* __tstate = wxPyBeginAllowThreads();
2965 result = ((wxBitmap const *)arg1)->ConvertToImage();
2966
2967 wxPyEndAllowThreads(__tstate);
2968 if (PyErr_Occurred()) SWIG_fail;
2969 }
2970 {
2971 wxImage * resultptr;
2972 resultptr = new wxImage((wxImage &) result);
15afbcd0 2973 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
d14a1e28
RD
2974 }
2975 return resultobj;
2976 fail:
2977 return NULL;
2978}
2979
2980
2981static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2982 PyObject *resultobj;
2983 wxBitmap *arg1 = (wxBitmap *) 0 ;
2984 wxMask *result;
2985 PyObject * obj0 = 0 ;
2986 char *kwnames[] = {
2987 (char *) "self", NULL
2988 };
2989
2990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
15afbcd0
RD
2991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2993 {
2994 PyThreadState* __tstate = wxPyBeginAllowThreads();
2995 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2996
2997 wxPyEndAllowThreads(__tstate);
2998 if (PyErr_Occurred()) SWIG_fail;
2999 }
15afbcd0 3000 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
d14a1e28
RD
3001 return resultobj;
3002 fail:
3003 return NULL;
3004}
3005
3006
3007static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3008 PyObject *resultobj;
3009 wxBitmap *arg1 = (wxBitmap *) 0 ;
3010 wxMask *arg2 = (wxMask *) 0 ;
3011 PyObject * obj0 = 0 ;
3012 PyObject * obj1 = 0 ;
3013 char *kwnames[] = {
3014 (char *) "self",(char *) "mask", NULL
3015 };
3016
3017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3020 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3022 {
3023 PyThreadState* __tstate = wxPyBeginAllowThreads();
3024 (arg1)->SetMask(arg2);
3025
3026 wxPyEndAllowThreads(__tstate);
3027 if (PyErr_Occurred()) SWIG_fail;
3028 }
3029 Py_INCREF(Py_None); resultobj = Py_None;
3030 return resultobj;
3031 fail:
3032 return NULL;
3033}
3034
3035
3036static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3037 PyObject *resultobj;
3038 wxBitmap *arg1 = (wxBitmap *) 0 ;
3039 wxColour *arg2 = 0 ;
3040 wxColour temp2 ;
3041 PyObject * obj0 = 0 ;
3042 PyObject * obj1 = 0 ;
3043 char *kwnames[] = {
3044 (char *) "self",(char *) "colour", NULL
3045 };
3046
3047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3050 {
3051 arg2 = &temp2;
3052 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3053 }
3054 {
3055 PyThreadState* __tstate = wxPyBeginAllowThreads();
3056 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3057
3058 wxPyEndAllowThreads(__tstate);
3059 if (PyErr_Occurred()) SWIG_fail;
3060 }
3061 Py_INCREF(Py_None); resultobj = Py_None;
3062 return resultobj;
3063 fail:
3064 return NULL;
3065}
3066
3067
3068static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3069 PyObject *resultobj;
3070 wxBitmap *arg1 = (wxBitmap *) 0 ;
3071 wxRect *arg2 = 0 ;
3072 SwigValueWrapper< wxBitmap > result;
3073 wxRect temp2 ;
3074 PyObject * obj0 = 0 ;
3075 PyObject * obj1 = 0 ;
3076 char *kwnames[] = {
3077 (char *) "self",(char *) "rect", NULL
3078 };
3079
3080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3083 {
3084 arg2 = &temp2;
3085 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3086 }
3087 {
3088 PyThreadState* __tstate = wxPyBeginAllowThreads();
3089 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3090
3091 wxPyEndAllowThreads(__tstate);
3092 if (PyErr_Occurred()) SWIG_fail;
3093 }
3094 {
3095 wxBitmap * resultptr;
3096 resultptr = new wxBitmap((wxBitmap &) result);
15afbcd0 3097 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
3098 }
3099 return resultobj;
3100 fail:
3101 return NULL;
3102}
3103
3104
3105static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3106 PyObject *resultobj;
3107 wxBitmap *arg1 = (wxBitmap *) 0 ;
3108 wxString *arg2 = 0 ;
3109 int arg3 ;
66c033b4 3110 wxPalette *arg4 = (wxPalette *) NULL ;
d14a1e28 3111 bool result;
e811c8ce 3112 bool temp2 = False ;
d14a1e28
RD
3113 PyObject * obj0 = 0 ;
3114 PyObject * obj1 = 0 ;
994141e6 3115 PyObject * obj2 = 0 ;
d14a1e28
RD
3116 PyObject * obj3 = 0 ;
3117 char *kwnames[] = {
3118 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3119 };
3120
994141e6 3121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
3122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3124 {
3125 arg2 = wxString_in_helper(obj1);
3126 if (arg2 == NULL) SWIG_fail;
e811c8ce 3127 temp2 = True;
d14a1e28 3128 }
15afbcd0
RD
3129 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3130 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3131 if (obj3) {
15afbcd0
RD
3132 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3134 }
3135 {
3136 PyThreadState* __tstate = wxPyBeginAllowThreads();
3137 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3138
3139 wxPyEndAllowThreads(__tstate);
3140 if (PyErr_Occurred()) SWIG_fail;
3141 }
4f89f6a3
RD
3142 {
3143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3144 }
d14a1e28
RD
3145 {
3146 if (temp2)
3147 delete arg2;
3148 }
3149 return resultobj;
3150 fail:
3151 {
3152 if (temp2)
3153 delete arg2;
3154 }
3155 return NULL;
3156}
3157
3158
3159static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3160 PyObject *resultobj;
3161 wxBitmap *arg1 = (wxBitmap *) 0 ;
3162 wxString *arg2 = 0 ;
3163 int arg3 ;
3164 bool result;
e811c8ce 3165 bool temp2 = False ;
d14a1e28
RD
3166 PyObject * obj0 = 0 ;
3167 PyObject * obj1 = 0 ;
994141e6 3168 PyObject * obj2 = 0 ;
d14a1e28
RD
3169 char *kwnames[] = {
3170 (char *) "self",(char *) "name",(char *) "type", NULL
3171 };
3172
994141e6 3173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
3174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3176 {
3177 arg2 = wxString_in_helper(obj1);
3178 if (arg2 == NULL) SWIG_fail;
e811c8ce 3179 temp2 = True;
d14a1e28 3180 }
15afbcd0
RD
3181 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3182 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3183 {
3184 PyThreadState* __tstate = wxPyBeginAllowThreads();
3185 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3186
3187 wxPyEndAllowThreads(__tstate);
3188 if (PyErr_Occurred()) SWIG_fail;
3189 }
4f89f6a3
RD
3190 {
3191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3192 }
d14a1e28
RD
3193 {
3194 if (temp2)
3195 delete arg2;
3196 }
3197 return resultobj;
3198 fail:
3199 {
3200 if (temp2)
3201 delete arg2;
3202 }
3203 return NULL;
3204}
3205
3206
3207static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3208 PyObject *resultobj;
3209 wxBitmap *arg1 = (wxBitmap *) 0 ;
3210 wxIcon *arg2 = 0 ;
3211 bool result;
3212 PyObject * obj0 = 0 ;
3213 PyObject * obj1 = 0 ;
3214 char *kwnames[] = {
3215 (char *) "self",(char *) "icon", NULL
3216 };
3217
3218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3221 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3222 SWIG_POINTER_EXCEPTION | 0)) == -1)
3223 SWIG_fail;
d14a1e28 3224 if (arg2 == NULL) {
15afbcd0
RD
3225 PyErr_SetString(PyExc_TypeError,"null reference");
3226 SWIG_fail;
d14a1e28
RD
3227 }
3228 {
3229 PyThreadState* __tstate = wxPyBeginAllowThreads();
3230 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3231
3232 wxPyEndAllowThreads(__tstate);
3233 if (PyErr_Occurred()) SWIG_fail;
3234 }
4f89f6a3
RD
3235 {
3236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3237 }
d14a1e28
RD
3238 return resultobj;
3239 fail:
3240 return NULL;
3241}
3242
3243
3244static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3245 PyObject *resultobj;
3246 wxBitmap *arg1 = (wxBitmap *) 0 ;
3247 int arg2 ;
3248 PyObject * obj0 = 0 ;
994141e6 3249 PyObject * obj1 = 0 ;
d14a1e28
RD
3250 char *kwnames[] = {
3251 (char *) "self",(char *) "height", NULL
3252 };
3253
994141e6 3254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3257 arg2 = (int) SWIG_AsInt(obj1);
3258 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3259 {
3260 PyThreadState* __tstate = wxPyBeginAllowThreads();
3261 (arg1)->SetHeight(arg2);
3262
3263 wxPyEndAllowThreads(__tstate);
3264 if (PyErr_Occurred()) SWIG_fail;
3265 }
3266 Py_INCREF(Py_None); resultobj = Py_None;
3267 return resultobj;
3268 fail:
3269 return NULL;
3270}
3271
3272
3273static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3274 PyObject *resultobj;
3275 wxBitmap *arg1 = (wxBitmap *) 0 ;
3276 int arg2 ;
3277 PyObject * obj0 = 0 ;
994141e6 3278 PyObject * obj1 = 0 ;
d14a1e28
RD
3279 char *kwnames[] = {
3280 (char *) "self",(char *) "width", NULL
3281 };
3282
994141e6 3283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3286 arg2 = (int) SWIG_AsInt(obj1);
3287 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3288 {
3289 PyThreadState* __tstate = wxPyBeginAllowThreads();
3290 (arg1)->SetWidth(arg2);
3291
3292 wxPyEndAllowThreads(__tstate);
3293 if (PyErr_Occurred()) SWIG_fail;
3294 }
3295 Py_INCREF(Py_None); resultobj = Py_None;
3296 return resultobj;
3297 fail:
3298 return NULL;
3299}
3300
3301
3302static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3303 PyObject *resultobj;
3304 wxBitmap *arg1 = (wxBitmap *) 0 ;
3305 int arg2 ;
3306 PyObject * obj0 = 0 ;
994141e6 3307 PyObject * obj1 = 0 ;
d14a1e28
RD
3308 char *kwnames[] = {
3309 (char *) "self",(char *) "depth", NULL
3310 };
3311
994141e6 3312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3315 arg2 = (int) SWIG_AsInt(obj1);
3316 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3317 {
3318 PyThreadState* __tstate = wxPyBeginAllowThreads();
3319 (arg1)->SetDepth(arg2);
3320
3321 wxPyEndAllowThreads(__tstate);
3322 if (PyErr_Occurred()) SWIG_fail;
3323 }
3324 Py_INCREF(Py_None); resultobj = Py_None;
3325 return resultobj;
3326 fail:
3327 return NULL;
3328}
3329
3330
b2df227b
RD
3331static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3332 PyObject *resultobj;
3333 wxBitmap *arg1 = (wxBitmap *) 0 ;
3334 wxSize *arg2 = 0 ;
3335 wxSize temp2 ;
3336 PyObject * obj0 = 0 ;
3337 PyObject * obj1 = 0 ;
3338 char *kwnames[] = {
3339 (char *) "self",(char *) "size", NULL
3340 };
3341
3342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3345 {
3346 arg2 = &temp2;
3347 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3348 }
3349 {
3350 PyThreadState* __tstate = wxPyBeginAllowThreads();
3351 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3352
3353 wxPyEndAllowThreads(__tstate);
3354 if (PyErr_Occurred()) SWIG_fail;
3355 }
3356 Py_INCREF(Py_None); resultobj = Py_None;
3357 return resultobj;
3358 fail:
3359 return NULL;
3360}
3361
3362
4276dc52
RD
3363static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3364 PyObject *resultobj;
3365 wxBitmap *arg1 = (wxBitmap *) 0 ;
3366 wxBitmap *arg2 = (wxBitmap *) 0 ;
3367 bool result;
3368 PyObject * obj0 = 0 ;
3369 PyObject * obj1 = 0 ;
3370 char *kwnames[] = {
3371 (char *) "self",(char *) "other", NULL
3372 };
3373
3374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3377 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3379 {
3380 PyThreadState* __tstate = wxPyBeginAllowThreads();
3381 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3382
3383 wxPyEndAllowThreads(__tstate);
3384 if (PyErr_Occurred()) SWIG_fail;
3385 }
4f89f6a3
RD
3386 {
3387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3388 }
4276dc52
RD
3389 return resultobj;
3390 fail:
3391 return NULL;
3392}
3393
3394
3395static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3396 PyObject *resultobj;
3397 wxBitmap *arg1 = (wxBitmap *) 0 ;
3398 wxBitmap *arg2 = (wxBitmap *) 0 ;
3399 bool result;
3400 PyObject * obj0 = 0 ;
3401 PyObject * obj1 = 0 ;
3402 char *kwnames[] = {
3403 (char *) "self",(char *) "other", NULL
3404 };
3405
3406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3409 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3411 {
3412 PyThreadState* __tstate = wxPyBeginAllowThreads();
3413 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3414
3415 wxPyEndAllowThreads(__tstate);
3416 if (PyErr_Occurred()) SWIG_fail;
3417 }
4f89f6a3
RD
3418 {
3419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3420 }
4276dc52
RD
3421 return resultobj;
3422 fail:
3423 return NULL;
3424}
3425
3426
d14a1e28
RD
3427static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3428 PyObject *obj;
3429 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3430 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3431 Py_INCREF(obj);
3432 return Py_BuildValue((char *)"");
3433}
3434static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3435 PyObject *resultobj;
3436 wxBitmap *arg1 = 0 ;
0482c494
RD
3437 wxColour const &arg2_defvalue = wxNullColour ;
3438 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
d14a1e28
RD
3439 wxMask *result;
3440 wxColour temp2 ;
3441 PyObject * obj0 = 0 ;
3442 PyObject * obj1 = 0 ;
3443 char *kwnames[] = {
3444 (char *) "bitmap",(char *) "colour", NULL
3445 };
3446
0482c494 3447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3449 SWIG_POINTER_EXCEPTION | 0)) == -1)
3450 SWIG_fail;
d14a1e28 3451 if (arg1 == NULL) {
15afbcd0
RD
3452 PyErr_SetString(PyExc_TypeError,"null reference");
3453 SWIG_fail;
d14a1e28 3454 }
0482c494
RD
3455 if (obj1) {
3456 {
3457 arg2 = &temp2;
3458 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3459 }
d14a1e28
RD
3460 }
3461 {
e3b71cb8 3462 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 3463 PyThreadState* __tstate = wxPyBeginAllowThreads();
0482c494 3464 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
d14a1e28
RD
3465
3466 wxPyEndAllowThreads(__tstate);
110da5b0 3467 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3468 }
15afbcd0 3469 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
d14a1e28
RD
3470 return resultobj;
3471 fail:
3472 return NULL;
3473}
3474
3475
3476static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3477 PyObject *obj;
3478 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3479 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3480 Py_INCREF(obj);
3481 return Py_BuildValue((char *)"");
3482}
3483static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3484 PyObject *resultobj;
3485 wxString *arg1 = 0 ;
f87da722 3486 int arg2 ;
d14a1e28
RD
3487 int arg3 = (int) -1 ;
3488 int arg4 = (int) -1 ;
3489 wxIcon *result;
e811c8ce 3490 bool temp1 = False ;
d14a1e28 3491 PyObject * obj0 = 0 ;
994141e6
RD
3492 PyObject * obj1 = 0 ;
3493 PyObject * obj2 = 0 ;
3494 PyObject * obj3 = 0 ;
d14a1e28 3495 char *kwnames[] = {
f87da722 3496 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
d14a1e28
RD
3497 };
3498
994141e6 3499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
3500 {
3501 arg1 = wxString_in_helper(obj0);
3502 if (arg1 == NULL) SWIG_fail;
e811c8ce 3503 temp1 = True;
d14a1e28 3504 }
15afbcd0
RD
3505 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3506 if (PyErr_Occurred()) SWIG_fail;
994141e6 3507 if (obj2) {
15afbcd0
RD
3508 arg3 = (int) SWIG_AsInt(obj2);
3509 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3510 }
3511 if (obj3) {
15afbcd0
RD
3512 arg4 = (int) SWIG_AsInt(obj3);
3513 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3514 }
3515 {
e3b71cb8 3516 if (!wxPyCheckForApp()) SWIG_fail;
994141e6
RD
3517 PyThreadState* __tstate = wxPyBeginAllowThreads();
3518 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3519
3520 wxPyEndAllowThreads(__tstate);
110da5b0 3521 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3522 }
15afbcd0 3523 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3524 {
3525 if (temp1)
3526 delete arg1;
3527 }
3528 return resultobj;
3529 fail:
3530 {
3531 if (temp1)
3532 delete arg1;
3533 }
3534 return NULL;
3535}
3536
3537
3538static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3539 PyObject *resultobj;
3540 wxIcon *arg1 = (wxIcon *) 0 ;
3541 PyObject * obj0 = 0 ;
3542 char *kwnames[] = {
3543 (char *) "self", NULL
3544 };
3545
3546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
15afbcd0
RD
3547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3549 {
3550 PyThreadState* __tstate = wxPyBeginAllowThreads();
3551 delete arg1;
3552
3553 wxPyEndAllowThreads(__tstate);
3554 if (PyErr_Occurred()) SWIG_fail;
3555 }
3556 Py_INCREF(Py_None); resultobj = Py_None;
3557 return resultobj;
3558 fail:
3559 return NULL;
3560}
3561
3562
3563static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3564 PyObject *resultobj;
3565 wxIcon *result;
3566 char *kwnames[] = {
3567 NULL
3568 };
3569
3570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3571 {
e3b71cb8 3572 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
3573 PyThreadState* __tstate = wxPyBeginAllowThreads();
3574 result = (wxIcon *)new wxIcon();
3575
3576 wxPyEndAllowThreads(__tstate);
110da5b0 3577 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3578 }
15afbcd0 3579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3580 return resultobj;
3581 fail:
3582 return NULL;
3583}
3584
3585
3586static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3587 PyObject *resultobj;
3588 wxIconLocation *arg1 = 0 ;
3589 wxIcon *result;
3590 PyObject * obj0 = 0 ;
3591 char *kwnames[] = {
3592 (char *) "loc", NULL
3593 };
3594
3595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
15afbcd0
RD
3596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3597 SWIG_POINTER_EXCEPTION | 0)) == -1)
3598 SWIG_fail;
d14a1e28 3599 if (arg1 == NULL) {
15afbcd0
RD
3600 PyErr_SetString(PyExc_TypeError,"null reference");
3601 SWIG_fail;
d14a1e28
RD
3602 }
3603 {
e3b71cb8 3604 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
3605 PyThreadState* __tstate = wxPyBeginAllowThreads();
3606 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3607
3608 wxPyEndAllowThreads(__tstate);
110da5b0 3609 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3610 }
15afbcd0 3611 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3612 return resultobj;
3613 fail:
3614 return NULL;
3615}
3616
3617
3618static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3619 PyObject *resultobj;
3620 wxBitmap *arg1 = 0 ;
3621 wxIcon *result;
3622 PyObject * obj0 = 0 ;
3623 char *kwnames[] = {
3624 (char *) "bmp", NULL
3625 };
3626
3627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
15afbcd0
RD
3628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3629 SWIG_POINTER_EXCEPTION | 0)) == -1)
3630 SWIG_fail;
d14a1e28 3631 if (arg1 == NULL) {
15afbcd0
RD
3632 PyErr_SetString(PyExc_TypeError,"null reference");
3633 SWIG_fail;
d14a1e28
RD
3634 }
3635 {
e3b71cb8 3636 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
3637 PyThreadState* __tstate = wxPyBeginAllowThreads();
3638 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3639
3640 wxPyEndAllowThreads(__tstate);
110da5b0 3641 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3642 }
15afbcd0 3643 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3644 return resultobj;
3645 fail:
3646 return NULL;
3647}
3648
3649
3650static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3651 PyObject *resultobj;
3652 PyObject *arg1 = (PyObject *) 0 ;
3653 wxIcon *result;
3654 PyObject * obj0 = 0 ;
3655 char *kwnames[] = {
3656 (char *) "listOfStrings", NULL
3657 };
3658
3659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3660 arg1 = obj0;
3661 {
e3b71cb8 3662 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
3663 PyThreadState* __tstate = wxPyBeginAllowThreads();
3664 result = (wxIcon *)new_wxIcon(arg1);
3665
3666 wxPyEndAllowThreads(__tstate);
110da5b0 3667 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3668 }
15afbcd0 3669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3670 return resultobj;
3671 fail:
3672 return NULL;
3673}
3674
3675
3676static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3677 PyObject *resultobj;
3678 wxIcon *arg1 = (wxIcon *) 0 ;
3679 wxString *arg2 = 0 ;
f87da722 3680 int arg3 ;
d14a1e28 3681 bool result;
e811c8ce 3682 bool temp2 = False ;
d14a1e28
RD
3683 PyObject * obj0 = 0 ;
3684 PyObject * obj1 = 0 ;
994141e6 3685 PyObject * obj2 = 0 ;
d14a1e28 3686 char *kwnames[] = {
f87da722 3687 (char *) "self",(char *) "name",(char *) "type", NULL
d14a1e28
RD
3688 };
3689
994141e6 3690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
3691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3693 {
3694 arg2 = wxString_in_helper(obj1);
3695 if (arg2 == NULL) SWIG_fail;
e811c8ce 3696 temp2 = True;
d14a1e28 3697 }
15afbcd0
RD
3698 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3699 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3700 {
3701 PyThreadState* __tstate = wxPyBeginAllowThreads();
f87da722 3702 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
d14a1e28
RD
3703
3704 wxPyEndAllowThreads(__tstate);
3705 if (PyErr_Occurred()) SWIG_fail;
3706 }
4f89f6a3
RD
3707 {
3708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3709 }
d14a1e28
RD
3710 {
3711 if (temp2)
3712 delete arg2;
3713 }
3714 return resultobj;
3715 fail:
3716 {
3717 if (temp2)
3718 delete arg2;
3719 }
3720 return NULL;
3721}
3722
3723
3724static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj;
3726 wxIcon *arg1 = (wxIcon *) 0 ;
3727 bool result;
3728 PyObject * obj0 = 0 ;
3729 char *kwnames[] = {
3730 (char *) "self", NULL
3731 };
3732
3733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
3734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3736 {
3737 PyThreadState* __tstate = wxPyBeginAllowThreads();
3738 result = (bool)(arg1)->Ok();
3739
3740 wxPyEndAllowThreads(__tstate);
3741 if (PyErr_Occurred()) SWIG_fail;
3742 }
4f89f6a3
RD
3743 {
3744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3745 }
d14a1e28
RD
3746 return resultobj;
3747 fail:
3748 return NULL;
3749}
3750
3751
3752static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3753 PyObject *resultobj;
3754 wxIcon *arg1 = (wxIcon *) 0 ;
3755 int result;
3756 PyObject * obj0 = 0 ;
3757 char *kwnames[] = {
3758 (char *) "self", NULL
3759 };
3760
3761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
3762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3764 {
3765 PyThreadState* __tstate = wxPyBeginAllowThreads();
3766 result = (int)(arg1)->GetWidth();
3767
3768 wxPyEndAllowThreads(__tstate);
3769 if (PyErr_Occurred()) SWIG_fail;
3770 }
15afbcd0 3771 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3772 return resultobj;
3773 fail:
3774 return NULL;
3775}
3776
3777
3778static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3779 PyObject *resultobj;
3780 wxIcon *arg1 = (wxIcon *) 0 ;
3781 int result;
3782 PyObject * obj0 = 0 ;
3783 char *kwnames[] = {
3784 (char *) "self", NULL
3785 };
3786
3787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
3788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3790 {
3791 PyThreadState* __tstate = wxPyBeginAllowThreads();
3792 result = (int)(arg1)->GetHeight();
3793
3794 wxPyEndAllowThreads(__tstate);
3795 if (PyErr_Occurred()) SWIG_fail;
3796 }
15afbcd0 3797 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3798 return resultobj;
3799 fail:
3800 return NULL;
3801}
3802
3803
3804static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3805 PyObject *resultobj;
3806 wxIcon *arg1 = (wxIcon *) 0 ;
3807 int result;
3808 PyObject * obj0 = 0 ;
3809 char *kwnames[] = {
3810 (char *) "self", NULL
3811 };
3812
3813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
15afbcd0
RD
3814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3816 {
3817 PyThreadState* __tstate = wxPyBeginAllowThreads();
3818 result = (int)(arg1)->GetDepth();
3819
3820 wxPyEndAllowThreads(__tstate);
3821 if (PyErr_Occurred()) SWIG_fail;
3822 }
15afbcd0 3823 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3824 return resultobj;
3825 fail:
3826 return NULL;
3827}
3828
3829
3830static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3831 PyObject *resultobj;
3832 wxIcon *arg1 = (wxIcon *) 0 ;
3833 int arg2 ;
3834 PyObject * obj0 = 0 ;
994141e6 3835 PyObject * obj1 = 0 ;
d14a1e28
RD
3836 char *kwnames[] = {
3837 (char *) "self",(char *) "w", NULL
3838 };
3839
994141e6 3840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3843 arg2 = (int) SWIG_AsInt(obj1);
3844 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3845 {
3846 PyThreadState* __tstate = wxPyBeginAllowThreads();
3847 (arg1)->SetWidth(arg2);
3848
3849 wxPyEndAllowThreads(__tstate);
3850 if (PyErr_Occurred()) SWIG_fail;
3851 }
3852 Py_INCREF(Py_None); resultobj = Py_None;
3853 return resultobj;
3854 fail:
3855 return NULL;
3856}
3857
3858
3859static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3860 PyObject *resultobj;
3861 wxIcon *arg1 = (wxIcon *) 0 ;
3862 int arg2 ;
3863 PyObject * obj0 = 0 ;
994141e6 3864 PyObject * obj1 = 0 ;
d14a1e28
RD
3865 char *kwnames[] = {
3866 (char *) "self",(char *) "h", NULL
3867 };
3868
994141e6 3869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3872 arg2 = (int) SWIG_AsInt(obj1);
3873 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3874 {
3875 PyThreadState* __tstate = wxPyBeginAllowThreads();
3876 (arg1)->SetHeight(arg2);
3877
3878 wxPyEndAllowThreads(__tstate);
3879 if (PyErr_Occurred()) SWIG_fail;
3880 }
3881 Py_INCREF(Py_None); resultobj = Py_None;
3882 return resultobj;
3883 fail:
3884 return NULL;
3885}
3886
3887
3888static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3889 PyObject *resultobj;
3890 wxIcon *arg1 = (wxIcon *) 0 ;
3891 int arg2 ;
3892 PyObject * obj0 = 0 ;
994141e6 3893 PyObject * obj1 = 0 ;
d14a1e28
RD
3894 char *kwnames[] = {
3895 (char *) "self",(char *) "d", NULL
3896 };
3897
994141e6 3898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3901 arg2 = (int) SWIG_AsInt(obj1);
3902 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3903 {
3904 PyThreadState* __tstate = wxPyBeginAllowThreads();
3905 (arg1)->SetDepth(arg2);
3906
3907 wxPyEndAllowThreads(__tstate);
3908 if (PyErr_Occurred()) SWIG_fail;
3909 }
3910 Py_INCREF(Py_None); resultobj = Py_None;
3911 return resultobj;
3912 fail:
3913 return NULL;
3914}
3915
3916
3917static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3918 PyObject *resultobj;
3919 wxIcon *arg1 = (wxIcon *) 0 ;
3920 wxBitmap *arg2 = 0 ;
3921 PyObject * obj0 = 0 ;
3922 PyObject * obj1 = 0 ;
3923 char *kwnames[] = {
3924 (char *) "self",(char *) "bmp", NULL
3925 };
3926
3927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3930 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3931 SWIG_POINTER_EXCEPTION | 0)) == -1)
3932 SWIG_fail;
d14a1e28 3933 if (arg2 == NULL) {
15afbcd0
RD
3934 PyErr_SetString(PyExc_TypeError,"null reference");
3935 SWIG_fail;
d14a1e28
RD
3936 }
3937 {
3938 PyThreadState* __tstate = wxPyBeginAllowThreads();
3939 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3940
3941 wxPyEndAllowThreads(__tstate);
3942 if (PyErr_Occurred()) SWIG_fail;
3943 }
3944 Py_INCREF(Py_None); resultobj = Py_None;
3945 return resultobj;
3946 fail:
3947 return NULL;
3948}
3949
3950
3951static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3952 PyObject *obj;
3953 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3954 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3955 Py_INCREF(obj);
3956 return Py_BuildValue((char *)"");
3957}
3958static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3959 PyObject *resultobj;
3960 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3961 int arg2 = (int) 0 ;
3962 wxIconLocation *result;
7eae615b 3963 bool temp1 = False ;
d14a1e28 3964 PyObject * obj0 = 0 ;
994141e6 3965 PyObject * obj1 = 0 ;
d14a1e28
RD
3966 char *kwnames[] = {
3967 (char *) "filename",(char *) "num", NULL
3968 };
3969
994141e6 3970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 3971 if (obj0) {
7eae615b
RD
3972 {
3973 arg1 = wxString_in_helper(obj0);
3974 if (arg1 == NULL) SWIG_fail;
3975 temp1 = True;
3976 }
d14a1e28 3977 }
994141e6 3978 if (obj1) {
15afbcd0
RD
3979 arg2 = (int) SWIG_AsInt(obj1);
3980 if (PyErr_Occurred()) SWIG_fail;
994141e6 3981 }
d14a1e28
RD
3982 {
3983 PyThreadState* __tstate = wxPyBeginAllowThreads();
3984 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3985
3986 wxPyEndAllowThreads(__tstate);
3987 if (PyErr_Occurred()) SWIG_fail;
3988 }
15afbcd0 3989 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
7eae615b
RD
3990 {
3991 if (temp1)
3992 delete arg1;
3993 }
d14a1e28
RD
3994 return resultobj;
3995 fail:
7eae615b
RD
3996 {
3997 if (temp1)
3998 delete arg1;
3999 }
d14a1e28
RD
4000 return NULL;
4001}
4002
4003
4004static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4005 PyObject *resultobj;
4006 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4007 PyObject * obj0 = 0 ;
4008 char *kwnames[] = {
4009 (char *) "self", NULL
4010 };
4011
4012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
15afbcd0
RD
4013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4015 {
4016 PyThreadState* __tstate = wxPyBeginAllowThreads();
4017 delete arg1;
4018
4019 wxPyEndAllowThreads(__tstate);
4020 if (PyErr_Occurred()) SWIG_fail;
4021 }
4022 Py_INCREF(Py_None); resultobj = Py_None;
4023 return resultobj;
4024 fail:
4025 return NULL;
4026}
4027
4028
4029static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4030 PyObject *resultobj;
4031 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4032 bool result;
4033 PyObject * obj0 = 0 ;
4034 char *kwnames[] = {
4035 (char *) "self", NULL
4036 };
4037
4038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
15afbcd0
RD
4039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4041 {
4042 PyThreadState* __tstate = wxPyBeginAllowThreads();
4043 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4044
4045 wxPyEndAllowThreads(__tstate);
4046 if (PyErr_Occurred()) SWIG_fail;
4047 }
4f89f6a3
RD
4048 {
4049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4050 }
d14a1e28
RD
4051 return resultobj;
4052 fail:
4053 return NULL;
4054}
4055
4056
4057static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4058 PyObject *resultobj;
4059 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4060 wxString *arg2 = 0 ;
e811c8ce 4061 bool temp2 = False ;
d14a1e28
RD
4062 PyObject * obj0 = 0 ;
4063 PyObject * obj1 = 0 ;
4064 char *kwnames[] = {
4065 (char *) "self",(char *) "filename", NULL
4066 };
4067
4068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4071 {
4072 arg2 = wxString_in_helper(obj1);
4073 if (arg2 == NULL) SWIG_fail;
e811c8ce 4074 temp2 = True;
d14a1e28
RD
4075 }
4076 {
4077 PyThreadState* __tstate = wxPyBeginAllowThreads();
4078 (arg1)->SetFileName((wxString const &)*arg2);
4079
4080 wxPyEndAllowThreads(__tstate);
4081 if (PyErr_Occurred()) SWIG_fail;
4082 }
4083 Py_INCREF(Py_None); resultobj = Py_None;
4084 {
4085 if (temp2)
4086 delete arg2;
4087 }
4088 return resultobj;
4089 fail:
4090 {
4091 if (temp2)
4092 delete arg2;
4093 }
4094 return NULL;
4095}
4096
4097
4098static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4099 PyObject *resultobj;
4100 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4101 wxString *result;
4102 PyObject * obj0 = 0 ;
4103 char *kwnames[] = {
4104 (char *) "self", NULL
4105 };
4106
4107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
15afbcd0
RD
4108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4110 {
4111 PyThreadState* __tstate = wxPyBeginAllowThreads();
4112 {
4113 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4114 result = (wxString *) &_result_ref;
4115 }
4116
4117 wxPyEndAllowThreads(__tstate);
4118 if (PyErr_Occurred()) SWIG_fail;
4119 }
cc6dd355
RD
4120 {
4121#if wxUSE_UNICODE
4122 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4123#else
4124 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4125#endif
4126 }
d14a1e28
RD
4127 return resultobj;
4128 fail:
4129 return NULL;
4130}
4131
4132
4133static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4134 PyObject *resultobj;
4135 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4136 int arg2 ;
4137 PyObject * obj0 = 0 ;
994141e6 4138 PyObject * obj1 = 0 ;
d14a1e28
RD
4139 char *kwnames[] = {
4140 (char *) "self",(char *) "num", NULL
4141 };
4142
994141e6 4143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4146 arg2 = (int) SWIG_AsInt(obj1);
4147 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4148 {
4149 PyThreadState* __tstate = wxPyBeginAllowThreads();
4150 wxIconLocation_SetIndex(arg1,arg2);
4151
4152 wxPyEndAllowThreads(__tstate);
4153 if (PyErr_Occurred()) SWIG_fail;
4154 }
4155 Py_INCREF(Py_None); resultobj = Py_None;
4156 return resultobj;
4157 fail:
4158 return NULL;
4159}
4160
4161
4162static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4163 PyObject *resultobj;
4164 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4165 int result;
4166 PyObject * obj0 = 0 ;
4167 char *kwnames[] = {
4168 (char *) "self", NULL
4169 };
4170
4171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
15afbcd0
RD
4172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4174 {
4175 PyThreadState* __tstate = wxPyBeginAllowThreads();
4176 result = (int)wxIconLocation_GetIndex(arg1);
4177
4178 wxPyEndAllowThreads(__tstate);
4179 if (PyErr_Occurred()) SWIG_fail;
4180 }
15afbcd0 4181 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4182 return resultobj;
4183 fail:
4184 return NULL;
4185}
4186
4187
4188static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4189 PyObject *obj;
4190 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4191 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4192 Py_INCREF(obj);
4193 return Py_BuildValue((char *)"");
4194}
4195static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4196 PyObject *resultobj;
4197 wxIconBundle *result;
4198 char *kwnames[] = {
4199 NULL
4200 };
4201
4202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4203 {
4204 PyThreadState* __tstate = wxPyBeginAllowThreads();
4205 result = (wxIconBundle *)new wxIconBundle();
4206
4207 wxPyEndAllowThreads(__tstate);
4208 if (PyErr_Occurred()) SWIG_fail;
4209 }
15afbcd0 4210 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4211 return resultobj;
4212 fail:
4213 return NULL;
4214}
4215
4216
4217static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4218 PyObject *resultobj;
4219 wxString *arg1 = 0 ;
4220 long arg2 ;
4221 wxIconBundle *result;
e811c8ce 4222 bool temp1 = False ;
d14a1e28 4223 PyObject * obj0 = 0 ;
994141e6 4224 PyObject * obj1 = 0 ;
d14a1e28
RD
4225 char *kwnames[] = {
4226 (char *) "file",(char *) "type", NULL
4227 };
4228
994141e6 4229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
4230 {
4231 arg1 = wxString_in_helper(obj0);
4232 if (arg1 == NULL) SWIG_fail;
e811c8ce 4233 temp1 = True;
d14a1e28 4234 }
15afbcd0
RD
4235 arg2 = (long) SWIG_AsLong(obj1);
4236 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4237 {
4238 PyThreadState* __tstate = wxPyBeginAllowThreads();
4239 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4240
4241 wxPyEndAllowThreads(__tstate);
4242 if (PyErr_Occurred()) SWIG_fail;
4243 }
15afbcd0 4244 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4245 {
4246 if (temp1)
4247 delete arg1;
4248 }
4249 return resultobj;
4250 fail:
4251 {
4252 if (temp1)
4253 delete arg1;
4254 }
4255 return NULL;
4256}
4257
4258
4259static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4260 PyObject *resultobj;
4261 wxIcon *arg1 = 0 ;
4262 wxIconBundle *result;
4263 PyObject * obj0 = 0 ;
4264 char *kwnames[] = {
4265 (char *) "icon", NULL
4266 };
4267
4268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
15afbcd0
RD
4269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4270 SWIG_POINTER_EXCEPTION | 0)) == -1)
4271 SWIG_fail;
d14a1e28 4272 if (arg1 == NULL) {
15afbcd0
RD
4273 PyErr_SetString(PyExc_TypeError,"null reference");
4274 SWIG_fail;
d14a1e28
RD
4275 }
4276 {
4277 PyThreadState* __tstate = wxPyBeginAllowThreads();
4278 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4279
4280 wxPyEndAllowThreads(__tstate);
4281 if (PyErr_Occurred()) SWIG_fail;
4282 }
15afbcd0 4283 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4284 return resultobj;
4285 fail:
4286 return NULL;
4287}
4288
4289
4290static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4291 PyObject *resultobj;
4292 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4293 PyObject * obj0 = 0 ;
4294 char *kwnames[] = {
4295 (char *) "self", NULL
4296 };
4297
4298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
15afbcd0
RD
4299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4301 {
4302 PyThreadState* __tstate = wxPyBeginAllowThreads();
4303 delete arg1;
4304
4305 wxPyEndAllowThreads(__tstate);
4306 if (PyErr_Occurred()) SWIG_fail;
4307 }
4308 Py_INCREF(Py_None); resultobj = Py_None;
4309 return resultobj;
4310 fail:
4311 return NULL;
4312}
4313
4314
4315static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4316 PyObject *resultobj;
4317 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4318 wxIcon *arg2 = 0 ;
4319 PyObject * obj0 = 0 ;
4320 PyObject * obj1 = 0 ;
4321 char *kwnames[] = {
4322 (char *) "self",(char *) "icon", NULL
4323 };
4324
4325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4328 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4329 SWIG_POINTER_EXCEPTION | 0)) == -1)
4330 SWIG_fail;
d14a1e28 4331 if (arg2 == NULL) {
15afbcd0
RD
4332 PyErr_SetString(PyExc_TypeError,"null reference");
4333 SWIG_fail;
d14a1e28
RD
4334 }
4335 {
4336 PyThreadState* __tstate = wxPyBeginAllowThreads();
4337 (arg1)->AddIcon((wxIcon const &)*arg2);
4338
4339 wxPyEndAllowThreads(__tstate);
4340 if (PyErr_Occurred()) SWIG_fail;
4341 }
4342 Py_INCREF(Py_None); resultobj = Py_None;
4343 return resultobj;
4344 fail:
4345 return NULL;
4346}
4347
4348
4349static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4350 PyObject *resultobj;
4351 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4352 wxString *arg2 = 0 ;
4353 long arg3 ;
e811c8ce 4354 bool temp2 = False ;
d14a1e28
RD
4355 PyObject * obj0 = 0 ;
4356 PyObject * obj1 = 0 ;
994141e6 4357 PyObject * obj2 = 0 ;
d14a1e28
RD
4358 char *kwnames[] = {
4359 (char *) "self",(char *) "file",(char *) "type", NULL
4360 };
4361
994141e6 4362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
4363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4365 {
4366 arg2 = wxString_in_helper(obj1);
4367 if (arg2 == NULL) SWIG_fail;
e811c8ce 4368 temp2 = True;
d14a1e28 4369 }
15afbcd0
RD
4370 arg3 = (long) SWIG_AsLong(obj2);
4371 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4372 {
4373 PyThreadState* __tstate = wxPyBeginAllowThreads();
4374 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4375
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 Py_INCREF(Py_None); resultobj = Py_None;
4380 {
4381 if (temp2)
4382 delete arg2;
4383 }
4384 return resultobj;
4385 fail:
4386 {
4387 if (temp2)
4388 delete arg2;
4389 }
4390 return NULL;
4391}
4392
4393
4394static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4395 PyObject *resultobj;
4396 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4397 wxSize *arg2 = 0 ;
4398 wxIcon *result;
4399 wxSize temp2 ;
4400 PyObject * obj0 = 0 ;
4401 PyObject * obj1 = 0 ;
4402 char *kwnames[] = {
4403 (char *) "self",(char *) "size", NULL
4404 };
4405
4406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4409 {
4410 arg2 = &temp2;
4411 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4412 }
4413 {
4414 PyThreadState* __tstate = wxPyBeginAllowThreads();
4415 {
4416 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4417 result = (wxIcon *) &_result_ref;
4418 }
4419
4420 wxPyEndAllowThreads(__tstate);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 }
4276dc52
RD
4423 {
4424 wxIcon* resultptr = new wxIcon(*result);
4425 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4426 }
d14a1e28
RD
4427 return resultobj;
4428 fail:
4429 return NULL;
4430}
4431
4432
4433static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4434 PyObject *obj;
4435 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4436 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4437 Py_INCREF(obj);
4438 return Py_BuildValue((char *)"");
4439}
4440static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4441 PyObject *resultobj;
4442 wxString *arg1 = (wxString *) 0 ;
4443 long arg2 ;
4444 int arg3 = (int) 0 ;
4445 int arg4 = (int) 0 ;
4446 wxCursor *result;
7eae615b 4447 bool temp1 = False ;
d14a1e28 4448 PyObject * obj0 = 0 ;
994141e6
RD
4449 PyObject * obj1 = 0 ;
4450 PyObject * obj2 = 0 ;
4451 PyObject * obj3 = 0 ;
d14a1e28 4452 char *kwnames[] = {
15afbcd0 4453 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
d14a1e28
RD
4454 };
4455
994141e6 4456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7eae615b
RD
4457 {
4458 arg1 = wxString_in_helper(obj0);
4459 if (arg1 == NULL) SWIG_fail;
4460 temp1 = True;
4461 }
15afbcd0
RD
4462 arg2 = (long) SWIG_AsLong(obj1);
4463 if (PyErr_Occurred()) SWIG_fail;
994141e6 4464 if (obj2) {
15afbcd0
RD
4465 arg3 = (int) SWIG_AsInt(obj2);
4466 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
4467 }
4468 if (obj3) {
15afbcd0
RD
4469 arg4 = (int) SWIG_AsInt(obj3);
4470 if (PyErr_Occurred()) SWIG_fail;
994141e6 4471 }
d14a1e28 4472 {
e3b71cb8 4473 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
4474 PyThreadState* __tstate = wxPyBeginAllowThreads();
4475 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4476
4477 wxPyEndAllowThreads(__tstate);
110da5b0 4478 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4479 }
15afbcd0 4480 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
7eae615b
RD
4481 {
4482 if (temp1)
4483 delete arg1;
4484 }
d14a1e28
RD
4485 return resultobj;
4486 fail:
7eae615b
RD
4487 {
4488 if (temp1)
4489 delete arg1;
4490 }
d14a1e28
RD
4491 return NULL;
4492}
4493
4494
4495static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4496 PyObject *resultobj;
4497 wxCursor *arg1 = (wxCursor *) 0 ;
4498 PyObject * obj0 = 0 ;
4499 char *kwnames[] = {
4500 (char *) "self", NULL
4501 };
4502
4503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
15afbcd0
RD
4504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4506 {
4507 PyThreadState* __tstate = wxPyBeginAllowThreads();
4508 delete arg1;
4509
4510 wxPyEndAllowThreads(__tstate);
4511 if (PyErr_Occurred()) SWIG_fail;
4512 }
4513 Py_INCREF(Py_None); resultobj = Py_None;
4514 return resultobj;
4515 fail:
4516 return NULL;
4517}
4518
4519
4520static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4521 PyObject *resultobj;
4522 int arg1 ;
4523 wxCursor *result;
994141e6 4524 PyObject * obj0 = 0 ;
d14a1e28
RD
4525 char *kwnames[] = {
4526 (char *) "id", NULL
4527 };
4528
994141e6 4529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
15afbcd0
RD
4530 arg1 = (int) SWIG_AsInt(obj0);
4531 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4532 {
e3b71cb8 4533 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
4534 PyThreadState* __tstate = wxPyBeginAllowThreads();
4535 result = (wxCursor *)new wxCursor(arg1);
4536
4537 wxPyEndAllowThreads(__tstate);
110da5b0 4538 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4539 }
15afbcd0 4540 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d14a1e28
RD
4541 return resultobj;
4542 fail:
4543 return NULL;
4544}
4545
4546
4547static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4548 PyObject *resultobj;
4549 wxImage *arg1 = 0 ;
4550 wxCursor *result;
4551 PyObject * obj0 = 0 ;
4552 char *kwnames[] = {
4553 (char *) "image", NULL
4554 };
4555
4556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
15afbcd0
RD
4557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4558 SWIG_POINTER_EXCEPTION | 0)) == -1)
4559 SWIG_fail;
d14a1e28 4560 if (arg1 == NULL) {
15afbcd0
RD
4561 PyErr_SetString(PyExc_TypeError,"null reference");
4562 SWIG_fail;
d14a1e28
RD
4563 }
4564 {
e3b71cb8 4565 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
4566 PyThreadState* __tstate = wxPyBeginAllowThreads();
4567 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4568
4569 wxPyEndAllowThreads(__tstate);
110da5b0 4570 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4571 }
15afbcd0 4572 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d14a1e28
RD
4573 return resultobj;
4574 fail:
4575 return NULL;
4576}
4577
4578
15afbcd0 4579static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
4580 PyObject *resultobj;
4581 wxCursor *arg1 = (wxCursor *) 0 ;
4582 bool result;
4583 PyObject * obj0 = 0 ;
4584 char *kwnames[] = {
4585 (char *) "self", NULL
4586 };
4587
4588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
4589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4591 {
4592 PyThreadState* __tstate = wxPyBeginAllowThreads();
4593 result = (bool)(arg1)->Ok();
4594
4595 wxPyEndAllowThreads(__tstate);
4596 if (PyErr_Occurred()) SWIG_fail;
4597 }
4f89f6a3
RD
4598 {
4599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4600 }
d14a1e28
RD
4601 return resultobj;
4602 fail:
4603 return NULL;
4604}
4605
4606
4607static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4608 PyObject *obj;
4609 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4610 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4611 Py_INCREF(obj);
4612 return Py_BuildValue((char *)"");
4613}
4614static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4615 PyObject *resultobj;
e811c8ce
RD
4616 int arg1 = (int) 0 ;
4617 int arg2 = (int) 0 ;
4618 int arg3 = (int) 0 ;
4619 int arg4 = (int) 0 ;
d14a1e28 4620 wxRegion *result;
994141e6
RD
4621 PyObject * obj0 = 0 ;
4622 PyObject * obj1 = 0 ;
4623 PyObject * obj2 = 0 ;
4624 PyObject * obj3 = 0 ;
d14a1e28
RD
4625 char *kwnames[] = {
4626 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4627 };
4628
994141e6
RD
4629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4630 if (obj0) {
15afbcd0
RD
4631 arg1 = (int) SWIG_AsInt(obj0);
4632 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
4633 }
4634 if (obj1) {
15afbcd0
RD
4635 arg2 = (int) SWIG_AsInt(obj1);
4636 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
4637 }
4638 if (obj2) {
15afbcd0
RD
4639 arg3 = (int) SWIG_AsInt(obj2);
4640 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
4641 }
4642 if (obj3) {
15afbcd0
RD
4643 arg4 = (int) SWIG_AsInt(obj3);
4644 if (PyErr_Occurred()) SWIG_fail;
994141e6 4645 }
d14a1e28 4646 {
e3b71cb8 4647 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
4648 PyThreadState* __tstate = wxPyBeginAllowThreads();
4649 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4650
4651 wxPyEndAllowThreads(__tstate);
110da5b0 4652 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4653 }
15afbcd0 4654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
4655 return resultobj;
4656 fail:
4657 return NULL;
4658}
4659
4660
4661static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4662 PyObject *resultobj;
4663 wxBitmap *arg1 = 0 ;
e6ffcedd
RD
4664 wxRegion *result;
4665 PyObject * obj0 = 0 ;
4666 char *kwnames[] = {
4667 (char *) "bmp", NULL
4668 };
4669
4670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
4671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4672 SWIG_POINTER_EXCEPTION | 0)) == -1)
4673 SWIG_fail;
4674 if (arg1 == NULL) {
4675 PyErr_SetString(PyExc_TypeError,"null reference");
4676 SWIG_fail;
4677 }
4678 {
4679 if (!wxPyCheckForApp()) SWIG_fail;
4680 PyThreadState* __tstate = wxPyBeginAllowThreads();
4681 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
4682
4683 wxPyEndAllowThreads(__tstate);
110da5b0 4684 if (PyErr_Occurred()) SWIG_fail;
e6ffcedd
RD
4685 }
4686 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4687 return resultobj;
4688 fail:
4689 return NULL;
4690}
4691
4692
4693static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4694 PyObject *resultobj;
4695 wxBitmap *arg1 = 0 ;
4696 wxColour *arg2 = 0 ;
d14a1e28
RD
4697 int arg3 = (int) 0 ;
4698 wxRegion *result;
4699 wxColour temp2 ;
4700 PyObject * obj0 = 0 ;
4701 PyObject * obj1 = 0 ;
994141e6 4702 PyObject * obj2 = 0 ;
d14a1e28
RD
4703 char *kwnames[] = {
4704 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4705 };
4706
e6ffcedd 4707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
4708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4709 SWIG_POINTER_EXCEPTION | 0)) == -1)
4710 SWIG_fail;
d14a1e28 4711 if (arg1 == NULL) {
15afbcd0
RD
4712 PyErr_SetString(PyExc_TypeError,"null reference");
4713 SWIG_fail;
d14a1e28 4714 }
e6ffcedd
RD
4715 {
4716 arg2 = &temp2;
4717 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 4718 }
994141e6 4719 if (obj2) {
15afbcd0
RD
4720 arg3 = (int) SWIG_AsInt(obj2);
4721 if (PyErr_Occurred()) SWIG_fail;
994141e6 4722 }
d14a1e28 4723 {
e3b71cb8 4724 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
4725 PyThreadState* __tstate = wxPyBeginAllowThreads();
4726 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4727
4728 wxPyEndAllowThreads(__tstate);
110da5b0 4729 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4730 }
15afbcd0 4731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
4732 return resultobj;
4733 fail:
4734 return NULL;
4735}
4736
4737
4738static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4739 PyObject *resultobj;
4740 int arg1 ;
4741 wxPoint *arg2 = (wxPoint *) 0 ;
4742 int arg3 = (int) wxWINDING_RULE ;
4743 wxRegion *result;
4744 PyObject * obj0 = 0 ;
994141e6 4745 PyObject * obj1 = 0 ;
d14a1e28
RD
4746 char *kwnames[] = {
4747 (char *) "points",(char *) "fillStyle", NULL
4748 };
4749
994141e6 4750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
4751 {
4752 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4753 if (arg2 == NULL) SWIG_fail;
4754 }
994141e6 4755 if (obj1) {
15afbcd0
RD
4756 arg3 = (int) SWIG_AsInt(obj1);
4757 if (PyErr_Occurred()) SWIG_fail;
994141e6 4758 }
d14a1e28 4759 {
e3b71cb8 4760 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
4761 PyThreadState* __tstate = wxPyBeginAllowThreads();
4762 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4763
4764 wxPyEndAllowThreads(__tstate);
110da5b0 4765 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4766 }
15afbcd0 4767 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
4768 {
4769 if (arg2) delete [] arg2;
4770 }
4771 return resultobj;
4772 fail:
4773 {
4774 if (arg2) delete [] arg2;
4775 }
4776 return NULL;
4777}
4778
4779
4780static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4781 PyObject *resultobj;
4782 wxRegion *arg1 = (wxRegion *) 0 ;
4783 PyObject * obj0 = 0 ;
4784 char *kwnames[] = {
4785 (char *) "self", NULL
4786 };
4787
4788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
15afbcd0
RD
4789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4791 {
4792 PyThreadState* __tstate = wxPyBeginAllowThreads();
4793 delete arg1;
4794
4795 wxPyEndAllowThreads(__tstate);
4796 if (PyErr_Occurred()) SWIG_fail;
4797 }
4798 Py_INCREF(Py_None); resultobj = Py_None;
4799 return resultobj;
4800 fail:
4801 return NULL;
4802}
4803
4804
4805static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4806 PyObject *resultobj;
4807 wxRegion *arg1 = (wxRegion *) 0 ;
4808 PyObject * obj0 = 0 ;
4809 char *kwnames[] = {
4810 (char *) "self", NULL
4811 };
4812
4813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
15afbcd0
RD
4814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 (arg1)->Clear();
4819
4820 wxPyEndAllowThreads(__tstate);
4821 if (PyErr_Occurred()) SWIG_fail;
4822 }
4823 Py_INCREF(Py_None); resultobj = Py_None;
4824 return resultobj;
4825 fail:
4826 return NULL;
4827}
4828
4829
4830static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4831 PyObject *resultobj;
4832 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
4833 int arg2 ;
4834 int arg3 ;
d14a1e28
RD
4835 bool result;
4836 PyObject * obj0 = 0 ;
994141e6
RD
4837 PyObject * obj1 = 0 ;
4838 PyObject * obj2 = 0 ;
d14a1e28
RD
4839 char *kwnames[] = {
4840 (char *) "self",(char *) "x",(char *) "y", NULL
4841 };
4842
994141e6 4843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
4844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4846 arg2 = (int) SWIG_AsInt(obj1);
4847 if (PyErr_Occurred()) SWIG_fail;
4848 arg3 = (int) SWIG_AsInt(obj2);
4849 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4850 {
4851 PyThreadState* __tstate = wxPyBeginAllowThreads();
4852 result = (bool)(arg1)->Offset(arg2,arg3);
4853
4854 wxPyEndAllowThreads(__tstate);
4855 if (PyErr_Occurred()) SWIG_fail;
4856 }
4f89f6a3
RD
4857 {
4858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4859 }
d14a1e28
RD
4860 return resultobj;
4861 fail:
4862 return NULL;
4863}
4864
4865
4866static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4867 PyObject *resultobj;
4868 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
4869 int arg2 ;
4870 int arg3 ;
d14a1e28
RD
4871 int result;
4872 PyObject * obj0 = 0 ;
994141e6
RD
4873 PyObject * obj1 = 0 ;
4874 PyObject * obj2 = 0 ;
d14a1e28
RD
4875 char *kwnames[] = {
4876 (char *) "self",(char *) "x",(char *) "y", NULL
4877 };
4878
994141e6 4879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
4880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4882 arg2 = (int) SWIG_AsInt(obj1);
4883 if (PyErr_Occurred()) SWIG_fail;
4884 arg3 = (int) SWIG_AsInt(obj2);
4885 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4886 {
4887 PyThreadState* __tstate = wxPyBeginAllowThreads();
4888 result = (int)(arg1)->Contains(arg2,arg3);
4889
4890 wxPyEndAllowThreads(__tstate);
4891 if (PyErr_Occurred()) SWIG_fail;
4892 }
15afbcd0 4893 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4894 return resultobj;
4895 fail:
4896 return NULL;
4897}
4898
4899
4900static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4901 PyObject *resultobj;
4902 wxRegion *arg1 = (wxRegion *) 0 ;
4903 wxPoint *arg2 = 0 ;
4904 int result;
4905 wxPoint temp2 ;
4906 PyObject * obj0 = 0 ;
4907 PyObject * obj1 = 0 ;
4908 char *kwnames[] = {
4909 (char *) "self",(char *) "pt", NULL
4910 };
4911
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4915 {
4916 arg2 = &temp2;
4917 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4918 }
4919 {
4920 PyThreadState* __tstate = wxPyBeginAllowThreads();
4921 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4922
4923 wxPyEndAllowThreads(__tstate);
4924 if (PyErr_Occurred()) SWIG_fail;
4925 }
15afbcd0 4926 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4927 return resultobj;
4928 fail:
4929 return NULL;
4930}
4931
4932
4933static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4934 PyObject *resultobj;
4935 wxRegion *arg1 = (wxRegion *) 0 ;
4936 wxRect *arg2 = 0 ;
4937 int result;
4938 wxRect temp2 ;
4939 PyObject * obj0 = 0 ;
4940 PyObject * obj1 = 0 ;
4941 char *kwnames[] = {
4942 (char *) "self",(char *) "rect", NULL
4943 };
4944
4945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4948 {
4949 arg2 = &temp2;
4950 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4951 }
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4955
4956 wxPyEndAllowThreads(__tstate);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 }
15afbcd0 4959 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4960 return resultobj;
4961 fail:
4962 return NULL;
4963}
4964
4965
4966static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4967 PyObject *resultobj;
4968 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
4969 int arg2 ;
4970 int arg3 ;
4971 int arg4 ;
4972 int arg5 ;
d14a1e28
RD
4973 int result;
4974 PyObject * obj0 = 0 ;
994141e6
RD
4975 PyObject * obj1 = 0 ;
4976 PyObject * obj2 = 0 ;
4977 PyObject * obj3 = 0 ;
4978 PyObject * obj4 = 0 ;
d14a1e28
RD
4979 char *kwnames[] = {
4980 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4981 };
4982
994141e6 4983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
4984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4986 arg2 = (int) SWIG_AsInt(obj1);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 arg3 = (int) SWIG_AsInt(obj2);
4989 if (PyErr_Occurred()) SWIG_fail;
4990 arg4 = (int) SWIG_AsInt(obj3);
4991 if (PyErr_Occurred()) SWIG_fail;
4992 arg5 = (int) SWIG_AsInt(obj4);
4993 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4994 {
4995 PyThreadState* __tstate = wxPyBeginAllowThreads();
4996 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4997
4998 wxPyEndAllowThreads(__tstate);
4999 if (PyErr_Occurred()) SWIG_fail;
5000 }
15afbcd0 5001 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5002 return resultobj;
5003 fail:
5004 return NULL;
5005}
5006
5007
5008static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5009 PyObject *resultobj;
5010 wxRegion *arg1 = (wxRegion *) 0 ;
5011 wxRect result;
5012 PyObject * obj0 = 0 ;
5013 char *kwnames[] = {
5014 (char *) "self", NULL
5015 };
5016
5017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
15afbcd0
RD
5018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5020 {
5021 PyThreadState* __tstate = wxPyBeginAllowThreads();
5022 result = (arg1)->GetBox();
5023
5024 wxPyEndAllowThreads(__tstate);
5025 if (PyErr_Occurred()) SWIG_fail;
5026 }
5027 {
5028 wxRect * resultptr;
5029 resultptr = new wxRect((wxRect &) result);
15afbcd0 5030 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
5031 }
5032 return resultobj;
5033 fail:
5034 return NULL;
5035}
5036
5037
5038static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5039 PyObject *resultobj;
5040 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
5041 int arg2 ;
5042 int arg3 ;
5043 int arg4 ;
5044 int arg5 ;
d14a1e28
RD
5045 bool result;
5046 PyObject * obj0 = 0 ;
994141e6
RD
5047 PyObject * obj1 = 0 ;
5048 PyObject * obj2 = 0 ;
5049 PyObject * obj3 = 0 ;
5050 PyObject * obj4 = 0 ;
d14a1e28
RD
5051 char *kwnames[] = {
5052 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5053 };
5054
994141e6 5055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
5056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5058 arg2 = (int) SWIG_AsInt(obj1);
5059 if (PyErr_Occurred()) SWIG_fail;
5060 arg3 = (int) SWIG_AsInt(obj2);
5061 if (PyErr_Occurred()) SWIG_fail;
5062 arg4 = (int) SWIG_AsInt(obj3);
5063 if (PyErr_Occurred()) SWIG_fail;
5064 arg5 = (int) SWIG_AsInt(obj4);
5065 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5066 {
5067 PyThreadState* __tstate = wxPyBeginAllowThreads();
5068 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5069
5070 wxPyEndAllowThreads(__tstate);
5071 if (PyErr_Occurred()) SWIG_fail;
5072 }
4f89f6a3
RD
5073 {
5074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5075 }
d14a1e28
RD
5076 return resultobj;
5077 fail:
5078 return NULL;
5079}
5080
5081
5082static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5083 PyObject *resultobj;
5084 wxRegion *arg1 = (wxRegion *) 0 ;
5085 wxRect *arg2 = 0 ;
5086 bool result;
5087 wxRect temp2 ;
5088 PyObject * obj0 = 0 ;
5089 PyObject * obj1 = 0 ;
5090 char *kwnames[] = {
5091 (char *) "self",(char *) "rect", NULL
5092 };
5093
5094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5097 {
5098 arg2 = &temp2;
5099 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5100 }
5101 {
5102 PyThreadState* __tstate = wxPyBeginAllowThreads();
5103 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5104
5105 wxPyEndAllowThreads(__tstate);
5106 if (PyErr_Occurred()) SWIG_fail;
5107 }
4f89f6a3
RD
5108 {
5109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5110 }
d14a1e28
RD
5111 return resultobj;
5112 fail:
5113 return NULL;
5114}
5115
5116
5117static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5118 PyObject *resultobj;
5119 wxRegion *arg1 = (wxRegion *) 0 ;
5120 wxRegion *arg2 = 0 ;
5121 bool result;
5122 PyObject * obj0 = 0 ;
5123 PyObject * obj1 = 0 ;
5124 char *kwnames[] = {
5125 (char *) "self",(char *) "region", NULL
5126 };
5127
5128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5131 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5132 SWIG_POINTER_EXCEPTION | 0)) == -1)
5133 SWIG_fail;
d14a1e28 5134 if (arg2 == NULL) {
15afbcd0
RD
5135 PyErr_SetString(PyExc_TypeError,"null reference");
5136 SWIG_fail;
d14a1e28
RD
5137 }
5138 {
5139 PyThreadState* __tstate = wxPyBeginAllowThreads();
5140 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5141
5142 wxPyEndAllowThreads(__tstate);
5143 if (PyErr_Occurred()) SWIG_fail;
5144 }
4f89f6a3
RD
5145 {
5146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5147 }
d14a1e28
RD
5148 return resultobj;
5149 fail:
5150 return NULL;
5151}
5152
5153
5154static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5155 PyObject *resultobj;
5156 wxRegion *arg1 = (wxRegion *) 0 ;
5157 bool result;
5158 PyObject * obj0 = 0 ;
5159 char *kwnames[] = {
5160 (char *) "self", NULL
5161 };
5162
5163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
15afbcd0
RD
5164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5166 {
5167 PyThreadState* __tstate = wxPyBeginAllowThreads();
5168 result = (bool)(arg1)->IsEmpty();
5169
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
4f89f6a3
RD
5173 {
5174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5175 }
d14a1e28
RD
5176 return resultobj;
5177 fail:
5178 return NULL;
5179}
5180
5181
5182static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5183 PyObject *resultobj;
5184 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
5185 int arg2 ;
5186 int arg3 ;
5187 int arg4 ;
5188 int arg5 ;
d14a1e28
RD
5189 bool result;
5190 PyObject * obj0 = 0 ;
994141e6
RD
5191 PyObject * obj1 = 0 ;
5192 PyObject * obj2 = 0 ;
5193 PyObject * obj3 = 0 ;
5194 PyObject * obj4 = 0 ;
d14a1e28
RD
5195 char *kwnames[] = {
5196 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5197 };
5198
994141e6 5199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
5200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5202 arg2 = (int) SWIG_AsInt(obj1);
5203 if (PyErr_Occurred()) SWIG_fail;
5204 arg3 = (int) SWIG_AsInt(obj2);
5205 if (PyErr_Occurred()) SWIG_fail;
5206 arg4 = (int) SWIG_AsInt(obj3);
5207 if (PyErr_Occurred()) SWIG_fail;
5208 arg5 = (int) SWIG_AsInt(obj4);
5209 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5210 {
5211 PyThreadState* __tstate = wxPyBeginAllowThreads();
5212 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5213
5214 wxPyEndAllowThreads(__tstate);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 }
4f89f6a3
RD
5217 {
5218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5219 }
d14a1e28
RD
5220 return resultobj;
5221 fail:
5222 return NULL;
5223}
5224
5225
5226static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5227 PyObject *resultobj;
5228 wxRegion *arg1 = (wxRegion *) 0 ;
5229 wxRect *arg2 = 0 ;
5230 bool result;
5231 wxRect temp2 ;
5232 PyObject * obj0 = 0 ;
5233 PyObject * obj1 = 0 ;
5234 char *kwnames[] = {
5235 (char *) "self",(char *) "rect", NULL
5236 };
5237
5238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5241 {
5242 arg2 = &temp2;
5243 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5244 }
5245 {
5246 PyThreadState* __tstate = wxPyBeginAllowThreads();
5247 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5248
5249 wxPyEndAllowThreads(__tstate);
5250 if (PyErr_Occurred()) SWIG_fail;
5251 }
4f89f6a3
RD
5252 {
5253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5254 }
d14a1e28
RD
5255 return resultobj;
5256 fail:
5257 return NULL;
5258}
5259
5260
5261static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5262 PyObject *resultobj;
5263 wxRegion *arg1 = (wxRegion *) 0 ;
5264 wxRegion *arg2 = 0 ;
5265 bool result;
5266 PyObject * obj0 = 0 ;
5267 PyObject * obj1 = 0 ;
5268 char *kwnames[] = {
5269 (char *) "self",(char *) "region", NULL
5270 };
5271
5272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5275 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5276 SWIG_POINTER_EXCEPTION | 0)) == -1)
5277 SWIG_fail;
d14a1e28 5278 if (arg2 == NULL) {
15afbcd0
RD
5279 PyErr_SetString(PyExc_TypeError,"null reference");
5280 SWIG_fail;
d14a1e28
RD
5281 }
5282 {
5283 PyThreadState* __tstate = wxPyBeginAllowThreads();
5284 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5285
5286 wxPyEndAllowThreads(__tstate);
5287 if (PyErr_Occurred()) SWIG_fail;
5288 }
4f89f6a3
RD
5289 {
5290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5291 }
d14a1e28
RD
5292 return resultobj;
5293 fail:
5294 return NULL;
5295}
5296
5297
5298static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5299 PyObject *resultobj;
5300 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
5301 int arg2 ;
5302 int arg3 ;
5303 int arg4 ;
5304 int arg5 ;
d14a1e28
RD
5305 bool result;
5306 PyObject * obj0 = 0 ;
994141e6
RD
5307 PyObject * obj1 = 0 ;
5308 PyObject * obj2 = 0 ;
5309 PyObject * obj3 = 0 ;
5310 PyObject * obj4 = 0 ;
d14a1e28
RD
5311 char *kwnames[] = {
5312 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5313 };
5314
994141e6 5315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
5316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5318 arg2 = (int) SWIG_AsInt(obj1);
5319 if (PyErr_Occurred()) SWIG_fail;
5320 arg3 = (int) SWIG_AsInt(obj2);
5321 if (PyErr_Occurred()) SWIG_fail;
5322 arg4 = (int) SWIG_AsInt(obj3);
5323 if (PyErr_Occurred()) SWIG_fail;
5324 arg5 = (int) SWIG_AsInt(obj4);
5325 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5326 {
5327 PyThreadState* __tstate = wxPyBeginAllowThreads();
5328 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5329
5330 wxPyEndAllowThreads(__tstate);
5331 if (PyErr_Occurred()) SWIG_fail;
5332 }
4f89f6a3
RD
5333 {
5334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5335 }
d14a1e28
RD
5336 return resultobj;
5337 fail:
5338 return NULL;
5339}
5340
5341
5342static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5343 PyObject *resultobj;
5344 wxRegion *arg1 = (wxRegion *) 0 ;
5345 wxRect *arg2 = 0 ;
5346 bool result;
5347 wxRect temp2 ;
5348 PyObject * obj0 = 0 ;
5349 PyObject * obj1 = 0 ;
5350 char *kwnames[] = {
5351 (char *) "self",(char *) "rect", NULL
5352 };
5353
5354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5357 {
5358 arg2 = &temp2;
5359 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5360 }
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5364
5365 wxPyEndAllowThreads(__tstate);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
4f89f6a3
RD
5368 {
5369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5370 }
d14a1e28
RD
5371 return resultobj;
5372 fail:
5373 return NULL;
5374}
5375
5376
5377static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5378 PyObject *resultobj;
5379 wxRegion *arg1 = (wxRegion *) 0 ;
5380 wxRegion *arg2 = 0 ;
5381 bool result;
5382 PyObject * obj0 = 0 ;
5383 PyObject * obj1 = 0 ;
5384 char *kwnames[] = {
5385 (char *) "self",(char *) "region", NULL
5386 };
5387
5388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5391 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5392 SWIG_POINTER_EXCEPTION | 0)) == -1)
5393 SWIG_fail;
d14a1e28 5394 if (arg2 == NULL) {
15afbcd0
RD
5395 PyErr_SetString(PyExc_TypeError,"null reference");
5396 SWIG_fail;
d14a1e28
RD
5397 }
5398 {
5399 PyThreadState* __tstate = wxPyBeginAllowThreads();
5400 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5401
5402 wxPyEndAllowThreads(__tstate);
5403 if (PyErr_Occurred()) SWIG_fail;
5404 }
4f89f6a3
RD
5405 {
5406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5407 }
d14a1e28
RD
5408 return resultobj;
5409 fail:
5410 return NULL;
5411}
5412
5413
5414static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5415 PyObject *resultobj;
5416 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
5417 int arg2 ;
5418 int arg3 ;
5419 int arg4 ;
5420 int arg5 ;
d14a1e28
RD
5421 bool result;
5422 PyObject * obj0 = 0 ;
994141e6
RD
5423 PyObject * obj1 = 0 ;
5424 PyObject * obj2 = 0 ;
5425 PyObject * obj3 = 0 ;
5426 PyObject * obj4 = 0 ;
d14a1e28
RD
5427 char *kwnames[] = {
5428 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5429 };
5430
994141e6 5431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
5432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5434 arg2 = (int) SWIG_AsInt(obj1);
5435 if (PyErr_Occurred()) SWIG_fail;
5436 arg3 = (int) SWIG_AsInt(obj2);
5437 if (PyErr_Occurred()) SWIG_fail;
5438 arg4 = (int) SWIG_AsInt(obj3);
5439 if (PyErr_Occurred()) SWIG_fail;
5440 arg5 = (int) SWIG_AsInt(obj4);
5441 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5442 {
5443 PyThreadState* __tstate = wxPyBeginAllowThreads();
5444 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5445
5446 wxPyEndAllowThreads(__tstate);
5447 if (PyErr_Occurred()) SWIG_fail;
5448 }
4f89f6a3
RD
5449 {
5450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5451 }
d14a1e28
RD
5452 return resultobj;
5453 fail:
5454 return NULL;
5455}
5456
5457
5458static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5459 PyObject *resultobj;
5460 wxRegion *arg1 = (wxRegion *) 0 ;
5461 wxRect *arg2 = 0 ;
5462 bool result;
5463 wxRect temp2 ;
5464 PyObject * obj0 = 0 ;
5465 PyObject * obj1 = 0 ;
5466 char *kwnames[] = {
5467 (char *) "self",(char *) "rect", NULL
5468 };
5469
5470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5473 {
5474 arg2 = &temp2;
5475 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5476 }
5477 {
5478 PyThreadState* __tstate = wxPyBeginAllowThreads();
5479 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5480
5481 wxPyEndAllowThreads(__tstate);
5482 if (PyErr_Occurred()) SWIG_fail;
5483 }
4f89f6a3
RD
5484 {
5485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5486 }
d14a1e28
RD
5487 return resultobj;
5488 fail:
5489 return NULL;
5490}
5491
5492
5493static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5494 PyObject *resultobj;
5495 wxRegion *arg1 = (wxRegion *) 0 ;
5496 wxRegion *arg2 = 0 ;
5497 bool result;
5498 PyObject * obj0 = 0 ;
5499 PyObject * obj1 = 0 ;
5500 char *kwnames[] = {
5501 (char *) "self",(char *) "region", NULL
5502 };
5503
5504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5507 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5508 SWIG_POINTER_EXCEPTION | 0)) == -1)
5509 SWIG_fail;
d14a1e28 5510 if (arg2 == NULL) {
15afbcd0
RD
5511 PyErr_SetString(PyExc_TypeError,"null reference");
5512 SWIG_fail;
d14a1e28
RD
5513 }
5514 {
5515 PyThreadState* __tstate = wxPyBeginAllowThreads();
5516 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5517
5518 wxPyEndAllowThreads(__tstate);
5519 if (PyErr_Occurred()) SWIG_fail;
5520 }
4f89f6a3
RD
5521 {
5522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5523 }
d14a1e28
RD
5524 return resultobj;
5525 fail:
5526 return NULL;
5527}
5528
5529
5530static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5531 PyObject *resultobj;
5532 wxRegion *arg1 = (wxRegion *) 0 ;
5533 SwigValueWrapper< wxBitmap > result;
5534 PyObject * obj0 = 0 ;
5535 char *kwnames[] = {
5536 (char *) "self", NULL
5537 };
5538
5539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
15afbcd0
RD
5540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5542 {
5543 PyThreadState* __tstate = wxPyBeginAllowThreads();
5544 result = (arg1)->ConvertToBitmap();
5545
5546 wxPyEndAllowThreads(__tstate);
5547 if (PyErr_Occurred()) SWIG_fail;
5548 }
5549 {
5550 wxBitmap * resultptr;
5551 resultptr = new wxBitmap((wxBitmap &) result);
15afbcd0 5552 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
5553 }
5554 return resultobj;
5555 fail:
5556 return NULL;
5557}
5558
5559
5560static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5561 PyObject *resultobj;
5562 wxRegion *arg1 = (wxRegion *) 0 ;
5563 wxBitmap *arg2 = 0 ;
e6ffcedd
RD
5564 bool result;
5565 PyObject * obj0 = 0 ;
5566 PyObject * obj1 = 0 ;
5567 char *kwnames[] = {
5568 (char *) "self",(char *) "bmp", NULL
5569 };
5570
5571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
5572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5574 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5575 SWIG_POINTER_EXCEPTION | 0)) == -1)
5576 SWIG_fail;
5577 if (arg2 == NULL) {
5578 PyErr_SetString(PyExc_TypeError,"null reference");
5579 SWIG_fail;
5580 }
5581 {
5582 PyThreadState* __tstate = wxPyBeginAllowThreads();
5583 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5584
5585 wxPyEndAllowThreads(__tstate);
5586 if (PyErr_Occurred()) SWIG_fail;
5587 }
5588 {
5589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5590 }
5591 return resultobj;
5592 fail:
5593 return NULL;
5594}
5595
5596
5597static PyObject *_wrap_Region_UnionBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5598 PyObject *resultobj;
5599 wxRegion *arg1 = (wxRegion *) 0 ;
5600 wxBitmap *arg2 = 0 ;
5601 wxColour *arg3 = 0 ;
d14a1e28
RD
5602 int arg4 = (int) 0 ;
5603 bool result;
5604 wxColour temp3 ;
5605 PyObject * obj0 = 0 ;
5606 PyObject * obj1 = 0 ;
5607 PyObject * obj2 = 0 ;
994141e6 5608 PyObject * obj3 = 0 ;
d14a1e28
RD
5609 char *kwnames[] = {
5610 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5611 };
5612
e6ffcedd 5613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
5614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5616 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5617 SWIG_POINTER_EXCEPTION | 0)) == -1)
5618 SWIG_fail;
d14a1e28 5619 if (arg2 == NULL) {
15afbcd0
RD
5620 PyErr_SetString(PyExc_TypeError,"null reference");
5621 SWIG_fail;
d14a1e28 5622 }
e6ffcedd
RD
5623 {
5624 arg3 = &temp3;
5625 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 5626 }
994141e6 5627 if (obj3) {
15afbcd0
RD
5628 arg4 = (int) SWIG_AsInt(obj3);
5629 if (PyErr_Occurred()) SWIG_fail;
994141e6 5630 }
d14a1e28
RD
5631 {
5632 PyThreadState* __tstate = wxPyBeginAllowThreads();
5633 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5634
5635 wxPyEndAllowThreads(__tstate);
5636 if (PyErr_Occurred()) SWIG_fail;
5637 }
4f89f6a3
RD
5638 {
5639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5640 }
d14a1e28
RD
5641 return resultobj;
5642 fail:
5643 return NULL;
5644}
5645
5646
5647static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5648 PyObject *obj;
5649 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5650 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5651 Py_INCREF(obj);
5652 return Py_BuildValue((char *)"");
5653}
5654static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5655 PyObject *resultobj;
5656 wxRegion *arg1 = 0 ;
5657 wxRegionIterator *result;
5658 PyObject * obj0 = 0 ;
5659 char *kwnames[] = {
5660 (char *) "region", NULL
5661 };
5662
5663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
15afbcd0
RD
5664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5665 SWIG_POINTER_EXCEPTION | 0)) == -1)
5666 SWIG_fail;
d14a1e28 5667 if (arg1 == NULL) {
15afbcd0
RD
5668 PyErr_SetString(PyExc_TypeError,"null reference");
5669 SWIG_fail;
d14a1e28
RD
5670 }
5671 {
e3b71cb8 5672 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
5673 PyThreadState* __tstate = wxPyBeginAllowThreads();
5674 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5675
5676 wxPyEndAllowThreads(__tstate);
110da5b0 5677 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 5678 }
15afbcd0 5679 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
d14a1e28
RD
5680 return resultobj;
5681 fail:
5682 return NULL;
5683}
5684
5685
5686static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5687 PyObject *resultobj;
5688 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5689 PyObject * obj0 = 0 ;
5690 char *kwnames[] = {
5691 (char *) "self", NULL
5692 };
5693
5694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
15afbcd0
RD
5695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5697 {
5698 PyThreadState* __tstate = wxPyBeginAllowThreads();
5699 delete arg1;
5700
5701 wxPyEndAllowThreads(__tstate);
5702 if (PyErr_Occurred()) SWIG_fail;
5703 }
5704 Py_INCREF(Py_None); resultobj = Py_None;
5705 return resultobj;
5706 fail:
5707 return NULL;
5708}
5709
5710
5711static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5712 PyObject *resultobj;
5713 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5714 int result;
d14a1e28
RD
5715 PyObject * obj0 = 0 ;
5716 char *kwnames[] = {
5717 (char *) "self", NULL
5718 };
5719
5720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
15afbcd0
RD
5721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5723 {
5724 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5725 result = (int)(arg1)->GetX();
d14a1e28
RD
5726
5727 wxPyEndAllowThreads(__tstate);
5728 if (PyErr_Occurred()) SWIG_fail;
5729 }
15afbcd0 5730 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5731 return resultobj;
5732 fail:
5733 return NULL;
5734}
5735
5736
5737static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5738 PyObject *resultobj;
5739 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5740 int result;
d14a1e28
RD
5741 PyObject * obj0 = 0 ;
5742 char *kwnames[] = {
5743 (char *) "self", NULL
5744 };
5745
5746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
15afbcd0
RD
5747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5749 {
5750 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5751 result = (int)(arg1)->GetY();
d14a1e28
RD
5752
5753 wxPyEndAllowThreads(__tstate);
5754 if (PyErr_Occurred()) SWIG_fail;
5755 }
15afbcd0 5756 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5757 return resultobj;
5758 fail:
5759 return NULL;
5760}
5761
5762
5763static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj;
5765 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5766 int result;
d14a1e28
RD
5767 PyObject * obj0 = 0 ;
5768 char *kwnames[] = {
5769 (char *) "self", NULL
5770 };
5771
5772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
15afbcd0
RD
5773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5775 {
5776 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5777 result = (int)(arg1)->GetW();
d14a1e28
RD
5778
5779 wxPyEndAllowThreads(__tstate);
5780 if (PyErr_Occurred()) SWIG_fail;
5781 }
15afbcd0 5782 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5783 return resultobj;
5784 fail:
5785 return NULL;
5786}
5787
5788
5789static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5790 PyObject *resultobj;
5791 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5792 int result;
d14a1e28
RD
5793 PyObject * obj0 = 0 ;
5794 char *kwnames[] = {
5795 (char *) "self", NULL
5796 };
5797
5798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
5799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5801 {
5802 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5803 result = (int)(arg1)->GetWidth();
d14a1e28
RD
5804
5805 wxPyEndAllowThreads(__tstate);
5806 if (PyErr_Occurred()) SWIG_fail;
5807 }
15afbcd0 5808 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5809 return resultobj;
5810 fail:
5811 return NULL;
5812}
5813
5814
5815static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5816 PyObject *resultobj;
5817 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5818 int result;
d14a1e28
RD
5819 PyObject * obj0 = 0 ;
5820 char *kwnames[] = {
5821 (char *) "self", NULL
5822 };
5823
5824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
15afbcd0
RD
5825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5827 {
5828 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5829 result = (int)(arg1)->GetH();
d14a1e28
RD
5830
5831 wxPyEndAllowThreads(__tstate);
5832 if (PyErr_Occurred()) SWIG_fail;
5833 }
15afbcd0 5834 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5835 return resultobj;
5836 fail:
5837 return NULL;
5838}
5839
5840
5841static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5842 PyObject *resultobj;
5843 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5844 int result;
d14a1e28
RD
5845 PyObject * obj0 = 0 ;
5846 char *kwnames[] = {
5847 (char *) "self", NULL
5848 };
5849
5850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
5851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5853 {
5854 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5855 result = (int)(arg1)->GetHeight();
d14a1e28
RD
5856
5857 wxPyEndAllowThreads(__tstate);
5858 if (PyErr_Occurred()) SWIG_fail;
5859 }
15afbcd0 5860 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5861 return resultobj;
5862 fail:
5863 return NULL;
5864}
5865
5866
5867static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5868 PyObject *resultobj;
5869 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5870 wxRect result;
5871 PyObject * obj0 = 0 ;
5872 char *kwnames[] = {
5873 (char *) "self", NULL
5874 };
5875
5876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
15afbcd0
RD
5877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 result = (arg1)->GetRect();
5882
5883 wxPyEndAllowThreads(__tstate);
5884 if (PyErr_Occurred()) SWIG_fail;
5885 }
5886 {
5887 wxRect * resultptr;
5888 resultptr = new wxRect((wxRect &) result);
15afbcd0 5889 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
5890 }
5891 return resultobj;
5892 fail:
5893 return NULL;
5894}
5895
5896
5897static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5898 PyObject *resultobj;
5899 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5900 bool result;
5901 PyObject * obj0 = 0 ;
5902 char *kwnames[] = {
5903 (char *) "self", NULL
5904 };
5905
5906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
15afbcd0
RD
5907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5909 {
5910 PyThreadState* __tstate = wxPyBeginAllowThreads();
5911 result = (bool)(arg1)->HaveRects();
5912
5913 wxPyEndAllowThreads(__tstate);
5914 if (PyErr_Occurred()) SWIG_fail;
5915 }
4f89f6a3
RD
5916 {
5917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5918 }
d14a1e28
RD
5919 return resultobj;
5920 fail:
5921 return NULL;
5922}
5923
5924
5925static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5926 PyObject *resultobj;
5927 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5928 PyObject * obj0 = 0 ;
5929 char *kwnames[] = {
5930 (char *) "self", NULL
5931 };
5932
5933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
15afbcd0
RD
5934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5936 {
5937 PyThreadState* __tstate = wxPyBeginAllowThreads();
5938 (arg1)->Reset();
5939
5940 wxPyEndAllowThreads(__tstate);
5941 if (PyErr_Occurred()) SWIG_fail;
5942 }
5943 Py_INCREF(Py_None); resultobj = Py_None;
5944 return resultobj;
5945 fail:
5946 return NULL;
5947}
5948
5949
5950static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5951 PyObject *resultobj;
5952 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5953 PyObject * obj0 = 0 ;
5954 char *kwnames[] = {
5955 (char *) "self", NULL
5956 };
5957
5958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
15afbcd0
RD
5959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5961 {
5962 PyThreadState* __tstate = wxPyBeginAllowThreads();
5963 wxRegionIterator_Next(arg1);
5964
5965 wxPyEndAllowThreads(__tstate);
5966 if (PyErr_Occurred()) SWIG_fail;
5967 }
5968 Py_INCREF(Py_None); resultobj = Py_None;
5969 return resultobj;
5970 fail:
5971 return NULL;
5972}
5973
5974
5975static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5976 PyObject *resultobj;
5977 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5978 bool result;
5979 PyObject * obj0 = 0 ;
5980 char *kwnames[] = {
5981 (char *) "self", NULL
5982 };
5983
5984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
15afbcd0
RD
5985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5987 {
5988 PyThreadState* __tstate = wxPyBeginAllowThreads();
5989 result = (bool)wxRegionIterator___nonzero__(arg1);
5990
5991 wxPyEndAllowThreads(__tstate);
5992 if (PyErr_Occurred()) SWIG_fail;
5993 }
4f89f6a3
RD
5994 {
5995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5996 }
d14a1e28
RD
5997 return resultobj;
5998 fail:
5999 return NULL;
6000}
6001
6002
6003static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6004 PyObject *obj;
6005 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6006 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6007 Py_INCREF(obj);
6008 return Py_BuildValue((char *)"");
6009}
6010static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6011 PyObject *resultobj;
6012 wxNativeFontInfo *result;
6013 char *kwnames[] = {
6014 NULL
6015 };
6016
6017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6018 {
6019 PyThreadState* __tstate = wxPyBeginAllowThreads();
6020 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6021
6022 wxPyEndAllowThreads(__tstate);
6023 if (PyErr_Occurred()) SWIG_fail;
6024 }
15afbcd0 6025 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
d14a1e28
RD
6026 return resultobj;
6027 fail:
6028 return NULL;
6029}
6030
6031
6032static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6033 PyObject *resultobj;
6034 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6035 PyObject * obj0 = 0 ;
6036 char *kwnames[] = {
6037 (char *) "self", NULL
6038 };
6039
6040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
6041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6043 {
6044 PyThreadState* __tstate = wxPyBeginAllowThreads();
6045 delete arg1;
6046
6047 wxPyEndAllowThreads(__tstate);
6048 if (PyErr_Occurred()) SWIG_fail;
6049 }
6050 Py_INCREF(Py_None); resultobj = Py_None;
6051 return resultobj;
6052 fail:
6053 return NULL;
6054}
6055
6056
6057static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6058 PyObject *resultobj;
6059 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6060 PyObject * obj0 = 0 ;
6061 char *kwnames[] = {
6062 (char *) "self", NULL
6063 };
6064
6065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
15afbcd0
RD
6066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6068 {
6069 PyThreadState* __tstate = wxPyBeginAllowThreads();
6070 (arg1)->Init();
6071
6072 wxPyEndAllowThreads(__tstate);
6073 if (PyErr_Occurred()) SWIG_fail;
6074 }
6075 Py_INCREF(Py_None); resultobj = Py_None;
6076 return resultobj;
6077 fail:
6078 return NULL;
6079}
6080
6081
6082static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6083 PyObject *resultobj;
6084 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6085 wxFont *arg2 = 0 ;
6086 PyObject * obj0 = 0 ;
6087 PyObject * obj1 = 0 ;
6088 char *kwnames[] = {
6089 (char *) "self",(char *) "font", NULL
6090 };
6091
6092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6095 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6096 SWIG_POINTER_EXCEPTION | 0)) == -1)
6097 SWIG_fail;
d14a1e28 6098 if (arg2 == NULL) {
15afbcd0
RD
6099 PyErr_SetString(PyExc_TypeError,"null reference");
6100 SWIG_fail;
d14a1e28
RD
6101 }
6102 {
6103 PyThreadState* __tstate = wxPyBeginAllowThreads();
6104 (arg1)->InitFromFont((wxFont const &)*arg2);
6105
6106 wxPyEndAllowThreads(__tstate);
6107 if (PyErr_Occurred()) SWIG_fail;
6108 }
6109 Py_INCREF(Py_None); resultobj = Py_None;
6110 return resultobj;
6111 fail:
6112 return NULL;
6113}
6114
6115
6116static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6117 PyObject *resultobj;
6118 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6119 int result;
6120 PyObject * obj0 = 0 ;
6121 char *kwnames[] = {
6122 (char *) "self", NULL
6123 };
6124
6125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
15afbcd0
RD
6126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6128 {
6129 PyThreadState* __tstate = wxPyBeginAllowThreads();
6130 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6131
6132 wxPyEndAllowThreads(__tstate);
6133 if (PyErr_Occurred()) SWIG_fail;
6134 }
15afbcd0 6135 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6136 return resultobj;
6137 fail:
6138 return NULL;
6139}
6140
6141
6142static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6143 PyObject *resultobj;
6144 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6145 int result;
6146 PyObject * obj0 = 0 ;
6147 char *kwnames[] = {
6148 (char *) "self", NULL
6149 };
6150
6151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
15afbcd0
RD
6152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6154 {
6155 PyThreadState* __tstate = wxPyBeginAllowThreads();
6156 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6157
6158 wxPyEndAllowThreads(__tstate);
6159 if (PyErr_Occurred()) SWIG_fail;
6160 }
15afbcd0 6161 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6162 return resultobj;
6163 fail:
6164 return NULL;
6165}
6166
6167
6168static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6169 PyObject *resultobj;
6170 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6171 int result;
6172 PyObject * obj0 = 0 ;
6173 char *kwnames[] = {
6174 (char *) "self", NULL
6175 };
6176
6177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
6178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6180 {
6181 PyThreadState* __tstate = wxPyBeginAllowThreads();
6182 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6183
6184 wxPyEndAllowThreads(__tstate);
6185 if (PyErr_Occurred()) SWIG_fail;
6186 }
15afbcd0 6187 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6188 return resultobj;
6189 fail:
6190 return NULL;
6191}
6192
6193
6194static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6195 PyObject *resultobj;
6196 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6197 bool result;
6198 PyObject * obj0 = 0 ;
6199 char *kwnames[] = {
6200 (char *) "self", NULL
6201 };
6202
6203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
15afbcd0
RD
6204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6206 {
6207 PyThreadState* __tstate = wxPyBeginAllowThreads();
6208 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6209
6210 wxPyEndAllowThreads(__tstate);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
4f89f6a3
RD
6213 {
6214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6215 }
d14a1e28
RD
6216 return resultobj;
6217 fail:
6218 return NULL;
6219}
6220
6221
6222static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6223 PyObject *resultobj;
6224 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6225 wxString result;
6226 PyObject * obj0 = 0 ;
6227 char *kwnames[] = {
6228 (char *) "self", NULL
6229 };
6230
6231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
15afbcd0
RD
6232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6234 {
6235 PyThreadState* __tstate = wxPyBeginAllowThreads();
6236 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6237
6238 wxPyEndAllowThreads(__tstate);
6239 if (PyErr_Occurred()) SWIG_fail;
6240 }
6241 {
6242#if wxUSE_UNICODE
6243 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6244#else
6245 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6246#endif
6247 }
6248 return resultobj;
6249 fail:
6250 return NULL;
6251}
6252
6253
6254static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6255 PyObject *resultobj;
6256 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6257 int result;
6258 PyObject * obj0 = 0 ;
6259 char *kwnames[] = {
6260 (char *) "self", NULL
6261 };
6262
6263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
15afbcd0
RD
6264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6266 {
6267 PyThreadState* __tstate = wxPyBeginAllowThreads();
6268 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6269
6270 wxPyEndAllowThreads(__tstate);
6271 if (PyErr_Occurred()) SWIG_fail;
6272 }
15afbcd0 6273 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6274 return resultobj;
6275 fail:
6276 return NULL;
6277}
6278
6279
6280static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6281 PyObject *resultobj;
6282 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6283 int result;
6284 PyObject * obj0 = 0 ;
6285 char *kwnames[] = {
6286 (char *) "self", NULL
6287 };
6288
6289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
6290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6292 {
6293 PyThreadState* __tstate = wxPyBeginAllowThreads();
6294 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6295
6296 wxPyEndAllowThreads(__tstate);
6297 if (PyErr_Occurred()) SWIG_fail;
6298 }
15afbcd0 6299 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6300 return resultobj;
6301 fail:
6302 return NULL;
6303}
6304
6305
6306static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6307 PyObject *resultobj;
6308 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6309 int arg2 ;
6310 PyObject * obj0 = 0 ;
994141e6 6311 PyObject * obj1 = 0 ;
d14a1e28
RD
6312 char *kwnames[] = {
6313 (char *) "self",(char *) "pointsize", NULL
6314 };
6315
994141e6 6316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6319 arg2 = (int) SWIG_AsInt(obj1);
6320 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6321 {
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
6323 (arg1)->SetPointSize(arg2);
6324
6325 wxPyEndAllowThreads(__tstate);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
6328 Py_INCREF(Py_None); resultobj = Py_None;
6329 return resultobj;
6330 fail:
6331 return NULL;
6332}
6333
6334
6335static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6336 PyObject *resultobj;
6337 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6338 int arg2 ;
6339 PyObject * obj0 = 0 ;
994141e6 6340 PyObject * obj1 = 0 ;
d14a1e28
RD
6341 char *kwnames[] = {
6342 (char *) "self",(char *) "style", NULL
6343 };
6344
994141e6 6345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6348 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6349 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6350 {
6351 PyThreadState* __tstate = wxPyBeginAllowThreads();
6352 (arg1)->SetStyle((wxFontStyle )arg2);
6353
6354 wxPyEndAllowThreads(__tstate);
6355 if (PyErr_Occurred()) SWIG_fail;
6356 }
6357 Py_INCREF(Py_None); resultobj = Py_None;
6358 return resultobj;
6359 fail:
6360 return NULL;
6361}
6362
6363
6364static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6365 PyObject *resultobj;
6366 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6367 int arg2 ;
6368 PyObject * obj0 = 0 ;
994141e6 6369 PyObject * obj1 = 0 ;
d14a1e28
RD
6370 char *kwnames[] = {
6371 (char *) "self",(char *) "weight", NULL
6372 };
6373
994141e6 6374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6377 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6378 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6379 {
6380 PyThreadState* __tstate = wxPyBeginAllowThreads();
6381 (arg1)->SetWeight((wxFontWeight )arg2);
6382
6383 wxPyEndAllowThreads(__tstate);
6384 if (PyErr_Occurred()) SWIG_fail;
6385 }
6386 Py_INCREF(Py_None); resultobj = Py_None;
6387 return resultobj;
6388 fail:
6389 return NULL;
6390}
6391
6392
6393static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6394 PyObject *resultobj;
6395 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6396 bool arg2 ;
6397 PyObject * obj0 = 0 ;
6398 PyObject * obj1 = 0 ;
6399 char *kwnames[] = {
6400 (char *) "self",(char *) "underlined", NULL
6401 };
6402
6403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6406 arg2 = (bool) SWIG_AsBool(obj1);
6407 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6408 {
6409 PyThreadState* __tstate = wxPyBeginAllowThreads();
6410 (arg1)->SetUnderlined(arg2);
6411
6412 wxPyEndAllowThreads(__tstate);
6413 if (PyErr_Occurred()) SWIG_fail;
6414 }
6415 Py_INCREF(Py_None); resultobj = Py_None;
6416 return resultobj;
6417 fail:
6418 return NULL;
6419}
6420
6421
6422static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6423 PyObject *resultobj;
6424 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6425 wxString arg2 ;
d14a1e28
RD
6426 PyObject * obj0 = 0 ;
6427 PyObject * obj1 = 0 ;
6428 char *kwnames[] = {
6429 (char *) "self",(char *) "facename", NULL
6430 };
6431
6432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
e811c8ce
RD
6435 {
6436 wxString* sptr = wxString_in_helper(obj1);
6437 if (sptr == NULL) SWIG_fail;
6438 arg2 = *sptr;
6439 delete sptr;
6440 }
d14a1e28
RD
6441 {
6442 PyThreadState* __tstate = wxPyBeginAllowThreads();
6443 (arg1)->SetFaceName(arg2);
6444
6445 wxPyEndAllowThreads(__tstate);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 Py_INCREF(Py_None); resultobj = Py_None;
6449 return resultobj;
6450 fail:
6451 return NULL;
6452}
6453
6454
6455static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj;
6457 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6458 int arg2 ;
6459 PyObject * obj0 = 0 ;
994141e6 6460 PyObject * obj1 = 0 ;
d14a1e28
RD
6461 char *kwnames[] = {
6462 (char *) "self",(char *) "family", NULL
6463 };
6464
994141e6 6465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6468 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6469 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6470 {
6471 PyThreadState* __tstate = wxPyBeginAllowThreads();
6472 (arg1)->SetFamily((wxFontFamily )arg2);
6473
6474 wxPyEndAllowThreads(__tstate);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 Py_INCREF(Py_None); resultobj = Py_None;
6478 return resultobj;
6479 fail:
6480 return NULL;
6481}
6482
6483
6484static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6485 PyObject *resultobj;
6486 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6487 int arg2 ;
6488 PyObject * obj0 = 0 ;
994141e6 6489 PyObject * obj1 = 0 ;
d14a1e28
RD
6490 char *kwnames[] = {
6491 (char *) "self",(char *) "encoding", NULL
6492 };
6493
994141e6 6494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6497 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6498 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6499 {
6500 PyThreadState* __tstate = wxPyBeginAllowThreads();
6501 (arg1)->SetEncoding((wxFontEncoding )arg2);
6502
6503 wxPyEndAllowThreads(__tstate);
6504 if (PyErr_Occurred()) SWIG_fail;
6505 }
6506 Py_INCREF(Py_None); resultobj = Py_None;
6507 return resultobj;
6508 fail:
6509 return NULL;
6510}
6511
6512
6513static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6514 PyObject *resultobj;
6515 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6516 wxString *arg2 = 0 ;
6517 bool result;
e811c8ce 6518 bool temp2 = False ;
d14a1e28
RD
6519 PyObject * obj0 = 0 ;
6520 PyObject * obj1 = 0 ;
6521 char *kwnames[] = {
6522 (char *) "self",(char *) "s", NULL
6523 };
6524
6525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6528 {
6529 arg2 = wxString_in_helper(obj1);
6530 if (arg2 == NULL) SWIG_fail;
e811c8ce 6531 temp2 = True;
d14a1e28
RD
6532 }
6533 {
6534 PyThreadState* __tstate = wxPyBeginAllowThreads();
6535 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6536
6537 wxPyEndAllowThreads(__tstate);
6538 if (PyErr_Occurred()) SWIG_fail;
6539 }
4f89f6a3
RD
6540 {
6541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6542 }
d14a1e28
RD
6543 {
6544 if (temp2)
6545 delete arg2;
6546 }
6547 return resultobj;
6548 fail:
6549 {
6550 if (temp2)
6551 delete arg2;
6552 }
6553 return NULL;
6554}
6555
6556
6557static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6558 PyObject *resultobj;
6559 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6560 wxString result;
6561 PyObject * obj0 = 0 ;
6562 char *kwnames[] = {
6563 (char *) "self", NULL
6564 };
6565
6566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
15afbcd0
RD
6567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6569 {
6570 PyThreadState* __tstate = wxPyBeginAllowThreads();
6571 result = ((wxNativeFontInfo const *)arg1)->ToString();
6572
6573 wxPyEndAllowThreads(__tstate);
6574 if (PyErr_Occurred()) SWIG_fail;
6575 }
6576 {
6577#if wxUSE_UNICODE
6578 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6579#else
6580 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6581#endif
6582 }
6583 return resultobj;
6584 fail:
6585 return NULL;
6586}
6587
6588
6589static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6590 PyObject *resultobj;
6591 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6592 wxString result;
6593 PyObject * obj0 = 0 ;
6594 char *kwnames[] = {
6595 (char *) "self", NULL
6596 };
6597
6598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
15afbcd0
RD
6599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6601 {
6602 PyThreadState* __tstate = wxPyBeginAllowThreads();
6603 result = wxNativeFontInfo___str__(arg1);
6604
6605 wxPyEndAllowThreads(__tstate);
6606 if (PyErr_Occurred()) SWIG_fail;
6607 }
6608 {
6609#if wxUSE_UNICODE
6610 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6611#else
6612 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6613#endif
6614 }
6615 return resultobj;
6616 fail:
6617 return NULL;
6618}
6619
6620
6621static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6622 PyObject *resultobj;
6623 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6624 wxString *arg2 = 0 ;
6625 bool result;
e811c8ce 6626 bool temp2 = False ;
d14a1e28
RD
6627 PyObject * obj0 = 0 ;
6628 PyObject * obj1 = 0 ;
6629 char *kwnames[] = {
6630 (char *) "self",(char *) "s", NULL
6631 };
6632
6633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6636 {
6637 arg2 = wxString_in_helper(obj1);
6638 if (arg2 == NULL) SWIG_fail;
e811c8ce 6639 temp2 = True;
d14a1e28
RD
6640 }
6641 {
6642 PyThreadState* __tstate = wxPyBeginAllowThreads();
6643 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6644
6645 wxPyEndAllowThreads(__tstate);
6646 if (PyErr_Occurred()) SWIG_fail;
6647 }
4f89f6a3
RD
6648 {
6649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6650 }
d14a1e28
RD
6651 {
6652 if (temp2)
6653 delete arg2;
6654 }
6655 return resultobj;
6656 fail:
6657 {
6658 if (temp2)
6659 delete arg2;
6660 }
6661 return NULL;
6662}
6663
6664
6665static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6666 PyObject *resultobj;
6667 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6668 wxString result;
6669 PyObject * obj0 = 0 ;
6670 char *kwnames[] = {
6671 (char *) "self", NULL
6672 };
6673
6674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
15afbcd0
RD
6675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6677 {
6678 PyThreadState* __tstate = wxPyBeginAllowThreads();
6679 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6680
6681 wxPyEndAllowThreads(__tstate);
6682 if (PyErr_Occurred()) SWIG_fail;
6683 }
6684 {
6685#if wxUSE_UNICODE
6686 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6687#else
6688 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6689#endif
6690 }
6691 return resultobj;
6692 fail:
6693 return NULL;
6694}
6695
6696
6697static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6698 PyObject *obj;
6699 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6700 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6701 Py_INCREF(obj);
6702 return Py_BuildValue((char *)"");
6703}
6704static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6705 PyObject *resultobj;
6706 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
196addbf 6707 wxString *arg2 = (wxString *) 0 ;
7eae615b 6708 bool temp2 = False ;
d14a1e28
RD
6709 PyObject * obj0 = 0 ;
6710 PyObject * obj1 = 0 ;
6711 char *kwnames[] = {
6712 (char *) "self",(char *) "facename", NULL
6713 };
6714
6715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7eae615b
RD
6718 {
6719 arg2 = wxString_in_helper(obj1);
6720 if (arg2 == NULL) SWIG_fail;
6721 temp2 = True;
6722 }
196addbf 6723 if (arg1) (arg1)->facename = *arg2;
d14a1e28
RD
6724
6725 Py_INCREF(Py_None); resultobj = Py_None;
7eae615b
RD
6726 {
6727 if (temp2)
6728 delete arg2;
6729 }
d14a1e28
RD
6730 return resultobj;
6731 fail:
7eae615b
RD
6732 {
6733 if (temp2)
6734 delete arg2;
6735 }
d14a1e28
RD
6736 return NULL;
6737}
6738
6739
6740static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6741 PyObject *resultobj;
6742 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
196addbf 6743 wxString *result;
d14a1e28
RD
6744 PyObject * obj0 = 0 ;
6745 char *kwnames[] = {
6746 (char *) "self", NULL
6747 };
6748
6749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
6750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
196addbf 6752 result = (wxString *)& ((arg1)->facename);
d14a1e28
RD
6753
6754 {
6755#if wxUSE_UNICODE
196addbf 6756 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 6757#else
196addbf 6758 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
6759#endif
6760 }
6761 return resultobj;
6762 fail:
6763 return NULL;
6764}
6765
6766
6767static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6768 PyObject *resultobj;
6769 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6770 int arg2 ;
6771 PyObject * obj0 = 0 ;
994141e6 6772 PyObject * obj1 = 0 ;
d14a1e28
RD
6773 char *kwnames[] = {
6774 (char *) "self",(char *) "encoding", NULL
6775 };
6776
994141e6 6777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6780 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6781 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6782 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6783
6784 Py_INCREF(Py_None); resultobj = Py_None;
6785 return resultobj;
6786 fail:
6787 return NULL;
6788}
6789
6790
6791static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6792 PyObject *resultobj;
6793 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6794 int result;
6795 PyObject * obj0 = 0 ;
6796 char *kwnames[] = {
6797 (char *) "self", NULL
6798 };
6799
6800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
6801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6803 result = (int) ((arg1)->encoding);
6804
15afbcd0 6805 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6806 return resultobj;
6807 fail:
6808 return NULL;
6809}
6810
6811
6812static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6813 PyObject *resultobj;
6814 wxNativeEncodingInfo *result;
6815 char *kwnames[] = {
6816 NULL
6817 };
6818
6819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6820 {
6821 PyThreadState* __tstate = wxPyBeginAllowThreads();
6822 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6823
6824 wxPyEndAllowThreads(__tstate);
6825 if (PyErr_Occurred()) SWIG_fail;
6826 }
15afbcd0 6827 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
d14a1e28
RD
6828 return resultobj;
6829 fail:
6830 return NULL;
6831}
6832
6833
6834static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6835 PyObject *resultobj;
6836 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6837 PyObject * obj0 = 0 ;
6838 char *kwnames[] = {
6839 (char *) "self", NULL
6840 };
6841
6842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
6843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6845 {
6846 PyThreadState* __tstate = wxPyBeginAllowThreads();
6847 delete arg1;
6848
6849 wxPyEndAllowThreads(__tstate);
6850 if (PyErr_Occurred()) SWIG_fail;
6851 }
6852 Py_INCREF(Py_None); resultobj = Py_None;
6853 return resultobj;
6854 fail:
6855 return NULL;
6856}
6857
6858
6859static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6860 PyObject *resultobj;
6861 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6862 wxString *arg2 = 0 ;
6863 bool result;
e811c8ce 6864 bool temp2 = False ;
d14a1e28
RD
6865 PyObject * obj0 = 0 ;
6866 PyObject * obj1 = 0 ;
6867 char *kwnames[] = {
6868 (char *) "self",(char *) "s", NULL
6869 };
6870
6871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6874 {
6875 arg2 = wxString_in_helper(obj1);
6876 if (arg2 == NULL) SWIG_fail;
e811c8ce 6877 temp2 = True;
d14a1e28
RD
6878 }
6879 {
6880 PyThreadState* __tstate = wxPyBeginAllowThreads();
6881 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6882
6883 wxPyEndAllowThreads(__tstate);
6884 if (PyErr_Occurred()) SWIG_fail;
6885 }
4f89f6a3
RD
6886 {
6887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6888 }
d14a1e28
RD
6889 {
6890 if (temp2)
6891 delete arg2;
6892 }
6893 return resultobj;
6894 fail:
6895 {
6896 if (temp2)
6897 delete arg2;
6898 }
6899 return NULL;
6900}
6901
6902
6903static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6904 PyObject *resultobj;
6905 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6906 wxString result;
6907 PyObject * obj0 = 0 ;
6908 char *kwnames[] = {
6909 (char *) "self", NULL
6910 };
6911
6912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
15afbcd0
RD
6913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6915 {
6916 PyThreadState* __tstate = wxPyBeginAllowThreads();
6917 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6918
6919 wxPyEndAllowThreads(__tstate);
6920 if (PyErr_Occurred()) SWIG_fail;
6921 }
6922 {
6923#if wxUSE_UNICODE
6924 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6925#else
6926 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6927#endif
6928 }
6929 return resultobj;
6930 fail:
6931 return NULL;
6932}
6933
6934
6935static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6936 PyObject *obj;
6937 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6938 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6939 Py_INCREF(obj);
6940 return Py_BuildValue((char *)"");
6941}
6942static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6943 PyObject *resultobj;
6944 int arg1 ;
6945 wxNativeEncodingInfo *result;
994141e6 6946 PyObject * obj0 = 0 ;
d14a1e28
RD
6947 char *kwnames[] = {
6948 (char *) "encoding", NULL
6949 };
6950
994141e6 6951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
6952 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6953 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
6954 {
6955 PyThreadState* __tstate = wxPyBeginAllowThreads();
6956 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
d14a1e28
RD
6957
6958 wxPyEndAllowThreads(__tstate);
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
15afbcd0 6961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
d14a1e28
RD
6962 return resultobj;
6963 fail:
6964 return NULL;
6965}
6966
6967
6968static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6969 PyObject *resultobj;
6970 wxNativeEncodingInfo *arg1 = 0 ;
6971 bool result;
6972 PyObject * obj0 = 0 ;
6973 char *kwnames[] = {
6974 (char *) "info", NULL
6975 };
6976
6977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
6978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6979 SWIG_POINTER_EXCEPTION | 0)) == -1)
6980 SWIG_fail;
d14a1e28 6981 if (arg1 == NULL) {
15afbcd0
RD
6982 PyErr_SetString(PyExc_TypeError,"null reference");
6983 SWIG_fail;
d14a1e28
RD
6984 }
6985 {
6986 PyThreadState* __tstate = wxPyBeginAllowThreads();
6987 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6988
6989 wxPyEndAllowThreads(__tstate);
6990 if (PyErr_Occurred()) SWIG_fail;
6991 }
4f89f6a3
RD
6992 {
6993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6994 }
d14a1e28
RD
6995 return resultobj;
6996 fail:
6997 return NULL;
6998}
6999
7000
7001static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7002 PyObject *resultobj;
7003 wxFontMapper *result;
7004 char *kwnames[] = {
7005 NULL
7006 };
7007
7008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7009 {
7010 PyThreadState* __tstate = wxPyBeginAllowThreads();
7011 result = (wxFontMapper *)new wxFontMapper();
7012
7013 wxPyEndAllowThreads(__tstate);
7014 if (PyErr_Occurred()) SWIG_fail;
7015 }
15afbcd0 7016 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
d14a1e28
RD
7017 return resultobj;
7018 fail:
7019 return NULL;
7020}
7021
7022
7023static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7024 PyObject *resultobj;
7025 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7026 PyObject * obj0 = 0 ;
7027 char *kwnames[] = {
7028 (char *) "self", NULL
7029 };
7030
7031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
15afbcd0
RD
7032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7034 {
7035 PyThreadState* __tstate = wxPyBeginAllowThreads();
7036 delete arg1;
7037
7038 wxPyEndAllowThreads(__tstate);
7039 if (PyErr_Occurred()) SWIG_fail;
7040 }
7041 Py_INCREF(Py_None); resultobj = Py_None;
7042 return resultobj;
7043 fail:
7044 return NULL;
7045}
7046
7047
7048static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7049 PyObject *resultobj;
7050 wxFontMapper *result;
7051 char *kwnames[] = {
7052 NULL
7053 };
7054
7055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7056 {
7057 PyThreadState* __tstate = wxPyBeginAllowThreads();
7058 result = (wxFontMapper *)wxFontMapper::Get();
7059
7060 wxPyEndAllowThreads(__tstate);
7061 if (PyErr_Occurred()) SWIG_fail;
7062 }
15afbcd0 7063 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
d14a1e28
RD
7064 return resultobj;
7065 fail:
7066 return NULL;
7067}
7068
7069
7070static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7071 PyObject *resultobj;
7072 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7073 wxFontMapper *result;
7074 PyObject * obj0 = 0 ;
7075 char *kwnames[] = {
7076 (char *) "mapper", NULL
7077 };
7078
7079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
15afbcd0
RD
7080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7082 {
7083 PyThreadState* __tstate = wxPyBeginAllowThreads();
7084 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7085
7086 wxPyEndAllowThreads(__tstate);
7087 if (PyErr_Occurred()) SWIG_fail;
7088 }
15afbcd0 7089 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
d14a1e28
RD
7090 return resultobj;
7091 fail:
7092 return NULL;
7093}
7094
7095
7096static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7097 PyObject *resultobj;
7098 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7099 wxString *arg2 = 0 ;
e811c8ce 7100 bool arg3 = (bool) True ;
d14a1e28 7101 int result;
e811c8ce 7102 bool temp2 = False ;
d14a1e28
RD
7103 PyObject * obj0 = 0 ;
7104 PyObject * obj1 = 0 ;
7105 PyObject * obj2 = 0 ;
7106 char *kwnames[] = {
7107 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7108 };
7109
7110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
7111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7113 {
7114 arg2 = wxString_in_helper(obj1);
7115 if (arg2 == NULL) SWIG_fail;
e811c8ce 7116 temp2 = True;
d14a1e28
RD
7117 }
7118 if (obj2) {
15afbcd0
RD
7119 arg3 = (bool) SWIG_AsBool(obj2);
7120 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7121 }
7122 {
7123 PyThreadState* __tstate = wxPyBeginAllowThreads();
7124 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7125
7126 wxPyEndAllowThreads(__tstate);
7127 if (PyErr_Occurred()) SWIG_fail;
7128 }
15afbcd0 7129 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7130 {
7131 if (temp2)
7132 delete arg2;
7133 }
7134 return resultobj;
7135 fail:
7136 {
7137 if (temp2)
7138 delete arg2;
7139 }
7140 return NULL;
7141}
7142
7143
7144static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7145 PyObject *resultobj;
7146 size_t result;
7147 char *kwnames[] = {
7148 NULL
7149 };
7150
7151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7152 {
7153 PyThreadState* __tstate = wxPyBeginAllowThreads();
7154 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7155
7156 wxPyEndAllowThreads(__tstate);
7157 if (PyErr_Occurred()) SWIG_fail;
7158 }
15afbcd0 7159 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
7160 return resultobj;
7161 fail:
7162 return NULL;
7163}
7164
7165
7166static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7167 PyObject *resultobj;
7168 size_t arg1 ;
7169 int result;
7170 PyObject * obj0 = 0 ;
7171 char *kwnames[] = {
7172 (char *) "n", NULL
7173 };
7174
7175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
7176 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7177 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7178 {
7179 PyThreadState* __tstate = wxPyBeginAllowThreads();
7180 result = (int)wxFontMapper::GetEncoding(arg1);
7181
7182 wxPyEndAllowThreads(__tstate);
7183 if (PyErr_Occurred()) SWIG_fail;
7184 }
15afbcd0 7185 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7186 return resultobj;
7187 fail:
7188 return NULL;
7189}
7190
7191
7192static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7193 PyObject *resultobj;
7194 int arg1 ;
7195 wxString result;
994141e6 7196 PyObject * obj0 = 0 ;
d14a1e28
RD
7197 char *kwnames[] = {
7198 (char *) "encoding", NULL
7199 };
7200
994141e6 7201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
15afbcd0
RD
7202 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7203 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7204 {
7205 PyThreadState* __tstate = wxPyBeginAllowThreads();
7206 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7207
7208 wxPyEndAllowThreads(__tstate);
7209 if (PyErr_Occurred()) SWIG_fail;
7210 }
7211 {
7212#if wxUSE_UNICODE
7213 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7214#else
7215 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7216#endif
7217 }
7218 return resultobj;
7219 fail:
7220 return NULL;
7221}
7222
7223
7224static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7225 PyObject *resultobj;
7226 int arg1 ;
7227 wxString result;
994141e6 7228 PyObject * obj0 = 0 ;
d14a1e28
RD
7229 char *kwnames[] = {
7230 (char *) "encoding", NULL
7231 };
7232
994141e6 7233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
15afbcd0
RD
7234 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7235 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7236 {
7237 PyThreadState* __tstate = wxPyBeginAllowThreads();
7238 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7239
7240 wxPyEndAllowThreads(__tstate);
7241 if (PyErr_Occurred()) SWIG_fail;
7242 }
7243 {
7244#if wxUSE_UNICODE
7245 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7246#else
7247 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7248#endif
7249 }
7250 return resultobj;
7251 fail:
7252 return NULL;
7253}
7254
7255
b2df227b
RD
7256static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj;
7258 wxString *arg1 = 0 ;
7259 int result;
7260 bool temp1 = False ;
7261 PyObject * obj0 = 0 ;
7262 char *kwnames[] = {
7263 (char *) "name", NULL
7264 };
7265
7266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7267 {
7268 arg1 = wxString_in_helper(obj0);
7269 if (arg1 == NULL) SWIG_fail;
7270 temp1 = True;
7271 }
7272 {
7273 PyThreadState* __tstate = wxPyBeginAllowThreads();
7274 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7275
7276 wxPyEndAllowThreads(__tstate);
7277 if (PyErr_Occurred()) SWIG_fail;
7278 }
7279 resultobj = SWIG_FromInt((int)result);
7280 {
7281 if (temp1)
7282 delete arg1;
7283 }
7284 return resultobj;
7285 fail:
7286 {
7287 if (temp1)
7288 delete arg1;
7289 }
7290 return NULL;
7291}
7292
7293
d14a1e28
RD
7294static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7295 PyObject *resultobj;
7296 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7297 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7298 PyObject * obj0 = 0 ;
7299 PyObject * obj1 = 0 ;
7300 char *kwnames[] = {
7301 (char *) "self",(char *) "config", NULL
7302 };
7303
7304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7309 {
7310 PyThreadState* __tstate = wxPyBeginAllowThreads();
7311 (arg1)->SetConfig(arg2);
7312
7313 wxPyEndAllowThreads(__tstate);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 }
7316 Py_INCREF(Py_None); resultobj = Py_None;
7317 return resultobj;
7318 fail:
7319 return NULL;
7320}
7321
7322
7323static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7324 PyObject *resultobj;
7325 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7326 wxString *arg2 = 0 ;
e811c8ce 7327 bool temp2 = False ;
d14a1e28
RD
7328 PyObject * obj0 = 0 ;
7329 PyObject * obj1 = 0 ;
7330 char *kwnames[] = {
7331 (char *) "self",(char *) "prefix", NULL
7332 };
7333
7334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7337 {
7338 arg2 = wxString_in_helper(obj1);
7339 if (arg2 == NULL) SWIG_fail;
e811c8ce 7340 temp2 = True;
d14a1e28
RD
7341 }
7342 {
7343 PyThreadState* __tstate = wxPyBeginAllowThreads();
7344 (arg1)->SetConfigPath((wxString const &)*arg2);
7345
7346 wxPyEndAllowThreads(__tstate);
7347 if (PyErr_Occurred()) SWIG_fail;
7348 }
7349 Py_INCREF(Py_None); resultobj = Py_None;
7350 {
7351 if (temp2)
7352 delete arg2;
7353 }
7354 return resultobj;
7355 fail:
7356 {
7357 if (temp2)
7358 delete arg2;
7359 }
7360 return NULL;
7361}
7362
7363
7364static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7365 PyObject *resultobj;
7366 wxString result;
7367 char *kwnames[] = {
7368 NULL
7369 };
7370
7371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7372 {
7373 PyThreadState* __tstate = wxPyBeginAllowThreads();
7374 result = wxFontMapper::GetDefaultConfigPath();
7375
7376 wxPyEndAllowThreads(__tstate);
7377 if (PyErr_Occurred()) SWIG_fail;
7378 }
7379 {
7380#if wxUSE_UNICODE
7381 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7382#else
7383 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7384#endif
7385 }
7386 return resultobj;
7387 fail:
7388 return NULL;
7389}
7390
7391
7392static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7393 PyObject *resultobj;
7394 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7395 int arg2 ;
7396 wxString const &arg3_defvalue = wxPyEmptyString ;
7397 wxString *arg3 = (wxString *) &arg3_defvalue ;
e811c8ce 7398 bool arg4 = (bool) True ;
d14a1e28 7399 PyObject *result;
e811c8ce 7400 bool temp3 = False ;
d14a1e28 7401 PyObject * obj0 = 0 ;
994141e6 7402 PyObject * obj1 = 0 ;
d14a1e28
RD
7403 PyObject * obj2 = 0 ;
7404 PyObject * obj3 = 0 ;
7405 char *kwnames[] = {
7406 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7407 };
7408
994141e6 7409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
7410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7412 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7413 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7414 if (obj2) {
7415 {
7416 arg3 = wxString_in_helper(obj2);
7417 if (arg3 == NULL) SWIG_fail;
e811c8ce 7418 temp3 = True;
d14a1e28
RD
7419 }
7420 }
7421 if (obj3) {
15afbcd0
RD
7422 arg4 = (bool) SWIG_AsBool(obj3);
7423 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7424 }
7425 {
7426 PyThreadState* __tstate = wxPyBeginAllowThreads();
7427 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7428
7429 wxPyEndAllowThreads(__tstate);
7430 if (PyErr_Occurred()) SWIG_fail;
7431 }
7432 resultobj = result;
7433 {
7434 if (temp3)
7435 delete arg3;
7436 }
7437 return resultobj;
7438 fail:
7439 {
7440 if (temp3)
7441 delete arg3;
7442 }
7443 return NULL;
7444}
7445
7446
7447static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7448 PyObject *resultobj;
7449 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7450 int arg2 ;
7451 wxString const &arg3_defvalue = wxPyEmptyString ;
7452 wxString *arg3 = (wxString *) &arg3_defvalue ;
7453 bool result;
e811c8ce 7454 bool temp3 = False ;
d14a1e28 7455 PyObject * obj0 = 0 ;
994141e6 7456 PyObject * obj1 = 0 ;
d14a1e28
RD
7457 PyObject * obj2 = 0 ;
7458 char *kwnames[] = {
7459 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7460 };
7461
994141e6 7462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
7463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7465 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7466 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7467 if (obj2) {
7468 {
7469 arg3 = wxString_in_helper(obj2);
7470 if (arg3 == NULL) SWIG_fail;
e811c8ce 7471 temp3 = True;
d14a1e28
RD
7472 }
7473 }
7474 {
7475 PyThreadState* __tstate = wxPyBeginAllowThreads();
7476 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7477
7478 wxPyEndAllowThreads(__tstate);
7479 if (PyErr_Occurred()) SWIG_fail;
7480 }
4f89f6a3
RD
7481 {
7482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7483 }
d14a1e28
RD
7484 {
7485 if (temp3)
7486 delete arg3;
7487 }
7488 return resultobj;
7489 fail:
7490 {
7491 if (temp3)
7492 delete arg3;
7493 }
7494 return NULL;
7495}
7496
7497
7498static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7499 PyObject *resultobj;
7500 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7501 wxWindow *arg2 = (wxWindow *) 0 ;
7502 PyObject * obj0 = 0 ;
7503 PyObject * obj1 = 0 ;
7504 char *kwnames[] = {
7505 (char *) "self",(char *) "parent", NULL
7506 };
7507
7508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7511 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7513 {
7514 PyThreadState* __tstate = wxPyBeginAllowThreads();
7515 (arg1)->SetDialogParent(arg2);
7516
7517 wxPyEndAllowThreads(__tstate);
7518 if (PyErr_Occurred()) SWIG_fail;
7519 }
7520 Py_INCREF(Py_None); resultobj = Py_None;
7521 return resultobj;
7522 fail:
7523 return NULL;
7524}
7525
7526
7527static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7528 PyObject *resultobj;
7529 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7530 wxString *arg2 = 0 ;
e811c8ce 7531 bool temp2 = False ;
d14a1e28
RD
7532 PyObject * obj0 = 0 ;
7533 PyObject * obj1 = 0 ;
7534 char *kwnames[] = {
7535 (char *) "self",(char *) "title", NULL
7536 };
7537
7538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7541 {
7542 arg2 = wxString_in_helper(obj1);
7543 if (arg2 == NULL) SWIG_fail;
e811c8ce 7544 temp2 = True;
d14a1e28
RD
7545 }
7546 {
7547 PyThreadState* __tstate = wxPyBeginAllowThreads();
7548 (arg1)->SetDialogTitle((wxString const &)*arg2);
7549
7550 wxPyEndAllowThreads(__tstate);
7551 if (PyErr_Occurred()) SWIG_fail;
7552 }
7553 Py_INCREF(Py_None); resultobj = Py_None;
7554 {
7555 if (temp2)
7556 delete arg2;
7557 }
7558 return resultobj;
7559 fail:
7560 {
7561 if (temp2)
7562 delete arg2;
7563 }
7564 return NULL;
7565}
7566
7567
7568static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7569 PyObject *obj;
7570 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7571 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7572 Py_INCREF(obj);
7573 return Py_BuildValue((char *)"");
7574}
7575static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7576 PyObject *resultobj;
7577 int arg1 ;
7578 int arg2 ;
7579 int arg3 ;
7580 int arg4 ;
e811c8ce 7581 bool arg5 = (bool) False ;
d14a1e28
RD
7582 wxString const &arg6_defvalue = wxPyEmptyString ;
7583 wxString *arg6 = (wxString *) &arg6_defvalue ;
7584 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7585 wxFont *result;
e811c8ce 7586 bool temp6 = False ;
994141e6
RD
7587 PyObject * obj0 = 0 ;
7588 PyObject * obj1 = 0 ;
7589 PyObject * obj2 = 0 ;
7590 PyObject * obj3 = 0 ;
d14a1e28
RD
7591 PyObject * obj4 = 0 ;
7592 PyObject * obj5 = 0 ;
994141e6 7593 PyObject * obj6 = 0 ;
d14a1e28
RD
7594 char *kwnames[] = {
7595 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7596 };
7597
994141e6 7598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15afbcd0
RD
7599 arg1 = (int) SWIG_AsInt(obj0);
7600 if (PyErr_Occurred()) SWIG_fail;
7601 arg2 = (int) SWIG_AsInt(obj1);
7602 if (PyErr_Occurred()) SWIG_fail;
7603 arg3 = (int) SWIG_AsInt(obj2);
7604 if (PyErr_Occurred()) SWIG_fail;
7605 arg4 = (int) SWIG_AsInt(obj3);
7606 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 7607 if (obj4) {
15afbcd0
RD
7608 arg5 = (bool) SWIG_AsBool(obj4);
7609 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7610 }
7611 if (obj5) {
7612 {
7613 arg6 = wxString_in_helper(obj5);
7614 if (arg6 == NULL) SWIG_fail;
e811c8ce 7615 temp6 = True;
d14a1e28
RD
7616 }
7617 }
994141e6 7618 if (obj6) {
15afbcd0
RD
7619 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7620 if (PyErr_Occurred()) SWIG_fail;
994141e6 7621 }
d14a1e28 7622 {
e3b71cb8 7623 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
7624 PyThreadState* __tstate = wxPyBeginAllowThreads();
7625 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7626
7627 wxPyEndAllowThreads(__tstate);
110da5b0 7628 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 7629 }
15afbcd0 7630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
7631 {
7632 if (temp6)
7633 delete arg6;
7634 }
7635 return resultobj;
7636 fail:
7637 {
7638 if (temp6)
7639 delete arg6;
7640 }
7641 return NULL;
7642}
7643
7644
7645static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7646 PyObject *resultobj;
7647 wxFont *arg1 = (wxFont *) 0 ;
7648 PyObject * obj0 = 0 ;
7649 char *kwnames[] = {
7650 (char *) "self", NULL
7651 };
7652
7653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
15afbcd0
RD
7654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7656 {
7657 PyThreadState* __tstate = wxPyBeginAllowThreads();
7658 delete arg1;
7659
7660 wxPyEndAllowThreads(__tstate);
7661 if (PyErr_Occurred()) SWIG_fail;
7662 }
7663 Py_INCREF(Py_None); resultobj = Py_None;
7664 return resultobj;
7665 fail:
7666 return NULL;
7667}
7668
7669
7670static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7671 PyObject *resultobj;
7672 wxNativeFontInfo *arg1 = 0 ;
7673 wxFont *result;
7674 PyObject * obj0 = 0 ;
7675 char *kwnames[] = {
7676 (char *) "info", NULL
7677 };
7678
7679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
7680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7681 SWIG_POINTER_EXCEPTION | 0)) == -1)
7682 SWIG_fail;
d14a1e28 7683 if (arg1 == NULL) {
15afbcd0
RD
7684 PyErr_SetString(PyExc_TypeError,"null reference");
7685 SWIG_fail;
d14a1e28
RD
7686 }
7687 {
e3b71cb8 7688 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
7689 PyThreadState* __tstate = wxPyBeginAllowThreads();
7690 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7691
7692 wxPyEndAllowThreads(__tstate);
110da5b0 7693 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 7694 }
15afbcd0 7695 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
7696 return resultobj;
7697 fail:
7698 return NULL;
7699}
7700
7701
7702static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7703 PyObject *resultobj;
7704 wxString *arg1 = 0 ;
7705 wxFont *result;
e811c8ce 7706 bool temp1 = False ;
d14a1e28
RD
7707 PyObject * obj0 = 0 ;
7708 char *kwnames[] = {
7709 (char *) "info", NULL
7710 };
7711
7712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7713 {
7714 arg1 = wxString_in_helper(obj0);
7715 if (arg1 == NULL) SWIG_fail;
e811c8ce 7716 temp1 = True;
d14a1e28
RD
7717 }
7718 {
e3b71cb8 7719 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
7720 PyThreadState* __tstate = wxPyBeginAllowThreads();
7721 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7722
7723 wxPyEndAllowThreads(__tstate);
110da5b0 7724 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 7725 }
15afbcd0 7726 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
7727 {
7728 if (temp1)
7729 delete arg1;
7730 }
7731 return resultobj;
7732 fail:
7733 {
7734 if (temp1)
7735 delete arg1;
7736 }
7737 return NULL;
7738}
7739
7740
7741static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7742 PyObject *resultobj;
7743 int arg1 ;
7744 int arg2 ;
7745 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7746 wxString const &arg4_defvalue = wxPyEmptyString ;
7747 wxString *arg4 = (wxString *) &arg4_defvalue ;
7748 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7749 wxFont *result;
e811c8ce 7750 bool temp4 = False ;
994141e6
RD
7751 PyObject * obj0 = 0 ;
7752 PyObject * obj1 = 0 ;
7753 PyObject * obj2 = 0 ;
d14a1e28 7754 PyObject * obj3 = 0 ;
994141e6 7755 PyObject * obj4 = 0 ;
d14a1e28
RD
7756 char *kwnames[] = {
7757 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7758 };
7759
994141e6 7760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
7761 arg1 = (int) SWIG_AsInt(obj0);
7762 if (PyErr_Occurred()) SWIG_fail;
7763 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7764 if (PyErr_Occurred()) SWIG_fail;
994141e6 7765 if (obj2) {
15afbcd0
RD
7766 arg3 = (int) SWIG_AsInt(obj2);
7767 if (PyErr_Occurred()) SWIG_fail;
994141e6 7768 }
d14a1e28
RD
7769 if (obj3) {
7770 {
7771 arg4 = wxString_in_helper(obj3);
7772 if (arg4 == NULL) SWIG_fail;
e811c8ce 7773 temp4 = True;
d14a1e28
RD
7774 }
7775 }
994141e6 7776 if (obj4) {
15afbcd0
RD
7777 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7778 if (PyErr_Occurred()) SWIG_fail;
994141e6 7779 }
d14a1e28 7780 {
e3b71cb8 7781 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
7782 PyThreadState* __tstate = wxPyBeginAllowThreads();
7783 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7784
7785 wxPyEndAllowThreads(__tstate);
110da5b0 7786 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 7787 }
15afbcd0 7788 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
7789 {
7790 if (temp4)
7791 delete arg4;
7792 }
7793 return resultobj;
7794 fail:
7795 {
7796 if (temp4)
7797 delete arg4;
7798 }
7799 return NULL;
7800}
7801
7802
7803static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7804 PyObject *resultobj;
7805 wxFont *arg1 = (wxFont *) 0 ;
7806 bool result;
7807 PyObject * obj0 = 0 ;
7808 char *kwnames[] = {
7809 (char *) "self", NULL
7810 };
7811
7812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
7813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7815 {
7816 PyThreadState* __tstate = wxPyBeginAllowThreads();
7817 result = (bool)((wxFont const *)arg1)->Ok();
7818
7819 wxPyEndAllowThreads(__tstate);
7820 if (PyErr_Occurred()) SWIG_fail;
7821 }
4f89f6a3
RD
7822 {
7823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7824 }
d14a1e28
RD
7825 return resultobj;
7826 fail:
7827 return NULL;
7828}
7829
7830
7831static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7832 PyObject *resultobj;
7833 wxFont *arg1 = (wxFont *) 0 ;
22faec7d 7834 wxFont *arg2 = (wxFont *) 0 ;
d14a1e28
RD
7835 bool result;
7836 PyObject * obj0 = 0 ;
7837 PyObject * obj1 = 0 ;
7838 char *kwnames[] = {
22faec7d 7839 (char *) "self",(char *) "other", NULL
d14a1e28
RD
7840 };
7841
7842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7845 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7847 {
7848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 7849 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
d14a1e28
RD
7850
7851 wxPyEndAllowThreads(__tstate);
7852 if (PyErr_Occurred()) SWIG_fail;
7853 }
4f89f6a3
RD
7854 {
7855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7856 }
d14a1e28
RD
7857 return resultobj;
7858 fail:
7859 return NULL;
7860}
7861
7862
7863static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7864 PyObject *resultobj;
7865 wxFont *arg1 = (wxFont *) 0 ;
22faec7d 7866 wxFont *arg2 = (wxFont *) 0 ;
d14a1e28
RD
7867 bool result;
7868 PyObject * obj0 = 0 ;
7869 PyObject * obj1 = 0 ;
7870 char *kwnames[] = {
22faec7d 7871 (char *) "self",(char *) "other", NULL
d14a1e28
RD
7872 };
7873
7874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7877 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7879 {
7880 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 7881 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
d14a1e28
RD
7882
7883 wxPyEndAllowThreads(__tstate);
7884 if (PyErr_Occurred()) SWIG_fail;
7885 }
4f89f6a3
RD
7886 {
7887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7888 }
d14a1e28
RD
7889 return resultobj;
7890 fail:
7891 return NULL;
7892}
7893
7894
7895static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7896 PyObject *resultobj;
7897 wxFont *arg1 = (wxFont *) 0 ;
7898 int result;
7899 PyObject * obj0 = 0 ;
7900 char *kwnames[] = {
7901 (char *) "self", NULL
7902 };
7903
7904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
15afbcd0
RD
7905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7907 {
7908 PyThreadState* __tstate = wxPyBeginAllowThreads();
7909 result = (int)((wxFont const *)arg1)->GetPointSize();
7910
7911 wxPyEndAllowThreads(__tstate);
7912 if (PyErr_Occurred()) SWIG_fail;
7913 }
15afbcd0 7914 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7915 return resultobj;
7916 fail:
7917 return NULL;
7918}
7919
7920
7921static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7922 PyObject *resultobj;
7923 wxFont *arg1 = (wxFont *) 0 ;
7924 int result;
7925 PyObject * obj0 = 0 ;
7926 char *kwnames[] = {
7927 (char *) "self", NULL
7928 };
7929
7930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
15afbcd0
RD
7931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7933 {
7934 PyThreadState* __tstate = wxPyBeginAllowThreads();
7935 result = (int)((wxFont const *)arg1)->GetFamily();
7936
7937 wxPyEndAllowThreads(__tstate);
7938 if (PyErr_Occurred()) SWIG_fail;
7939 }
15afbcd0 7940 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7941 return resultobj;
7942 fail:
7943 return NULL;
7944}
7945
7946
7947static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7948 PyObject *resultobj;
7949 wxFont *arg1 = (wxFont *) 0 ;
7950 int result;
7951 PyObject * obj0 = 0 ;
7952 char *kwnames[] = {
7953 (char *) "self", NULL
7954 };
7955
7956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
15afbcd0
RD
7957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7959 {
7960 PyThreadState* __tstate = wxPyBeginAllowThreads();
7961 result = (int)((wxFont const *)arg1)->GetStyle();
7962
7963 wxPyEndAllowThreads(__tstate);
7964 if (PyErr_Occurred()) SWIG_fail;
7965 }
15afbcd0 7966 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7967 return resultobj;
7968 fail:
7969 return NULL;
7970}
7971
7972
7973static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7974 PyObject *resultobj;
7975 wxFont *arg1 = (wxFont *) 0 ;
7976 int result;
7977 PyObject * obj0 = 0 ;
7978 char *kwnames[] = {
7979 (char *) "self", NULL
7980 };
7981
7982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
7983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7985 {
7986 PyThreadState* __tstate = wxPyBeginAllowThreads();
7987 result = (int)((wxFont const *)arg1)->GetWeight();
7988
7989 wxPyEndAllowThreads(__tstate);
7990 if (PyErr_Occurred()) SWIG_fail;
7991 }
15afbcd0 7992 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7993 return resultobj;
7994 fail:
7995 return NULL;
7996}
7997
7998
7999static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8000 PyObject *resultobj;
8001 wxFont *arg1 = (wxFont *) 0 ;
8002 bool result;
8003 PyObject * obj0 = 0 ;
8004 char *kwnames[] = {
8005 (char *) "self", NULL
8006 };
8007
8008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
15afbcd0
RD
8009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8011 {
8012 PyThreadState* __tstate = wxPyBeginAllowThreads();
8013 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8014
8015 wxPyEndAllowThreads(__tstate);
8016 if (PyErr_Occurred()) SWIG_fail;
8017 }
4f89f6a3
RD
8018 {
8019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8020 }
d14a1e28
RD
8021 return resultobj;
8022 fail:
8023 return NULL;
8024}
8025
8026
8027static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8028 PyObject *resultobj;
8029 wxFont *arg1 = (wxFont *) 0 ;
8030 wxString result;
8031 PyObject * obj0 = 0 ;
8032 char *kwnames[] = {
8033 (char *) "self", NULL
8034 };
8035
8036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
15afbcd0
RD
8037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8039 {
8040 PyThreadState* __tstate = wxPyBeginAllowThreads();
8041 result = ((wxFont const *)arg1)->GetFaceName();
8042
8043 wxPyEndAllowThreads(__tstate);
8044 if (PyErr_Occurred()) SWIG_fail;
8045 }
8046 {
8047#if wxUSE_UNICODE
8048 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8049#else
8050 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8051#endif
8052 }
8053 return resultobj;
8054 fail:
8055 return NULL;
8056}
8057
8058
8059static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8060 PyObject *resultobj;
8061 wxFont *arg1 = (wxFont *) 0 ;
8062 int result;
8063 PyObject * obj0 = 0 ;
8064 char *kwnames[] = {
8065 (char *) "self", NULL
8066 };
8067
8068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
8069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8071 {
8072 PyThreadState* __tstate = wxPyBeginAllowThreads();
8073 result = (int)((wxFont const *)arg1)->GetEncoding();
8074
8075 wxPyEndAllowThreads(__tstate);
8076 if (PyErr_Occurred()) SWIG_fail;
8077 }
15afbcd0 8078 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8079 return resultobj;
8080 fail:
8081 return NULL;
8082}
8083
8084
8085static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8086 PyObject *resultobj;
8087 wxFont *arg1 = (wxFont *) 0 ;
8088 wxNativeFontInfo *result;
8089 PyObject * obj0 = 0 ;
8090 char *kwnames[] = {
8091 (char *) "self", NULL
8092 };
8093
8094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
8095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8097 {
8098 PyThreadState* __tstate = wxPyBeginAllowThreads();
8099 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8100
8101 wxPyEndAllowThreads(__tstate);
8102 if (PyErr_Occurred()) SWIG_fail;
8103 }
15afbcd0 8104 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
d14a1e28
RD
8105 return resultobj;
8106 fail:
8107 return NULL;
8108}
8109
8110
8111static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8112 PyObject *resultobj;
8113 wxFont *arg1 = (wxFont *) 0 ;
8114 bool result;
8115 PyObject * obj0 = 0 ;
8116 char *kwnames[] = {
8117 (char *) "self", NULL
8118 };
8119
8120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
8121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8123 {
8124 PyThreadState* __tstate = wxPyBeginAllowThreads();
8125 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8126
8127 wxPyEndAllowThreads(__tstate);
8128 if (PyErr_Occurred()) SWIG_fail;
8129 }
4f89f6a3
RD
8130 {
8131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8132 }
d14a1e28
RD
8133 return resultobj;
8134 fail:
8135 return NULL;
8136}
8137
8138
8139static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8140 PyObject *resultobj;
8141 wxFont *arg1 = (wxFont *) 0 ;
8142 wxString result;
8143 PyObject * obj0 = 0 ;
8144 char *kwnames[] = {
8145 (char *) "self", NULL
8146 };
8147
8148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
15afbcd0
RD
8149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8151 {
8152 PyThreadState* __tstate = wxPyBeginAllowThreads();
8153 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8154
8155 wxPyEndAllowThreads(__tstate);
8156 if (PyErr_Occurred()) SWIG_fail;
8157 }
8158 {
8159#if wxUSE_UNICODE
8160 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8161#else
8162 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8163#endif
8164 }
8165 return resultobj;
8166 fail:
8167 return NULL;
8168}
8169
8170
8171static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8172 PyObject *resultobj;
8173 wxFont *arg1 = (wxFont *) 0 ;
8174 wxString result;
8175 PyObject * obj0 = 0 ;
8176 char *kwnames[] = {
8177 (char *) "self", NULL
8178 };
8179
8180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
15afbcd0
RD
8181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8183 {
8184 PyThreadState* __tstate = wxPyBeginAllowThreads();
8185 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8186
8187 wxPyEndAllowThreads(__tstate);
8188 if (PyErr_Occurred()) SWIG_fail;
8189 }
8190 {
8191#if wxUSE_UNICODE
8192 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8193#else
8194 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8195#endif
8196 }
8197 return resultobj;
8198 fail:
8199 return NULL;
8200}
8201
8202
8203static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8204 PyObject *resultobj;
8205 wxFont *arg1 = (wxFont *) 0 ;
8206 int arg2 ;
8207 PyObject * obj0 = 0 ;
994141e6 8208 PyObject * obj1 = 0 ;
d14a1e28
RD
8209 char *kwnames[] = {
8210 (char *) "self",(char *) "pointSize", NULL
8211 };
8212
994141e6 8213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8216 arg2 = (int) SWIG_AsInt(obj1);
8217 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8218 {
8219 PyThreadState* __tstate = wxPyBeginAllowThreads();
8220 (arg1)->SetPointSize(arg2);
8221
8222 wxPyEndAllowThreads(__tstate);
8223 if (PyErr_Occurred()) SWIG_fail;
8224 }
8225 Py_INCREF(Py_None); resultobj = Py_None;
8226 return resultobj;
8227 fail:
8228 return NULL;
8229}
8230
8231
8232static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8233 PyObject *resultobj;
8234 wxFont *arg1 = (wxFont *) 0 ;
8235 int arg2 ;
8236 PyObject * obj0 = 0 ;
994141e6 8237 PyObject * obj1 = 0 ;
d14a1e28
RD
8238 char *kwnames[] = {
8239 (char *) "self",(char *) "family", NULL
8240 };
8241
994141e6 8242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8245 arg2 = (int) SWIG_AsInt(obj1);
8246 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8247 {
8248 PyThreadState* __tstate = wxPyBeginAllowThreads();
8249 (arg1)->SetFamily(arg2);
8250
8251 wxPyEndAllowThreads(__tstate);
8252 if (PyErr_Occurred()) SWIG_fail;
8253 }
8254 Py_INCREF(Py_None); resultobj = Py_None;
8255 return resultobj;
8256 fail:
8257 return NULL;
8258}
8259
8260
8261static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8262 PyObject *resultobj;
8263 wxFont *arg1 = (wxFont *) 0 ;
8264 int arg2 ;
8265 PyObject * obj0 = 0 ;
994141e6 8266 PyObject * obj1 = 0 ;
d14a1e28
RD
8267 char *kwnames[] = {
8268 (char *) "self",(char *) "style", NULL
8269 };
8270
994141e6 8271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8274 arg2 = (int) SWIG_AsInt(obj1);
8275 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8276 {
8277 PyThreadState* __tstate = wxPyBeginAllowThreads();
8278 (arg1)->SetStyle(arg2);
8279
8280 wxPyEndAllowThreads(__tstate);
8281 if (PyErr_Occurred()) SWIG_fail;
8282 }
8283 Py_INCREF(Py_None); resultobj = Py_None;
8284 return resultobj;
8285 fail:
8286 return NULL;
8287}
8288
8289
8290static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8291 PyObject *resultobj;
8292 wxFont *arg1 = (wxFont *) 0 ;
8293 int arg2 ;
8294 PyObject * obj0 = 0 ;
994141e6 8295 PyObject * obj1 = 0 ;
d14a1e28
RD
8296 char *kwnames[] = {
8297 (char *) "self",(char *) "weight", NULL
8298 };
8299
994141e6 8300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8303 arg2 = (int) SWIG_AsInt(obj1);
8304 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8305 {
8306 PyThreadState* __tstate = wxPyBeginAllowThreads();
8307 (arg1)->SetWeight(arg2);
8308
8309 wxPyEndAllowThreads(__tstate);
8310 if (PyErr_Occurred()) SWIG_fail;
8311 }
8312 Py_INCREF(Py_None); resultobj = Py_None;
8313 return resultobj;
8314 fail:
8315 return NULL;
8316}
8317
8318
8319static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8320 PyObject *resultobj;
8321 wxFont *arg1 = (wxFont *) 0 ;
8322 wxString *arg2 = 0 ;
e811c8ce 8323 bool temp2 = False ;
d14a1e28
RD
8324 PyObject * obj0 = 0 ;
8325 PyObject * obj1 = 0 ;
8326 char *kwnames[] = {
8327 (char *) "self",(char *) "faceName", NULL
8328 };
8329
8330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8333 {
8334 arg2 = wxString_in_helper(obj1);
8335 if (arg2 == NULL) SWIG_fail;
e811c8ce 8336 temp2 = True;
d14a1e28
RD
8337 }
8338 {
8339 PyThreadState* __tstate = wxPyBeginAllowThreads();
8340 (arg1)->SetFaceName((wxString const &)*arg2);
8341
8342 wxPyEndAllowThreads(__tstate);
8343 if (PyErr_Occurred()) SWIG_fail;
8344 }
8345 Py_INCREF(Py_None); resultobj = Py_None;
8346 {
8347 if (temp2)
8348 delete arg2;
8349 }
8350 return resultobj;
8351 fail:
8352 {
8353 if (temp2)
8354 delete arg2;
8355 }
8356 return NULL;
8357}
8358
8359
8360static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8361 PyObject *resultobj;
8362 wxFont *arg1 = (wxFont *) 0 ;
8363 bool arg2 ;
8364 PyObject * obj0 = 0 ;
8365 PyObject * obj1 = 0 ;
8366 char *kwnames[] = {
8367 (char *) "self",(char *) "underlined", NULL
8368 };
8369
8370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8373 arg2 = (bool) SWIG_AsBool(obj1);
8374 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8375 {
8376 PyThreadState* __tstate = wxPyBeginAllowThreads();
8377 (arg1)->SetUnderlined(arg2);
8378
8379 wxPyEndAllowThreads(__tstate);
8380 if (PyErr_Occurred()) SWIG_fail;
8381 }
8382 Py_INCREF(Py_None); resultobj = Py_None;
8383 return resultobj;
8384 fail:
8385 return NULL;
8386}
8387
8388
8389static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8390 PyObject *resultobj;
8391 wxFont *arg1 = (wxFont *) 0 ;
8392 int arg2 ;
8393 PyObject * obj0 = 0 ;
994141e6 8394 PyObject * obj1 = 0 ;
d14a1e28
RD
8395 char *kwnames[] = {
8396 (char *) "self",(char *) "encoding", NULL
8397 };
8398
994141e6 8399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8402 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8403 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8404 {
8405 PyThreadState* __tstate = wxPyBeginAllowThreads();
8406 (arg1)->SetEncoding((wxFontEncoding )arg2);
8407
8408 wxPyEndAllowThreads(__tstate);
8409 if (PyErr_Occurred()) SWIG_fail;
8410 }
8411 Py_INCREF(Py_None); resultobj = Py_None;
8412 return resultobj;
8413 fail:
8414 return NULL;
8415}
8416
8417
8418static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8419 PyObject *resultobj;
8420 wxFont *arg1 = (wxFont *) 0 ;
8421 wxNativeFontInfo *arg2 = 0 ;
8422 PyObject * obj0 = 0 ;
8423 PyObject * obj1 = 0 ;
8424 char *kwnames[] = {
8425 (char *) "self",(char *) "info", NULL
8426 };
8427
8428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8431 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8432 SWIG_POINTER_EXCEPTION | 0)) == -1)
8433 SWIG_fail;
d14a1e28 8434 if (arg2 == NULL) {
15afbcd0
RD
8435 PyErr_SetString(PyExc_TypeError,"null reference");
8436 SWIG_fail;
d14a1e28
RD
8437 }
8438 {
8439 PyThreadState* __tstate = wxPyBeginAllowThreads();
8440 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8441
8442 wxPyEndAllowThreads(__tstate);
8443 if (PyErr_Occurred()) SWIG_fail;
8444 }
8445 Py_INCREF(Py_None); resultobj = Py_None;
8446 return resultobj;
8447 fail:
8448 return NULL;
8449}
8450
8451
8452static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8453 PyObject *resultobj;
8454 wxFont *arg1 = (wxFont *) 0 ;
8455 wxString *arg2 = 0 ;
e811c8ce 8456 bool temp2 = False ;
d14a1e28
RD
8457 PyObject * obj0 = 0 ;
8458 PyObject * obj1 = 0 ;
8459 char *kwnames[] = {
8460 (char *) "self",(char *) "info", NULL
8461 };
8462
8463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8466 {
8467 arg2 = wxString_in_helper(obj1);
8468 if (arg2 == NULL) SWIG_fail;
e811c8ce 8469 temp2 = True;
d14a1e28
RD
8470 }
8471 {
8472 PyThreadState* __tstate = wxPyBeginAllowThreads();
8473 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8474
8475 wxPyEndAllowThreads(__tstate);
8476 if (PyErr_Occurred()) SWIG_fail;
8477 }
8478 Py_INCREF(Py_None); resultobj = Py_None;
8479 {
8480 if (temp2)
8481 delete arg2;
8482 }
8483 return resultobj;
8484 fail:
8485 {
8486 if (temp2)
8487 delete arg2;
8488 }
8489 return NULL;
8490}
8491
8492
8493static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8494 PyObject *resultobj;
8495 wxFont *arg1 = (wxFont *) 0 ;
8496 wxString *arg2 = 0 ;
e811c8ce 8497 bool temp2 = False ;
d14a1e28
RD
8498 PyObject * obj0 = 0 ;
8499 PyObject * obj1 = 0 ;
8500 char *kwnames[] = {
8501 (char *) "self",(char *) "info", NULL
8502 };
8503
8504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8507 {
8508 arg2 = wxString_in_helper(obj1);
8509 if (arg2 == NULL) SWIG_fail;
e811c8ce 8510 temp2 = True;
d14a1e28
RD
8511 }
8512 {
8513 PyThreadState* __tstate = wxPyBeginAllowThreads();
8514 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8515
8516 wxPyEndAllowThreads(__tstate);
8517 if (PyErr_Occurred()) SWIG_fail;
8518 }
8519 Py_INCREF(Py_None); resultobj = Py_None;
8520 {
8521 if (temp2)
8522 delete arg2;
8523 }
8524 return resultobj;
8525 fail:
8526 {
8527 if (temp2)
8528 delete arg2;
8529 }
8530 return NULL;
8531}
8532
8533
8534static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8535 PyObject *resultobj;
8536 wxFont *arg1 = (wxFont *) 0 ;
8537 wxString result;
8538 PyObject * obj0 = 0 ;
8539 char *kwnames[] = {
8540 (char *) "self", NULL
8541 };
8542
8543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
15afbcd0
RD
8544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8546 {
8547 PyThreadState* __tstate = wxPyBeginAllowThreads();
8548 result = ((wxFont const *)arg1)->GetFamilyString();
8549
8550 wxPyEndAllowThreads(__tstate);
8551 if (PyErr_Occurred()) SWIG_fail;
8552 }
8553 {
8554#if wxUSE_UNICODE
8555 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8556#else
8557 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8558#endif
8559 }
8560 return resultobj;
8561 fail:
8562 return NULL;
8563}
8564
8565
8566static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8567 PyObject *resultobj;
8568 wxFont *arg1 = (wxFont *) 0 ;
8569 wxString result;
8570 PyObject * obj0 = 0 ;
8571 char *kwnames[] = {
8572 (char *) "self", NULL
8573 };
8574
8575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
15afbcd0
RD
8576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8578 {
8579 PyThreadState* __tstate = wxPyBeginAllowThreads();
8580 result = ((wxFont const *)arg1)->GetStyleString();
8581
8582 wxPyEndAllowThreads(__tstate);
8583 if (PyErr_Occurred()) SWIG_fail;
8584 }
8585 {
8586#if wxUSE_UNICODE
8587 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8588#else
8589 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8590#endif
8591 }
8592 return resultobj;
8593 fail:
8594 return NULL;
8595}
8596
8597
8598static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8599 PyObject *resultobj;
8600 wxFont *arg1 = (wxFont *) 0 ;
8601 wxString result;
8602 PyObject * obj0 = 0 ;
8603 char *kwnames[] = {
8604 (char *) "self", NULL
8605 };
8606
8607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
15afbcd0
RD
8608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8610 {
8611 PyThreadState* __tstate = wxPyBeginAllowThreads();
8612 result = ((wxFont const *)arg1)->GetWeightString();
8613
8614 wxPyEndAllowThreads(__tstate);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 }
8617 {
8618#if wxUSE_UNICODE
8619 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8620#else
8621 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8622#endif
8623 }
8624 return resultobj;
8625 fail:
8626 return NULL;
8627}
8628
8629
8630static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8631 PyObject *resultobj;
8632 wxFont *arg1 = (wxFont *) 0 ;
e811c8ce 8633 bool arg2 = (bool) True ;
d14a1e28
RD
8634 PyObject * obj0 = 0 ;
8635 PyObject * obj1 = 0 ;
8636 char *kwnames[] = {
8637 (char *) "self",(char *) "no", NULL
8638 };
8639
8640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 8643 if (obj1) {
15afbcd0
RD
8644 arg2 = (bool) SWIG_AsBool(obj1);
8645 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8646 }
8647 {
8648 PyThreadState* __tstate = wxPyBeginAllowThreads();
8649 (arg1)->SetNoAntiAliasing(arg2);
8650
8651 wxPyEndAllowThreads(__tstate);
8652 if (PyErr_Occurred()) SWIG_fail;
8653 }
8654 Py_INCREF(Py_None); resultobj = Py_None;
8655 return resultobj;
8656 fail:
8657 return NULL;
8658}
8659
8660
8661static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8662 PyObject *resultobj;
8663 wxFont *arg1 = (wxFont *) 0 ;
8664 bool result;
8665 PyObject * obj0 = 0 ;
8666 char *kwnames[] = {
8667 (char *) "self", NULL
8668 };
8669
8670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
15afbcd0
RD
8671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8673 {
8674 PyThreadState* __tstate = wxPyBeginAllowThreads();
0dcf9a74 8675 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
d14a1e28
RD
8676
8677 wxPyEndAllowThreads(__tstate);
8678 if (PyErr_Occurred()) SWIG_fail;
8679 }
4f89f6a3
RD
8680 {
8681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8682 }
d14a1e28
RD
8683 return resultobj;
8684 fail:
8685 return NULL;
8686}
8687
8688
8689static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8690 PyObject *resultobj;
8691 int result;
8692 char *kwnames[] = {
8693 NULL
8694 };
8695
8696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8697 {
e3b71cb8 8698 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
8699 PyThreadState* __tstate = wxPyBeginAllowThreads();
8700 result = (int)wxFont::GetDefaultEncoding();
8701
8702 wxPyEndAllowThreads(__tstate);
110da5b0 8703 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 8704 }
15afbcd0 8705 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8706 return resultobj;
8707 fail:
8708 return NULL;
8709}
8710
8711
8712static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8713 PyObject *resultobj;
8714 int arg1 ;
994141e6 8715 PyObject * obj0 = 0 ;
d14a1e28
RD
8716 char *kwnames[] = {
8717 (char *) "encoding", NULL
8718 };
8719
994141e6 8720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
8721 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8722 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 8723 {
e3b71cb8 8724 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
8725 PyThreadState* __tstate = wxPyBeginAllowThreads();
8726 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8727
8728 wxPyEndAllowThreads(__tstate);
110da5b0 8729 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8730 }
8731 Py_INCREF(Py_None); resultobj = Py_None;
8732 return resultobj;
8733 fail:
8734 return NULL;
8735}
8736
8737
8738static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8739 PyObject *obj;
8740 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8741 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8742 Py_INCREF(obj);
8743 return Py_BuildValue((char *)"");
8744}
8745static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8746 PyObject *resultobj;
8747 wxPyFontEnumerator *result;
8748 char *kwnames[] = {
8749 NULL
8750 };
8751
8752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8753 {
e3b71cb8 8754 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
8755 PyThreadState* __tstate = wxPyBeginAllowThreads();
8756 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8757
8758 wxPyEndAllowThreads(__tstate);
110da5b0 8759 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 8760 }
15afbcd0 8761 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
d14a1e28
RD
8762 return resultobj;
8763 fail:
8764 return NULL;
8765}
8766
8767
8768static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8769 PyObject *resultobj;
8770 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8771 PyObject * obj0 = 0 ;
8772 char *kwnames[] = {
8773 (char *) "self", NULL
8774 };
8775
8776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
15afbcd0
RD
8777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8779 {
8780 PyThreadState* __tstate = wxPyBeginAllowThreads();
8781 delete arg1;
8782
8783 wxPyEndAllowThreads(__tstate);
8784 if (PyErr_Occurred()) SWIG_fail;
8785 }
8786 Py_INCREF(Py_None); resultobj = Py_None;
8787 return resultobj;
8788 fail:
8789 return NULL;
8790}
8791
8792
8793static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8794 PyObject *resultobj;
8795 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8796 PyObject *arg2 = (PyObject *) 0 ;
8797 PyObject *arg3 = (PyObject *) 0 ;
8798 bool arg4 ;
8799 PyObject * obj0 = 0 ;
8800 PyObject * obj1 = 0 ;
8801 PyObject * obj2 = 0 ;
8802 PyObject * obj3 = 0 ;
8803 char *kwnames[] = {
8804 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8805 };
8806
8807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
8808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8810 arg2 = obj1;
8811 arg3 = obj2;
15afbcd0
RD
8812 arg4 = (bool) SWIG_AsBool(obj3);
8813 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8814 {
8815 PyThreadState* __tstate = wxPyBeginAllowThreads();
8816 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8817
8818 wxPyEndAllowThreads(__tstate);
8819 if (PyErr_Occurred()) SWIG_fail;
8820 }
8821 Py_INCREF(Py_None); resultobj = Py_None;
8822 return resultobj;
8823 fail:
8824 return NULL;
8825}
8826
8827
8828static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8829 PyObject *resultobj;
8830 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8831 int arg2 = (int) wxFONTENCODING_SYSTEM ;
e811c8ce 8832 bool arg3 = (bool) False ;
d14a1e28
RD
8833 bool result;
8834 PyObject * obj0 = 0 ;
994141e6 8835 PyObject * obj1 = 0 ;
d14a1e28
RD
8836 PyObject * obj2 = 0 ;
8837 char *kwnames[] = {
8838 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8839 };
8840
994141e6 8841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
8842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 8844 if (obj1) {
15afbcd0
RD
8845 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8846 if (PyErr_Occurred()) SWIG_fail;
994141e6 8847 }
d14a1e28 8848 if (obj2) {
15afbcd0
RD
8849 arg3 = (bool) SWIG_AsBool(obj2);
8850 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8851 }
8852 {
8853 PyThreadState* __tstate = wxPyBeginAllowThreads();
8854 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8855
8856 wxPyEndAllowThreads(__tstate);
8857 if (PyErr_Occurred()) SWIG_fail;
8858 }
4f89f6a3
RD
8859 {
8860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8861 }
d14a1e28
RD
8862 return resultobj;
8863 fail:
8864 return NULL;
8865}
8866
8867
8868static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8869 PyObject *resultobj;
8870 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8871 wxString const &arg2_defvalue = wxPyEmptyString ;
8872 wxString *arg2 = (wxString *) &arg2_defvalue ;
8873 bool result;
e811c8ce 8874 bool temp2 = False ;
d14a1e28
RD
8875 PyObject * obj0 = 0 ;
8876 PyObject * obj1 = 0 ;
8877 char *kwnames[] = {
8878 (char *) "self",(char *) "facename", NULL
8879 };
8880
8881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8884 if (obj1) {
8885 {
8886 arg2 = wxString_in_helper(obj1);
8887 if (arg2 == NULL) SWIG_fail;
e811c8ce 8888 temp2 = True;
d14a1e28
RD
8889 }
8890 }
8891 {
8892 PyThreadState* __tstate = wxPyBeginAllowThreads();
8893 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8894
8895 wxPyEndAllowThreads(__tstate);
8896 if (PyErr_Occurred()) SWIG_fail;
8897 }
4f89f6a3
RD
8898 {
8899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8900 }
d14a1e28
RD
8901 {
8902 if (temp2)
8903 delete arg2;
8904 }
8905 return resultobj;
8906 fail:
8907 {
8908 if (temp2)
8909 delete arg2;
8910 }
8911 return NULL;
8912}
8913
8914
8915static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8916 PyObject *resultobj;
8917 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8918 PyObject *result;
8919 PyObject * obj0 = 0 ;
8920 char *kwnames[] = {
8921 (char *) "self", NULL
8922 };
8923
8924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
15afbcd0
RD
8925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8927 {
8928 PyThreadState* __tstate = wxPyBeginAllowThreads();
8929 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8930
8931 wxPyEndAllowThreads(__tstate);
8932 if (PyErr_Occurred()) SWIG_fail;
8933 }
8934 resultobj = result;
8935 return resultobj;
8936 fail:
8937 return NULL;
8938}
8939
8940
8941static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8942 PyObject *resultobj;
8943 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8944 PyObject *result;
8945 PyObject * obj0 = 0 ;
8946 char *kwnames[] = {
8947 (char *) "self", NULL
8948 };
8949
8950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
15afbcd0
RD
8951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8953 {
8954 PyThreadState* __tstate = wxPyBeginAllowThreads();
8955 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8956
8957 wxPyEndAllowThreads(__tstate);
8958 if (PyErr_Occurred()) SWIG_fail;
8959 }
8960 resultobj = result;
8961 return resultobj;
8962 fail:
8963 return NULL;
8964}
8965
8966
8967static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8968 PyObject *obj;
8969 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8970 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8971 Py_INCREF(obj);
8972 return Py_BuildValue((char *)"");
8973}
8974static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8975 PyObject *resultobj;
8976 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8977 int arg2 ;
8978 PyObject * obj0 = 0 ;
994141e6 8979 PyObject * obj1 = 0 ;
d14a1e28
RD
8980 char *kwnames[] = {
8981 (char *) "self",(char *) "Language", NULL
8982 };
8983
994141e6 8984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8987 arg2 = (int) SWIG_AsInt(obj1);
8988 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8989 if (arg1) (arg1)->Language = arg2;
8990
8991 Py_INCREF(Py_None); resultobj = Py_None;
8992 return resultobj;
8993 fail:
8994 return NULL;
8995}
8996
8997
8998static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8999 PyObject *resultobj;
9000 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9001 int result;
9002 PyObject * obj0 = 0 ;
9003 char *kwnames[] = {
9004 (char *) "self", NULL
9005 };
9006
9007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
9008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9010 result = (int) ((arg1)->Language);
9011
15afbcd0 9012 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9013 return resultobj;
9014 fail:
9015 return NULL;
9016}
9017
9018
9019static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9020 PyObject *resultobj;
9021 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
196addbf 9022 wxString *arg2 = (wxString *) 0 ;
7eae615b 9023 bool temp2 = False ;
d14a1e28
RD
9024 PyObject * obj0 = 0 ;
9025 PyObject * obj1 = 0 ;
9026 char *kwnames[] = {
9027 (char *) "self",(char *) "CanonicalName", NULL
9028 };
9029
9030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
9031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7eae615b
RD
9033 {
9034 arg2 = wxString_in_helper(obj1);
9035 if (arg2 == NULL) SWIG_fail;
9036 temp2 = True;
9037 }
196addbf 9038 if (arg1) (arg1)->CanonicalName = *arg2;
d14a1e28
RD
9039
9040 Py_INCREF(Py_None); resultobj = Py_None;
7eae615b
RD
9041 {
9042 if (temp2)
9043 delete arg2;
9044 }
d14a1e28
RD
9045 return resultobj;
9046 fail:
7eae615b
RD
9047 {
9048 if (temp2)
9049 delete arg2;
9050 }
d14a1e28
RD
9051 return NULL;
9052}
9053
9054
9055static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9056 PyObject *resultobj;
9057 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
196addbf 9058 wxString *result;
d14a1e28
RD
9059 PyObject * obj0 = 0 ;
9060 char *kwnames[] = {
9061 (char *) "self", NULL
9062 };
9063
9064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
9065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
196addbf 9067 result = (wxString *)& ((arg1)->CanonicalName);
d14a1e28
RD
9068
9069 {
9070#if wxUSE_UNICODE
196addbf 9071 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 9072#else
196addbf 9073 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
9074#endif
9075 }
9076 return resultobj;
9077 fail:
9078 return NULL;
9079}
9080
9081
9082static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9083 PyObject *resultobj;
9084 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
196addbf 9085 wxString *arg2 = (wxString *) 0 ;
7eae615b 9086 bool temp2 = False ;
d14a1e28
RD
9087 PyObject * obj0 = 0 ;
9088 PyObject * obj1 = 0 ;
9089 char *kwnames[] = {
9090 (char *) "self",(char *) "Description", NULL
9091 };
9092
9093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
9094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7eae615b
RD
9096 {
9097 arg2 = wxString_in_helper(obj1);
9098 if (arg2 == NULL) SWIG_fail;
9099 temp2 = True;
9100 }
196addbf 9101 if (arg1) (arg1)->Description = *arg2;
d14a1e28
RD
9102
9103 Py_INCREF(Py_None); resultobj = Py_None;
7eae615b
RD
9104 {
9105 if (temp2)
9106 delete arg2;
9107 }
d14a1e28
RD
9108 return resultobj;
9109 fail:
7eae615b
RD
9110 {
9111 if (temp2)
9112 delete arg2;
9113 }
d14a1e28
RD
9114 return NULL;
9115}
9116
9117
9118static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9119 PyObject *resultobj;
9120 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
196addbf 9121 wxString *result;
d14a1e28
RD
9122 PyObject * obj0 = 0 ;
9123 char *kwnames[] = {
9124 (char *) "self", NULL
9125 };
9126
9127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
9128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
196addbf 9130 result = (wxString *)& ((arg1)->Description);
d14a1e28
RD
9131
9132 {
9133#if wxUSE_UNICODE
196addbf 9134 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 9135#else
196addbf 9136 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
9137#endif
9138 }
9139 return resultobj;
9140 fail:
9141 return NULL;
9142}
9143
9144
9145static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9146 PyObject *obj;
9147 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9148 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9149 Py_INCREF(obj);
9150 return Py_BuildValue((char *)"");
9151}
9152static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9153 PyObject *resultobj;
41e2b43e 9154 int arg1 = (int) -1 ;
d14a1e28
RD
9155 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9156 wxLocale *result;
994141e6
RD
9157 PyObject * obj0 = 0 ;
9158 PyObject * obj1 = 0 ;
d14a1e28
RD
9159 char *kwnames[] = {
9160 (char *) "language",(char *) "flags", NULL
9161 };
9162
994141e6
RD
9163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9164 if (obj0) {
15afbcd0
RD
9165 arg1 = (int) SWIG_AsInt(obj0);
9166 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
9167 }
9168 if (obj1) {
15afbcd0
RD
9169 arg2 = (int) SWIG_AsInt(obj1);
9170 if (PyErr_Occurred()) SWIG_fail;
994141e6 9171 }
d14a1e28
RD
9172 {
9173 PyThreadState* __tstate = wxPyBeginAllowThreads();
41e2b43e 9174 result = (wxLocale *)new_wxLocale(arg1,arg2);
d14a1e28
RD
9175
9176 wxPyEndAllowThreads(__tstate);
9177 if (PyErr_Occurred()) SWIG_fail;
9178 }
15afbcd0 9179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
d14a1e28
RD
9180 return resultobj;
9181 fail:
9182 return NULL;
9183}
9184
9185
9186static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9187 PyObject *resultobj;
9188 wxLocale *arg1 = (wxLocale *) 0 ;
9189 PyObject * obj0 = 0 ;
9190 char *kwnames[] = {
9191 (char *) "self", NULL
9192 };
9193
9194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
15afbcd0
RD
9195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9197 {
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 delete arg1;
9200
9201 wxPyEndAllowThreads(__tstate);
9202 if (PyErr_Occurred()) SWIG_fail;
9203 }
9204 Py_INCREF(Py_None); resultobj = Py_None;
9205 return resultobj;
9206 fail:
9207 return NULL;
9208}
9209
9210
9211static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9212 PyObject *resultobj;
9213 wxLocale *arg1 = (wxLocale *) 0 ;
9214 wxString *arg2 = 0 ;
9215 wxString const &arg3_defvalue = wxPyEmptyString ;
9216 wxString *arg3 = (wxString *) &arg3_defvalue ;
9217 wxString const &arg4_defvalue = wxPyEmptyString ;
9218 wxString *arg4 = (wxString *) &arg4_defvalue ;
e811c8ce
RD
9219 bool arg5 = (bool) True ;
9220 bool arg6 = (bool) False ;
d14a1e28 9221 bool result;
e811c8ce
RD
9222 bool temp2 = False ;
9223 bool temp3 = False ;
9224 bool temp4 = False ;
d14a1e28
RD
9225 PyObject * obj0 = 0 ;
9226 PyObject * obj1 = 0 ;
9227 PyObject * obj2 = 0 ;
9228 PyObject * obj3 = 0 ;
9229 PyObject * obj4 = 0 ;
9230 PyObject * obj5 = 0 ;
9231 char *kwnames[] = {
9232 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9233 };
9234
9235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15afbcd0
RD
9236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9238 {
9239 arg2 = wxString_in_helper(obj1);
9240 if (arg2 == NULL) SWIG_fail;
e811c8ce 9241 temp2 = True;
d14a1e28
RD
9242 }
9243 if (obj2) {
9244 {
9245 arg3 = wxString_in_helper(obj2);
9246 if (arg3 == NULL) SWIG_fail;
e811c8ce 9247 temp3 = True;
d14a1e28
RD
9248 }
9249 }
9250 if (obj3) {
9251 {
9252 arg4 = wxString_in_helper(obj3);
9253 if (arg4 == NULL) SWIG_fail;
e811c8ce 9254 temp4 = True;
d14a1e28
RD
9255 }
9256 }
9257 if (obj4) {
15afbcd0
RD
9258 arg5 = (bool) SWIG_AsBool(obj4);
9259 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9260 }
9261 if (obj5) {
15afbcd0
RD
9262 arg6 = (bool) SWIG_AsBool(obj5);
9263 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9264 }
9265 {
9266 PyThreadState* __tstate = wxPyBeginAllowThreads();
9267 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9268
9269 wxPyEndAllowThreads(__tstate);
9270 if (PyErr_Occurred()) SWIG_fail;
9271 }
4f89f6a3
RD
9272 {
9273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9274 }
d14a1e28
RD
9275 {
9276 if (temp2)
9277 delete arg2;
9278 }
9279 {
9280 if (temp3)
9281 delete arg3;
9282 }
9283 {
9284 if (temp4)
9285 delete arg4;
9286 }
9287 return resultobj;
9288 fail:
9289 {
9290 if (temp2)
9291 delete arg2;
9292 }
9293 {
9294 if (temp3)
9295 delete arg3;
9296 }
9297 {
9298 if (temp4)
9299 delete arg4;
9300 }
9301 return NULL;
9302}
9303
9304
9305static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9306 PyObject *resultobj;
9307 wxLocale *arg1 = (wxLocale *) 0 ;
9308 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9309 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9310 bool result;
9311 PyObject * obj0 = 0 ;
994141e6
RD
9312 PyObject * obj1 = 0 ;
9313 PyObject * obj2 = 0 ;
d14a1e28
RD
9314 char *kwnames[] = {
9315 (char *) "self",(char *) "language",(char *) "flags", NULL
9316 };
9317
994141e6 9318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
9319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 9321 if (obj1) {
15afbcd0
RD
9322 arg2 = (int) SWIG_AsInt(obj1);
9323 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
9324 }
9325 if (obj2) {
15afbcd0
RD
9326 arg3 = (int) SWIG_AsInt(obj2);
9327 if (PyErr_Occurred()) SWIG_fail;
994141e6 9328 }
d14a1e28
RD
9329 {
9330 PyThreadState* __tstate = wxPyBeginAllowThreads();
9331 result = (bool)(arg1)->Init(arg2,arg3);
9332
9333 wxPyEndAllowThreads(__tstate);
9334 if (PyErr_Occurred()) SWIG_fail;
9335 }
4f89f6a3
RD
9336 {
9337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9338 }
d14a1e28
RD
9339 return resultobj;
9340 fail:
9341 return NULL;
9342}
9343
9344
9345static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9346 PyObject *resultobj;
9347 int result;
9348 char *kwnames[] = {
9349 NULL
9350 };
9351
9352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9353 {
9354 PyThreadState* __tstate = wxPyBeginAllowThreads();
9355 result = (int)wxLocale::GetSystemLanguage();
9356
9357 wxPyEndAllowThreads(__tstate);
9358 if (PyErr_Occurred()) SWIG_fail;
9359 }
15afbcd0 9360 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9361 return resultobj;
9362 fail:
9363 return NULL;
9364}
9365
9366
9367static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9368 PyObject *resultobj;
9369 int result;
9370 char *kwnames[] = {
9371 NULL
9372 };
9373
9374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9375 {
9376 PyThreadState* __tstate = wxPyBeginAllowThreads();
9377 result = (int)wxLocale::GetSystemEncoding();
9378
9379 wxPyEndAllowThreads(__tstate);
9380 if (PyErr_Occurred()) SWIG_fail;
9381 }
15afbcd0 9382 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9383 return resultobj;
9384 fail:
9385 return NULL;
9386}
9387
9388
9389static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9390 PyObject *resultobj;
9391 wxString result;
9392 char *kwnames[] = {
9393 NULL
9394 };
9395
9396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = wxLocale::GetSystemEncodingName();
9400
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 {
9405#if wxUSE_UNICODE
9406 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9407#else
9408 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9409#endif
9410 }
9411 return resultobj;
9412 fail:
9413 return NULL;
9414}
9415
9416
9417static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9418 PyObject *resultobj;
9419 wxLocale *arg1 = (wxLocale *) 0 ;
9420 bool result;
9421 PyObject * obj0 = 0 ;
9422 char *kwnames[] = {
9423 (char *) "self", NULL
9424 };
9425
9426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
15afbcd0
RD
9427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9429 {
9430 PyThreadState* __tstate = wxPyBeginAllowThreads();
9431 result = (bool)((wxLocale const *)arg1)->IsOk();
9432
9433 wxPyEndAllowThreads(__tstate);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 }
4f89f6a3
RD
9436 {
9437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9438 }
d14a1e28
RD
9439 return resultobj;
9440 fail:
9441 return NULL;
9442}
9443
9444
9445static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9446 PyObject *resultobj;
9447 wxLocale *arg1 = (wxLocale *) 0 ;
9448 wxString result;
9449 PyObject * obj0 = 0 ;
9450 char *kwnames[] = {
9451 (char *) "self", NULL
9452 };
9453
9454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
15afbcd0
RD
9455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9457 {
9458 PyThreadState* __tstate = wxPyBeginAllowThreads();
9459 result = ((wxLocale const *)arg1)->GetLocale();
9460
9461 wxPyEndAllowThreads(__tstate);
9462 if (PyErr_Occurred()) SWIG_fail;
9463 }
9464 {
9465#if wxUSE_UNICODE
9466 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9467#else
9468 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9469#endif
9470 }
9471 return resultobj;
9472 fail:
9473 return NULL;
9474}
9475
9476
9477static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9478 PyObject *resultobj;
9479 wxLocale *arg1 = (wxLocale *) 0 ;
9480 int result;
9481 PyObject * obj0 = 0 ;
9482 char *kwnames[] = {
9483 (char *) "self", NULL
9484 };
9485
9486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
15afbcd0
RD
9487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9489 {
9490 PyThreadState* __tstate = wxPyBeginAllowThreads();
9491 result = (int)((wxLocale const *)arg1)->GetLanguage();
9492
9493 wxPyEndAllowThreads(__tstate);
9494 if (PyErr_Occurred()) SWIG_fail;
9495 }
15afbcd0 9496 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9497 return resultobj;
9498 fail:
9499 return NULL;
9500}
9501
9502
9503static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9504 PyObject *resultobj;
9505 wxLocale *arg1 = (wxLocale *) 0 ;
9506 wxString result;
9507 PyObject * obj0 = 0 ;
9508 char *kwnames[] = {
9509 (char *) "self", NULL
9510 };
9511
9512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
15afbcd0
RD
9513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9515 {
9516 PyThreadState* __tstate = wxPyBeginAllowThreads();
9517 result = ((wxLocale const *)arg1)->GetSysName();
9518
9519 wxPyEndAllowThreads(__tstate);
9520 if (PyErr_Occurred()) SWIG_fail;
9521 }
9522 {
9523#if wxUSE_UNICODE
9524 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9525#else
9526 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9527#endif
9528 }
9529 return resultobj;
9530 fail:
9531 return NULL;
9532}
9533
9534
9535static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9536 PyObject *resultobj;
9537 wxLocale *arg1 = (wxLocale *) 0 ;
9538 wxString result;
9539 PyObject * obj0 = 0 ;
9540 char *kwnames[] = {
9541 (char *) "self", NULL
9542 };
9543
9544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
15afbcd0
RD
9545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9547 {
9548 PyThreadState* __tstate = wxPyBeginAllowThreads();
9549 result = ((wxLocale const *)arg1)->GetCanonicalName();
9550
9551 wxPyEndAllowThreads(__tstate);
9552 if (PyErr_Occurred()) SWIG_fail;
9553 }
9554 {
9555#if wxUSE_UNICODE
9556 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9557#else
9558 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9559#endif
9560 }
9561 return resultobj;
9562 fail:
9563 return NULL;
9564}
9565
9566
9567static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9568 PyObject *resultobj;
9569 wxString *arg1 = 0 ;
e811c8ce 9570 bool temp1 = False ;
d14a1e28
RD
9571 PyObject * obj0 = 0 ;
9572 char *kwnames[] = {
9573 (char *) "prefix", NULL
9574 };
9575
9576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9577 {
9578 arg1 = wxString_in_helper(obj0);
9579 if (arg1 == NULL) SWIG_fail;
e811c8ce 9580 temp1 = True;
d14a1e28
RD
9581 }
9582 {
9583 PyThreadState* __tstate = wxPyBeginAllowThreads();
9584 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9585
9586 wxPyEndAllowThreads(__tstate);
9587 if (PyErr_Occurred()) SWIG_fail;
9588 }
9589 Py_INCREF(Py_None); resultobj = Py_None;
9590 {
9591 if (temp1)
9592 delete arg1;
9593 }
9594 return resultobj;
9595 fail:
9596 {
9597 if (temp1)
9598 delete arg1;
9599 }
9600 return NULL;
9601}
9602
9603
9604static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9605 PyObject *resultobj;
9606 wxLocale *arg1 = (wxLocale *) 0 ;
9607 wxString *arg2 = 0 ;
9608 bool result;
e811c8ce 9609 bool temp2 = False ;
d14a1e28
RD
9610 PyObject * obj0 = 0 ;
9611 PyObject * obj1 = 0 ;
9612 char *kwnames[] = {
9613 (char *) "self",(char *) "szDomain", NULL
9614 };
9615
9616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
9617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9619 {
9620 arg2 = wxString_in_helper(obj1);
9621 if (arg2 == NULL) SWIG_fail;
e811c8ce 9622 temp2 = True;
d14a1e28
RD
9623 }
9624 {
9625 PyThreadState* __tstate = wxPyBeginAllowThreads();
9626 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9627
9628 wxPyEndAllowThreads(__tstate);
9629 if (PyErr_Occurred()) SWIG_fail;
9630 }
4f89f6a3
RD
9631 {
9632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9633 }
d14a1e28
RD
9634 {
9635 if (temp2)
9636 delete arg2;
9637 }
9638 return resultobj;
9639 fail:
9640 {
9641 if (temp2)
9642 delete arg2;
9643 }
9644 return NULL;
9645}
9646
9647
9648static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9649 PyObject *resultobj;
9650 wxLocale *arg1 = (wxLocale *) 0 ;
9651 wxString *arg2 = 0 ;
9652 bool result;
e811c8ce 9653 bool temp2 = False ;
d14a1e28
RD
9654 PyObject * obj0 = 0 ;
9655 PyObject * obj1 = 0 ;
9656 char *kwnames[] = {
9657 (char *) "self",(char *) "szDomain", NULL
9658 };
9659
9660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
9661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9663 {
9664 arg2 = wxString_in_helper(obj1);
9665 if (arg2 == NULL) SWIG_fail;
e811c8ce 9666 temp2 = True;
d14a1e28
RD
9667 }
9668 {
9669 PyThreadState* __tstate = wxPyBeginAllowThreads();
9670 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9671
9672 wxPyEndAllowThreads(__tstate);
9673 if (PyErr_Occurred()) SWIG_fail;
9674 }
4f89f6a3
RD
9675 {
9676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9677 }
d14a1e28
RD
9678 {
9679 if (temp2)
9680 delete arg2;
9681 }
9682 return resultobj;
9683 fail:
9684 {
9685 if (temp2)
9686 delete arg2;
9687 }
9688 return NULL;
9689}
9690
9691
9692static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9693 PyObject *resultobj;
9694 int arg1 ;
9695 wxLanguageInfo *result;
994141e6 9696 PyObject * obj0 = 0 ;
d14a1e28
RD
9697 char *kwnames[] = {
9698 (char *) "lang", NULL
9699 };
9700
994141e6 9701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
9702 arg1 = (int) SWIG_AsInt(obj0);
9703 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9704 {
9705 PyThreadState* __tstate = wxPyBeginAllowThreads();
9706 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9707
9708 wxPyEndAllowThreads(__tstate);
9709 if (PyErr_Occurred()) SWIG_fail;
9710 }
15afbcd0 9711 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
d14a1e28
RD
9712 return resultobj;
9713 fail:
9714 return NULL;
9715}
9716
9717
9718static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9719 PyObject *resultobj;
9720 int arg1 ;
9721 wxString result;
994141e6 9722 PyObject * obj0 = 0 ;
d14a1e28
RD
9723 char *kwnames[] = {
9724 (char *) "lang", NULL
9725 };
9726
994141e6 9727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
15afbcd0
RD
9728 arg1 = (int) SWIG_AsInt(obj0);
9729 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9730 {
9731 PyThreadState* __tstate = wxPyBeginAllowThreads();
9732 result = wxLocale::GetLanguageName(arg1);
9733
9734 wxPyEndAllowThreads(__tstate);
9735 if (PyErr_Occurred()) SWIG_fail;
9736 }
9737 {
9738#if wxUSE_UNICODE
9739 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9740#else
9741 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9742#endif
9743 }
9744 return resultobj;
9745 fail:
9746 return NULL;
9747}
9748
9749
9750static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9751 PyObject *resultobj;
9752 wxString *arg1 = 0 ;
9753 wxLanguageInfo *result;
e811c8ce 9754 bool temp1 = False ;
d14a1e28
RD
9755 PyObject * obj0 = 0 ;
9756 char *kwnames[] = {
9757 (char *) "locale", NULL
9758 };
9759
9760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9761 {
9762 arg1 = wxString_in_helper(obj0);
9763 if (arg1 == NULL) SWIG_fail;
e811c8ce 9764 temp1 = True;
d14a1e28
RD
9765 }
9766 {
9767 PyThreadState* __tstate = wxPyBeginAllowThreads();
9768 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9769
9770 wxPyEndAllowThreads(__tstate);
9771 if (PyErr_Occurred()) SWIG_fail;
9772 }
15afbcd0 9773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
d14a1e28
RD
9774 {
9775 if (temp1)
9776 delete arg1;
9777 }
9778 return resultobj;
9779 fail:
9780 {
9781 if (temp1)
9782 delete arg1;
9783 }
9784 return NULL;
9785}
9786
9787
9788static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9789 PyObject *resultobj;
9790 wxLanguageInfo *arg1 = 0 ;
9791 PyObject * obj0 = 0 ;
9792 char *kwnames[] = {
9793 (char *) "info", NULL
9794 };
9795
9796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
15afbcd0
RD
9797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9798 SWIG_POINTER_EXCEPTION | 0)) == -1)
9799 SWIG_fail;
d14a1e28 9800 if (arg1 == NULL) {
15afbcd0
RD
9801 PyErr_SetString(PyExc_TypeError,"null reference");
9802 SWIG_fail;
d14a1e28
RD
9803 }
9804 {
9805 PyThreadState* __tstate = wxPyBeginAllowThreads();
9806 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9807
9808 wxPyEndAllowThreads(__tstate);
9809 if (PyErr_Occurred()) SWIG_fail;
9810 }
9811 Py_INCREF(Py_None); resultobj = Py_None;
9812 return resultobj;
9813 fail:
9814 return NULL;
9815}
9816
9817
9818static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9819 PyObject *resultobj;
9820 wxLocale *arg1 = (wxLocale *) 0 ;
9821 wxString *arg2 = 0 ;
9822 wxString const &arg3_defvalue = wxPyEmptyString ;
9823 wxString *arg3 = (wxString *) &arg3_defvalue ;
9824 wxString result;
e811c8ce
RD
9825 bool temp2 = False ;
9826 bool temp3 = False ;
d14a1e28
RD
9827 PyObject * obj0 = 0 ;
9828 PyObject * obj1 = 0 ;
9829 PyObject * obj2 = 0 ;
9830 char *kwnames[] = {
9831 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9832 };
9833
9834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
9835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9837 {
9838 arg2 = wxString_in_helper(obj1);
9839 if (arg2 == NULL) SWIG_fail;
e811c8ce 9840 temp2 = True;
d14a1e28
RD
9841 }
9842 if (obj2) {
9843 {
9844 arg3 = wxString_in_helper(obj2);
9845 if (arg3 == NULL) SWIG_fail;
e811c8ce 9846 temp3 = True;
d14a1e28
RD
9847 }
9848 }
9849 {
9850 PyThreadState* __tstate = wxPyBeginAllowThreads();
9851 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9852
9853 wxPyEndAllowThreads(__tstate);
9854 if (PyErr_Occurred()) SWIG_fail;
9855 }
9856 {
9857#if wxUSE_UNICODE
9858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9859#else
9860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9861#endif
9862 }
9863 {
9864 if (temp2)
9865 delete arg2;
9866 }
9867 {
9868 if (temp3)
9869 delete arg3;
9870 }
9871 return resultobj;
9872 fail:
9873 {
9874 if (temp2)
9875 delete arg2;
9876 }
9877 {
9878 if (temp3)
9879 delete arg3;
9880 }
9881 return NULL;
9882}
9883
9884
9885static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9886 PyObject *resultobj;
9887 wxLocale *arg1 = (wxLocale *) 0 ;
9888 wxString *result;
9889 PyObject * obj0 = 0 ;
9890 char *kwnames[] = {
9891 (char *) "self", NULL
9892 };
9893
9894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
15afbcd0
RD
9895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9897 {
9898 PyThreadState* __tstate = wxPyBeginAllowThreads();
9899 {
9900 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9901 result = (wxString *) &_result_ref;
9902 }
9903
9904 wxPyEndAllowThreads(__tstate);
9905 if (PyErr_Occurred()) SWIG_fail;
9906 }
cc6dd355
RD
9907 {
9908#if wxUSE_UNICODE
9909 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9910#else
9911 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9912#endif
9913 }
d14a1e28
RD
9914 return resultobj;
9915 fail:
9916 return NULL;
9917}
9918
9919
9920static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9921 PyObject *obj;
9922 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9923 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9924 Py_INCREF(obj);
9925 return Py_BuildValue((char *)"");
9926}
9927static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9928 PyObject *resultobj;
9929 wxLocale *result;
9930 char *kwnames[] = {
9931 NULL
9932 };
9933
9934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9935 {
9936 PyThreadState* __tstate = wxPyBeginAllowThreads();
9937 result = (wxLocale *)wxGetLocale();
9938
9939 wxPyEndAllowThreads(__tstate);
9940 if (PyErr_Occurred()) SWIG_fail;
9941 }
15afbcd0 9942 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
d14a1e28
RD
9943 return resultobj;
9944 fail:
9945 return NULL;
9946}
9947
9948
9949static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9950 PyObject *resultobj;
9951 wxString *arg1 = 0 ;
9952 wxString result;
e811c8ce 9953 bool temp1 = False ;
d14a1e28
RD
9954 PyObject * obj0 = 0 ;
9955
9956 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9957 {
9958 arg1 = wxString_in_helper(obj0);
9959 if (arg1 == NULL) SWIG_fail;
e811c8ce 9960 temp1 = True;
d14a1e28
RD
9961 }
9962 {
9963 PyThreadState* __tstate = wxPyBeginAllowThreads();
9964 result = wxGetTranslation((wxString const &)*arg1);
9965
9966 wxPyEndAllowThreads(__tstate);
9967 if (PyErr_Occurred()) SWIG_fail;
9968 }
9969 {
9970#if wxUSE_UNICODE
9971 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9972#else
9973 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9974#endif
9975 }
9976 {
9977 if (temp1)
9978 delete arg1;
9979 }
9980 return resultobj;
9981 fail:
9982 {
9983 if (temp1)
9984 delete arg1;
9985 }
9986 return NULL;
9987}
9988
9989
9990static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9991 PyObject *resultobj;
9992 wxString *arg1 = 0 ;
9993 wxString *arg2 = 0 ;
9994 size_t arg3 ;
9995 wxString result;
e811c8ce
RD
9996 bool temp1 = False ;
9997 bool temp2 = False ;
d14a1e28
RD
9998 PyObject * obj0 = 0 ;
9999 PyObject * obj1 = 0 ;
10000 PyObject * obj2 = 0 ;
10001
10002 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10003 {
10004 arg1 = wxString_in_helper(obj0);
10005 if (arg1 == NULL) SWIG_fail;
e811c8ce 10006 temp1 = True;
d14a1e28
RD
10007 }
10008 {
10009 arg2 = wxString_in_helper(obj1);
10010 if (arg2 == NULL) SWIG_fail;
e811c8ce 10011 temp2 = True;
d14a1e28 10012 }
15afbcd0
RD
10013 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10014 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10015 {
10016 PyThreadState* __tstate = wxPyBeginAllowThreads();
10017 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10018
10019 wxPyEndAllowThreads(__tstate);
10020 if (PyErr_Occurred()) SWIG_fail;
10021 }
10022 {
10023#if wxUSE_UNICODE
10024 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10025#else
10026 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10027#endif
10028 }
10029 {
10030 if (temp1)
10031 delete arg1;
10032 }
10033 {
10034 if (temp2)
10035 delete arg2;
10036 }
10037 return resultobj;
10038 fail:
10039 {
10040 if (temp1)
10041 delete arg1;
10042 }
10043 {
10044 if (temp2)
10045 delete arg2;
10046 }
10047 return NULL;
10048}
10049
10050
10051static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10052 int argc;
10053 PyObject *argv[4];
10054 int ii;
10055
10056 argc = PyObject_Length(args);
10057 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10058 argv[ii] = PyTuple_GetItem(args,ii);
10059 }
10060 if (argc == 1) {
10061 int _v;
10062 {
4d5c3d91 10063 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
d14a1e28
RD
10064 }
10065 if (_v) {
10066 return _wrap_GetTranslation__SWIG_0(self,args);
10067 }
10068 }
10069 if (argc == 3) {
10070 int _v;
10071 {
4d5c3d91 10072 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
d14a1e28
RD
10073 }
10074 if (_v) {
10075 {
4d5c3d91 10076 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
d14a1e28
RD
10077 }
10078 if (_v) {
15afbcd0 10079 _v = SWIG_CheckUnsignedLong(argv[2]);
d14a1e28
RD
10080 if (_v) {
10081 return _wrap_GetTranslation__SWIG_1(self,args);
10082 }
10083 }
10084 }
10085 }
10086
10087 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10088 return NULL;
10089}
10090
10091
10092static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10093 PyObject *resultobj;
10094 wxEncodingConverter *result;
10095 char *kwnames[] = {
10096 NULL
10097 };
10098
10099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10100 {
10101 PyThreadState* __tstate = wxPyBeginAllowThreads();
10102 result = (wxEncodingConverter *)new wxEncodingConverter();
10103
10104 wxPyEndAllowThreads(__tstate);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 }
15afbcd0 10107 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
d14a1e28
RD
10108 return resultobj;
10109 fail:
10110 return NULL;
10111}
10112
10113
10114static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10115 PyObject *resultobj;
10116 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10117 PyObject * obj0 = 0 ;
10118 char *kwnames[] = {
10119 (char *) "self", NULL
10120 };
10121
10122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
15afbcd0
RD
10123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10125 {
10126 PyThreadState* __tstate = wxPyBeginAllowThreads();
10127 delete arg1;
10128
10129 wxPyEndAllowThreads(__tstate);
10130 if (PyErr_Occurred()) SWIG_fail;
10131 }
10132 Py_INCREF(Py_None); resultobj = Py_None;
10133 return resultobj;
10134 fail:
10135 return NULL;
10136}
10137
10138
10139static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10140 PyObject *resultobj;
10141 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10142 int arg2 ;
10143 int arg3 ;
10144 int arg4 = (int) wxCONVERT_STRICT ;
10145 bool result;
10146 PyObject * obj0 = 0 ;
994141e6
RD
10147 PyObject * obj1 = 0 ;
10148 PyObject * obj2 = 0 ;
10149 PyObject * obj3 = 0 ;
d14a1e28
RD
10150 char *kwnames[] = {
10151 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10152 };
10153
994141e6 10154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
10155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10157 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10158 if (PyErr_Occurred()) SWIG_fail;
10159 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10160 if (PyErr_Occurred()) SWIG_fail;
994141e6 10161 if (obj3) {
15afbcd0
RD
10162 arg4 = (int) SWIG_AsInt(obj3);
10163 if (PyErr_Occurred()) SWIG_fail;
994141e6 10164 }
d14a1e28
RD
10165 {
10166 PyThreadState* __tstate = wxPyBeginAllowThreads();
10167 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10168
10169 wxPyEndAllowThreads(__tstate);
10170 if (PyErr_Occurred()) SWIG_fail;
10171 }
4f89f6a3
RD
10172 {
10173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10174 }
d14a1e28
RD
10175 return resultobj;
10176 fail:
10177 return NULL;
10178}
10179
10180
10181static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10182 PyObject *resultobj;
10183 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10184 wxString *arg2 = 0 ;
10185 wxString result;
e811c8ce 10186 bool temp2 = False ;
d14a1e28
RD
10187 PyObject * obj0 = 0 ;
10188 PyObject * obj1 = 0 ;
10189 char *kwnames[] = {
10190 (char *) "self",(char *) "input", NULL
10191 };
10192
10193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10196 {
10197 arg2 = wxString_in_helper(obj1);
10198 if (arg2 == NULL) SWIG_fail;
e811c8ce 10199 temp2 = True;
d14a1e28
RD
10200 }
10201 {
10202 PyThreadState* __tstate = wxPyBeginAllowThreads();
10203 result = (arg1)->Convert((wxString const &)*arg2);
10204
10205 wxPyEndAllowThreads(__tstate);
10206 if (PyErr_Occurred()) SWIG_fail;
10207 }
10208 {
10209#if wxUSE_UNICODE
10210 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10211#else
10212 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10213#endif
10214 }
10215 {
10216 if (temp2)
10217 delete arg2;
10218 }
10219 return resultobj;
10220 fail:
10221 {
10222 if (temp2)
10223 delete arg2;
10224 }
10225 return NULL;
10226}
10227
10228
10229static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10230 PyObject *resultobj;
10231 int arg1 ;
10232 int arg2 = (int) wxPLATFORM_CURRENT ;
10233 wxFontEncodingArray result;
994141e6
RD
10234 PyObject * obj0 = 0 ;
10235 PyObject * obj1 = 0 ;
d14a1e28
RD
10236 char *kwnames[] = {
10237 (char *) "enc",(char *) "platform", NULL
10238 };
10239
994141e6 10240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10241 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10242 if (PyErr_Occurred()) SWIG_fail;
994141e6 10243 if (obj1) {
15afbcd0
RD
10244 arg2 = (int) SWIG_AsInt(obj1);
10245 if (PyErr_Occurred()) SWIG_fail;
994141e6 10246 }
d14a1e28
RD
10247 {
10248 PyThreadState* __tstate = wxPyBeginAllowThreads();
10249 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10250
10251 wxPyEndAllowThreads(__tstate);
10252 if (PyErr_Occurred()) SWIG_fail;
10253 }
10254 {
10255 resultobj = PyList_New(0);
10256 for (size_t i=0; i < (&result)->GetCount(); i++) {
10257 PyObject* number = PyInt_FromLong((&result)->Item(i));
10258 PyList_Append(resultobj, number);
10259 Py_DECREF(number);
10260 }
10261 }
10262 return resultobj;
10263 fail:
10264 return NULL;
10265}
10266
10267
10268static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10269 PyObject *resultobj;
10270 int arg1 ;
10271 wxFontEncodingArray result;
994141e6 10272 PyObject * obj0 = 0 ;
d14a1e28
RD
10273 char *kwnames[] = {
10274 (char *) "enc", NULL
10275 };
10276
994141e6 10277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
15afbcd0
RD
10278 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10279 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10280 {
10281 PyThreadState* __tstate = wxPyBeginAllowThreads();
10282 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10283
10284 wxPyEndAllowThreads(__tstate);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 }
10287 {
10288 resultobj = PyList_New(0);
10289 for (size_t i=0; i < (&result)->GetCount(); i++) {
10290 PyObject* number = PyInt_FromLong((&result)->Item(i));
10291 PyList_Append(resultobj, number);
10292 Py_DECREF(number);
10293 }
10294 }
10295 return resultobj;
10296 fail:
10297 return NULL;
10298}
10299
10300
10301static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10302 PyObject *resultobj;
10303 int arg1 ;
10304 int arg2 ;
10305 bool result;
994141e6
RD
10306 PyObject * obj0 = 0 ;
10307 PyObject * obj1 = 0 ;
d14a1e28
RD
10308 char *kwnames[] = {
10309 (char *) "encIn",(char *) "encOut", NULL
10310 };
10311
994141e6 10312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10313 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10314 if (PyErr_Occurred()) SWIG_fail;
10315 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10316 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10317 {
10318 PyThreadState* __tstate = wxPyBeginAllowThreads();
10319 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10320
10321 wxPyEndAllowThreads(__tstate);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 }
4f89f6a3
RD
10324 {
10325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10326 }
d14a1e28
RD
10327 return resultobj;
10328 fail:
10329 return NULL;
10330}
10331
10332
10333static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10334 PyObject *obj;
10335 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10336 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10337 Py_INCREF(obj);
10338 return Py_BuildValue((char *)"");
10339}
10340static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10341 PyObject *resultobj;
10342 wxDC *arg1 = (wxDC *) 0 ;
10343 PyObject * obj0 = 0 ;
10344 char *kwnames[] = {
10345 (char *) "self", NULL
10346 };
10347
10348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
15afbcd0
RD
10349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10351 {
10352 PyThreadState* __tstate = wxPyBeginAllowThreads();
10353 delete arg1;
10354
10355 wxPyEndAllowThreads(__tstate);
10356 if (PyErr_Occurred()) SWIG_fail;
10357 }
10358 Py_INCREF(Py_None); resultobj = Py_None;
10359 return resultobj;
10360 fail:
10361 return NULL;
10362}
10363
10364
10365static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10366 PyObject *resultobj;
10367 wxDC *arg1 = (wxDC *) 0 ;
10368 PyObject * obj0 = 0 ;
10369 char *kwnames[] = {
10370 (char *) "self", NULL
10371 };
10372
10373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
15afbcd0
RD
10374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10376 {
10377 PyThreadState* __tstate = wxPyBeginAllowThreads();
10378 (arg1)->BeginDrawing();
10379
10380 wxPyEndAllowThreads(__tstate);
10381 if (PyErr_Occurred()) SWIG_fail;
10382 }
10383 Py_INCREF(Py_None); resultobj = Py_None;
10384 return resultobj;
10385 fail:
10386 return NULL;
10387}
10388
10389
10390static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10391 PyObject *resultobj;
10392 wxDC *arg1 = (wxDC *) 0 ;
10393 PyObject * obj0 = 0 ;
10394 char *kwnames[] = {
10395 (char *) "self", NULL
10396 };
10397
10398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
15afbcd0
RD
10399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10401 {
10402 PyThreadState* __tstate = wxPyBeginAllowThreads();
10403 (arg1)->EndDrawing();
10404
10405 wxPyEndAllowThreads(__tstate);
10406 if (PyErr_Occurred()) SWIG_fail;
10407 }
10408 Py_INCREF(Py_None); resultobj = Py_None;
10409 return resultobj;
10410 fail:
10411 return NULL;
10412}
10413
10414
03e37cd5 10415static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10416 PyObject *resultobj;
10417 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10418 int arg2 ;
10419 int arg3 ;
d14a1e28
RD
10420 wxColour *arg4 = 0 ;
10421 int arg5 = (int) wxFLOOD_SURFACE ;
10422 bool result;
10423 wxColour temp4 ;
10424 PyObject * obj0 = 0 ;
994141e6
RD
10425 PyObject * obj1 = 0 ;
10426 PyObject * obj2 = 0 ;
d14a1e28 10427 PyObject * obj3 = 0 ;
994141e6 10428 PyObject * obj4 = 0 ;
d14a1e28
RD
10429 char *kwnames[] = {
10430 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10431 };
10432
03e37cd5 10433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
10434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10436 arg2 = (int) SWIG_AsInt(obj1);
10437 if (PyErr_Occurred()) SWIG_fail;
10438 arg3 = (int) SWIG_AsInt(obj2);
10439 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10440 {
10441 arg4 = &temp4;
10442 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10443 }
994141e6 10444 if (obj4) {
15afbcd0
RD
10445 arg5 = (int) SWIG_AsInt(obj4);
10446 if (PyErr_Occurred()) SWIG_fail;
994141e6 10447 }
d14a1e28
RD
10448 {
10449 PyThreadState* __tstate = wxPyBeginAllowThreads();
10450 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10451
10452 wxPyEndAllowThreads(__tstate);
10453 if (PyErr_Occurred()) SWIG_fail;
10454 }
4f89f6a3
RD
10455 {
10456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10457 }
d14a1e28
RD
10458 return resultobj;
10459 fail:
10460 return NULL;
10461}
10462
10463
03e37cd5 10464static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10465 PyObject *resultobj;
10466 wxDC *arg1 = (wxDC *) 0 ;
10467 wxPoint *arg2 = 0 ;
10468 wxColour *arg3 = 0 ;
10469 int arg4 = (int) wxFLOOD_SURFACE ;
10470 bool result;
10471 wxPoint temp2 ;
10472 wxColour temp3 ;
10473 PyObject * obj0 = 0 ;
10474 PyObject * obj1 = 0 ;
10475 PyObject * obj2 = 0 ;
994141e6 10476 PyObject * obj3 = 0 ;
d14a1e28
RD
10477 char *kwnames[] = {
10478 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10479 };
10480
03e37cd5 10481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
10482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10484 {
10485 arg2 = &temp2;
10486 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10487 }
10488 {
10489 arg3 = &temp3;
10490 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10491 }
994141e6 10492 if (obj3) {
15afbcd0
RD
10493 arg4 = (int) SWIG_AsInt(obj3);
10494 if (PyErr_Occurred()) SWIG_fail;
994141e6 10495 }
d14a1e28
RD
10496 {
10497 PyThreadState* __tstate = wxPyBeginAllowThreads();
10498 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10499
10500 wxPyEndAllowThreads(__tstate);
10501 if (PyErr_Occurred()) SWIG_fail;
10502 }
4f89f6a3
RD
10503 {
10504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10505 }
d14a1e28
RD
10506 return resultobj;
10507 fail:
10508 return NULL;
10509}
10510
10511
03e37cd5 10512static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10513 PyObject *resultobj;
10514 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10515 int arg2 ;
10516 int arg3 ;
d14a1e28
RD
10517 wxColour result;
10518 PyObject * obj0 = 0 ;
994141e6
RD
10519 PyObject * obj1 = 0 ;
10520 PyObject * obj2 = 0 ;
d14a1e28
RD
10521 char *kwnames[] = {
10522 (char *) "self",(char *) "x",(char *) "y", NULL
10523 };
10524
03e37cd5 10525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
10526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10528 arg2 = (int) SWIG_AsInt(obj1);
10529 if (PyErr_Occurred()) SWIG_fail;
10530 arg3 = (int) SWIG_AsInt(obj2);
10531 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10532 {
10533 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 10534 result = wxDC_GetPixel(arg1,arg2,arg3);
d14a1e28
RD
10535
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 {
10540 wxColour * resultptr;
10541 resultptr = new wxColour((wxColour &) result);
15afbcd0 10542 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
10543 }
10544 return resultobj;
10545 fail:
10546 return NULL;
10547}
10548
10549
03e37cd5 10550static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10551 PyObject *resultobj;
10552 wxDC *arg1 = (wxDC *) 0 ;
10553 wxPoint *arg2 = 0 ;
10554 wxColour result;
10555 wxPoint temp2 ;
10556 PyObject * obj0 = 0 ;
10557 PyObject * obj1 = 0 ;
10558 char *kwnames[] = {
10559 (char *) "self",(char *) "pt", NULL
10560 };
10561
03e37cd5 10562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10565 {
10566 arg2 = &temp2;
10567 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10568 }
10569 {
10570 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 10571 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
d14a1e28
RD
10572
10573 wxPyEndAllowThreads(__tstate);
10574 if (PyErr_Occurred()) SWIG_fail;
10575 }
10576 {
10577 wxColour * resultptr;
10578 resultptr = new wxColour((wxColour &) result);
15afbcd0 10579 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
10580 }
10581 return resultobj;
10582 fail:
10583 return NULL;
10584}
10585
10586
03e37cd5 10587static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10588 PyObject *resultobj;
10589 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10590 int arg2 ;
10591 int arg3 ;
10592 int arg4 ;
10593 int arg5 ;
d14a1e28 10594 PyObject * obj0 = 0 ;
994141e6
RD
10595 PyObject * obj1 = 0 ;
10596 PyObject * obj2 = 0 ;
10597 PyObject * obj3 = 0 ;
10598 PyObject * obj4 = 0 ;
d14a1e28
RD
10599 char *kwnames[] = {
10600 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10601 };
10602
03e37cd5 10603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
10604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10606 arg2 = (int) SWIG_AsInt(obj1);
10607 if (PyErr_Occurred()) SWIG_fail;
10608 arg3 = (int) SWIG_AsInt(obj2);
10609 if (PyErr_Occurred()) SWIG_fail;
10610 arg4 = (int) SWIG_AsInt(obj3);
10611 if (PyErr_Occurred()) SWIG_fail;
10612 arg5 = (int) SWIG_AsInt(obj4);
10613 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10614 {
10615 PyThreadState* __tstate = wxPyBeginAllowThreads();
10616 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10617
10618 wxPyEndAllowThreads(__tstate);
10619 if (PyErr_Occurred()) SWIG_fail;
10620 }
10621 Py_INCREF(Py_None); resultobj = Py_None;
10622 return resultobj;
10623 fail:
10624 return NULL;
10625}
10626
10627
03e37cd5 10628static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10629 PyObject *resultobj;
10630 wxDC *arg1 = (wxDC *) 0 ;
10631 wxPoint *arg2 = 0 ;
10632 wxPoint *arg3 = 0 ;
10633 wxPoint temp2 ;
10634 wxPoint temp3 ;
10635 PyObject * obj0 = 0 ;
10636 PyObject * obj1 = 0 ;
10637 PyObject * obj2 = 0 ;
10638 char *kwnames[] = {
10639 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10640 };
10641
03e37cd5 10642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
10643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10645 {
10646 arg2 = &temp2;
10647 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10648 }
10649 {
10650 arg3 = &temp3;
10651 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10652 }
10653 {
10654 PyThreadState* __tstate = wxPyBeginAllowThreads();
10655 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10656
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 Py_INCREF(Py_None); resultobj = Py_None;
10661 return resultobj;
10662 fail:
10663 return NULL;
10664}
10665
10666
03e37cd5 10667static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10668 PyObject *resultobj;
10669 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10670 int arg2 ;
10671 int arg3 ;
d14a1e28 10672 PyObject * obj0 = 0 ;
994141e6
RD
10673 PyObject * obj1 = 0 ;
10674 PyObject * obj2 = 0 ;
d14a1e28
RD
10675 char *kwnames[] = {
10676 (char *) "self",(char *) "x",(char *) "y", NULL
10677 };
10678
03e37cd5 10679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
10680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10682 arg2 = (int) SWIG_AsInt(obj1);
10683 if (PyErr_Occurred()) SWIG_fail;
10684 arg3 = (int) SWIG_AsInt(obj2);
10685 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10686 {
10687 PyThreadState* __tstate = wxPyBeginAllowThreads();
10688 (arg1)->CrossHair(arg2,arg3);
10689
10690 wxPyEndAllowThreads(__tstate);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 }
10693 Py_INCREF(Py_None); resultobj = Py_None;
10694 return resultobj;
10695 fail:
10696 return NULL;
10697}
10698
10699
03e37cd5 10700static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10701 PyObject *resultobj;
10702 wxDC *arg1 = (wxDC *) 0 ;
10703 wxPoint *arg2 = 0 ;
10704 wxPoint temp2 ;
10705 PyObject * obj0 = 0 ;
10706 PyObject * obj1 = 0 ;
10707 char *kwnames[] = {
10708 (char *) "self",(char *) "pt", NULL
10709 };
10710
03e37cd5 10711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10714 {
10715 arg2 = &temp2;
10716 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10717 }
10718 {
10719 PyThreadState* __tstate = wxPyBeginAllowThreads();
10720 (arg1)->CrossHair((wxPoint const &)*arg2);
10721
10722 wxPyEndAllowThreads(__tstate);
10723 if (PyErr_Occurred()) SWIG_fail;
10724 }
10725 Py_INCREF(Py_None); resultobj = Py_None;
10726 return resultobj;
10727 fail:
10728 return NULL;
10729}
10730
10731
03e37cd5 10732static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10733 PyObject *resultobj;
10734 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10735 int arg2 ;
10736 int arg3 ;
10737 int arg4 ;
10738 int arg5 ;
10739 int arg6 ;
10740 int arg7 ;
d14a1e28 10741 PyObject * obj0 = 0 ;
994141e6
RD
10742 PyObject * obj1 = 0 ;
10743 PyObject * obj2 = 0 ;
10744 PyObject * obj3 = 0 ;
10745 PyObject * obj4 = 0 ;
10746 PyObject * obj5 = 0 ;
10747 PyObject * obj6 = 0 ;
d14a1e28
RD
10748 char *kwnames[] = {
10749 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10750 };
10751
03e37cd5 10752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15afbcd0
RD
10753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10755 arg2 = (int) SWIG_AsInt(obj1);
10756 if (PyErr_Occurred()) SWIG_fail;
10757 arg3 = (int) SWIG_AsInt(obj2);
10758 if (PyErr_Occurred()) SWIG_fail;
10759 arg4 = (int) SWIG_AsInt(obj3);
10760 if (PyErr_Occurred()) SWIG_fail;
10761 arg5 = (int) SWIG_AsInt(obj4);
10762 if (PyErr_Occurred()) SWIG_fail;
10763 arg6 = (int) SWIG_AsInt(obj5);
10764 if (PyErr_Occurred()) SWIG_fail;
10765 arg7 = (int) SWIG_AsInt(obj6);
10766 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10767 {
10768 PyThreadState* __tstate = wxPyBeginAllowThreads();
10769 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10770
10771 wxPyEndAllowThreads(__tstate);
10772 if (PyErr_Occurred()) SWIG_fail;
10773 }
10774 Py_INCREF(Py_None); resultobj = Py_None;
10775 return resultobj;
10776 fail:
10777 return NULL;
10778}
10779
10780
03e37cd5 10781static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10782 PyObject *resultobj;
10783 wxDC *arg1 = (wxDC *) 0 ;
10784 wxPoint *arg2 = 0 ;
10785 wxPoint *arg3 = 0 ;
10786 wxPoint *arg4 = 0 ;
10787 wxPoint temp2 ;
10788 wxPoint temp3 ;
10789 wxPoint temp4 ;
10790 PyObject * obj0 = 0 ;
10791 PyObject * obj1 = 0 ;
10792 PyObject * obj2 = 0 ;
10793 PyObject * obj3 = 0 ;
10794 char *kwnames[] = {
f5b96ee1 10795 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
d14a1e28
RD
10796 };
10797
03e37cd5 10798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
10799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10801 {
10802 arg2 = &temp2;
10803 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10804 }
10805 {
10806 arg3 = &temp3;
10807 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10808 }
10809 {
10810 arg4 = &temp4;
10811 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10812 }
10813 {
10814 PyThreadState* __tstate = wxPyBeginAllowThreads();
10815 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10816
10817 wxPyEndAllowThreads(__tstate);
10818 if (PyErr_Occurred()) SWIG_fail;
10819 }
10820 Py_INCREF(Py_None); resultobj = Py_None;
10821 return resultobj;
10822 fail:
10823 return NULL;
10824}
10825
10826
03e37cd5 10827static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10828 PyObject *resultobj;
10829 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10830 int arg2 ;
10831 int arg3 ;
10832 int arg4 ;
10833 int arg5 ;
d14a1e28 10834 PyObject * obj0 = 0 ;
994141e6
RD
10835 PyObject * obj1 = 0 ;
10836 PyObject * obj2 = 0 ;
10837 PyObject * obj3 = 0 ;
10838 PyObject * obj4 = 0 ;
d14a1e28
RD
10839 char *kwnames[] = {
10840 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10841 };
10842
03e37cd5 10843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
10844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10846 arg2 = (int) SWIG_AsInt(obj1);
10847 if (PyErr_Occurred()) SWIG_fail;
10848 arg3 = (int) SWIG_AsInt(obj2);
10849 if (PyErr_Occurred()) SWIG_fail;
10850 arg4 = (int) SWIG_AsInt(obj3);
10851 if (PyErr_Occurred()) SWIG_fail;
10852 arg5 = (int) SWIG_AsInt(obj4);
10853 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
10854 {
10855 PyThreadState* __tstate = wxPyBeginAllowThreads();
10856 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10857
10858 wxPyEndAllowThreads(__tstate);
10859 if (PyErr_Occurred()) SWIG_fail;
10860 }
10861 Py_INCREF(Py_None); resultobj = Py_None;
10862 return resultobj;
10863 fail:
10864 return NULL;
10865}
10866
10867
03e37cd5 10868static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10869 PyObject *resultobj;
10870 wxDC *arg1 = (wxDC *) 0 ;
10871 wxRect *arg2 = 0 ;
10872 wxRect temp2 ;
10873 PyObject * obj0 = 0 ;
10874 PyObject * obj1 = 0 ;
10875 char *kwnames[] = {
10876 (char *) "self",(char *) "rect", NULL
10877 };
10878
03e37cd5 10879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10882 {
10883 arg2 = &temp2;
10884 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10885 }
10886 {
10887 PyThreadState* __tstate = wxPyBeginAllowThreads();
10888 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10889
10890 wxPyEndAllowThreads(__tstate);
10891 if (PyErr_Occurred()) SWIG_fail;
10892 }
10893 Py_INCREF(Py_None); resultobj = Py_None;
10894 return resultobj;
10895 fail:
10896 return NULL;
10897}
10898
10899
03e37cd5 10900static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10901 PyObject *resultobj;
10902 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10903 int arg2 ;
10904 int arg3 ;
10905 int arg4 ;
10906 int arg5 ;
d14a1e28
RD
10907 double arg6 ;
10908 double arg7 ;
10909 PyObject * obj0 = 0 ;
994141e6
RD
10910 PyObject * obj1 = 0 ;
10911 PyObject * obj2 = 0 ;
10912 PyObject * obj3 = 0 ;
10913 PyObject * obj4 = 0 ;
10914 PyObject * obj5 = 0 ;
10915 PyObject * obj6 = 0 ;
d14a1e28 10916 char *kwnames[] = {
f5b96ee1 10917 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
d14a1e28
RD
10918 };
10919
03e37cd5 10920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15afbcd0
RD
10921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10923 arg2 = (int) SWIG_AsInt(obj1);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 arg3 = (int) SWIG_AsInt(obj2);
10926 if (PyErr_Occurred()) SWIG_fail;
10927 arg4 = (int) SWIG_AsInt(obj3);
10928 if (PyErr_Occurred()) SWIG_fail;
10929 arg5 = (int) SWIG_AsInt(obj4);
10930 if (PyErr_Occurred()) SWIG_fail;
10931 arg6 = (double) SWIG_AsDouble(obj5);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 arg7 = (double) SWIG_AsDouble(obj6);
10934 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10935 {
10936 PyThreadState* __tstate = wxPyBeginAllowThreads();
10937 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10938
10939 wxPyEndAllowThreads(__tstate);
10940 if (PyErr_Occurred()) SWIG_fail;
10941 }
10942 Py_INCREF(Py_None); resultobj = Py_None;
10943 return resultobj;
10944 fail:
10945 return NULL;
10946}
10947
10948
03e37cd5 10949static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10950 PyObject *resultobj;
10951 wxDC *arg1 = (wxDC *) 0 ;
10952 wxPoint *arg2 = 0 ;
10953 wxSize *arg3 = 0 ;
10954 double arg4 ;
10955 double arg5 ;
10956 wxPoint temp2 ;
10957 wxSize temp3 ;
10958 PyObject * obj0 = 0 ;
10959 PyObject * obj1 = 0 ;
10960 PyObject * obj2 = 0 ;
994141e6
RD
10961 PyObject * obj3 = 0 ;
10962 PyObject * obj4 = 0 ;
d14a1e28 10963 char *kwnames[] = {
f5b96ee1 10964 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
d14a1e28
RD
10965 };
10966
03e37cd5 10967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
10968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10970 {
10971 arg2 = &temp2;
10972 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10973 }
10974 {
10975 arg3 = &temp3;
10976 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10977 }
15afbcd0
RD
10978 arg4 = (double) SWIG_AsDouble(obj3);
10979 if (PyErr_Occurred()) SWIG_fail;
10980 arg5 = (double) SWIG_AsDouble(obj4);
10981 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10982 {
10983 PyThreadState* __tstate = wxPyBeginAllowThreads();
10984 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10985
10986 wxPyEndAllowThreads(__tstate);
10987 if (PyErr_Occurred()) SWIG_fail;
10988 }
10989 Py_INCREF(Py_None); resultobj = Py_None;
10990 return resultobj;
10991 fail:
10992 return NULL;
10993}
10994
10995
03e37cd5 10996static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10997 PyObject *resultobj;
10998 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10999 int arg2 ;
11000 int arg3 ;
d14a1e28 11001 PyObject * obj0 = 0 ;
994141e6
RD
11002 PyObject * obj1 = 0 ;
11003 PyObject * obj2 = 0 ;
d14a1e28
RD
11004 char *kwnames[] = {
11005 (char *) "self",(char *) "x",(char *) "y", NULL
11006 };
11007
03e37cd5 11008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11011 arg2 = (int) SWIG_AsInt(obj1);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 arg3 = (int) SWIG_AsInt(obj2);
11014 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11015 {
11016 PyThreadState* __tstate = wxPyBeginAllowThreads();
11017 (arg1)->DrawPoint(arg2,arg3);
11018
11019 wxPyEndAllowThreads(__tstate);
11020 if (PyErr_Occurred()) SWIG_fail;
11021 }
11022 Py_INCREF(Py_None); resultobj = Py_None;
11023 return resultobj;
11024 fail:
11025 return NULL;
11026}
11027
11028
03e37cd5 11029static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11030 PyObject *resultobj;
11031 wxDC *arg1 = (wxDC *) 0 ;
11032 wxPoint *arg2 = 0 ;
11033 wxPoint temp2 ;
11034 PyObject * obj0 = 0 ;
11035 PyObject * obj1 = 0 ;
11036 char *kwnames[] = {
11037 (char *) "self",(char *) "pt", NULL
11038 };
11039
03e37cd5 11040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
11041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11043 {
11044 arg2 = &temp2;
11045 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11046 }
11047 {
11048 PyThreadState* __tstate = wxPyBeginAllowThreads();
11049 (arg1)->DrawPoint((wxPoint const &)*arg2);
11050
11051 wxPyEndAllowThreads(__tstate);
11052 if (PyErr_Occurred()) SWIG_fail;
11053 }
11054 Py_INCREF(Py_None); resultobj = Py_None;
11055 return resultobj;
11056 fail:
11057 return NULL;
11058}
11059
11060
03e37cd5 11061static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11062 PyObject *resultobj;
11063 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11064 int arg2 ;
11065 int arg3 ;
11066 int arg4 ;
11067 int arg5 ;
d14a1e28 11068 PyObject * obj0 = 0 ;
994141e6
RD
11069 PyObject * obj1 = 0 ;
11070 PyObject * obj2 = 0 ;
11071 PyObject * obj3 = 0 ;
11072 PyObject * obj4 = 0 ;
d14a1e28
RD
11073 char *kwnames[] = {
11074 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11075 };
11076
03e37cd5 11077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
11078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11080 arg2 = (int) SWIG_AsInt(obj1);
11081 if (PyErr_Occurred()) SWIG_fail;
11082 arg3 = (int) SWIG_AsInt(obj2);
11083 if (PyErr_Occurred()) SWIG_fail;
11084 arg4 = (int) SWIG_AsInt(obj3);
11085 if (PyErr_Occurred()) SWIG_fail;
11086 arg5 = (int) SWIG_AsInt(obj4);
11087 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11088 {
11089 PyThreadState* __tstate = wxPyBeginAllowThreads();
11090 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11091
11092 wxPyEndAllowThreads(__tstate);
11093 if (PyErr_Occurred()) SWIG_fail;
11094 }
11095 Py_INCREF(Py_None); resultobj = Py_None;
11096 return resultobj;
11097 fail:
11098 return NULL;
11099}
11100
11101
03e37cd5 11102static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11103 PyObject *resultobj;
11104 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5
RD
11105 wxRect *arg2 = 0 ;
11106 wxRect temp2 ;
d14a1e28
RD
11107 PyObject * obj0 = 0 ;
11108 PyObject * obj1 = 0 ;
d14a1e28 11109 char *kwnames[] = {
03e37cd5 11110 (char *) "self",(char *) "rect", NULL
d14a1e28
RD
11111 };
11112
03e37cd5 11113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
11114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11116 {
11117 arg2 = &temp2;
03e37cd5 11118 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d14a1e28
RD
11119 }
11120 {
11121 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 11122 (arg1)->DrawRectangle((wxRect const &)*arg2);
d14a1e28
RD
11123
11124 wxPyEndAllowThreads(__tstate);
11125 if (PyErr_Occurred()) SWIG_fail;
11126 }
11127 Py_INCREF(Py_None); resultobj = Py_None;
11128 return resultobj;
11129 fail:
11130 return NULL;
11131}
11132
11133
03e37cd5 11134static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11135 PyObject *resultobj;
11136 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5
RD
11137 wxPoint *arg2 = 0 ;
11138 wxSize *arg3 = 0 ;
11139 wxPoint temp2 ;
11140 wxSize temp3 ;
d14a1e28
RD
11141 PyObject * obj0 = 0 ;
11142 PyObject * obj1 = 0 ;
03e37cd5 11143 PyObject * obj2 = 0 ;
d14a1e28 11144 char *kwnames[] = {
03e37cd5 11145 (char *) "self",(char *) "pt",(char *) "sz", NULL
d14a1e28
RD
11146 };
11147
03e37cd5 11148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11151 {
11152 arg2 = &temp2;
03e37cd5
RD
11153 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11154 }
11155 {
11156 arg3 = &temp3;
11157 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d14a1e28
RD
11158 }
11159 {
11160 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 11161 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
d14a1e28
RD
11162
11163 wxPyEndAllowThreads(__tstate);
11164 if (PyErr_Occurred()) SWIG_fail;
11165 }
11166 Py_INCREF(Py_None); resultobj = Py_None;
11167 return resultobj;
11168 fail:
11169 return NULL;
11170}
11171
11172
03e37cd5 11173static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11174 PyObject *resultobj;
11175 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11176 int arg2 ;
11177 int arg3 ;
11178 int arg4 ;
11179 int arg5 ;
d14a1e28
RD
11180 double arg6 ;
11181 PyObject * obj0 = 0 ;
994141e6
RD
11182 PyObject * obj1 = 0 ;
11183 PyObject * obj2 = 0 ;
11184 PyObject * obj3 = 0 ;
11185 PyObject * obj4 = 0 ;
11186 PyObject * obj5 = 0 ;
d14a1e28
RD
11187 char *kwnames[] = {
11188 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11189 };
11190
03e37cd5 11191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15afbcd0
RD
11192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11194 arg2 = (int) SWIG_AsInt(obj1);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 arg3 = (int) SWIG_AsInt(obj2);
11197 if (PyErr_Occurred()) SWIG_fail;
11198 arg4 = (int) SWIG_AsInt(obj3);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 arg5 = (int) SWIG_AsInt(obj4);
11201 if (PyErr_Occurred()) SWIG_fail;
11202 arg6 = (double) SWIG_AsDouble(obj5);
11203 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11204 {
11205 PyThreadState* __tstate = wxPyBeginAllowThreads();
11206 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11207
11208 wxPyEndAllowThreads(__tstate);
11209 if (PyErr_Occurred()) SWIG_fail;
11210 }
11211 Py_INCREF(Py_None); resultobj = Py_None;
11212 return resultobj;
11213 fail:
11214 return NULL;
11215}
11216
11217
03e37cd5 11218static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11219 PyObject *resultobj;
11220 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5
RD
11221 wxRect *arg2 = 0 ;
11222 double arg3 ;
11223 wxRect temp2 ;
d14a1e28
RD
11224 PyObject * obj0 = 0 ;
11225 PyObject * obj1 = 0 ;
11226 PyObject * obj2 = 0 ;
11227 char *kwnames[] = {
03e37cd5 11228 (char *) "self",(char *) "r",(char *) "radius", NULL
d14a1e28
RD
11229 };
11230
03e37cd5 11231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11234 {
11235 arg2 = &temp2;
03e37cd5 11236 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 11237 }
03e37cd5 11238 arg3 = (double) SWIG_AsDouble(obj2);
15afbcd0 11239 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11240 {
11241 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 11242 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
d14a1e28
RD
11243
11244 wxPyEndAllowThreads(__tstate);
11245 if (PyErr_Occurred()) SWIG_fail;
11246 }
11247 Py_INCREF(Py_None); resultobj = Py_None;
11248 return resultobj;
11249 fail:
11250 return NULL;
11251}
11252
11253
03e37cd5 11254static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11255 PyObject *resultobj;
11256 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5
RD
11257 wxPoint *arg2 = 0 ;
11258 wxSize *arg3 = 0 ;
11259 double arg4 ;
11260 wxPoint temp2 ;
11261 wxSize temp3 ;
d14a1e28
RD
11262 PyObject * obj0 = 0 ;
11263 PyObject * obj1 = 0 ;
994141e6 11264 PyObject * obj2 = 0 ;
03e37cd5 11265 PyObject * obj3 = 0 ;
d14a1e28 11266 char *kwnames[] = {
03e37cd5 11267 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
d14a1e28
RD
11268 };
11269
03e37cd5 11270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11273 {
11274 arg2 = &temp2;
03e37cd5 11275 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 11276 }
03e37cd5
RD
11277 {
11278 arg3 = &temp3;
11279 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11280 }
11281 arg4 = (double) SWIG_AsDouble(obj3);
15afbcd0 11282 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11283 {
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 11285 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
d14a1e28
RD
11286
11287 wxPyEndAllowThreads(__tstate);
11288 if (PyErr_Occurred()) SWIG_fail;
11289 }
11290 Py_INCREF(Py_None); resultobj = Py_None;
11291 return resultobj;
11292 fail:
11293 return NULL;
11294}
11295
11296
03e37cd5 11297static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11298 PyObject *resultobj;
11299 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11300 int arg2 ;
11301 int arg3 ;
11302 int arg4 ;
d14a1e28 11303 PyObject * obj0 = 0 ;
994141e6
RD
11304 PyObject * obj1 = 0 ;
11305 PyObject * obj2 = 0 ;
11306 PyObject * obj3 = 0 ;
d14a1e28
RD
11307 char *kwnames[] = {
11308 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11309 };
11310
03e37cd5 11311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11314 arg2 = (int) SWIG_AsInt(obj1);
11315 if (PyErr_Occurred()) SWIG_fail;
11316 arg3 = (int) SWIG_AsInt(obj2);
11317 if (PyErr_Occurred()) SWIG_fail;
11318 arg4 = (int) SWIG_AsInt(obj3);
11319 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11320 {
11321 PyThreadState* __tstate = wxPyBeginAllowThreads();
11322 (arg1)->DrawCircle(arg2,arg3,arg4);
11323
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 Py_INCREF(Py_None); resultobj = Py_None;
11328 return resultobj;
11329 fail:
11330 return NULL;
11331}
11332
11333
03e37cd5 11334static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11335 PyObject *resultobj;
11336 wxDC *arg1 = (wxDC *) 0 ;
11337 wxPoint *arg2 = 0 ;
e811c8ce 11338 int arg3 ;
d14a1e28
RD
11339 wxPoint temp2 ;
11340 PyObject * obj0 = 0 ;
11341 PyObject * obj1 = 0 ;
994141e6 11342 PyObject * obj2 = 0 ;
d14a1e28
RD
11343 char *kwnames[] = {
11344 (char *) "self",(char *) "pt",(char *) "radius", NULL
11345 };
11346
03e37cd5 11347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11350 {
11351 arg2 = &temp2;
11352 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11353 }
15afbcd0
RD
11354 arg3 = (int) SWIG_AsInt(obj2);
11355 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11356 {
11357 PyThreadState* __tstate = wxPyBeginAllowThreads();
11358 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11359
11360 wxPyEndAllowThreads(__tstate);
11361 if (PyErr_Occurred()) SWIG_fail;
11362 }
11363 Py_INCREF(Py_None); resultobj = Py_None;
11364 return resultobj;
11365 fail:
11366 return NULL;
11367}
11368
11369
03e37cd5 11370static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11371 PyObject *resultobj;
11372 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11373 int arg2 ;
11374 int arg3 ;
11375 int arg4 ;
11376 int arg5 ;
d14a1e28 11377 PyObject * obj0 = 0 ;
994141e6
RD
11378 PyObject * obj1 = 0 ;
11379 PyObject * obj2 = 0 ;
11380 PyObject * obj3 = 0 ;
11381 PyObject * obj4 = 0 ;
d14a1e28
RD
11382 char *kwnames[] = {
11383 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11384 };
11385
03e37cd5 11386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
11387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11389 arg2 = (int) SWIG_AsInt(obj1);
11390 if (PyErr_Occurred()) SWIG_fail;
11391 arg3 = (int) SWIG_AsInt(obj2);
11392 if (PyErr_Occurred()) SWIG_fail;
11393 arg4 = (int) SWIG_AsInt(obj3);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 arg5 = (int) SWIG_AsInt(obj4);
11396 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11397 {
11398 PyThreadState* __tstate = wxPyBeginAllowThreads();
11399 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11400
11401 wxPyEndAllowThreads(__tstate);
11402 if (PyErr_Occurred()) SWIG_fail;
11403 }
11404 Py_INCREF(Py_None); resultobj = Py_None;
11405 return resultobj;
11406 fail:
11407 return NULL;
11408}
11409
11410
03e37cd5 11411static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11412 PyObject *resultobj;
11413 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5
RD
11414 wxRect *arg2 = 0 ;
11415 wxRect temp2 ;
d14a1e28
RD
11416 PyObject * obj0 = 0 ;
11417 PyObject * obj1 = 0 ;
d14a1e28 11418 char *kwnames[] = {
03e37cd5 11419 (char *) "self",(char *) "rect", NULL
d14a1e28
RD
11420 };
11421
03e37cd5 11422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
11423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11425 {
11426 arg2 = &temp2;
03e37cd5 11427 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d14a1e28
RD
11428 }
11429 {
11430 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 11431 (arg1)->DrawEllipse((wxRect const &)*arg2);
d14a1e28
RD
11432
11433 wxPyEndAllowThreads(__tstate);
11434 if (PyErr_Occurred()) SWIG_fail;
11435 }
11436 Py_INCREF(Py_None); resultobj = Py_None;
11437 return resultobj;
11438 fail:
11439 return NULL;
11440}
11441
11442
03e37cd5 11443static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11444 PyObject *resultobj;
11445 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5
RD
11446 wxPoint *arg2 = 0 ;
11447 wxSize *arg3 = 0 ;
11448 wxPoint temp2 ;
11449 wxSize temp3 ;
d14a1e28
RD
11450 PyObject * obj0 = 0 ;
11451 PyObject * obj1 = 0 ;
03e37cd5 11452 PyObject * obj2 = 0 ;
d14a1e28 11453 char *kwnames[] = {
03e37cd5 11454 (char *) "self",(char *) "pt",(char *) "sz", NULL
d14a1e28
RD
11455 };
11456
03e37cd5 11457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11460 {
11461 arg2 = &temp2;
03e37cd5
RD
11462 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11463 }
11464 {
11465 arg3 = &temp3;
11466 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d14a1e28
RD
11467 }
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 11470 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
d14a1e28
RD
11471
11472 wxPyEndAllowThreads(__tstate);
11473 if (PyErr_Occurred()) SWIG_fail;
11474 }
11475 Py_INCREF(Py_None); resultobj = Py_None;
11476 return resultobj;
11477 fail:
11478 return NULL;
11479}
11480
11481
03e37cd5 11482static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11483 PyObject *resultobj;
11484 wxDC *arg1 = (wxDC *) 0 ;
11485 wxIcon *arg2 = 0 ;
e811c8ce
RD
11486 int arg3 ;
11487 int arg4 ;
d14a1e28
RD
11488 PyObject * obj0 = 0 ;
11489 PyObject * obj1 = 0 ;
994141e6
RD
11490 PyObject * obj2 = 0 ;
11491 PyObject * obj3 = 0 ;
d14a1e28
RD
11492 char *kwnames[] = {
11493 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11494 };
11495
03e37cd5 11496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11499 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11500 SWIG_POINTER_EXCEPTION | 0)) == -1)
11501 SWIG_fail;
d14a1e28 11502 if (arg2 == NULL) {
15afbcd0
RD
11503 PyErr_SetString(PyExc_TypeError,"null reference");
11504 SWIG_fail;
994141e6 11505 }
15afbcd0
RD
11506 arg3 = (int) SWIG_AsInt(obj2);
11507 if (PyErr_Occurred()) SWIG_fail;
11508 arg4 = (int) SWIG_AsInt(obj3);
11509 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11510 {
11511 PyThreadState* __tstate = wxPyBeginAllowThreads();
11512 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11513
11514 wxPyEndAllowThreads(__tstate);
11515 if (PyErr_Occurred()) SWIG_fail;
11516 }
11517 Py_INCREF(Py_None); resultobj = Py_None;
11518 return resultobj;
11519 fail:
11520 return NULL;
11521}
11522
11523
03e37cd5 11524static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11525 PyObject *resultobj;
11526 wxDC *arg1 = (wxDC *) 0 ;
11527 wxIcon *arg2 = 0 ;
11528 wxPoint *arg3 = 0 ;
11529 wxPoint temp3 ;
11530 PyObject * obj0 = 0 ;
11531 PyObject * obj1 = 0 ;
11532 PyObject * obj2 = 0 ;
11533 char *kwnames[] = {
11534 (char *) "self",(char *) "icon",(char *) "pt", NULL
11535 };
11536
03e37cd5 11537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11540 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11541 SWIG_POINTER_EXCEPTION | 0)) == -1)
11542 SWIG_fail;
d14a1e28 11543 if (arg2 == NULL) {
15afbcd0
RD
11544 PyErr_SetString(PyExc_TypeError,"null reference");
11545 SWIG_fail;
d14a1e28
RD
11546 }
11547 {
11548 arg3 = &temp3;
11549 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11550 }
11551 {
11552 PyThreadState* __tstate = wxPyBeginAllowThreads();
11553 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11554
11555 wxPyEndAllowThreads(__tstate);
11556 if (PyErr_Occurred()) SWIG_fail;
11557 }
11558 Py_INCREF(Py_None); resultobj = Py_None;
11559 return resultobj;
11560 fail:
11561 return NULL;
11562}
11563
11564
03e37cd5 11565static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11566 PyObject *resultobj;
11567 wxDC *arg1 = (wxDC *) 0 ;
11568 wxBitmap *arg2 = 0 ;
e811c8ce
RD
11569 int arg3 ;
11570 int arg4 ;
11571 bool arg5 = (bool) False ;
d14a1e28
RD
11572 PyObject * obj0 = 0 ;
11573 PyObject * obj1 = 0 ;
994141e6
RD
11574 PyObject * obj2 = 0 ;
11575 PyObject * obj3 = 0 ;
d14a1e28
RD
11576 PyObject * obj4 = 0 ;
11577 char *kwnames[] = {
11578 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11579 };
11580
03e37cd5 11581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
11582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11584 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11585 SWIG_POINTER_EXCEPTION | 0)) == -1)
11586 SWIG_fail;
d14a1e28 11587 if (arg2 == NULL) {
15afbcd0
RD
11588 PyErr_SetString(PyExc_TypeError,"null reference");
11589 SWIG_fail;
994141e6 11590 }
15afbcd0
RD
11591 arg3 = (int) SWIG_AsInt(obj2);
11592 if (PyErr_Occurred()) SWIG_fail;
11593 arg4 = (int) SWIG_AsInt(obj3);
11594 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 11595 if (obj4) {
15afbcd0
RD
11596 arg5 = (bool) SWIG_AsBool(obj4);
11597 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11598 }
11599 {
11600 PyThreadState* __tstate = wxPyBeginAllowThreads();
11601 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11602
11603 wxPyEndAllowThreads(__tstate);
11604 if (PyErr_Occurred()) SWIG_fail;
11605 }
11606 Py_INCREF(Py_None); resultobj = Py_None;
11607 return resultobj;
11608 fail:
11609 return NULL;
11610}
11611
11612
03e37cd5 11613static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11614 PyObject *resultobj;
11615 wxDC *arg1 = (wxDC *) 0 ;
11616 wxBitmap *arg2 = 0 ;
11617 wxPoint *arg3 = 0 ;
e811c8ce 11618 bool arg4 = (bool) False ;
d14a1e28
RD
11619 wxPoint temp3 ;
11620 PyObject * obj0 = 0 ;
11621 PyObject * obj1 = 0 ;
11622 PyObject * obj2 = 0 ;
11623 PyObject * obj3 = 0 ;
11624 char *kwnames[] = {
11625 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11626 };
11627
03e37cd5 11628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11631 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11632 SWIG_POINTER_EXCEPTION | 0)) == -1)
11633 SWIG_fail;
d14a1e28 11634 if (arg2 == NULL) {
15afbcd0
RD
11635 PyErr_SetString(PyExc_TypeError,"null reference");
11636 SWIG_fail;
d14a1e28
RD
11637 }
11638 {
11639 arg3 = &temp3;
11640 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11641 }
11642 if (obj3) {
15afbcd0
RD
11643 arg4 = (bool) SWIG_AsBool(obj3);
11644 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11645 }
11646 {
11647 PyThreadState* __tstate = wxPyBeginAllowThreads();
11648 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11649
11650 wxPyEndAllowThreads(__tstate);
11651 if (PyErr_Occurred()) SWIG_fail;
11652 }
11653 Py_INCREF(Py_None); resultobj = Py_None;
11654 return resultobj;
11655 fail:
11656 return NULL;
11657}
11658
11659
03e37cd5 11660static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11661 PyObject *resultobj;
11662 wxDC *arg1 = (wxDC *) 0 ;
11663 wxString *arg2 = 0 ;
e811c8ce
RD
11664 int arg3 ;
11665 int arg4 ;
11666 bool temp2 = False ;
d14a1e28
RD
11667 PyObject * obj0 = 0 ;
11668 PyObject * obj1 = 0 ;
994141e6
RD
11669 PyObject * obj2 = 0 ;
11670 PyObject * obj3 = 0 ;
d14a1e28
RD
11671 char *kwnames[] = {
11672 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11673 };
11674
03e37cd5 11675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11678 {
11679 arg2 = wxString_in_helper(obj1);
11680 if (arg2 == NULL) SWIG_fail;
e811c8ce 11681 temp2 = True;
d14a1e28 11682 }
15afbcd0
RD
11683 arg3 = (int) SWIG_AsInt(obj2);
11684 if (PyErr_Occurred()) SWIG_fail;
11685 arg4 = (int) SWIG_AsInt(obj3);
11686 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11687 {
11688 PyThreadState* __tstate = wxPyBeginAllowThreads();
11689 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11690
11691 wxPyEndAllowThreads(__tstate);
11692 if (PyErr_Occurred()) SWIG_fail;
11693 }
11694 Py_INCREF(Py_None); resultobj = Py_None;
11695 {
11696 if (temp2)
11697 delete arg2;
11698 }
11699 return resultobj;
11700 fail:
11701 {
11702 if (temp2)
11703 delete arg2;
11704 }
11705 return NULL;
11706}
11707
11708
03e37cd5 11709static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11710 PyObject *resultobj;
11711 wxDC *arg1 = (wxDC *) 0 ;
11712 wxString *arg2 = 0 ;
11713 wxPoint *arg3 = 0 ;
e811c8ce 11714 bool temp2 = False ;
d14a1e28
RD
11715 wxPoint temp3 ;
11716 PyObject * obj0 = 0 ;
11717 PyObject * obj1 = 0 ;
11718 PyObject * obj2 = 0 ;
11719 char *kwnames[] = {
11720 (char *) "self",(char *) "text",(char *) "pt", NULL
11721 };
11722
03e37cd5 11723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11726 {
11727 arg2 = wxString_in_helper(obj1);
11728 if (arg2 == NULL) SWIG_fail;
e811c8ce 11729 temp2 = True;
d14a1e28
RD
11730 }
11731 {
11732 arg3 = &temp3;
11733 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11734 }
11735 {
11736 PyThreadState* __tstate = wxPyBeginAllowThreads();
11737 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11738
11739 wxPyEndAllowThreads(__tstate);
11740 if (PyErr_Occurred()) SWIG_fail;
11741 }
11742 Py_INCREF(Py_None); resultobj = Py_None;
11743 {
11744 if (temp2)
11745 delete arg2;
11746 }
11747 return resultobj;
11748 fail:
11749 {
11750 if (temp2)
11751 delete arg2;
11752 }
11753 return NULL;
11754}
11755
11756
03e37cd5 11757static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11758 PyObject *resultobj;
11759 wxDC *arg1 = (wxDC *) 0 ;
11760 wxString *arg2 = 0 ;
e811c8ce
RD
11761 int arg3 ;
11762 int arg4 ;
d14a1e28 11763 double arg5 ;
e811c8ce 11764 bool temp2 = False ;
d14a1e28
RD
11765 PyObject * obj0 = 0 ;
11766 PyObject * obj1 = 0 ;
994141e6
RD
11767 PyObject * obj2 = 0 ;
11768 PyObject * obj3 = 0 ;
11769 PyObject * obj4 = 0 ;
d14a1e28
RD
11770 char *kwnames[] = {
11771 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11772 };
11773
03e37cd5 11774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
11775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11777 {
11778 arg2 = wxString_in_helper(obj1);
11779 if (arg2 == NULL) SWIG_fail;
e811c8ce 11780 temp2 = True;
d14a1e28 11781 }
15afbcd0
RD
11782 arg3 = (int) SWIG_AsInt(obj2);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 arg4 = (int) SWIG_AsInt(obj3);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 arg5 = (double) SWIG_AsDouble(obj4);
11787 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11788 {
11789 PyThreadState* __tstate = wxPyBeginAllowThreads();
11790 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11791
11792 wxPyEndAllowThreads(__tstate);
11793 if (PyErr_Occurred()) SWIG_fail;
11794 }
11795 Py_INCREF(Py_None); resultobj = Py_None;
11796 {
11797 if (temp2)
11798 delete arg2;
11799 }
11800 return resultobj;
11801 fail:
11802 {
11803 if (temp2)
11804 delete arg2;
11805 }
11806 return NULL;
11807}
11808
11809
03e37cd5 11810static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11811 PyObject *resultobj;
11812 wxDC *arg1 = (wxDC *) 0 ;
11813 wxString *arg2 = 0 ;
11814 wxPoint *arg3 = 0 ;
11815 double arg4 ;
e811c8ce 11816 bool temp2 = False ;
d14a1e28
RD
11817 wxPoint temp3 ;
11818 PyObject * obj0 = 0 ;
11819 PyObject * obj1 = 0 ;
11820 PyObject * obj2 = 0 ;
994141e6 11821 PyObject * obj3 = 0 ;
d14a1e28
RD
11822 char *kwnames[] = {
11823 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11824 };
11825
03e37cd5 11826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11829 {
11830 arg2 = wxString_in_helper(obj1);
11831 if (arg2 == NULL) SWIG_fail;
e811c8ce 11832 temp2 = True;
d14a1e28
RD
11833 }
11834 {
11835 arg3 = &temp3;
11836 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11837 }
15afbcd0
RD
11838 arg4 = (double) SWIG_AsDouble(obj3);
11839 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11840 {
11841 PyThreadState* __tstate = wxPyBeginAllowThreads();
11842 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11843
11844 wxPyEndAllowThreads(__tstate);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 }
11847 Py_INCREF(Py_None); resultobj = Py_None;
11848 {
11849 if (temp2)
11850 delete arg2;
11851 }
11852 return resultobj;
11853 fail:
11854 {
11855 if (temp2)
11856 delete arg2;
11857 }
11858 return NULL;
11859}
11860
11861
03e37cd5 11862static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11863 PyObject *resultobj;
11864 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11865 int arg2 ;
11866 int arg3 ;
11867 int arg4 ;
11868 int arg5 ;
d14a1e28 11869 wxDC *arg6 = (wxDC *) 0 ;
e811c8ce
RD
11870 int arg7 ;
11871 int arg8 ;
d14a1e28 11872 int arg9 = (int) wxCOPY ;
e811c8ce
RD
11873 bool arg10 = (bool) False ;
11874 int arg11 = (int) -1 ;
11875 int arg12 = (int) -1 ;
d14a1e28
RD
11876 bool result;
11877 PyObject * obj0 = 0 ;
994141e6
RD
11878 PyObject * obj1 = 0 ;
11879 PyObject * obj2 = 0 ;
11880 PyObject * obj3 = 0 ;
11881 PyObject * obj4 = 0 ;
d14a1e28 11882 PyObject * obj5 = 0 ;
994141e6
RD
11883 PyObject * obj6 = 0 ;
11884 PyObject * obj7 = 0 ;
11885 PyObject * obj8 = 0 ;
d14a1e28 11886 PyObject * obj9 = 0 ;
994141e6
RD
11887 PyObject * obj10 = 0 ;
11888 PyObject * obj11 = 0 ;
d14a1e28
RD
11889 char *kwnames[] = {
11890 (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
11891 };
11892
03e37cd5 11893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
15afbcd0
RD
11894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11896 arg2 = (int) SWIG_AsInt(obj1);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 arg3 = (int) SWIG_AsInt(obj2);
11899 if (PyErr_Occurred()) SWIG_fail;
11900 arg4 = (int) SWIG_AsInt(obj3);
11901 if (PyErr_Occurred()) SWIG_fail;
11902 arg5 = (int) SWIG_AsInt(obj4);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11906 arg7 = (int) SWIG_AsInt(obj6);
11907 if (PyErr_Occurred()) SWIG_fail;
11908 arg8 = (int) SWIG_AsInt(obj7);
11909 if (PyErr_Occurred()) SWIG_fail;
994141e6 11910 if (obj8) {
15afbcd0
RD
11911 arg9 = (int) SWIG_AsInt(obj8);
11912 if (PyErr_Occurred()) SWIG_fail;
994141e6 11913 }
d14a1e28 11914 if (obj9) {
15afbcd0
RD
11915 arg10 = (bool) SWIG_AsBool(obj9);
11916 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
11917 }
11918 if (obj10) {
15afbcd0
RD
11919 arg11 = (int) SWIG_AsInt(obj10);
11920 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
11921 }
11922 if (obj11) {
15afbcd0
RD
11923 arg12 = (int) SWIG_AsInt(obj11);
11924 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11925 }
11926 {
11927 PyThreadState* __tstate = wxPyBeginAllowThreads();
11928 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11929
11930 wxPyEndAllowThreads(__tstate);
11931 if (PyErr_Occurred()) SWIG_fail;
11932 }
4f89f6a3
RD
11933 {
11934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11935 }
d14a1e28
RD
11936 return resultobj;
11937 fail:
11938 return NULL;
11939}
11940
11941
03e37cd5 11942static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11943 PyObject *resultobj;
11944 wxDC *arg1 = (wxDC *) 0 ;
11945 wxPoint *arg2 = 0 ;
11946 wxSize *arg3 = 0 ;
11947 wxDC *arg4 = (wxDC *) 0 ;
11948 wxPoint *arg5 = 0 ;
11949 int arg6 = (int) wxCOPY ;
e811c8ce 11950 bool arg7 = (bool) False ;
d14a1e28
RD
11951 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11952 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11953 bool result;
11954 wxPoint temp2 ;
11955 wxSize temp3 ;
11956 wxPoint temp5 ;
11957 wxPoint temp8 ;
11958 PyObject * obj0 = 0 ;
11959 PyObject * obj1 = 0 ;
11960 PyObject * obj2 = 0 ;
11961 PyObject * obj3 = 0 ;
11962 PyObject * obj4 = 0 ;
994141e6 11963 PyObject * obj5 = 0 ;
d14a1e28
RD
11964 PyObject * obj6 = 0 ;
11965 PyObject * obj7 = 0 ;
11966 char *kwnames[] = {
11967 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11968 };
11969
03e37cd5 11970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
15afbcd0
RD
11971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11973 {
11974 arg2 = &temp2;
11975 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11976 }
11977 {
11978 arg3 = &temp3;
11979 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11980 }
15afbcd0
RD
11981 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11983 {
11984 arg5 = &temp5;
11985 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11986 }
994141e6 11987 if (obj5) {
15afbcd0
RD
11988 arg6 = (int) SWIG_AsInt(obj5);
11989 if (PyErr_Occurred()) SWIG_fail;
994141e6 11990 }
d14a1e28 11991 if (obj6) {
15afbcd0
RD
11992 arg7 = (bool) SWIG_AsBool(obj6);
11993 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11994 }
11995 if (obj7) {
11996 {
11997 arg8 = &temp8;
11998 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11999 }
12000 }
12001 {
12002 PyThreadState* __tstate = wxPyBeginAllowThreads();
12003 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12004
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
4f89f6a3
RD
12008 {
12009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12010 }
d14a1e28
RD
12011 return resultobj;
12012 fail:
12013 return NULL;
12014}
12015
12016
03e37cd5 12017static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12018 PyObject *resultobj;
12019 wxDC *arg1 = (wxDC *) 0 ;
12020 int arg2 ;
03e37cd5
RD
12021 int arg3 ;
12022 int arg4 ;
12023 int arg5 ;
d14a1e28
RD
12024 PyObject * obj0 = 0 ;
12025 PyObject * obj1 = 0 ;
994141e6
RD
12026 PyObject * obj2 = 0 ;
12027 PyObject * obj3 = 0 ;
03e37cd5 12028 PyObject * obj4 = 0 ;
d14a1e28 12029 char *kwnames[] = {
03e37cd5 12030 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d14a1e28
RD
12031 };
12032
03e37cd5 12033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
12034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
03e37cd5
RD
12036 arg2 = (int) SWIG_AsInt(obj1);
12037 if (PyErr_Occurred()) SWIG_fail;
12038 arg3 = (int) SWIG_AsInt(obj2);
12039 if (PyErr_Occurred()) SWIG_fail;
12040 arg4 = (int) SWIG_AsInt(obj3);
12041 if (PyErr_Occurred()) SWIG_fail;
12042 arg5 = (int) SWIG_AsInt(obj4);
12043 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12044 {
12045 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 12046 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
d14a1e28
RD
12047
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
12052 return resultobj;
12053 fail:
d14a1e28
RD
12054 return NULL;
12055}
12056
12057
03e37cd5 12058static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12059 PyObject *resultobj;
12060 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5
RD
12061 wxPoint *arg2 = 0 ;
12062 wxSize *arg3 = 0 ;
12063 wxPoint temp2 ;
12064 wxSize temp3 ;
d14a1e28
RD
12065 PyObject * obj0 = 0 ;
12066 PyObject * obj1 = 0 ;
994141e6 12067 PyObject * obj2 = 0 ;
d14a1e28 12068 char *kwnames[] = {
03e37cd5 12069 (char *) "self",(char *) "pt",(char *) "sz", NULL
d14a1e28
RD
12070 };
12071
03e37cd5 12072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
12073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 12075 {
03e37cd5
RD
12076 arg2 = &temp2;
12077 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
994141e6 12078 }
03e37cd5
RD
12079 {
12080 arg3 = &temp3;
12081 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
994141e6 12082 }
d14a1e28
RD
12083 {
12084 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 12085 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
d14a1e28
RD
12086
12087 wxPyEndAllowThreads(__tstate);
12088 if (PyErr_Occurred()) SWIG_fail;
12089 }
12090 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
12091 return resultobj;
12092 fail:
d14a1e28
RD
12093 return NULL;
12094}
12095
12096
03e37cd5 12097static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12098 PyObject *resultobj;
12099 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5 12100 wxRegion *arg2 = 0 ;
d14a1e28
RD
12101 PyObject * obj0 = 0 ;
12102 PyObject * obj1 = 0 ;
d14a1e28 12103 char *kwnames[] = {
03e37cd5 12104 (char *) "self",(char *) "region", NULL
d14a1e28
RD
12105 };
12106
03e37cd5
RD
12107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12110 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12111 SWIG_POINTER_EXCEPTION | 0)) == -1)
12112 SWIG_fail;
12113 if (arg2 == NULL) {
12114 PyErr_SetString(PyExc_TypeError,"null reference");
12115 SWIG_fail;
12116 }
12117 {
12118 PyThreadState* __tstate = wxPyBeginAllowThreads();
12119 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12120
12121 wxPyEndAllowThreads(__tstate);
12122 if (PyErr_Occurred()) SWIG_fail;
12123 }
12124 Py_INCREF(Py_None); resultobj = Py_None;
12125 return resultobj;
12126 fail:
12127 return NULL;
12128}
12129
12130
12131static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12132 PyObject *resultobj;
12133 wxDC *arg1 = (wxDC *) 0 ;
12134 wxRect *arg2 = 0 ;
12135 wxRect temp2 ;
12136 PyObject * obj0 = 0 ;
12137 PyObject * obj1 = 0 ;
12138 char *kwnames[] = {
12139 (char *) "self",(char *) "rect", NULL
12140 };
12141
12142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12145 {
12146 arg2 = &temp2;
12147 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12148 }
12149 {
12150 PyThreadState* __tstate = wxPyBeginAllowThreads();
12151 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12152
12153 wxPyEndAllowThreads(__tstate);
12154 if (PyErr_Occurred()) SWIG_fail;
12155 }
12156 Py_INCREF(Py_None); resultobj = Py_None;
12157 return resultobj;
12158 fail:
12159 return NULL;
12160}
12161
12162
12163static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12164 PyObject *resultobj;
12165 wxDC *arg1 = (wxDC *) 0 ;
12166 int arg2 ;
12167 wxPoint *arg3 = (wxPoint *) 0 ;
12168 int arg4 = (int) 0 ;
12169 int arg5 = (int) 0 ;
12170 PyObject * obj0 = 0 ;
12171 PyObject * obj1 = 0 ;
12172 PyObject * obj2 = 0 ;
12173 PyObject * obj3 = 0 ;
12174 char *kwnames[] = {
12175 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12176 };
12177
12178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12181 {
12182 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12183 if (arg3 == NULL) SWIG_fail;
12184 }
12185 if (obj2) {
12186 arg4 = (int) SWIG_AsInt(obj2);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 }
12189 if (obj3) {
12190 arg5 = (int) SWIG_AsInt(obj3);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 {
12194 PyThreadState* __tstate = wxPyBeginAllowThreads();
12195 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12196
12197 wxPyEndAllowThreads(__tstate);
12198 if (PyErr_Occurred()) SWIG_fail;
12199 }
12200 Py_INCREF(Py_None); resultobj = Py_None;
12201 {
12202 if (arg3) delete [] arg3;
12203 }
12204 return resultobj;
12205 fail:
12206 {
12207 if (arg3) delete [] arg3;
12208 }
12209 return NULL;
12210}
12211
12212
12213static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12214 PyObject *resultobj;
12215 wxDC *arg1 = (wxDC *) 0 ;
12216 int arg2 ;
12217 wxPoint *arg3 = (wxPoint *) 0 ;
12218 int arg4 = (int) 0 ;
12219 int arg5 = (int) 0 ;
12220 int arg6 = (int) wxODDEVEN_RULE ;
12221 PyObject * obj0 = 0 ;
12222 PyObject * obj1 = 0 ;
12223 PyObject * obj2 = 0 ;
12224 PyObject * obj3 = 0 ;
12225 PyObject * obj4 = 0 ;
12226 char *kwnames[] = {
12227 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12228 };
12229
12230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12233 {
12234 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12235 if (arg3 == NULL) SWIG_fail;
12236 }
12237 if (obj2) {
12238 arg4 = (int) SWIG_AsInt(obj2);
12239 if (PyErr_Occurred()) SWIG_fail;
12240 }
12241 if (obj3) {
12242 arg5 = (int) SWIG_AsInt(obj3);
12243 if (PyErr_Occurred()) SWIG_fail;
12244 }
12245 if (obj4) {
12246 arg6 = (int) SWIG_AsInt(obj4);
12247 if (PyErr_Occurred()) SWIG_fail;
12248 }
12249 {
12250 PyThreadState* __tstate = wxPyBeginAllowThreads();
12251 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12252
12253 wxPyEndAllowThreads(__tstate);
12254 if (PyErr_Occurred()) SWIG_fail;
12255 }
12256 Py_INCREF(Py_None); resultobj = Py_None;
12257 {
12258 if (arg3) delete [] arg3;
12259 }
12260 return resultobj;
12261 fail:
12262 {
12263 if (arg3) delete [] arg3;
12264 }
12265 return NULL;
12266}
12267
12268
12269static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12270 PyObject *resultobj;
12271 wxDC *arg1 = (wxDC *) 0 ;
12272 wxString *arg2 = 0 ;
12273 wxRect *arg3 = 0 ;
12274 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12275 int arg5 = (int) -1 ;
12276 bool temp2 = False ;
12277 wxRect temp3 ;
12278 PyObject * obj0 = 0 ;
12279 PyObject * obj1 = 0 ;
12280 PyObject * obj2 = 0 ;
12281 PyObject * obj3 = 0 ;
12282 PyObject * obj4 = 0 ;
12283 char *kwnames[] = {
12284 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12285 };
12286
12287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
12288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12290 {
12291 arg2 = wxString_in_helper(obj1);
12292 if (arg2 == NULL) SWIG_fail;
e811c8ce 12293 temp2 = True;
d14a1e28
RD
12294 }
12295 {
12296 arg3 = &temp3;
12297 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12298 }
994141e6 12299 if (obj3) {
15afbcd0
RD
12300 arg4 = (int) SWIG_AsInt(obj3);
12301 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
12302 }
12303 if (obj4) {
15afbcd0
RD
12304 arg5 = (int) SWIG_AsInt(obj4);
12305 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
12306 }
12307 {
12308 PyThreadState* __tstate = wxPyBeginAllowThreads();
12309 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
d14a1e28
RD
12310
12311 wxPyEndAllowThreads(__tstate);
12312 if (PyErr_Occurred()) SWIG_fail;
12313 }
12314 Py_INCREF(Py_None); resultobj = Py_None;
12315 {
12316 if (temp2)
12317 delete arg2;
12318 }
12319 return resultobj;
12320 fail:
12321 {
12322 if (temp2)
12323 delete arg2;
12324 }
12325 return NULL;
12326}
12327
12328
12329static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12330 PyObject *resultobj;
12331 wxDC *arg1 = (wxDC *) 0 ;
12332 wxString *arg2 = 0 ;
12333 wxBitmap *arg3 = 0 ;
12334 wxRect *arg4 = 0 ;
12335 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12336 int arg6 = (int) -1 ;
12337 wxRect result;
e811c8ce 12338 bool temp2 = False ;
d14a1e28
RD
12339 wxRect temp4 ;
12340 PyObject * obj0 = 0 ;
12341 PyObject * obj1 = 0 ;
12342 PyObject * obj2 = 0 ;
12343 PyObject * obj3 = 0 ;
994141e6
RD
12344 PyObject * obj4 = 0 ;
12345 PyObject * obj5 = 0 ;
d14a1e28
RD
12346 char *kwnames[] = {
12347 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12348 };
12349
994141e6 12350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15afbcd0
RD
12351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12353 {
12354 arg2 = wxString_in_helper(obj1);
12355 if (arg2 == NULL) SWIG_fail;
e811c8ce 12356 temp2 = True;
d14a1e28 12357 }
15afbcd0
RD
12358 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12359 SWIG_POINTER_EXCEPTION | 0)) == -1)
12360 SWIG_fail;
d14a1e28 12361 if (arg3 == NULL) {
15afbcd0
RD
12362 PyErr_SetString(PyExc_TypeError,"null reference");
12363 SWIG_fail;
d14a1e28
RD
12364 }
12365 {
12366 arg4 = &temp4;
12367 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12368 }
994141e6 12369 if (obj4) {
15afbcd0
RD
12370 arg5 = (int) SWIG_AsInt(obj4);
12371 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
12372 }
12373 if (obj5) {
15afbcd0
RD
12374 arg6 = (int) SWIG_AsInt(obj5);
12375 if (PyErr_Occurred()) SWIG_fail;
994141e6 12376 }
d14a1e28
RD
12377 {
12378 PyThreadState* __tstate = wxPyBeginAllowThreads();
12379 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12380
12381 wxPyEndAllowThreads(__tstate);
12382 if (PyErr_Occurred()) SWIG_fail;
12383 }
12384 {
12385 wxRect * resultptr;
12386 resultptr = new wxRect((wxRect &) result);
15afbcd0 12387 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
12388 }
12389 {
12390 if (temp2)
12391 delete arg2;
12392 }
12393 return resultobj;
12394 fail:
12395 {
12396 if (temp2)
12397 delete arg2;
12398 }
12399 return NULL;
12400}
12401
12402
12403static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12404 PyObject *resultobj;
12405 wxDC *arg1 = (wxDC *) 0 ;
12406 int arg2 ;
12407 wxPoint *arg3 = (wxPoint *) 0 ;
12408 PyObject * obj0 = 0 ;
12409 PyObject * obj1 = 0 ;
12410 char *kwnames[] = {
12411 (char *) "self",(char *) "points", NULL
12412 };
12413
12414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12417 {
12418 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12419 if (arg3 == NULL) SWIG_fail;
12420 }
12421 {
12422 PyThreadState* __tstate = wxPyBeginAllowThreads();
12423 (arg1)->DrawSpline(arg2,arg3);
12424
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 Py_INCREF(Py_None); resultobj = Py_None;
12429 {
12430 if (arg3) delete [] arg3;
12431 }
12432 return resultobj;
12433 fail:
12434 {
12435 if (arg3) delete [] arg3;
12436 }
12437 return NULL;
12438}
12439
12440
12441static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12442 PyObject *resultobj;
12443 wxDC *arg1 = (wxDC *) 0 ;
12444 PyObject * obj0 = 0 ;
12445 char *kwnames[] = {
12446 (char *) "self", NULL
12447 };
12448
12449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
15afbcd0
RD
12450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12452 {
12453 PyThreadState* __tstate = wxPyBeginAllowThreads();
12454 (arg1)->Clear();
12455
12456 wxPyEndAllowThreads(__tstate);
12457 if (PyErr_Occurred()) SWIG_fail;
12458 }
12459 Py_INCREF(Py_None); resultobj = Py_None;
12460 return resultobj;
12461 fail:
12462 return NULL;
12463}
12464
12465
12466static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12467 PyObject *resultobj;
12468 wxDC *arg1 = (wxDC *) 0 ;
12469 wxString *arg2 = 0 ;
12470 bool result;
e811c8ce 12471 bool temp2 = False ;
d14a1e28
RD
12472 PyObject * obj0 = 0 ;
12473 PyObject * obj1 = 0 ;
12474 char *kwnames[] = {
12475 (char *) "self",(char *) "message", NULL
12476 };
12477
12478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12481 {
12482 arg2 = wxString_in_helper(obj1);
12483 if (arg2 == NULL) SWIG_fail;
e811c8ce 12484 temp2 = True;
d14a1e28
RD
12485 }
12486 {
12487 PyThreadState* __tstate = wxPyBeginAllowThreads();
12488 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12489
12490 wxPyEndAllowThreads(__tstate);
12491 if (PyErr_Occurred()) SWIG_fail;
12492 }
4f89f6a3
RD
12493 {
12494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12495 }
d14a1e28
RD
12496 {
12497 if (temp2)
12498 delete arg2;
12499 }
12500 return resultobj;
12501 fail:
12502 {
12503 if (temp2)
12504 delete arg2;
12505 }
12506 return NULL;
12507}
12508
12509
12510static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12511 PyObject *resultobj;
12512 wxDC *arg1 = (wxDC *) 0 ;
12513 PyObject * obj0 = 0 ;
12514 char *kwnames[] = {
12515 (char *) "self", NULL
12516 };
12517
12518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
15afbcd0
RD
12519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12521 {
12522 PyThreadState* __tstate = wxPyBeginAllowThreads();
12523 (arg1)->EndDoc();
12524
12525 wxPyEndAllowThreads(__tstate);
12526 if (PyErr_Occurred()) SWIG_fail;
12527 }
12528 Py_INCREF(Py_None); resultobj = Py_None;
12529 return resultobj;
12530 fail:
12531 return NULL;
12532}
12533
12534
12535static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12536 PyObject *resultobj;
12537 wxDC *arg1 = (wxDC *) 0 ;
12538 PyObject * obj0 = 0 ;
12539 char *kwnames[] = {
12540 (char *) "self", NULL
12541 };
12542
12543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
15afbcd0
RD
12544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 (arg1)->StartPage();
12549
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 Py_INCREF(Py_None); resultobj = Py_None;
12554 return resultobj;
12555 fail:
12556 return NULL;
12557}
12558
12559
12560static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12561 PyObject *resultobj;
12562 wxDC *arg1 = (wxDC *) 0 ;
12563 PyObject * obj0 = 0 ;
12564 char *kwnames[] = {
12565 (char *) "self", NULL
12566 };
12567
12568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
15afbcd0
RD
12569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12571 {
12572 PyThreadState* __tstate = wxPyBeginAllowThreads();
12573 (arg1)->EndPage();
12574
12575 wxPyEndAllowThreads(__tstate);
12576 if (PyErr_Occurred()) SWIG_fail;
12577 }
12578 Py_INCREF(Py_None); resultobj = Py_None;
12579 return resultobj;
12580 fail:
12581 return NULL;
12582}
12583
12584
12585static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12586 PyObject *resultobj;
12587 wxDC *arg1 = (wxDC *) 0 ;
12588 wxFont *arg2 = 0 ;
12589 PyObject * obj0 = 0 ;
12590 PyObject * obj1 = 0 ;
12591 char *kwnames[] = {
12592 (char *) "self",(char *) "font", NULL
12593 };
12594
12595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12598 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12599 SWIG_POINTER_EXCEPTION | 0)) == -1)
12600 SWIG_fail;
d14a1e28 12601 if (arg2 == NULL) {
15afbcd0
RD
12602 PyErr_SetString(PyExc_TypeError,"null reference");
12603 SWIG_fail;
d14a1e28
RD
12604 }
12605 {
12606 PyThreadState* __tstate = wxPyBeginAllowThreads();
12607 (arg1)->SetFont((wxFont const &)*arg2);
12608
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 Py_INCREF(Py_None); resultobj = Py_None;
12613 return resultobj;
12614 fail:
12615 return NULL;
12616}
12617
12618
12619static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12620 PyObject *resultobj;
12621 wxDC *arg1 = (wxDC *) 0 ;
12622 wxPen *arg2 = 0 ;
12623 PyObject * obj0 = 0 ;
12624 PyObject * obj1 = 0 ;
12625 char *kwnames[] = {
12626 (char *) "self",(char *) "pen", NULL
12627 };
12628
12629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12632 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12633 SWIG_POINTER_EXCEPTION | 0)) == -1)
12634 SWIG_fail;
d14a1e28 12635 if (arg2 == NULL) {
15afbcd0
RD
12636 PyErr_SetString(PyExc_TypeError,"null reference");
12637 SWIG_fail;
d14a1e28
RD
12638 }
12639 {
12640 PyThreadState* __tstate = wxPyBeginAllowThreads();
12641 (arg1)->SetPen((wxPen const &)*arg2);
12642
12643 wxPyEndAllowThreads(__tstate);
12644 if (PyErr_Occurred()) SWIG_fail;
12645 }
12646 Py_INCREF(Py_None); resultobj = Py_None;
12647 return resultobj;
12648 fail:
12649 return NULL;
12650}
12651
12652
12653static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12654 PyObject *resultobj;
12655 wxDC *arg1 = (wxDC *) 0 ;
12656 wxBrush *arg2 = 0 ;
12657 PyObject * obj0 = 0 ;
12658 PyObject * obj1 = 0 ;
12659 char *kwnames[] = {
12660 (char *) "self",(char *) "brush", NULL
12661 };
12662
12663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12666 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12667 SWIG_POINTER_EXCEPTION | 0)) == -1)
12668 SWIG_fail;
d14a1e28 12669 if (arg2 == NULL) {
15afbcd0
RD
12670 PyErr_SetString(PyExc_TypeError,"null reference");
12671 SWIG_fail;
d14a1e28
RD
12672 }
12673 {
12674 PyThreadState* __tstate = wxPyBeginAllowThreads();
12675 (arg1)->SetBrush((wxBrush const &)*arg2);
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_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12688 PyObject *resultobj;
12689 wxDC *arg1 = (wxDC *) 0 ;
12690 wxBrush *arg2 = 0 ;
12691 PyObject * obj0 = 0 ;
12692 PyObject * obj1 = 0 ;
12693 char *kwnames[] = {
12694 (char *) "self",(char *) "brush", NULL
12695 };
12696
12697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12700 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12701 SWIG_POINTER_EXCEPTION | 0)) == -1)
12702 SWIG_fail;
d14a1e28 12703 if (arg2 == NULL) {
15afbcd0
RD
12704 PyErr_SetString(PyExc_TypeError,"null reference");
12705 SWIG_fail;
d14a1e28
RD
12706 }
12707 {
12708 PyThreadState* __tstate = wxPyBeginAllowThreads();
12709 (arg1)->SetBackground((wxBrush const &)*arg2);
12710
12711 wxPyEndAllowThreads(__tstate);
12712 if (PyErr_Occurred()) SWIG_fail;
12713 }
12714 Py_INCREF(Py_None); resultobj = Py_None;
12715 return resultobj;
12716 fail:
12717 return NULL;
12718}
12719
12720
12721static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12722 PyObject *resultobj;
12723 wxDC *arg1 = (wxDC *) 0 ;
12724 int arg2 ;
12725 PyObject * obj0 = 0 ;
994141e6 12726 PyObject * obj1 = 0 ;
d14a1e28
RD
12727 char *kwnames[] = {
12728 (char *) "self",(char *) "mode", NULL
12729 };
12730
994141e6 12731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12734 arg2 = (int) SWIG_AsInt(obj1);
12735 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12736 {
12737 PyThreadState* __tstate = wxPyBeginAllowThreads();
12738 (arg1)->SetBackgroundMode(arg2);
12739
12740 wxPyEndAllowThreads(__tstate);
12741 if (PyErr_Occurred()) SWIG_fail;
12742 }
12743 Py_INCREF(Py_None); resultobj = Py_None;
12744 return resultobj;
12745 fail:
12746 return NULL;
12747}
12748
12749
12750static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12751 PyObject *resultobj;
12752 wxDC *arg1 = (wxDC *) 0 ;
12753 wxPalette *arg2 = 0 ;
12754 PyObject * obj0 = 0 ;
12755 PyObject * obj1 = 0 ;
12756 char *kwnames[] = {
12757 (char *) "self",(char *) "palette", NULL
12758 };
12759
12760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12763 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12764 SWIG_POINTER_EXCEPTION | 0)) == -1)
12765 SWIG_fail;
d14a1e28 12766 if (arg2 == NULL) {
15afbcd0
RD
12767 PyErr_SetString(PyExc_TypeError,"null reference");
12768 SWIG_fail;
d14a1e28
RD
12769 }
12770 {
12771 PyThreadState* __tstate = wxPyBeginAllowThreads();
12772 (arg1)->SetPalette((wxPalette const &)*arg2);
12773
12774 wxPyEndAllowThreads(__tstate);
12775 if (PyErr_Occurred()) SWIG_fail;
12776 }
12777 Py_INCREF(Py_None); resultobj = Py_None;
12778 return resultobj;
12779 fail:
12780 return NULL;
12781}
12782
12783
d14a1e28
RD
12784static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12785 PyObject *resultobj;
12786 wxDC *arg1 = (wxDC *) 0 ;
12787 PyObject * obj0 = 0 ;
12788 char *kwnames[] = {
12789 (char *) "self", NULL
12790 };
12791
12792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
15afbcd0
RD
12793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12795 {
12796 PyThreadState* __tstate = wxPyBeginAllowThreads();
12797 (arg1)->DestroyClippingRegion();
12798
12799 wxPyEndAllowThreads(__tstate);
12800 if (PyErr_Occurred()) SWIG_fail;
12801 }
12802 Py_INCREF(Py_None); resultobj = Py_None;
12803 return resultobj;
12804 fail:
12805 return NULL;
12806}
12807
12808
12809static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12810 PyObject *resultobj;
12811 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
12812 int *arg2 = (int *) 0 ;
12813 int *arg3 = (int *) 0 ;
12814 int *arg4 = (int *) 0 ;
12815 int *arg5 = (int *) 0 ;
12816 int temp2 ;
12817 int temp3 ;
12818 int temp4 ;
12819 int temp5 ;
d14a1e28
RD
12820 PyObject * obj0 = 0 ;
12821 char *kwnames[] = {
12822 (char *) "self", NULL
12823 };
12824
12825 arg2 = &temp2;
12826 arg3 = &temp3;
12827 arg4 = &temp4;
12828 arg5 = &temp5;
12829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
15afbcd0
RD
12830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12832 {
12833 PyThreadState* __tstate = wxPyBeginAllowThreads();
12834 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12835
12836 wxPyEndAllowThreads(__tstate);
12837 if (PyErr_Occurred()) SWIG_fail;
12838 }
12839 Py_INCREF(Py_None); resultobj = Py_None;
12840 {
12841 PyObject *o = PyInt_FromLong((long) (*arg2));
12842 resultobj = t_output_helper(resultobj,o);
12843 }
12844 {
12845 PyObject *o = PyInt_FromLong((long) (*arg3));
12846 resultobj = t_output_helper(resultobj,o);
12847 }
12848 {
12849 PyObject *o = PyInt_FromLong((long) (*arg4));
12850 resultobj = t_output_helper(resultobj,o);
12851 }
12852 {
12853 PyObject *o = PyInt_FromLong((long) (*arg5));
12854 resultobj = t_output_helper(resultobj,o);
12855 }
12856 return resultobj;
12857 fail:
12858 return NULL;
12859}
12860
12861
12862static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12863 PyObject *resultobj;
12864 wxDC *arg1 = (wxDC *) 0 ;
12865 wxRect result;
12866 PyObject * obj0 = 0 ;
12867 char *kwnames[] = {
12868 (char *) "self", NULL
12869 };
12870
12871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
15afbcd0
RD
12872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12874 {
12875 PyThreadState* __tstate = wxPyBeginAllowThreads();
12876 result = wxDC_GetClippingRect(arg1);
12877
12878 wxPyEndAllowThreads(__tstate);
12879 if (PyErr_Occurred()) SWIG_fail;
12880 }
12881 {
12882 wxRect * resultptr;
12883 resultptr = new wxRect((wxRect &) result);
15afbcd0 12884 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
12885 }
12886 return resultobj;
12887 fail:
12888 return NULL;
12889}
12890
12891
12892static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12893 PyObject *resultobj;
12894 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 12895 int result;
d14a1e28
RD
12896 PyObject * obj0 = 0 ;
12897 char *kwnames[] = {
12898 (char *) "self", NULL
12899 };
12900
12901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
12902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12904 {
12905 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 12906 result = (int)((wxDC const *)arg1)->GetCharHeight();
d14a1e28
RD
12907
12908 wxPyEndAllowThreads(__tstate);
12909 if (PyErr_Occurred()) SWIG_fail;
12910 }
15afbcd0 12911 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
12912 return resultobj;
12913 fail:
12914 return NULL;
12915}
12916
12917
12918static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12919 PyObject *resultobj;
12920 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 12921 int result;
d14a1e28
RD
12922 PyObject * obj0 = 0 ;
12923 char *kwnames[] = {
12924 (char *) "self", NULL
12925 };
12926
12927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
12928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12930 {
12931 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 12932 result = (int)((wxDC const *)arg1)->GetCharWidth();
d14a1e28
RD
12933
12934 wxPyEndAllowThreads(__tstate);
12935 if (PyErr_Occurred()) SWIG_fail;
12936 }
15afbcd0 12937 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
12938 return resultobj;
12939 fail:
12940 return NULL;
12941}
12942
12943
12944static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12945 PyObject *resultobj;
12946 wxDC *arg1 = (wxDC *) 0 ;
12947 wxString *arg2 = 0 ;
e811c8ce
RD
12948 int *arg3 = (int *) 0 ;
12949 int *arg4 = (int *) 0 ;
12950 bool temp2 = False ;
12951 int temp3 ;
12952 int temp4 ;
d14a1e28
RD
12953 PyObject * obj0 = 0 ;
12954 PyObject * obj1 = 0 ;
12955 char *kwnames[] = {
12956 (char *) "self",(char *) "string", NULL
12957 };
12958
12959 arg3 = &temp3;
12960 arg4 = &temp4;
12961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12964 {
12965 arg2 = wxString_in_helper(obj1);
12966 if (arg2 == NULL) SWIG_fail;
e811c8ce 12967 temp2 = True;
d14a1e28
RD
12968 }
12969 {
12970 PyThreadState* __tstate = wxPyBeginAllowThreads();
12971 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12972
12973 wxPyEndAllowThreads(__tstate);
12974 if (PyErr_Occurred()) SWIG_fail;
12975 }
12976 Py_INCREF(Py_None); resultobj = Py_None;
12977 {
12978 PyObject *o = PyInt_FromLong((long) (*arg3));
12979 resultobj = t_output_helper(resultobj,o);
12980 }
12981 {
12982 PyObject *o = PyInt_FromLong((long) (*arg4));
12983 resultobj = t_output_helper(resultobj,o);
12984 }
12985 {
12986 if (temp2)
12987 delete arg2;
12988 }
12989 return resultobj;
12990 fail:
12991 {
12992 if (temp2)
12993 delete arg2;
12994 }
12995 return NULL;
12996}
12997
12998
12999static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13000 PyObject *resultobj;
13001 wxDC *arg1 = (wxDC *) 0 ;
13002 wxString *arg2 = 0 ;
e811c8ce
RD
13003 int *arg3 = (int *) 0 ;
13004 int *arg4 = (int *) 0 ;
13005 int *arg5 = (int *) 0 ;
13006 int *arg6 = (int *) 0 ;
d14a1e28 13007 wxFont *arg7 = (wxFont *) NULL ;
e811c8ce
RD
13008 bool temp2 = False ;
13009 int temp3 ;
13010 int temp4 ;
13011 int temp5 ;
13012 int temp6 ;
d14a1e28
RD
13013 PyObject * obj0 = 0 ;
13014 PyObject * obj1 = 0 ;
13015 PyObject * obj2 = 0 ;
13016 char *kwnames[] = {
13017 (char *) "self",(char *) "string",(char *) "font", NULL
13018 };
13019
13020 arg3 = &temp3;
13021 arg4 = &temp4;
13022 arg5 = &temp5;
13023 arg6 = &temp6;
13024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
13025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13027 {
13028 arg2 = wxString_in_helper(obj1);
13029 if (arg2 == NULL) SWIG_fail;
e811c8ce 13030 temp2 = True;
d14a1e28
RD
13031 }
13032 if (obj2) {
15afbcd0
RD
13033 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13035 }
13036 {
13037 PyThreadState* __tstate = wxPyBeginAllowThreads();
13038 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13039
13040 wxPyEndAllowThreads(__tstate);
13041 if (PyErr_Occurred()) SWIG_fail;
13042 }
13043 Py_INCREF(Py_None); resultobj = Py_None;
13044 {
13045 PyObject *o = PyInt_FromLong((long) (*arg3));
13046 resultobj = t_output_helper(resultobj,o);
13047 }
13048 {
13049 PyObject *o = PyInt_FromLong((long) (*arg4));
13050 resultobj = t_output_helper(resultobj,o);
13051 }
13052 {
13053 PyObject *o = PyInt_FromLong((long) (*arg5));
13054 resultobj = t_output_helper(resultobj,o);
13055 }
13056 {
13057 PyObject *o = PyInt_FromLong((long) (*arg6));
13058 resultobj = t_output_helper(resultobj,o);
13059 }
13060 {
13061 if (temp2)
13062 delete arg2;
13063 }
13064 return resultobj;
13065 fail:
13066 {
13067 if (temp2)
13068 delete arg2;
13069 }
13070 return NULL;
13071}
13072
13073
13074static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13075 PyObject *resultobj;
13076 wxDC *arg1 = (wxDC *) 0 ;
13077 wxString *arg2 = 0 ;
e811c8ce
RD
13078 int *arg3 = (int *) 0 ;
13079 int *arg4 = (int *) 0 ;
13080 int *arg5 = (int *) 0 ;
d14a1e28 13081 wxFont *arg6 = (wxFont *) NULL ;
e811c8ce
RD
13082 bool temp2 = False ;
13083 int temp3 ;
13084 int temp4 ;
13085 int temp5 ;
d14a1e28
RD
13086 PyObject * obj0 = 0 ;
13087 PyObject * obj1 = 0 ;
13088 PyObject * obj2 = 0 ;
13089 char *kwnames[] = {
13090 (char *) "self",(char *) "text",(char *) "font", NULL
13091 };
13092
13093 arg3 = &temp3;
13094 arg4 = &temp4;
13095 arg5 = &temp5;
13096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
13097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13099 {
13100 arg2 = wxString_in_helper(obj1);
13101 if (arg2 == NULL) SWIG_fail;
e811c8ce 13102 temp2 = True;
d14a1e28
RD
13103 }
13104 if (obj2) {
15afbcd0
RD
13105 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13107 }
13108 {
13109 PyThreadState* __tstate = wxPyBeginAllowThreads();
13110 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13111
13112 wxPyEndAllowThreads(__tstate);
13113 if (PyErr_Occurred()) SWIG_fail;
13114 }
13115 Py_INCREF(Py_None); resultobj = Py_None;
13116 {
13117 PyObject *o = PyInt_FromLong((long) (*arg3));
13118 resultobj = t_output_helper(resultobj,o);
13119 }
13120 {
13121 PyObject *o = PyInt_FromLong((long) (*arg4));
13122 resultobj = t_output_helper(resultobj,o);
13123 }
13124 {
13125 PyObject *o = PyInt_FromLong((long) (*arg5));
13126 resultobj = t_output_helper(resultobj,o);
13127 }
13128 {
13129 if (temp2)
13130 delete arg2;
13131 }
13132 return resultobj;
13133 fail:
13134 {
13135 if (temp2)
13136 delete arg2;
13137 }
13138 return NULL;
13139}
13140
13141
db914595
RD
13142static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13143 PyObject *resultobj;
13144 wxDC *arg1 = (wxDC *) 0 ;
13145 wxString *arg2 = 0 ;
13146 wxArrayInt result;
13147 bool temp2 = False ;
13148 PyObject * obj0 = 0 ;
13149 PyObject * obj1 = 0 ;
13150 char *kwnames[] = {
13151 (char *) "self",(char *) "text", NULL
13152 };
13153
13154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
db914595
RD
13157 {
13158 arg2 = wxString_in_helper(obj1);
13159 if (arg2 == NULL) SWIG_fail;
13160 temp2 = True;
13161 }
13162 {
13163 PyThreadState* __tstate = wxPyBeginAllowThreads();
13164 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13165
13166 wxPyEndAllowThreads(__tstate);
13167 if (PyErr_Occurred()) SWIG_fail;
13168 }
13169 {
13170 resultobj = PyList_New(0);
13171 size_t idx;
13172 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13173 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13174 PyList_Append(resultobj, val);
13175 Py_DECREF(val);
13176 }
13177 }
13178 {
13179 if (temp2)
13180 delete arg2;
13181 }
13182 return resultobj;
13183 fail:
13184 {
13185 if (temp2)
13186 delete arg2;
13187 }
13188 return NULL;
13189}
13190
13191
322913ce
RD
13192static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13193 PyObject *resultobj;
13194 wxDC *arg1 = (wxDC *) 0 ;
13195 wxSize result;
13196 PyObject * obj0 = 0 ;
13197 char *kwnames[] = {
13198 (char *) "self", NULL
13199 };
13200
13201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
15afbcd0
RD
13202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
322913ce
RD
13204 {
13205 PyThreadState* __tstate = wxPyBeginAllowThreads();
13206 result = (arg1)->GetSize();
13207
13208 wxPyEndAllowThreads(__tstate);
13209 if (PyErr_Occurred()) SWIG_fail;
13210 }
13211 {
13212 wxSize * resultptr;
13213 resultptr = new wxSize((wxSize &) result);
15afbcd0 13214 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
322913ce
RD
13215 }
13216 return resultobj;
13217 fail:
13218 return NULL;
13219}
13220
13221
d14a1e28
RD
13222static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13223 PyObject *resultobj;
13224 wxDC *arg1 = (wxDC *) 0 ;
13225 int *arg2 = (int *) 0 ;
13226 int *arg3 = (int *) 0 ;
13227 int temp2 ;
13228 int temp3 ;
13229 PyObject * obj0 = 0 ;
13230 char *kwnames[] = {
13231 (char *) "self", NULL
13232 };
13233
13234 arg2 = &temp2;
13235 arg3 = &temp3;
13236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
15afbcd0
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 (arg1)->GetSize(arg2,arg3);
13242
13243 wxPyEndAllowThreads(__tstate);
13244 if (PyErr_Occurred()) SWIG_fail;
13245 }
13246 Py_INCREF(Py_None); resultobj = Py_None;
13247 {
13248 PyObject *o = PyInt_FromLong((long) (*arg2));
13249 resultobj = t_output_helper(resultobj,o);
13250 }
13251 {
13252 PyObject *o = PyInt_FromLong((long) (*arg3));
13253 resultobj = t_output_helper(resultobj,o);
13254 }
13255 return resultobj;
13256 fail:
13257 return NULL;
13258}
13259
13260
322913ce 13261static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13262 PyObject *resultobj;
13263 wxDC *arg1 = (wxDC *) 0 ;
13264 wxSize result;
13265 PyObject * obj0 = 0 ;
13266 char *kwnames[] = {
13267 (char *) "self", NULL
13268 };
13269
322913ce 13270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
15afbcd0
RD
13271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13273 {
13274 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 13275 result = ((wxDC const *)arg1)->GetSizeMM();
d14a1e28
RD
13276
13277 wxPyEndAllowThreads(__tstate);
13278 if (PyErr_Occurred()) SWIG_fail;
13279 }
13280 {
13281 wxSize * resultptr;
13282 resultptr = new wxSize((wxSize &) result);
15afbcd0 13283 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
13284 }
13285 return resultobj;
13286 fail:
13287 return NULL;
13288}
13289
13290
322913ce 13291static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13292 PyObject *resultobj;
13293 wxDC *arg1 = (wxDC *) 0 ;
13294 int *arg2 = (int *) 0 ;
13295 int *arg3 = (int *) 0 ;
13296 int temp2 ;
13297 int temp3 ;
13298 PyObject * obj0 = 0 ;
13299 char *kwnames[] = {
13300 (char *) "self", NULL
13301 };
13302
13303 arg2 = &temp2;
13304 arg3 = &temp3;
322913ce 13305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
15afbcd0
RD
13306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13308 {
13309 PyThreadState* __tstate = wxPyBeginAllowThreads();
13310 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13311
13312 wxPyEndAllowThreads(__tstate);
13313 if (PyErr_Occurred()) SWIG_fail;
13314 }
13315 Py_INCREF(Py_None); resultobj = Py_None;
13316 {
13317 PyObject *o = PyInt_FromLong((long) (*arg2));
13318 resultobj = t_output_helper(resultobj,o);
13319 }
13320 {
13321 PyObject *o = PyInt_FromLong((long) (*arg3));
13322 resultobj = t_output_helper(resultobj,o);
13323 }
13324 return resultobj;
13325 fail:
13326 return NULL;
13327}
13328
13329
d14a1e28
RD
13330static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13331 PyObject *resultobj;
13332 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13333 int arg2 ;
13334 int result;
d14a1e28 13335 PyObject * obj0 = 0 ;
994141e6 13336 PyObject * obj1 = 0 ;
d14a1e28
RD
13337 char *kwnames[] = {
13338 (char *) "self",(char *) "x", NULL
13339 };
13340
994141e6 13341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13344 arg2 = (int) SWIG_AsInt(obj1);
13345 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13346 {
13347 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13348 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
d14a1e28
RD
13349
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
15afbcd0 13353 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13354 return resultobj;
13355 fail:
13356 return NULL;
13357}
13358
13359
13360static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13361 PyObject *resultobj;
13362 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13363 int arg2 ;
13364 int result;
d14a1e28 13365 PyObject * obj0 = 0 ;
994141e6 13366 PyObject * obj1 = 0 ;
d14a1e28
RD
13367 char *kwnames[] = {
13368 (char *) "self",(char *) "y", NULL
13369 };
13370
994141e6 13371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13374 arg2 = (int) SWIG_AsInt(obj1);
13375 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13376 {
13377 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13378 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
d14a1e28
RD
13379
13380 wxPyEndAllowThreads(__tstate);
13381 if (PyErr_Occurred()) SWIG_fail;
13382 }
15afbcd0 13383 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13384 return resultobj;
13385 fail:
13386 return NULL;
13387}
13388
13389
13390static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13391 PyObject *resultobj;
13392 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13393 int arg2 ;
13394 int result;
d14a1e28 13395 PyObject * obj0 = 0 ;
994141e6 13396 PyObject * obj1 = 0 ;
d14a1e28
RD
13397 char *kwnames[] = {
13398 (char *) "self",(char *) "x", NULL
13399 };
13400
994141e6 13401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13404 arg2 = (int) SWIG_AsInt(obj1);
13405 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13406 {
13407 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13408 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
d14a1e28
RD
13409
13410 wxPyEndAllowThreads(__tstate);
13411 if (PyErr_Occurred()) SWIG_fail;
13412 }
15afbcd0 13413 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13414 return resultobj;
13415 fail:
13416 return NULL;
13417}
13418
13419
13420static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13421 PyObject *resultobj;
13422 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13423 int arg2 ;
13424 int result;
d14a1e28 13425 PyObject * obj0 = 0 ;
994141e6 13426 PyObject * obj1 = 0 ;
d14a1e28
RD
13427 char *kwnames[] = {
13428 (char *) "self",(char *) "y", NULL
13429 };
13430
994141e6 13431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13434 arg2 = (int) SWIG_AsInt(obj1);
13435 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13436 {
13437 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13438 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
d14a1e28
RD
13439
13440 wxPyEndAllowThreads(__tstate);
13441 if (PyErr_Occurred()) SWIG_fail;
13442 }
15afbcd0 13443 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13444 return resultobj;
13445 fail:
13446 return NULL;
13447}
13448
13449
13450static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13451 PyObject *resultobj;
13452 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13453 int arg2 ;
13454 int result;
d14a1e28 13455 PyObject * obj0 = 0 ;
994141e6 13456 PyObject * obj1 = 0 ;
d14a1e28
RD
13457 char *kwnames[] = {
13458 (char *) "self",(char *) "x", NULL
13459 };
13460
994141e6 13461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13464 arg2 = (int) SWIG_AsInt(obj1);
13465 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13466 {
13467 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13468 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
d14a1e28
RD
13469
13470 wxPyEndAllowThreads(__tstate);
13471 if (PyErr_Occurred()) SWIG_fail;
13472 }
15afbcd0 13473 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13474 return resultobj;
13475 fail:
13476 return NULL;
13477}
13478
13479
13480static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13481 PyObject *resultobj;
13482 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13483 int arg2 ;
13484 int result;
d14a1e28 13485 PyObject * obj0 = 0 ;
994141e6 13486 PyObject * obj1 = 0 ;
d14a1e28
RD
13487 char *kwnames[] = {
13488 (char *) "self",(char *) "y", NULL
13489 };
13490
994141e6 13491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13494 arg2 = (int) SWIG_AsInt(obj1);
13495 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13496 {
13497 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13498 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
d14a1e28
RD
13499
13500 wxPyEndAllowThreads(__tstate);
13501 if (PyErr_Occurred()) SWIG_fail;
13502 }
15afbcd0 13503 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13504 return resultobj;
13505 fail:
13506 return NULL;
13507}
13508
13509
13510static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13511 PyObject *resultobj;
13512 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13513 int arg2 ;
13514 int result;
d14a1e28 13515 PyObject * obj0 = 0 ;
994141e6 13516 PyObject * obj1 = 0 ;
d14a1e28
RD
13517 char *kwnames[] = {
13518 (char *) "self",(char *) "x", NULL
13519 };
13520
994141e6 13521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13524 arg2 = (int) SWIG_AsInt(obj1);
13525 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13526 {
13527 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13528 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
d14a1e28
RD
13529
13530 wxPyEndAllowThreads(__tstate);
13531 if (PyErr_Occurred()) SWIG_fail;
13532 }
15afbcd0 13533 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13534 return resultobj;
13535 fail:
13536 return NULL;
13537}
13538
13539
13540static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13541 PyObject *resultobj;
13542 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13543 int arg2 ;
13544 int result;
d14a1e28 13545 PyObject * obj0 = 0 ;
994141e6 13546 PyObject * obj1 = 0 ;
d14a1e28
RD
13547 char *kwnames[] = {
13548 (char *) "self",(char *) "y", NULL
13549 };
13550
994141e6 13551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13554 arg2 = (int) SWIG_AsInt(obj1);
13555 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13556 {
13557 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13558 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
d14a1e28
RD
13559
13560 wxPyEndAllowThreads(__tstate);
13561 if (PyErr_Occurred()) SWIG_fail;
13562 }
15afbcd0 13563 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13564 return resultobj;
13565 fail:
13566 return NULL;
13567}
13568
13569
13570static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13571 PyObject *resultobj;
13572 wxDC *arg1 = (wxDC *) 0 ;
13573 bool result;
13574 PyObject * obj0 = 0 ;
13575 char *kwnames[] = {
13576 (char *) "self", NULL
13577 };
13578
13579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
15afbcd0
RD
13580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13582 {
13583 PyThreadState* __tstate = wxPyBeginAllowThreads();
13584 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13585
13586 wxPyEndAllowThreads(__tstate);
13587 if (PyErr_Occurred()) SWIG_fail;
13588 }
4f89f6a3
RD
13589 {
13590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13591 }
d14a1e28
RD
13592 return resultobj;
13593 fail:
13594 return NULL;
13595}
13596
13597
13598static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13599 PyObject *resultobj;
13600 wxDC *arg1 = (wxDC *) 0 ;
13601 bool result;
13602 PyObject * obj0 = 0 ;
13603 char *kwnames[] = {
13604 (char *) "self", NULL
13605 };
13606
13607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
15afbcd0
RD
13608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13610 {
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13613
13614 wxPyEndAllowThreads(__tstate);
13615 if (PyErr_Occurred()) SWIG_fail;
13616 }
4f89f6a3
RD
13617 {
13618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13619 }
d14a1e28
RD
13620 return resultobj;
13621 fail:
13622 return NULL;
13623}
13624
13625
13626static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13627 PyObject *resultobj;
13628 wxDC *arg1 = (wxDC *) 0 ;
13629 int result;
13630 PyObject * obj0 = 0 ;
13631 char *kwnames[] = {
13632 (char *) "self", NULL
13633 };
13634
13635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
15afbcd0
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();
13640 result = (int)((wxDC const *)arg1)->GetDepth();
13641
13642 wxPyEndAllowThreads(__tstate);
13643 if (PyErr_Occurred()) SWIG_fail;
13644 }
15afbcd0 13645 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13646 return resultobj;
13647 fail:
13648 return NULL;
13649}
13650
13651
13652static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13653 PyObject *resultobj;
13654 wxDC *arg1 = (wxDC *) 0 ;
13655 wxSize result;
13656 PyObject * obj0 = 0 ;
13657 char *kwnames[] = {
13658 (char *) "self", NULL
13659 };
13660
13661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
15afbcd0
RD
13662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 result = ((wxDC const *)arg1)->GetPPI();
13667
13668 wxPyEndAllowThreads(__tstate);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 {
13672 wxSize * resultptr;
13673 resultptr = new wxSize((wxSize &) result);
15afbcd0 13674 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
13675 }
13676 return resultobj;
13677 fail:
13678 return NULL;
13679}
13680
13681
13682static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13683 PyObject *resultobj;
13684 wxDC *arg1 = (wxDC *) 0 ;
13685 bool result;
13686 PyObject * obj0 = 0 ;
13687 char *kwnames[] = {
13688 (char *) "self", NULL
13689 };
13690
13691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
13692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13694 {
13695 PyThreadState* __tstate = wxPyBeginAllowThreads();
13696 result = (bool)((wxDC const *)arg1)->Ok();
13697
13698 wxPyEndAllowThreads(__tstate);
13699 if (PyErr_Occurred()) SWIG_fail;
13700 }
4f89f6a3
RD
13701 {
13702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13703 }
d14a1e28
RD
13704 return resultobj;
13705 fail:
13706 return NULL;
13707}
13708
13709
13710static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13711 PyObject *resultobj;
13712 wxDC *arg1 = (wxDC *) 0 ;
13713 int result;
13714 PyObject * obj0 = 0 ;
13715 char *kwnames[] = {
13716 (char *) "self", NULL
13717 };
13718
13719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
15afbcd0
RD
13720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13722 {
13723 PyThreadState* __tstate = wxPyBeginAllowThreads();
13724 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13725
13726 wxPyEndAllowThreads(__tstate);
13727 if (PyErr_Occurred()) SWIG_fail;
13728 }
15afbcd0 13729 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13730 return resultobj;
13731 fail:
13732 return NULL;
13733}
13734
13735
13736static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13737 PyObject *resultobj;
13738 wxDC *arg1 = (wxDC *) 0 ;
13739 wxBrush *result;
13740 PyObject * obj0 = 0 ;
13741 char *kwnames[] = {
13742 (char *) "self", NULL
13743 };
13744
13745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
15afbcd0
RD
13746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13748 {
13749 PyThreadState* __tstate = wxPyBeginAllowThreads();
13750 {
13751 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13752 result = (wxBrush *) &_result_ref;
13753 }
13754
13755 wxPyEndAllowThreads(__tstate);
13756 if (PyErr_Occurred()) SWIG_fail;
13757 }
4276dc52
RD
13758 {
13759 wxBrush* resultptr = new wxBrush(*result);
13760 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13761 }
d14a1e28
RD
13762 return resultobj;
13763 fail:
13764 return NULL;
13765}
13766
13767
13768static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13769 PyObject *resultobj;
13770 wxDC *arg1 = (wxDC *) 0 ;
13771 wxBrush *result;
13772 PyObject * obj0 = 0 ;
13773 char *kwnames[] = {
13774 (char *) "self", NULL
13775 };
13776
13777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
15afbcd0
RD
13778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13780 {
13781 PyThreadState* __tstate = wxPyBeginAllowThreads();
13782 {
13783 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13784 result = (wxBrush *) &_result_ref;
13785 }
13786
13787 wxPyEndAllowThreads(__tstate);
13788 if (PyErr_Occurred()) SWIG_fail;
13789 }
4276dc52
RD
13790 {
13791 wxBrush* resultptr = new wxBrush(*result);
13792 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13793 }
d14a1e28
RD
13794 return resultobj;
13795 fail:
13796 return NULL;
13797}
13798
13799
13800static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13801 PyObject *resultobj;
13802 wxDC *arg1 = (wxDC *) 0 ;
13803 wxFont *result;
13804 PyObject * obj0 = 0 ;
13805 char *kwnames[] = {
13806 (char *) "self", NULL
13807 };
13808
13809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
15afbcd0
RD
13810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13812 {
13813 PyThreadState* __tstate = wxPyBeginAllowThreads();
13814 {
13815 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13816 result = (wxFont *) &_result_ref;
13817 }
13818
13819 wxPyEndAllowThreads(__tstate);
13820 if (PyErr_Occurred()) SWIG_fail;
13821 }
4276dc52
RD
13822 {
13823 wxFont* resultptr = new wxFont(*result);
13824 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13825 }
d14a1e28
RD
13826 return resultobj;
13827 fail:
13828 return NULL;
13829}
13830
13831
13832static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13833 PyObject *resultobj;
13834 wxDC *arg1 = (wxDC *) 0 ;
13835 wxPen *result;
13836 PyObject * obj0 = 0 ;
13837 char *kwnames[] = {
13838 (char *) "self", NULL
13839 };
13840
13841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
15afbcd0
RD
13842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13844 {
13845 PyThreadState* __tstate = wxPyBeginAllowThreads();
13846 {
13847 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13848 result = (wxPen *) &_result_ref;
13849 }
13850
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
4276dc52
RD
13854 {
13855 wxPen* resultptr = new wxPen(*result);
13856 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13857 }
d14a1e28
RD
13858 return resultobj;
13859 fail:
13860 return NULL;
13861}
13862
13863
13864static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13865 PyObject *resultobj;
13866 wxDC *arg1 = (wxDC *) 0 ;
13867 wxColour *result;
13868 PyObject * obj0 = 0 ;
13869 char *kwnames[] = {
13870 (char *) "self", NULL
13871 };
13872
13873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
15afbcd0
RD
13874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13876 {
13877 PyThreadState* __tstate = wxPyBeginAllowThreads();
13878 {
13879 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13880 result = (wxColour *) &_result_ref;
13881 }
13882
13883 wxPyEndAllowThreads(__tstate);
13884 if (PyErr_Occurred()) SWIG_fail;
13885 }
15afbcd0 13886 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
13887 return resultobj;
13888 fail:
13889 return NULL;
13890}
13891
13892
13893static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13894 PyObject *resultobj;
13895 wxDC *arg1 = (wxDC *) 0 ;
13896 wxColour *result;
13897 PyObject * obj0 = 0 ;
13898 char *kwnames[] = {
13899 (char *) "self", NULL
13900 };
13901
13902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
15afbcd0
RD
13903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13905 {
13906 PyThreadState* __tstate = wxPyBeginAllowThreads();
13907 {
13908 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13909 result = (wxColour *) &_result_ref;
13910 }
13911
13912 wxPyEndAllowThreads(__tstate);
13913 if (PyErr_Occurred()) SWIG_fail;
13914 }
15afbcd0 13915 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
13916 return resultobj;
13917 fail:
13918 return NULL;
13919}
13920
13921
13922static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13923 PyObject *resultobj;
13924 wxDC *arg1 = (wxDC *) 0 ;
13925 wxColour *arg2 = 0 ;
13926 wxColour temp2 ;
13927 PyObject * obj0 = 0 ;
13928 PyObject * obj1 = 0 ;
13929 char *kwnames[] = {
13930 (char *) "self",(char *) "colour", NULL
13931 };
13932
13933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13936 {
13937 arg2 = &temp2;
13938 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13939 }
13940 {
13941 PyThreadState* __tstate = wxPyBeginAllowThreads();
13942 (arg1)->SetTextForeground((wxColour const &)*arg2);
13943
13944 wxPyEndAllowThreads(__tstate);
13945 if (PyErr_Occurred()) SWIG_fail;
13946 }
13947 Py_INCREF(Py_None); resultobj = Py_None;
13948 return resultobj;
13949 fail:
13950 return NULL;
13951}
13952
13953
13954static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13955 PyObject *resultobj;
13956 wxDC *arg1 = (wxDC *) 0 ;
13957 wxColour *arg2 = 0 ;
13958 wxColour temp2 ;
13959 PyObject * obj0 = 0 ;
13960 PyObject * obj1 = 0 ;
13961 char *kwnames[] = {
13962 (char *) "self",(char *) "colour", NULL
13963 };
13964
13965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13968 {
13969 arg2 = &temp2;
13970 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13971 }
13972 {
13973 PyThreadState* __tstate = wxPyBeginAllowThreads();
13974 (arg1)->SetTextBackground((wxColour const &)*arg2);
13975
13976 wxPyEndAllowThreads(__tstate);
13977 if (PyErr_Occurred()) SWIG_fail;
13978 }
13979 Py_INCREF(Py_None); resultobj = Py_None;
13980 return resultobj;
13981 fail:
13982 return NULL;
13983}
13984
13985
13986static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13987 PyObject *resultobj;
13988 wxDC *arg1 = (wxDC *) 0 ;
13989 int result;
13990 PyObject * obj0 = 0 ;
13991 char *kwnames[] = {
13992 (char *) "self", NULL
13993 };
13994
13995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
15afbcd0
RD
13996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13998 {
13999 PyThreadState* __tstate = wxPyBeginAllowThreads();
14000 result = (int)((wxDC const *)arg1)->GetMapMode();
14001
14002 wxPyEndAllowThreads(__tstate);
14003 if (PyErr_Occurred()) SWIG_fail;
14004 }
15afbcd0 14005 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14006 return resultobj;
14007 fail:
14008 return NULL;
14009}
14010
14011
14012static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14013 PyObject *resultobj;
14014 wxDC *arg1 = (wxDC *) 0 ;
14015 int arg2 ;
14016 PyObject * obj0 = 0 ;
994141e6 14017 PyObject * obj1 = 0 ;
d14a1e28
RD
14018 char *kwnames[] = {
14019 (char *) "self",(char *) "mode", NULL
14020 };
14021
994141e6 14022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14025 arg2 = (int) SWIG_AsInt(obj1);
14026 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14027 {
14028 PyThreadState* __tstate = wxPyBeginAllowThreads();
14029 (arg1)->SetMapMode(arg2);
14030
14031 wxPyEndAllowThreads(__tstate);
14032 if (PyErr_Occurred()) SWIG_fail;
14033 }
14034 Py_INCREF(Py_None); resultobj = Py_None;
14035 return resultobj;
14036 fail:
14037 return NULL;
14038}
14039
14040
14041static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14042 PyObject *resultobj;
14043 wxDC *arg1 = (wxDC *) 0 ;
14044 double *arg2 = (double *) 0 ;
14045 double *arg3 = (double *) 0 ;
14046 double temp2 ;
14047 double temp3 ;
14048 PyObject * obj0 = 0 ;
14049 char *kwnames[] = {
14050 (char *) "self", NULL
14051 };
14052
14053 arg2 = &temp2;
14054 arg3 = &temp3;
14055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
15afbcd0
RD
14056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14058 {
14059 PyThreadState* __tstate = wxPyBeginAllowThreads();
14060 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14061
14062 wxPyEndAllowThreads(__tstate);
14063 if (PyErr_Occurred()) SWIG_fail;
14064 }
14065 Py_INCREF(Py_None); resultobj = Py_None;
14066 {
14067 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14068 resultobj = t_output_helper(resultobj,o);
14069 }
14070 {
14071 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14072 resultobj = t_output_helper(resultobj,o);
14073 }
14074 return resultobj;
14075 fail:
14076 return NULL;
14077}
14078
14079
14080static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14081 PyObject *resultobj;
14082 wxDC *arg1 = (wxDC *) 0 ;
14083 double arg2 ;
14084 double arg3 ;
14085 PyObject * obj0 = 0 ;
994141e6
RD
14086 PyObject * obj1 = 0 ;
14087 PyObject * obj2 = 0 ;
d14a1e28
RD
14088 char *kwnames[] = {
14089 (char *) "self",(char *) "x",(char *) "y", NULL
14090 };
14091
994141e6 14092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14095 arg2 = (double) SWIG_AsDouble(obj1);
14096 if (PyErr_Occurred()) SWIG_fail;
14097 arg3 = (double) SWIG_AsDouble(obj2);
14098 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14099 {
14100 PyThreadState* __tstate = wxPyBeginAllowThreads();
14101 (arg1)->SetUserScale(arg2,arg3);
14102
14103 wxPyEndAllowThreads(__tstate);
14104 if (PyErr_Occurred()) SWIG_fail;
14105 }
14106 Py_INCREF(Py_None); resultobj = Py_None;
14107 return resultobj;
14108 fail:
14109 return NULL;
14110}
14111
14112
14113static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14114 PyObject *resultobj;
14115 wxDC *arg1 = (wxDC *) 0 ;
14116 double *arg2 = (double *) 0 ;
14117 double *arg3 = (double *) 0 ;
14118 double temp2 ;
14119 double temp3 ;
14120 PyObject * obj0 = 0 ;
14121 char *kwnames[] = {
14122 (char *) "self", NULL
14123 };
14124
14125 arg2 = &temp2;
14126 arg3 = &temp3;
14127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
15afbcd0
RD
14128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14130 {
14131 PyThreadState* __tstate = wxPyBeginAllowThreads();
14132 (arg1)->GetLogicalScale(arg2,arg3);
14133
14134 wxPyEndAllowThreads(__tstate);
14135 if (PyErr_Occurred()) SWIG_fail;
14136 }
14137 Py_INCREF(Py_None); resultobj = Py_None;
14138 {
14139 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14140 resultobj = t_output_helper(resultobj,o);
14141 }
14142 {
14143 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14144 resultobj = t_output_helper(resultobj,o);
14145 }
14146 return resultobj;
14147 fail:
14148 return NULL;
14149}
14150
14151
14152static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14153 PyObject *resultobj;
14154 wxDC *arg1 = (wxDC *) 0 ;
14155 double arg2 ;
14156 double arg3 ;
14157 PyObject * obj0 = 0 ;
994141e6
RD
14158 PyObject * obj1 = 0 ;
14159 PyObject * obj2 = 0 ;
d14a1e28
RD
14160 char *kwnames[] = {
14161 (char *) "self",(char *) "x",(char *) "y", NULL
14162 };
14163
994141e6 14164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14167 arg2 = (double) SWIG_AsDouble(obj1);
14168 if (PyErr_Occurred()) SWIG_fail;
14169 arg3 = (double) SWIG_AsDouble(obj2);
14170 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14171 {
14172 PyThreadState* __tstate = wxPyBeginAllowThreads();
14173 (arg1)->SetLogicalScale(arg2,arg3);
14174
14175 wxPyEndAllowThreads(__tstate);
14176 if (PyErr_Occurred()) SWIG_fail;
14177 }
14178 Py_INCREF(Py_None); resultobj = Py_None;
14179 return resultobj;
14180 fail:
14181 return NULL;
14182}
14183
14184
322913ce 14185static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14186 PyObject *resultobj;
14187 wxDC *arg1 = (wxDC *) 0 ;
322913ce 14188 wxPoint result;
d14a1e28
RD
14189 PyObject * obj0 = 0 ;
14190 char *kwnames[] = {
14191 (char *) "self", NULL
14192 };
14193
322913ce 14194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
15afbcd0
RD
14195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14197 {
14198 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 14199 result = ((wxDC const *)arg1)->GetLogicalOrigin();
d14a1e28
RD
14200
14201 wxPyEndAllowThreads(__tstate);
14202 if (PyErr_Occurred()) SWIG_fail;
14203 }
d14a1e28 14204 {
322913ce
RD
14205 wxPoint * resultptr;
14206 resultptr = new wxPoint((wxPoint &) result);
15afbcd0 14207 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
14208 }
14209 return resultobj;
14210 fail:
14211 return NULL;
14212}
14213
14214
322913ce 14215static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14216 PyObject *resultobj;
14217 wxDC *arg1 = (wxDC *) 0 ;
322913ce
RD
14218 int *arg2 = (int *) 0 ;
14219 int *arg3 = (int *) 0 ;
14220 int temp2 ;
14221 int temp3 ;
d14a1e28
RD
14222 PyObject * obj0 = 0 ;
14223 char *kwnames[] = {
14224 (char *) "self", NULL
14225 };
14226
322913ce
RD
14227 arg2 = &temp2;
14228 arg3 = &temp3;
14229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
15afbcd0
RD
14230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14232 {
14233 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 14234 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
d14a1e28
RD
14235
14236 wxPyEndAllowThreads(__tstate);
14237 if (PyErr_Occurred()) SWIG_fail;
14238 }
322913ce 14239 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 14240 {
322913ce
RD
14241 PyObject *o = PyInt_FromLong((long) (*arg2));
14242 resultobj = t_output_helper(resultobj,o);
14243 }
14244 {
14245 PyObject *o = PyInt_FromLong((long) (*arg3));
14246 resultobj = t_output_helper(resultobj,o);
d14a1e28
RD
14247 }
14248 return resultobj;
14249 fail:
14250 return NULL;
14251}
14252
14253
14254static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14255 PyObject *resultobj;
14256 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
14257 int arg2 ;
14258 int arg3 ;
d14a1e28 14259 PyObject * obj0 = 0 ;
994141e6
RD
14260 PyObject * obj1 = 0 ;
14261 PyObject * obj2 = 0 ;
d14a1e28
RD
14262 char *kwnames[] = {
14263 (char *) "self",(char *) "x",(char *) "y", NULL
14264 };
14265
994141e6 14266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14269 arg2 = (int) SWIG_AsInt(obj1);
14270 if (PyErr_Occurred()) SWIG_fail;
14271 arg3 = (int) SWIG_AsInt(obj2);
14272 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14273 {
14274 PyThreadState* __tstate = wxPyBeginAllowThreads();
14275 (arg1)->SetLogicalOrigin(arg2,arg3);
14276
14277 wxPyEndAllowThreads(__tstate);
14278 if (PyErr_Occurred()) SWIG_fail;
14279 }
14280 Py_INCREF(Py_None); resultobj = Py_None;
14281 return resultobj;
14282 fail:
14283 return NULL;
14284}
14285
14286
03e37cd5
RD
14287static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14288 PyObject *resultobj;
14289 wxDC *arg1 = (wxDC *) 0 ;
14290 wxPoint *arg2 = 0 ;
14291 wxPoint temp2 ;
14292 PyObject * obj0 = 0 ;
14293 PyObject * obj1 = 0 ;
14294 char *kwnames[] = {
14295 (char *) "self",(char *) "point", NULL
14296 };
14297
14298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14301 {
14302 arg2 = &temp2;
14303 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14304 }
14305 {
14306 PyThreadState* __tstate = wxPyBeginAllowThreads();
14307 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14308
14309 wxPyEndAllowThreads(__tstate);
14310 if (PyErr_Occurred()) SWIG_fail;
14311 }
14312 Py_INCREF(Py_None); resultobj = Py_None;
14313 return resultobj;
14314 fail:
14315 return NULL;
14316}
14317
14318
322913ce 14319static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14320 PyObject *resultobj;
14321 wxDC *arg1 = (wxDC *) 0 ;
322913ce 14322 wxPoint result;
d14a1e28
RD
14323 PyObject * obj0 = 0 ;
14324 char *kwnames[] = {
14325 (char *) "self", NULL
14326 };
14327
322913ce 14328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
15afbcd0
RD
14329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14331 {
14332 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 14333 result = ((wxDC const *)arg1)->GetDeviceOrigin();
d14a1e28
RD
14334
14335 wxPyEndAllowThreads(__tstate);
14336 if (PyErr_Occurred()) SWIG_fail;
14337 }
d14a1e28 14338 {
322913ce
RD
14339 wxPoint * resultptr;
14340 resultptr = new wxPoint((wxPoint &) result);
15afbcd0 14341 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
14342 }
14343 return resultobj;
14344 fail:
14345 return NULL;
14346}
14347
14348
322913ce 14349static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14350 PyObject *resultobj;
14351 wxDC *arg1 = (wxDC *) 0 ;
322913ce
RD
14352 int *arg2 = (int *) 0 ;
14353 int *arg3 = (int *) 0 ;
14354 int temp2 ;
14355 int temp3 ;
d14a1e28
RD
14356 PyObject * obj0 = 0 ;
14357 char *kwnames[] = {
14358 (char *) "self", NULL
14359 };
14360
322913ce
RD
14361 arg2 = &temp2;
14362 arg3 = &temp3;
14363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
15afbcd0
RD
14364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14366 {
14367 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 14368 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
d14a1e28
RD
14369
14370 wxPyEndAllowThreads(__tstate);
14371 if (PyErr_Occurred()) SWIG_fail;
14372 }
322913ce 14373 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 14374 {
322913ce
RD
14375 PyObject *o = PyInt_FromLong((long) (*arg2));
14376 resultobj = t_output_helper(resultobj,o);
14377 }
14378 {
14379 PyObject *o = PyInt_FromLong((long) (*arg3));
14380 resultobj = t_output_helper(resultobj,o);
d14a1e28
RD
14381 }
14382 return resultobj;
14383 fail:
14384 return NULL;
14385}
14386
14387
14388static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14389 PyObject *resultobj;
14390 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
14391 int arg2 ;
14392 int arg3 ;
d14a1e28 14393 PyObject * obj0 = 0 ;
994141e6
RD
14394 PyObject * obj1 = 0 ;
14395 PyObject * obj2 = 0 ;
d14a1e28
RD
14396 char *kwnames[] = {
14397 (char *) "self",(char *) "x",(char *) "y", NULL
14398 };
14399
994141e6 14400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14403 arg2 = (int) SWIG_AsInt(obj1);
14404 if (PyErr_Occurred()) SWIG_fail;
14405 arg3 = (int) SWIG_AsInt(obj2);
14406 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14407 {
14408 PyThreadState* __tstate = wxPyBeginAllowThreads();
14409 (arg1)->SetDeviceOrigin(arg2,arg3);
14410
14411 wxPyEndAllowThreads(__tstate);
14412 if (PyErr_Occurred()) SWIG_fail;
14413 }
14414 Py_INCREF(Py_None); resultobj = Py_None;
14415 return resultobj;
14416 fail:
14417 return NULL;
14418}
14419
14420
03e37cd5
RD
14421static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14422 PyObject *resultobj;
14423 wxDC *arg1 = (wxDC *) 0 ;
14424 wxPoint *arg2 = 0 ;
14425 wxPoint temp2 ;
14426 PyObject * obj0 = 0 ;
14427 PyObject * obj1 = 0 ;
14428 char *kwnames[] = {
14429 (char *) "self",(char *) "point", NULL
14430 };
14431
14432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14435 {
14436 arg2 = &temp2;
14437 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14438 }
14439 {
14440 PyThreadState* __tstate = wxPyBeginAllowThreads();
14441 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14442
14443 wxPyEndAllowThreads(__tstate);
14444 if (PyErr_Occurred()) SWIG_fail;
14445 }
14446 Py_INCREF(Py_None); resultobj = Py_None;
14447 return resultobj;
14448 fail:
14449 return NULL;
14450}
14451
14452
d14a1e28
RD
14453static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14454 PyObject *resultobj;
14455 wxDC *arg1 = (wxDC *) 0 ;
14456 bool arg2 ;
14457 bool arg3 ;
14458 PyObject * obj0 = 0 ;
14459 PyObject * obj1 = 0 ;
14460 PyObject * obj2 = 0 ;
14461 char *kwnames[] = {
14462 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14463 };
14464
14465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14468 arg2 = (bool) SWIG_AsBool(obj1);
14469 if (PyErr_Occurred()) SWIG_fail;
14470 arg3 = (bool) SWIG_AsBool(obj2);
14471 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14472 {
14473 PyThreadState* __tstate = wxPyBeginAllowThreads();
14474 (arg1)->SetAxisOrientation(arg2,arg3);
14475
14476 wxPyEndAllowThreads(__tstate);
14477 if (PyErr_Occurred()) SWIG_fail;
14478 }
14479 Py_INCREF(Py_None); resultobj = Py_None;
14480 return resultobj;
14481 fail:
14482 return NULL;
14483}
14484
14485
14486static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14487 PyObject *resultobj;
14488 wxDC *arg1 = (wxDC *) 0 ;
14489 int result;
14490 PyObject * obj0 = 0 ;
14491 char *kwnames[] = {
14492 (char *) "self", NULL
14493 };
14494
14495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
15afbcd0
RD
14496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14498 {
14499 PyThreadState* __tstate = wxPyBeginAllowThreads();
14500 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14501
14502 wxPyEndAllowThreads(__tstate);
14503 if (PyErr_Occurred()) SWIG_fail;
14504 }
15afbcd0 14505 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14506 return resultobj;
14507 fail:
14508 return NULL;
14509}
14510
14511
14512static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14513 PyObject *resultobj;
14514 wxDC *arg1 = (wxDC *) 0 ;
14515 int arg2 ;
14516 PyObject * obj0 = 0 ;
994141e6 14517 PyObject * obj1 = 0 ;
d14a1e28
RD
14518 char *kwnames[] = {
14519 (char *) "self",(char *) "function", NULL
14520 };
14521
994141e6 14522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14525 arg2 = (int) SWIG_AsInt(obj1);
14526 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14527 {
14528 PyThreadState* __tstate = wxPyBeginAllowThreads();
14529 (arg1)->SetLogicalFunction(arg2);
14530
14531 wxPyEndAllowThreads(__tstate);
14532 if (PyErr_Occurred()) SWIG_fail;
14533 }
14534 Py_INCREF(Py_None); resultobj = Py_None;
14535 return resultobj;
14536 fail:
14537 return NULL;
14538}
14539
14540
14541static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14542 PyObject *resultobj;
14543 wxDC *arg1 = (wxDC *) 0 ;
14544 bool arg2 ;
14545 PyObject * obj0 = 0 ;
14546 PyObject * obj1 = 0 ;
14547 char *kwnames[] = {
f5b96ee1 14548 (char *) "self",(char *) "optimize", NULL
d14a1e28
RD
14549 };
14550
14551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14554 arg2 = (bool) SWIG_AsBool(obj1);
14555 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14556 {
14557 PyThreadState* __tstate = wxPyBeginAllowThreads();
14558 (arg1)->SetOptimization(arg2);
14559
14560 wxPyEndAllowThreads(__tstate);
14561 if (PyErr_Occurred()) SWIG_fail;
14562 }
14563 Py_INCREF(Py_None); resultobj = Py_None;
14564 return resultobj;
14565 fail:
14566 return NULL;
14567}
14568
14569
14570static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14571 PyObject *resultobj;
14572 wxDC *arg1 = (wxDC *) 0 ;
14573 bool result;
14574 PyObject * obj0 = 0 ;
14575 char *kwnames[] = {
14576 (char *) "self", NULL
14577 };
14578
14579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
15afbcd0
RD
14580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14582 {
14583 PyThreadState* __tstate = wxPyBeginAllowThreads();
14584 result = (bool)(arg1)->GetOptimization();
14585
14586 wxPyEndAllowThreads(__tstate);
14587 if (PyErr_Occurred()) SWIG_fail;
14588 }
4f89f6a3
RD
14589 {
14590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14591 }
d14a1e28
RD
14592 return resultobj;
14593 fail:
14594 return NULL;
14595}
14596
14597
14598static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14599 PyObject *resultobj;
14600 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
14601 int arg2 ;
14602 int arg3 ;
d14a1e28 14603 PyObject * obj0 = 0 ;
994141e6
RD
14604 PyObject * obj1 = 0 ;
14605 PyObject * obj2 = 0 ;
d14a1e28
RD
14606 char *kwnames[] = {
14607 (char *) "self",(char *) "x",(char *) "y", NULL
14608 };
14609
994141e6 14610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14613 arg2 = (int) SWIG_AsInt(obj1);
14614 if (PyErr_Occurred()) SWIG_fail;
14615 arg3 = (int) SWIG_AsInt(obj2);
14616 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14617 {
14618 PyThreadState* __tstate = wxPyBeginAllowThreads();
14619 (arg1)->CalcBoundingBox(arg2,arg3);
14620
14621 wxPyEndAllowThreads(__tstate);
14622 if (PyErr_Occurred()) SWIG_fail;
14623 }
14624 Py_INCREF(Py_None); resultobj = Py_None;
14625 return resultobj;
14626 fail:
14627 return NULL;
14628}
14629
14630
03e37cd5
RD
14631static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14632 PyObject *resultobj;
14633 wxDC *arg1 = (wxDC *) 0 ;
14634 wxPoint *arg2 = 0 ;
14635 wxPoint temp2 ;
14636 PyObject * obj0 = 0 ;
14637 PyObject * obj1 = 0 ;
14638 char *kwnames[] = {
14639 (char *) "self",(char *) "point", NULL
14640 };
14641
14642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14645 {
14646 arg2 = &temp2;
14647 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14648 }
14649 {
14650 PyThreadState* __tstate = wxPyBeginAllowThreads();
14651 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14652
14653 wxPyEndAllowThreads(__tstate);
14654 if (PyErr_Occurred()) SWIG_fail;
14655 }
14656 Py_INCREF(Py_None); resultobj = Py_None;
14657 return resultobj;
14658 fail:
14659 return NULL;
14660}
14661
14662
d14a1e28
RD
14663static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14664 PyObject *resultobj;
14665 wxDC *arg1 = (wxDC *) 0 ;
14666 PyObject * obj0 = 0 ;
14667 char *kwnames[] = {
14668 (char *) "self", NULL
14669 };
14670
14671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15afbcd0
RD
14672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14674 {
14675 PyThreadState* __tstate = wxPyBeginAllowThreads();
14676 (arg1)->ResetBoundingBox();
14677
14678 wxPyEndAllowThreads(__tstate);
14679 if (PyErr_Occurred()) SWIG_fail;
14680 }
14681 Py_INCREF(Py_None); resultobj = Py_None;
14682 return resultobj;
14683 fail:
14684 return NULL;
14685}
14686
14687
14688static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14689 PyObject *resultobj;
14690 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 14691 int result;
d14a1e28
RD
14692 PyObject * obj0 = 0 ;
14693 char *kwnames[] = {
14694 (char *) "self", NULL
14695 };
14696
14697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15afbcd0
RD
14698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14700 {
14701 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 14702 result = (int)((wxDC const *)arg1)->MinX();
d14a1e28
RD
14703
14704 wxPyEndAllowThreads(__tstate);
14705 if (PyErr_Occurred()) SWIG_fail;
14706 }
15afbcd0 14707 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14708 return resultobj;
14709 fail:
14710 return NULL;
14711}
14712
14713
14714static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14715 PyObject *resultobj;
14716 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 14717 int result;
d14a1e28
RD
14718 PyObject * obj0 = 0 ;
14719 char *kwnames[] = {
14720 (char *) "self", NULL
14721 };
14722
14723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15afbcd0
RD
14724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14726 {
14727 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 14728 result = (int)((wxDC const *)arg1)->MaxX();
d14a1e28
RD
14729
14730 wxPyEndAllowThreads(__tstate);
14731 if (PyErr_Occurred()) SWIG_fail;
14732 }
15afbcd0 14733 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14734 return resultobj;
14735 fail:
14736 return NULL;
14737}
14738
14739
14740static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14741 PyObject *resultobj;
14742 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 14743 int result;
d14a1e28
RD
14744 PyObject * obj0 = 0 ;
14745 char *kwnames[] = {
14746 (char *) "self", NULL
14747 };
14748
14749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15afbcd0
RD
14750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14752 {
14753 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 14754 result = (int)((wxDC const *)arg1)->MinY();
d14a1e28
RD
14755
14756 wxPyEndAllowThreads(__tstate);
14757 if (PyErr_Occurred()) SWIG_fail;
14758 }
15afbcd0 14759 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14760 return resultobj;
14761 fail:
14762 return NULL;
14763}
14764
14765
14766static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14767 PyObject *resultobj;
14768 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 14769 int result;
d14a1e28
RD
14770 PyObject * obj0 = 0 ;
14771 char *kwnames[] = {
14772 (char *) "self", NULL
14773 };
14774
14775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15afbcd0
RD
14776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14778 {
14779 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 14780 result = (int)((wxDC const *)arg1)->MaxY();
d14a1e28
RD
14781
14782 wxPyEndAllowThreads(__tstate);
14783 if (PyErr_Occurred()) SWIG_fail;
14784 }
15afbcd0 14785 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14786 return resultobj;
14787 fail:
14788 return NULL;
14789}
14790
14791
14792static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14793 PyObject *resultobj;
14794 wxDC *arg1 = (wxDC *) 0 ;
14795 int *arg2 = (int *) 0 ;
14796 int *arg3 = (int *) 0 ;
14797 int *arg4 = (int *) 0 ;
14798 int *arg5 = (int *) 0 ;
14799 int temp2 ;
14800 int temp3 ;
14801 int temp4 ;
14802 int temp5 ;
14803 PyObject * obj0 = 0 ;
14804 char *kwnames[] = {
14805 (char *) "self", NULL
14806 };
14807
14808 arg2 = &temp2;
14809 arg3 = &temp3;
14810 arg4 = &temp4;
14811 arg5 = &temp5;
14812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15afbcd0
RD
14813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14815 {
14816 PyThreadState* __tstate = wxPyBeginAllowThreads();
14817 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14818
14819 wxPyEndAllowThreads(__tstate);
14820 if (PyErr_Occurred()) SWIG_fail;
14821 }
14822 Py_INCREF(Py_None); resultobj = Py_None;
14823 {
14824 PyObject *o = PyInt_FromLong((long) (*arg2));
14825 resultobj = t_output_helper(resultobj,o);
14826 }
14827 {
14828 PyObject *o = PyInt_FromLong((long) (*arg3));
14829 resultobj = t_output_helper(resultobj,o);
14830 }
14831 {
14832 PyObject *o = PyInt_FromLong((long) (*arg4));
14833 resultobj = t_output_helper(resultobj,o);
14834 }
14835 {
14836 PyObject *o = PyInt_FromLong((long) (*arg5));
14837 resultobj = t_output_helper(resultobj,o);
14838 }
14839 return resultobj;
14840 fail:
14841 return NULL;
14842}
14843
14844
14845static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14846 PyObject *resultobj;
14847 wxDC *arg1 = (wxDC *) 0 ;
14848 PyObject *arg2 = (PyObject *) 0 ;
14849 PyObject *arg3 = (PyObject *) 0 ;
14850 PyObject *arg4 = (PyObject *) 0 ;
14851 PyObject *result;
14852 PyObject * obj0 = 0 ;
14853 PyObject * obj1 = 0 ;
14854 PyObject * obj2 = 0 ;
14855 PyObject * obj3 = 0 ;
14856 char *kwnames[] = {
14857 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14858 };
14859
14860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
14861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14863 arg2 = obj1;
14864 arg3 = obj2;
14865 arg4 = obj3;
14866 {
14867 PyThreadState* __tstate = wxPyBeginAllowThreads();
14868 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14869
14870 wxPyEndAllowThreads(__tstate);
14871 if (PyErr_Occurred()) SWIG_fail;
14872 }
14873 resultobj = result;
14874 return resultobj;
14875 fail:
14876 return NULL;
14877}
14878
14879
14880static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14881 PyObject *resultobj;
14882 wxDC *arg1 = (wxDC *) 0 ;
14883 PyObject *arg2 = (PyObject *) 0 ;
14884 PyObject *arg3 = (PyObject *) 0 ;
14885 PyObject *arg4 = (PyObject *) 0 ;
14886 PyObject *result;
14887 PyObject * obj0 = 0 ;
14888 PyObject * obj1 = 0 ;
14889 PyObject * obj2 = 0 ;
14890 PyObject * obj3 = 0 ;
14891 char *kwnames[] = {
14892 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14893 };
14894
14895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
14896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14898 arg2 = obj1;
14899 arg3 = obj2;
14900 arg4 = obj3;
14901 {
14902 PyThreadState* __tstate = wxPyBeginAllowThreads();
14903 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14904
14905 wxPyEndAllowThreads(__tstate);
14906 if (PyErr_Occurred()) SWIG_fail;
14907 }
14908 resultobj = result;
14909 return resultobj;
14910 fail:
14911 return NULL;
14912}
14913
14914
14915static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14916 PyObject *resultobj;
14917 wxDC *arg1 = (wxDC *) 0 ;
14918 PyObject *arg2 = (PyObject *) 0 ;
14919 PyObject *arg3 = (PyObject *) 0 ;
14920 PyObject *arg4 = (PyObject *) 0 ;
14921 PyObject *result;
14922 PyObject * obj0 = 0 ;
14923 PyObject * obj1 = 0 ;
14924 PyObject * obj2 = 0 ;
14925 PyObject * obj3 = 0 ;
14926 char *kwnames[] = {
14927 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14928 };
14929
14930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
14931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14933 arg2 = obj1;
14934 arg3 = obj2;
14935 arg4 = obj3;
14936 {
14937 PyThreadState* __tstate = wxPyBeginAllowThreads();
14938 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14939
14940 wxPyEndAllowThreads(__tstate);
14941 if (PyErr_Occurred()) SWIG_fail;
14942 }
14943 resultobj = result;
14944 return resultobj;
14945 fail:
14946 return NULL;
14947}
14948
14949
14950static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14951 PyObject *resultobj;
14952 wxDC *arg1 = (wxDC *) 0 ;
14953 PyObject *arg2 = (PyObject *) 0 ;
14954 PyObject *arg3 = (PyObject *) 0 ;
14955 PyObject *arg4 = (PyObject *) 0 ;
14956 PyObject *result;
14957 PyObject * obj0 = 0 ;
14958 PyObject * obj1 = 0 ;
14959 PyObject * obj2 = 0 ;
14960 PyObject * obj3 = 0 ;
14961 char *kwnames[] = {
14962 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14963 };
14964
14965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
14966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14968 arg2 = obj1;
14969 arg3 = obj2;
14970 arg4 = obj3;
14971 {
14972 PyThreadState* __tstate = wxPyBeginAllowThreads();
14973 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14974
14975 wxPyEndAllowThreads(__tstate);
14976 if (PyErr_Occurred()) SWIG_fail;
14977 }
14978 resultobj = result;
14979 return resultobj;
14980 fail:
14981 return NULL;
14982}
14983
14984
14985static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14986 PyObject *resultobj;
14987 wxDC *arg1 = (wxDC *) 0 ;
14988 PyObject *arg2 = (PyObject *) 0 ;
14989 PyObject *arg3 = (PyObject *) 0 ;
14990 PyObject *arg4 = (PyObject *) 0 ;
14991 PyObject *result;
14992 PyObject * obj0 = 0 ;
14993 PyObject * obj1 = 0 ;
14994 PyObject * obj2 = 0 ;
14995 PyObject * obj3 = 0 ;
14996 char *kwnames[] = {
14997 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14998 };
14999
15000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
15001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15003 arg2 = obj1;
15004 arg3 = obj2;
15005 arg4 = obj3;
15006 {
15007 PyThreadState* __tstate = wxPyBeginAllowThreads();
15008 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15009
15010 wxPyEndAllowThreads(__tstate);
15011 if (PyErr_Occurred()) SWIG_fail;
15012 }
15013 resultobj = result;
15014 return resultobj;
15015 fail:
15016 return NULL;
15017}
15018
15019
15020static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15021 PyObject *resultobj;
15022 wxDC *arg1 = (wxDC *) 0 ;
15023 PyObject *arg2 = (PyObject *) 0 ;
15024 PyObject *arg3 = (PyObject *) 0 ;
15025 PyObject *arg4 = (PyObject *) 0 ;
15026 PyObject *arg5 = (PyObject *) 0 ;
15027 PyObject *result;
15028 PyObject * obj0 = 0 ;
15029 PyObject * obj1 = 0 ;
15030 PyObject * obj2 = 0 ;
15031 PyObject * obj3 = 0 ;
15032 PyObject * obj4 = 0 ;
15033 char *kwnames[] = {
15034 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15035 };
15036
15037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
15038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15040 arg2 = obj1;
15041 arg3 = obj2;
15042 arg4 = obj3;
15043 arg5 = obj4;
15044 {
15045 PyThreadState* __tstate = wxPyBeginAllowThreads();
15046 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15047
15048 wxPyEndAllowThreads(__tstate);
15049 if (PyErr_Occurred()) SWIG_fail;
15050 }
15051 resultobj = result;
15052 return resultobj;
15053 fail:
15054 return NULL;
15055}
15056
15057
15058static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15059 PyObject *obj;
15060 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15061 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15062 Py_INCREF(obj);
15063 return Py_BuildValue((char *)"");
15064}
15065static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15066 PyObject *resultobj;
15067 wxMemoryDC *result;
15068 char *kwnames[] = {
15069 NULL
15070 };
15071
15072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15073 {
e3b71cb8 15074 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15075 PyThreadState* __tstate = wxPyBeginAllowThreads();
15076 result = (wxMemoryDC *)new wxMemoryDC();
15077
15078 wxPyEndAllowThreads(__tstate);
110da5b0 15079 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15080 }
15afbcd0 15081 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
d14a1e28
RD
15082 return resultobj;
15083 fail:
15084 return NULL;
15085}
15086
15087
15088static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15089 PyObject *resultobj;
15090 wxDC *arg1 = (wxDC *) 0 ;
15091 wxMemoryDC *result;
15092 PyObject * obj0 = 0 ;
15093 char *kwnames[] = {
15094 (char *) "oldDC", NULL
15095 };
15096
15097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15100 {
e3b71cb8 15101 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15102 PyThreadState* __tstate = wxPyBeginAllowThreads();
15103 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15104
15105 wxPyEndAllowThreads(__tstate);
110da5b0 15106 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15107 }
15afbcd0 15108 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
d14a1e28
RD
15109 return resultobj;
15110 fail:
15111 return NULL;
15112}
15113
15114
15115static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15116 PyObject *resultobj;
15117 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15118 wxBitmap *arg2 = 0 ;
15119 PyObject * obj0 = 0 ;
15120 PyObject * obj1 = 0 ;
15121 char *kwnames[] = {
15122 (char *) "self",(char *) "bitmap", NULL
15123 };
15124
15125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15128 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15129 SWIG_POINTER_EXCEPTION | 0)) == -1)
15130 SWIG_fail;
d14a1e28 15131 if (arg2 == NULL) {
15afbcd0
RD
15132 PyErr_SetString(PyExc_TypeError,"null reference");
15133 SWIG_fail;
d14a1e28
RD
15134 }
15135 {
15136 PyThreadState* __tstate = wxPyBeginAllowThreads();
15137 (arg1)->SelectObject((wxBitmap const &)*arg2);
15138
15139 wxPyEndAllowThreads(__tstate);
15140 if (PyErr_Occurred()) SWIG_fail;
15141 }
15142 Py_INCREF(Py_None); resultobj = Py_None;
15143 return resultobj;
15144 fail:
15145 return NULL;
15146}
15147
15148
15149static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15150 PyObject *obj;
15151 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15152 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15153 Py_INCREF(obj);
15154 return Py_BuildValue((char *)"");
15155}
3adfb63b 15156static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
d14a1e28
RD
15157 PyObject *resultobj;
15158 wxDC *arg1 = (wxDC *) 0 ;
15159 wxBitmap *arg2 = 0 ;
15160 wxBufferedDC *result;
15161 PyObject * obj0 = 0 ;
15162 PyObject * obj1 = 0 ;
d14a1e28 15163
3adfb63b 15164 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15afbcd0
RD
15165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15167 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15168 SWIG_POINTER_EXCEPTION | 0)) == -1)
15169 SWIG_fail;
d14a1e28 15170 if (arg2 == NULL) {
15afbcd0
RD
15171 PyErr_SetString(PyExc_TypeError,"null reference");
15172 SWIG_fail;
d14a1e28
RD
15173 }
15174 {
e3b71cb8 15175 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15176 PyThreadState* __tstate = wxPyBeginAllowThreads();
15177 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15178
15179 wxPyEndAllowThreads(__tstate);
110da5b0 15180 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15181 }
15afbcd0 15182 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
d14a1e28
RD
15183 return resultobj;
15184 fail:
15185 return NULL;
15186}
15187
15188
3adfb63b 15189static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
d14a1e28
RD
15190 PyObject *resultobj;
15191 wxDC *arg1 = (wxDC *) 0 ;
15192 wxSize *arg2 = 0 ;
15193 wxBufferedDC *result;
15194 wxSize temp2 ;
15195 PyObject * obj0 = 0 ;
15196 PyObject * obj1 = 0 ;
3adfb63b 15197
e498079e 15198 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15afbcd0
RD
15199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3adfb63b
RD
15201 {
15202 arg2 = &temp2;
15203 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15204 }
3adfb63b 15205 {
e3b71cb8 15206 if (!wxPyCheckForApp()) SWIG_fail;
3adfb63b 15207 PyThreadState* __tstate = wxPyBeginAllowThreads();
e498079e 15208 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
3adfb63b
RD
15209
15210 wxPyEndAllowThreads(__tstate);
110da5b0 15211 if (PyErr_Occurred()) SWIG_fail;
3adfb63b 15212 }
15afbcd0 15213 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
3adfb63b
RD
15214 return resultobj;
15215 fail:
15216 return NULL;
15217}
15218
15219
15220static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15221 int argc;
e498079e 15222 PyObject *argv[3];
3adfb63b
RD
15223 int ii;
15224
15225 argc = PyObject_Length(args);
e498079e 15226 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
3adfb63b
RD
15227 argv[ii] = PyTuple_GetItem(args,ii);
15228 }
15229 if (argc == 2) {
15230 int _v;
15231 {
15232 void *ptr;
15afbcd0 15233 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
3adfb63b
RD
15234 _v = 0;
15235 PyErr_Clear();
15236 } else {
15237 _v = 1;
15238 }
15239 }
15240 if (_v) {
15241 {
15242 void *ptr;
15afbcd0 15243 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
3adfb63b
RD
15244 _v = 0;
15245 PyErr_Clear();
15246 } else {
15247 _v = 1;
15248 }
15249 }
15250 if (_v) {
15251 return _wrap_new_BufferedDC__SWIG_0(self,args);
15252 }
15253 }
15254 }
e498079e 15255 if (argc == 2) {
3adfb63b
RD
15256 int _v;
15257 {
15258 void *ptr;
15afbcd0 15259 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
3adfb63b
RD
15260 _v = 0;
15261 PyErr_Clear();
15262 } else {
15263 _v = 1;
15264 }
15265 }
15266 if (_v) {
15267 {
15268 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15269 }
15270 if (_v) {
e498079e 15271 return _wrap_new_BufferedDC__SWIG_1(self,args);
3adfb63b
RD
15272 }
15273 }
15274 }
15275
15276 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15277 return NULL;
15278}
15279
15280
e498079e 15281static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15282 PyObject *resultobj;
15283 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15284 PyObject * obj0 = 0 ;
15285 char *kwnames[] = {
15286 (char *) "self", NULL
15287 };
15288
e498079e 15289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15292 {
15293 PyThreadState* __tstate = wxPyBeginAllowThreads();
e498079e 15294 delete arg1;
d14a1e28
RD
15295
15296 wxPyEndAllowThreads(__tstate);
15297 if (PyErr_Occurred()) SWIG_fail;
15298 }
15299 Py_INCREF(Py_None); resultobj = Py_None;
15300 return resultobj;
15301 fail:
15302 return NULL;
15303}
15304
15305
e498079e 15306static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15307 PyObject *resultobj;
e498079e 15308 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
3adfb63b 15309 PyObject * obj0 = 0 ;
e498079e
RD
15310 char *kwnames[] = {
15311 (char *) "self", NULL
15312 };
3adfb63b 15313
e498079e 15314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15afbcd0
RD
15315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3adfb63b
RD
15317 {
15318 PyThreadState* __tstate = wxPyBeginAllowThreads();
e498079e 15319 (arg1)->UnMask();
3adfb63b
RD
15320
15321 wxPyEndAllowThreads(__tstate);
15322 if (PyErr_Occurred()) SWIG_fail;
15323 }
e498079e 15324 Py_INCREF(Py_None); resultobj = Py_None;
3adfb63b
RD
15325 return resultobj;
15326 fail:
15327 return NULL;
15328}
15329
15330
e498079e
RD
15331static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15332 PyObject *obj;
15333 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15334 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15335 Py_INCREF(obj);
15336 return Py_BuildValue((char *)"");
15337}
15338static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
3adfb63b
RD
15339 PyObject *resultobj;
15340 wxWindow *arg1 = (wxWindow *) 0 ;
e498079e
RD
15341 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15342 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
d14a1e28
RD
15343 wxBufferedPaintDC *result;
15344 PyObject * obj0 = 0 ;
15345 PyObject * obj1 = 0 ;
e498079e
RD
15346 char *kwnames[] = {
15347 (char *) "window",(char *) "buffer", NULL
15348 };
d14a1e28 15349
e498079e 15350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15353 if (obj1) {
15afbcd0
RD
15354 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15355 SWIG_POINTER_EXCEPTION | 0)) == -1)
15356 SWIG_fail;
e498079e 15357 if (arg2 == NULL) {
15afbcd0
RD
15358 PyErr_SetString(PyExc_TypeError,"null reference");
15359 SWIG_fail;
d14a1e28
RD
15360 }
15361 }
15362 {
e3b71cb8 15363 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 15364 PyThreadState* __tstate = wxPyBeginAllowThreads();
e498079e 15365 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
d14a1e28
RD
15366
15367 wxPyEndAllowThreads(__tstate);
110da5b0 15368 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15369 }
15afbcd0 15370 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
d14a1e28
RD
15371 return resultobj;
15372 fail:
15373 return NULL;
15374}
15375
15376
15377static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15378 PyObject *obj;
15379 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15380 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15381 Py_INCREF(obj);
15382 return Py_BuildValue((char *)"");
15383}
15384static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15385 PyObject *resultobj;
15386 wxScreenDC *result;
15387 char *kwnames[] = {
15388 NULL
15389 };
15390
15391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15392 {
e3b71cb8 15393 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15394 PyThreadState* __tstate = wxPyBeginAllowThreads();
15395 result = (wxScreenDC *)new wxScreenDC();
15396
15397 wxPyEndAllowThreads(__tstate);
110da5b0 15398 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15399 }
15afbcd0 15400 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
d14a1e28
RD
15401 return resultobj;
15402 fail:
15403 return NULL;
15404}
15405
15406
15407static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15408 PyObject *resultobj;
15409 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15410 wxWindow *arg2 = (wxWindow *) 0 ;
15411 bool result;
15412 PyObject * obj0 = 0 ;
15413 PyObject * obj1 = 0 ;
15414 char *kwnames[] = {
15415 (char *) "self",(char *) "window", NULL
15416 };
15417
15418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15421 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15423 {
15424 PyThreadState* __tstate = wxPyBeginAllowThreads();
15425 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15426
15427 wxPyEndAllowThreads(__tstate);
15428 if (PyErr_Occurred()) SWIG_fail;
15429 }
4f89f6a3
RD
15430 {
15431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15432 }
d14a1e28
RD
15433 return resultobj;
15434 fail:
15435 return NULL;
15436}
15437
15438
15439static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15440 PyObject *resultobj;
15441 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15442 wxRect *arg2 = (wxRect *) NULL ;
15443 bool result;
15444 PyObject * obj0 = 0 ;
15445 PyObject * obj1 = 0 ;
15446 char *kwnames[] = {
15447 (char *) "self",(char *) "rect", NULL
15448 };
15449
15450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15453 if (obj1) {
15afbcd0
RD
15454 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15456 }
15457 {
15458 PyThreadState* __tstate = wxPyBeginAllowThreads();
15459 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15460
15461 wxPyEndAllowThreads(__tstate);
15462 if (PyErr_Occurred()) SWIG_fail;
15463 }
4f89f6a3
RD
15464 {
15465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15466 }
d14a1e28
RD
15467 return resultobj;
15468 fail:
15469 return NULL;
15470}
15471
15472
15473static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15474 PyObject *resultobj;
15475 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15476 bool result;
15477 PyObject * obj0 = 0 ;
15478 char *kwnames[] = {
15479 (char *) "self", NULL
15480 };
15481
15482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15afbcd0
RD
15483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15485 {
15486 PyThreadState* __tstate = wxPyBeginAllowThreads();
15487 result = (bool)(arg1)->EndDrawingOnTop();
15488
15489 wxPyEndAllowThreads(__tstate);
15490 if (PyErr_Occurred()) SWIG_fail;
15491 }
4f89f6a3
RD
15492 {
15493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15494 }
d14a1e28
RD
15495 return resultobj;
15496 fail:
15497 return NULL;
15498}
15499
15500
15501static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15502 PyObject *obj;
15503 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15504 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15505 Py_INCREF(obj);
15506 return Py_BuildValue((char *)"");
15507}
15508static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15509 PyObject *resultobj;
15510 wxWindow *arg1 = (wxWindow *) 0 ;
15511 wxClientDC *result;
15512 PyObject * obj0 = 0 ;
15513 char *kwnames[] = {
15514 (char *) "win", NULL
15515 };
15516
15517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15520 {
e3b71cb8 15521 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15522 PyThreadState* __tstate = wxPyBeginAllowThreads();
15523 result = (wxClientDC *)new wxClientDC(arg1);
15524
15525 wxPyEndAllowThreads(__tstate);
110da5b0 15526 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15527 }
15afbcd0 15528 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
d14a1e28
RD
15529 return resultobj;
15530 fail:
15531 return NULL;
15532}
15533
15534
15535static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15536 PyObject *obj;
15537 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15538 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15539 Py_INCREF(obj);
15540 return Py_BuildValue((char *)"");
15541}
15542static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15543 PyObject *resultobj;
15544 wxWindow *arg1 = (wxWindow *) 0 ;
15545 wxPaintDC *result;
15546 PyObject * obj0 = 0 ;
15547 char *kwnames[] = {
15548 (char *) "win", NULL
15549 };
15550
15551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15554 {
e3b71cb8 15555 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15556 PyThreadState* __tstate = wxPyBeginAllowThreads();
15557 result = (wxPaintDC *)new wxPaintDC(arg1);
15558
15559 wxPyEndAllowThreads(__tstate);
110da5b0 15560 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15561 }
15afbcd0 15562 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
d14a1e28
RD
15563 return resultobj;
15564 fail:
15565 return NULL;
15566}
15567
15568
15569static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15570 PyObject *obj;
15571 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15572 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15573 Py_INCREF(obj);
15574 return Py_BuildValue((char *)"");
15575}
15576static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15577 PyObject *resultobj;
15578 wxWindow *arg1 = (wxWindow *) 0 ;
15579 wxWindowDC *result;
15580 PyObject * obj0 = 0 ;
15581 char *kwnames[] = {
15582 (char *) "win", NULL
15583 };
15584
15585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15588 {
e3b71cb8 15589 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15590 PyThreadState* __tstate = wxPyBeginAllowThreads();
15591 result = (wxWindowDC *)new wxWindowDC(arg1);
15592
15593 wxPyEndAllowThreads(__tstate);
110da5b0 15594 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15595 }
15afbcd0 15596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
d14a1e28
RD
15597 return resultobj;
15598 fail:
15599 return NULL;
15600}
15601
15602
15603static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15604 PyObject *obj;
15605 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15606 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15607 Py_INCREF(obj);
15608 return Py_BuildValue((char *)"");
15609}
15610static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15611 PyObject *resultobj;
15612 wxDC *arg1 = 0 ;
15613 bool arg2 ;
15614 wxMirrorDC *result;
15615 PyObject * obj0 = 0 ;
15616 PyObject * obj1 = 0 ;
15617 char *kwnames[] = {
15618 (char *) "dc",(char *) "mirror", NULL
15619 };
15620
15621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15623 SWIG_POINTER_EXCEPTION | 0)) == -1)
15624 SWIG_fail;
d14a1e28 15625 if (arg1 == NULL) {
15afbcd0
RD
15626 PyErr_SetString(PyExc_TypeError,"null reference");
15627 SWIG_fail;
a41e16b6 15628 }
15afbcd0
RD
15629 arg2 = (bool) SWIG_AsBool(obj1);
15630 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15631 {
e3b71cb8 15632 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15633 PyThreadState* __tstate = wxPyBeginAllowThreads();
15634 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15635
15636 wxPyEndAllowThreads(__tstate);
110da5b0 15637 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15638 }
15afbcd0 15639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
d14a1e28
RD
15640 return resultobj;
15641 fail:
15642 return NULL;
15643}
15644
15645
15646static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15647 PyObject *obj;
15648 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15649 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15650 Py_INCREF(obj);
15651 return Py_BuildValue((char *)"");
15652}
15653static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15654 PyObject *resultobj;
15655 wxPrintData *arg1 = 0 ;
15656 wxPostScriptDC *result;
15657 PyObject * obj0 = 0 ;
15658 char *kwnames[] = {
15659 (char *) "printData", NULL
15660 };
15661
15662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15664 SWIG_POINTER_EXCEPTION | 0)) == -1)
15665 SWIG_fail;
d14a1e28 15666 if (arg1 == NULL) {
15afbcd0
RD
15667 PyErr_SetString(PyExc_TypeError,"null reference");
15668 SWIG_fail;
d14a1e28
RD
15669 }
15670 {
e3b71cb8 15671 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15672 PyThreadState* __tstate = wxPyBeginAllowThreads();
15673 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15674
15675 wxPyEndAllowThreads(__tstate);
110da5b0 15676 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15677 }
15afbcd0 15678 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
d14a1e28
RD
15679 return resultobj;
15680 fail:
15681 return NULL;
15682}
15683
15684
15685static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15686 PyObject *resultobj;
15687 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15688 wxPrintData *result;
15689 PyObject * obj0 = 0 ;
15690 char *kwnames[] = {
15691 (char *) "self", NULL
15692 };
15693
15694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15afbcd0
RD
15695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15697 {
15698 PyThreadState* __tstate = wxPyBeginAllowThreads();
15699 {
15700 wxPrintData &_result_ref = (arg1)->GetPrintData();
15701 result = (wxPrintData *) &_result_ref;
15702 }
15703
15704 wxPyEndAllowThreads(__tstate);
15705 if (PyErr_Occurred()) SWIG_fail;
15706 }
15afbcd0 15707 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
d14a1e28
RD
15708 return resultobj;
15709 fail:
15710 return NULL;
15711}
15712
15713
15714static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15715 PyObject *resultobj;
15716 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15717 wxPrintData *arg2 = 0 ;
15718 PyObject * obj0 = 0 ;
15719 PyObject * obj1 = 0 ;
15720 char *kwnames[] = {
15721 (char *) "self",(char *) "data", NULL
15722 };
15723
15724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15727 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15728 SWIG_POINTER_EXCEPTION | 0)) == -1)
15729 SWIG_fail;
d14a1e28 15730 if (arg2 == NULL) {
15afbcd0
RD
15731 PyErr_SetString(PyExc_TypeError,"null reference");
15732 SWIG_fail;
d14a1e28
RD
15733 }
15734 {
15735 PyThreadState* __tstate = wxPyBeginAllowThreads();
15736 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15737
15738 wxPyEndAllowThreads(__tstate);
15739 if (PyErr_Occurred()) SWIG_fail;
15740 }
15741 Py_INCREF(Py_None); resultobj = Py_None;
15742 return resultobj;
15743 fail:
15744 return NULL;
15745}
15746
15747
15748static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15749 PyObject *resultobj;
15750 int arg1 ;
994141e6 15751 PyObject * obj0 = 0 ;
d14a1e28
RD
15752 char *kwnames[] = {
15753 (char *) "ppi", NULL
15754 };
15755
994141e6 15756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15afbcd0
RD
15757 arg1 = (int) SWIG_AsInt(obj0);
15758 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
15759 {
15760 PyThreadState* __tstate = wxPyBeginAllowThreads();
15761 wxPostScriptDC::SetResolution(arg1);
15762
15763 wxPyEndAllowThreads(__tstate);
15764 if (PyErr_Occurred()) SWIG_fail;
15765 }
15766 Py_INCREF(Py_None); resultobj = Py_None;
15767 return resultobj;
15768 fail:
15769 return NULL;
15770}
15771
15772
15773static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15774 PyObject *resultobj;
15775 int result;
15776 char *kwnames[] = {
15777 NULL
15778 };
15779
15780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15781 {
15782 PyThreadState* __tstate = wxPyBeginAllowThreads();
15783 result = (int)wxPostScriptDC::GetResolution();
15784
15785 wxPyEndAllowThreads(__tstate);
15786 if (PyErr_Occurred()) SWIG_fail;
15787 }
15afbcd0 15788 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
15789 return resultobj;
15790 fail:
15791 return NULL;
15792}
15793
15794
15795static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15796 PyObject *obj;
15797 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15798 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15799 Py_INCREF(obj);
15800 return Py_BuildValue((char *)"");
15801}
15802static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15803 PyObject *resultobj;
15804 wxString const &arg1_defvalue = wxPyEmptyString ;
15805 wxString *arg1 = (wxString *) &arg1_defvalue ;
15806 wxMetaFile *result;
e811c8ce 15807 bool temp1 = False ;
d14a1e28
RD
15808 PyObject * obj0 = 0 ;
15809 char *kwnames[] = {
15810 (char *) "filename", NULL
15811 };
15812
15813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15814 if (obj0) {
15815 {
15816 arg1 = wxString_in_helper(obj0);
15817 if (arg1 == NULL) SWIG_fail;
e811c8ce 15818 temp1 = True;
d14a1e28
RD
15819 }
15820 }
15821 {
e3b71cb8 15822 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15823 PyThreadState* __tstate = wxPyBeginAllowThreads();
15824 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15825
15826 wxPyEndAllowThreads(__tstate);
110da5b0 15827 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15828 }
15afbcd0 15829 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
d14a1e28
RD
15830 {
15831 if (temp1)
15832 delete arg1;
15833 }
15834 return resultobj;
15835 fail:
15836 {
15837 if (temp1)
15838 delete arg1;
15839 }
15840 return NULL;
15841}
15842
15843
15844static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15845 PyObject *obj;
15846 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15847 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15848 Py_INCREF(obj);
15849 return Py_BuildValue((char *)"");
15850}
15851static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15852 PyObject *resultobj;
15853 wxString const &arg1_defvalue = wxPyEmptyString ;
15854 wxString *arg1 = (wxString *) &arg1_defvalue ;
15855 int arg2 = (int) 0 ;
15856 int arg3 = (int) 0 ;
15857 wxString const &arg4_defvalue = wxPyEmptyString ;
15858 wxString *arg4 = (wxString *) &arg4_defvalue ;
15859 wxMetaFileDC *result;
e811c8ce
RD
15860 bool temp1 = False ;
15861 bool temp4 = False ;
d14a1e28 15862 PyObject * obj0 = 0 ;
994141e6
RD
15863 PyObject * obj1 = 0 ;
15864 PyObject * obj2 = 0 ;
d14a1e28
RD
15865 PyObject * obj3 = 0 ;
15866 char *kwnames[] = {
15867 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15868 };
15869
994141e6 15870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
15871 if (obj0) {
15872 {
15873 arg1 = wxString_in_helper(obj0);
15874 if (arg1 == NULL) SWIG_fail;
e811c8ce 15875 temp1 = True;
d14a1e28
RD
15876 }
15877 }
994141e6 15878 if (obj1) {
15afbcd0
RD
15879 arg2 = (int) SWIG_AsInt(obj1);
15880 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
15881 }
15882 if (obj2) {
15afbcd0
RD
15883 arg3 = (int) SWIG_AsInt(obj2);
15884 if (PyErr_Occurred()) SWIG_fail;
994141e6 15885 }
d14a1e28
RD
15886 if (obj3) {
15887 {
15888 arg4 = wxString_in_helper(obj3);
15889 if (arg4 == NULL) SWIG_fail;
e811c8ce 15890 temp4 = True;
d14a1e28
RD
15891 }
15892 }
15893 {
e3b71cb8 15894 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15895 PyThreadState* __tstate = wxPyBeginAllowThreads();
15896 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15897
15898 wxPyEndAllowThreads(__tstate);
110da5b0 15899 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15900 }
15afbcd0 15901 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
d14a1e28
RD
15902 {
15903 if (temp1)
15904 delete arg1;
15905 }
15906 {
15907 if (temp4)
15908 delete arg4;
15909 }
15910 return resultobj;
15911 fail:
15912 {
15913 if (temp1)
15914 delete arg1;
15915 }
15916 {
15917 if (temp4)
15918 delete arg4;
15919 }
15920 return NULL;
15921}
15922
15923
15924static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15925 PyObject *obj;
15926 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15927 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15928 Py_INCREF(obj);
15929 return Py_BuildValue((char *)"");
15930}
15931static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15932 PyObject *resultobj;
15933 wxPrintData *arg1 = 0 ;
15934 wxPrinterDC *result;
15935 PyObject * obj0 = 0 ;
15936 char *kwnames[] = {
15937 (char *) "printData", NULL
15938 };
15939
15940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15942 SWIG_POINTER_EXCEPTION | 0)) == -1)
15943 SWIG_fail;
d14a1e28 15944 if (arg1 == NULL) {
15afbcd0
RD
15945 PyErr_SetString(PyExc_TypeError,"null reference");
15946 SWIG_fail;
d14a1e28
RD
15947 }
15948 {
e3b71cb8 15949 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15950 PyThreadState* __tstate = wxPyBeginAllowThreads();
15951 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15952
15953 wxPyEndAllowThreads(__tstate);
110da5b0 15954 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15955 }
15afbcd0 15956 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
d14a1e28
RD
15957 return resultobj;
15958 fail:
15959 return NULL;
15960}
15961
15962
15963static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15964 PyObject *obj;
15965 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15966 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15967 Py_INCREF(obj);
15968 return Py_BuildValue((char *)"");
15969}
15970static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15971 PyObject *resultobj;
15972 int arg1 ;
15973 int arg2 ;
e811c8ce 15974 int arg3 = (int) True ;
d14a1e28
RD
15975 int arg4 = (int) 1 ;
15976 wxImageList *result;
994141e6
RD
15977 PyObject * obj0 = 0 ;
15978 PyObject * obj1 = 0 ;
15979 PyObject * obj2 = 0 ;
15980 PyObject * obj3 = 0 ;
d14a1e28
RD
15981 char *kwnames[] = {
15982 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15983 };
15984
994141e6 15985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
15986 arg1 = (int) SWIG_AsInt(obj0);
15987 if (PyErr_Occurred()) SWIG_fail;
15988 arg2 = (int) SWIG_AsInt(obj1);
15989 if (PyErr_Occurred()) SWIG_fail;
994141e6 15990 if (obj2) {
15afbcd0
RD
15991 arg3 = (int) SWIG_AsInt(obj2);
15992 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
15993 }
15994 if (obj3) {
15afbcd0
RD
15995 arg4 = (int) SWIG_AsInt(obj3);
15996 if (PyErr_Occurred()) SWIG_fail;
994141e6 15997 }
d14a1e28 15998 {
e3b71cb8 15999 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
16000 PyThreadState* __tstate = wxPyBeginAllowThreads();
16001 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16002
16003 wxPyEndAllowThreads(__tstate);
110da5b0 16004 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16005 }
16006 {
412d302d 16007 resultobj = wxPyMake_wxObject(result, 1);
d14a1e28
RD
16008 }
16009 return resultobj;
16010 fail:
16011 return NULL;
16012}
16013
16014
16015static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16016 PyObject *resultobj;
16017 wxImageList *arg1 = (wxImageList *) 0 ;
16018 PyObject * obj0 = 0 ;
16019 char *kwnames[] = {
16020 (char *) "self", NULL
16021 };
16022
16023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
15afbcd0
RD
16024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16026 {
16027 PyThreadState* __tstate = wxPyBeginAllowThreads();
16028 delete arg1;
16029
16030 wxPyEndAllowThreads(__tstate);
16031 if (PyErr_Occurred()) SWIG_fail;
16032 }
16033 Py_INCREF(Py_None); resultobj = Py_None;
16034 return resultobj;
16035 fail:
16036 return NULL;
16037}
16038
16039
16040static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16041 PyObject *resultobj;
16042 wxImageList *arg1 = (wxImageList *) 0 ;
16043 wxBitmap *arg2 = 0 ;
16044 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16045 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16046 int result;
16047 PyObject * obj0 = 0 ;
16048 PyObject * obj1 = 0 ;
16049 PyObject * obj2 = 0 ;
16050 char *kwnames[] = {
16051 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16052 };
16053
16054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
16055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16057 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16058 SWIG_POINTER_EXCEPTION | 0)) == -1)
16059 SWIG_fail;
d14a1e28 16060 if (arg2 == NULL) {
15afbcd0
RD
16061 PyErr_SetString(PyExc_TypeError,"null reference");
16062 SWIG_fail;
d14a1e28
RD
16063 }
16064 if (obj2) {
15afbcd0
RD
16065 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16066 SWIG_POINTER_EXCEPTION | 0)) == -1)
16067 SWIG_fail;
d14a1e28 16068 if (arg3 == NULL) {
15afbcd0
RD
16069 PyErr_SetString(PyExc_TypeError,"null reference");
16070 SWIG_fail;
d14a1e28
RD
16071 }
16072 }
16073 {
16074 PyThreadState* __tstate = wxPyBeginAllowThreads();
16075 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16076
16077 wxPyEndAllowThreads(__tstate);
16078 if (PyErr_Occurred()) SWIG_fail;
16079 }
15afbcd0 16080 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16081 return resultobj;
16082 fail:
16083 return NULL;
16084}
16085
16086
16087static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16088 PyObject *resultobj;
16089 wxImageList *arg1 = (wxImageList *) 0 ;
16090 wxBitmap *arg2 = 0 ;
16091 wxColour *arg3 = 0 ;
16092 int result;
16093 wxColour temp3 ;
16094 PyObject * obj0 = 0 ;
16095 PyObject * obj1 = 0 ;
16096 PyObject * obj2 = 0 ;
16097 char *kwnames[] = {
16098 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16099 };
16100
16101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
16102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16104 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16105 SWIG_POINTER_EXCEPTION | 0)) == -1)
16106 SWIG_fail;
d14a1e28 16107 if (arg2 == NULL) {
15afbcd0
RD
16108 PyErr_SetString(PyExc_TypeError,"null reference");
16109 SWIG_fail;
d14a1e28
RD
16110 }
16111 {
16112 arg3 = &temp3;
16113 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16114 }
16115 {
16116 PyThreadState* __tstate = wxPyBeginAllowThreads();
16117 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16118
16119 wxPyEndAllowThreads(__tstate);
16120 if (PyErr_Occurred()) SWIG_fail;
16121 }
15afbcd0 16122 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16123 return resultobj;
16124 fail:
16125 return NULL;
16126}
16127
16128
16129static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16130 PyObject *resultobj;
16131 wxImageList *arg1 = (wxImageList *) 0 ;
16132 wxIcon *arg2 = 0 ;
16133 int result;
16134 PyObject * obj0 = 0 ;
16135 PyObject * obj1 = 0 ;
16136 char *kwnames[] = {
16137 (char *) "self",(char *) "icon", NULL
16138 };
16139
16140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16143 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16144 SWIG_POINTER_EXCEPTION | 0)) == -1)
16145 SWIG_fail;
d14a1e28 16146 if (arg2 == NULL) {
15afbcd0
RD
16147 PyErr_SetString(PyExc_TypeError,"null reference");
16148 SWIG_fail;
d14a1e28
RD
16149 }
16150 {
16151 PyThreadState* __tstate = wxPyBeginAllowThreads();
16152 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16153
16154 wxPyEndAllowThreads(__tstate);
16155 if (PyErr_Occurred()) SWIG_fail;
16156 }
15afbcd0 16157 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16158 return resultobj;
16159 fail:
16160 return NULL;
16161}
16162
16163
16164static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16165 PyObject *resultobj;
16166 wxImageList *arg1 = (wxImageList *) 0 ;
16167 int arg2 ;
16168 wxBitmap *arg3 = 0 ;
16169 bool result;
16170 PyObject * obj0 = 0 ;
994141e6 16171 PyObject * obj1 = 0 ;
d14a1e28
RD
16172 PyObject * obj2 = 0 ;
16173 char *kwnames[] = {
16174 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16175 };
16176
994141e6 16177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
16178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16180 arg2 = (int) SWIG_AsInt(obj1);
16181 if (PyErr_Occurred()) SWIG_fail;
16182 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16183 SWIG_POINTER_EXCEPTION | 0)) == -1)
16184 SWIG_fail;
d14a1e28 16185 if (arg3 == NULL) {
15afbcd0
RD
16186 PyErr_SetString(PyExc_TypeError,"null reference");
16187 SWIG_fail;
d14a1e28
RD
16188 }
16189 {
16190 PyThreadState* __tstate = wxPyBeginAllowThreads();
16191 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16192
16193 wxPyEndAllowThreads(__tstate);
16194 if (PyErr_Occurred()) SWIG_fail;
16195 }
4f89f6a3
RD
16196 {
16197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16198 }
d14a1e28
RD
16199 return resultobj;
16200 fail:
16201 return NULL;
16202}
16203
16204
16205static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16206 PyObject *resultobj;
16207 wxImageList *arg1 = (wxImageList *) 0 ;
16208 int arg2 ;
16209 wxDC *arg3 = 0 ;
16210 int arg4 ;
16211 int arg5 ;
16212 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
e811c8ce 16213 bool arg7 = (bool) (bool)False ;
d14a1e28
RD
16214 bool result;
16215 PyObject * obj0 = 0 ;
994141e6 16216 PyObject * obj1 = 0 ;
d14a1e28 16217 PyObject * obj2 = 0 ;
994141e6
RD
16218 PyObject * obj3 = 0 ;
16219 PyObject * obj4 = 0 ;
16220 PyObject * obj5 = 0 ;
d14a1e28
RD
16221 PyObject * obj6 = 0 ;
16222 char *kwnames[] = {
16223 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16224 };
16225
994141e6 16226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15afbcd0
RD
16227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16229 arg2 = (int) SWIG_AsInt(obj1);
16230 if (PyErr_Occurred()) SWIG_fail;
16231 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16232 SWIG_POINTER_EXCEPTION | 0)) == -1)
16233 SWIG_fail;
d14a1e28 16234 if (arg3 == NULL) {
15afbcd0
RD
16235 PyErr_SetString(PyExc_TypeError,"null reference");
16236 SWIG_fail;
994141e6 16237 }
15afbcd0
RD
16238 arg4 = (int) SWIG_AsInt(obj3);
16239 if (PyErr_Occurred()) SWIG_fail;
16240 arg5 = (int) SWIG_AsInt(obj4);
16241 if (PyErr_Occurred()) SWIG_fail;
994141e6 16242 if (obj5) {
15afbcd0
RD
16243 arg6 = (int) SWIG_AsInt(obj5);
16244 if (PyErr_Occurred()) SWIG_fail;
994141e6 16245 }
d14a1e28 16246 if (obj6) {
15afbcd0
RD
16247 arg7 = (bool const) SWIG_AsBool(obj6);
16248 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16249 }
16250 {
16251 PyThreadState* __tstate = wxPyBeginAllowThreads();
16252 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16253
16254 wxPyEndAllowThreads(__tstate);
16255 if (PyErr_Occurred()) SWIG_fail;
16256 }
4f89f6a3
RD
16257 {
16258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16259 }
d14a1e28
RD
16260 return resultobj;
16261 fail:
16262 return NULL;
16263}
16264
16265
16266static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16267 PyObject *resultobj;
16268 wxImageList *arg1 = (wxImageList *) 0 ;
16269 int result;
16270 PyObject * obj0 = 0 ;
16271 char *kwnames[] = {
16272 (char *) "self", NULL
16273 };
16274
16275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
16276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16278 {
16279 PyThreadState* __tstate = wxPyBeginAllowThreads();
16280 result = (int)(arg1)->GetImageCount();
16281
16282 wxPyEndAllowThreads(__tstate);
16283 if (PyErr_Occurred()) SWIG_fail;
16284 }
15afbcd0 16285 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16286 return resultobj;
16287 fail:
16288 return NULL;
16289}
16290
16291
16292static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16293 PyObject *resultobj;
16294 wxImageList *arg1 = (wxImageList *) 0 ;
16295 int arg2 ;
16296 bool result;
16297 PyObject * obj0 = 0 ;
994141e6 16298 PyObject * obj1 = 0 ;
d14a1e28
RD
16299 char *kwnames[] = {
16300 (char *) "self",(char *) "index", NULL
16301 };
16302
994141e6 16303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16306 arg2 = (int) SWIG_AsInt(obj1);
16307 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16308 {
16309 PyThreadState* __tstate = wxPyBeginAllowThreads();
16310 result = (bool)(arg1)->Remove(arg2);
16311
16312 wxPyEndAllowThreads(__tstate);
16313 if (PyErr_Occurred()) SWIG_fail;
16314 }
4f89f6a3
RD
16315 {
16316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16317 }
d14a1e28
RD
16318 return resultobj;
16319 fail:
16320 return NULL;
16321}
16322
16323
16324static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16325 PyObject *resultobj;
16326 wxImageList *arg1 = (wxImageList *) 0 ;
16327 bool result;
16328 PyObject * obj0 = 0 ;
16329 char *kwnames[] = {
16330 (char *) "self", NULL
16331 };
16332
16333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
15afbcd0
RD
16334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16336 {
16337 PyThreadState* __tstate = wxPyBeginAllowThreads();
16338 result = (bool)(arg1)->RemoveAll();
16339
16340 wxPyEndAllowThreads(__tstate);
16341 if (PyErr_Occurred()) SWIG_fail;
16342 }
4f89f6a3
RD
16343 {
16344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16345 }
d14a1e28
RD
16346 return resultobj;
16347 fail:
16348 return NULL;
16349}
16350
16351
16352static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16353 PyObject *resultobj;
16354 wxImageList *arg1 = (wxImageList *) 0 ;
16355 int arg2 ;
16356 int *arg3 = 0 ;
16357 int *arg4 = 0 ;
16358 int temp3 ;
16359 int temp4 ;
16360 PyObject * obj0 = 0 ;
994141e6 16361 PyObject * obj1 = 0 ;
d14a1e28
RD
16362 char *kwnames[] = {
16363 (char *) "self",(char *) "index", NULL
16364 };
16365
16366 arg3 = &temp3;
16367 arg4 = &temp4;
994141e6 16368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16371 arg2 = (int) SWIG_AsInt(obj1);
16372 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16373 {
16374 PyThreadState* __tstate = wxPyBeginAllowThreads();
16375 (arg1)->GetSize(arg2,*arg3,*arg4);
16376
16377 wxPyEndAllowThreads(__tstate);
16378 if (PyErr_Occurred()) SWIG_fail;
16379 }
16380 Py_INCREF(Py_None); resultobj = Py_None;
16381 {
16382 PyObject *o = PyInt_FromLong((long) (*arg3));
16383 resultobj = t_output_helper(resultobj,o);
16384 }
16385 {
16386 PyObject *o = PyInt_FromLong((long) (*arg4));
16387 resultobj = t_output_helper(resultobj,o);
16388 }
16389 return resultobj;
16390 fail:
16391 return NULL;
16392}
16393
16394
16395static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16396 PyObject *obj;
16397 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16398 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16399 Py_INCREF(obj);
16400 return Py_BuildValue((char *)"");
16401}
994141e6
RD
16402static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16403 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16404 return 1;
d14a1e28
RD
16405}
16406
16407
994141e6
RD
16408static PyObject *_wrap_NORMAL_FONT_get() {
16409 PyObject *pyobj;
d14a1e28 16410
15afbcd0 16411 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
994141e6 16412 return pyobj;
d14a1e28
RD
16413}
16414
16415
994141e6
RD
16416static int _wrap_SMALL_FONT_set(PyObject *_val) {
16417 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16418 return 1;
d14a1e28
RD
16419}
16420
16421
994141e6
RD
16422static PyObject *_wrap_SMALL_FONT_get() {
16423 PyObject *pyobj;
d14a1e28 16424
15afbcd0 16425 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
994141e6 16426 return pyobj;
d14a1e28
RD
16427}
16428
16429
994141e6
RD
16430static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16431 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16432 return 1;
d14a1e28 16433}
994141e6
RD
16434
16435
16436static PyObject *_wrap_ITALIC_FONT_get() {
16437 PyObject *pyobj;
d14a1e28 16438
15afbcd0 16439 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
994141e6 16440 return pyobj;
d14a1e28
RD
16441}
16442
16443
994141e6
RD
16444static int _wrap_SWISS_FONT_set(PyObject *_val) {
16445 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16446 return 1;
d14a1e28
RD
16447}
16448
16449
994141e6
RD
16450static PyObject *_wrap_SWISS_FONT_get() {
16451 PyObject *pyobj;
d14a1e28 16452
15afbcd0 16453 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
994141e6 16454 return pyobj;
d14a1e28
RD
16455}
16456
16457
994141e6
RD
16458static int _wrap_RED_PEN_set(PyObject *_val) {
16459 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16460 return 1;
16461}
16462
16463
16464static PyObject *_wrap_RED_PEN_get() {
16465 PyObject *pyobj;
d14a1e28 16466
15afbcd0 16467 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16468 return pyobj;
d14a1e28
RD
16469}
16470
16471
994141e6
RD
16472static int _wrap_CYAN_PEN_set(PyObject *_val) {
16473 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16474 return 1;
d14a1e28 16475}
994141e6
RD
16476
16477
16478static PyObject *_wrap_CYAN_PEN_get() {
16479 PyObject *pyobj;
d14a1e28 16480
15afbcd0 16481 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16482 return pyobj;
d14a1e28
RD
16483}
16484
16485
994141e6
RD
16486static int _wrap_GREEN_PEN_set(PyObject *_val) {
16487 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16488 return 1;
16489}
16490
16491
16492static PyObject *_wrap_GREEN_PEN_get() {
16493 PyObject *pyobj;
d14a1e28 16494
15afbcd0 16495 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16496 return pyobj;
d14a1e28
RD
16497}
16498
16499
994141e6
RD
16500static int _wrap_BLACK_PEN_set(PyObject *_val) {
16501 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16502 return 1;
16503}
16504
16505
16506static PyObject *_wrap_BLACK_PEN_get() {
16507 PyObject *pyobj;
d14a1e28 16508
15afbcd0 16509 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16510 return pyobj;
d14a1e28
RD
16511}
16512
16513
994141e6
RD
16514static int _wrap_WHITE_PEN_set(PyObject *_val) {
16515 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16516 return 1;
d14a1e28
RD
16517}
16518
16519
994141e6
RD
16520static PyObject *_wrap_WHITE_PEN_get() {
16521 PyObject *pyobj;
d14a1e28 16522
15afbcd0 16523 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16524 return pyobj;
d14a1e28
RD
16525}
16526
16527
994141e6
RD
16528static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16529 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16530 return 1;
d14a1e28
RD
16531}
16532
16533
994141e6
RD
16534static PyObject *_wrap_TRANSPARENT_PEN_get() {
16535 PyObject *pyobj;
d14a1e28 16536
15afbcd0 16537 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16538 return pyobj;
d14a1e28
RD
16539}
16540
16541
994141e6
RD
16542static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16543 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16544 return 1;
d14a1e28
RD
16545}
16546
16547
994141e6
RD
16548static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16549 PyObject *pyobj;
d14a1e28 16550
15afbcd0 16551 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16552 return pyobj;
d14a1e28
RD
16553}
16554
16555
994141e6
RD
16556static int _wrap_GREY_PEN_set(PyObject *_val) {
16557 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16558 return 1;
d14a1e28
RD
16559}
16560
16561
994141e6
RD
16562static PyObject *_wrap_GREY_PEN_get() {
16563 PyObject *pyobj;
16564
15afbcd0 16565 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16566 return pyobj;
d14a1e28 16567}
994141e6
RD
16568
16569
16570static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16571 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
d14a1e28
RD
16572 return 1;
16573}
16574
16575
994141e6 16576static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
d14a1e28
RD
16577 PyObject *pyobj;
16578
15afbcd0 16579 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
16580 return pyobj;
16581}
16582
16583
994141e6
RD
16584static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16585 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
d14a1e28
RD
16586 return 1;
16587}
16588
16589
994141e6 16590static PyObject *_wrap_LIGHT_GREY_PEN_get() {
d14a1e28
RD
16591 PyObject *pyobj;
16592
15afbcd0 16593 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
16594 return pyobj;
16595}
16596
16597
994141e6
RD
16598static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16599 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
d14a1e28
RD
16600 return 1;
16601}
16602
16603
994141e6 16604static PyObject *_wrap_BLUE_BRUSH_get() {
d14a1e28
RD
16605 PyObject *pyobj;
16606
15afbcd0 16607 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16608 return pyobj;
16609}
16610
16611
994141e6
RD
16612static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16613 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
d14a1e28
RD
16614 return 1;
16615}
16616
16617
994141e6 16618static PyObject *_wrap_GREEN_BRUSH_get() {
d14a1e28
RD
16619 PyObject *pyobj;
16620
15afbcd0 16621 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16622 return pyobj;
16623}
16624
16625
994141e6
RD
16626static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16627 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
d14a1e28
RD
16628 return 1;
16629}
16630
16631
994141e6 16632static PyObject *_wrap_WHITE_BRUSH_get() {
d14a1e28
RD
16633 PyObject *pyobj;
16634
15afbcd0 16635 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16636 return pyobj;
16637}
16638
16639
994141e6
RD
16640static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16641 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
d14a1e28
RD
16642 return 1;
16643}
16644
16645
994141e6 16646static PyObject *_wrap_BLACK_BRUSH_get() {
d14a1e28
RD
16647 PyObject *pyobj;
16648
15afbcd0 16649 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16650 return pyobj;
16651}
16652
16653
994141e6
RD
16654static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16655 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
d14a1e28
RD
16656 return 1;
16657}
16658
16659
994141e6 16660static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
d14a1e28
RD
16661 PyObject *pyobj;
16662
15afbcd0 16663 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16664 return pyobj;
16665}
16666
16667
994141e6
RD
16668static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16669 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
d14a1e28
RD
16670 return 1;
16671}
16672
16673
994141e6 16674static PyObject *_wrap_CYAN_BRUSH_get() {
d14a1e28
RD
16675 PyObject *pyobj;
16676
15afbcd0 16677 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16678 return pyobj;
16679}
16680
16681
994141e6
RD
16682static int _wrap_RED_BRUSH_set(PyObject *_val) {
16683 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
d14a1e28
RD
16684 return 1;
16685}
16686
16687
994141e6 16688static PyObject *_wrap_RED_BRUSH_get() {
d14a1e28
RD
16689 PyObject *pyobj;
16690
15afbcd0 16691 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16692 return pyobj;
16693}
16694
16695
994141e6
RD
16696static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16697 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
d14a1e28
RD
16698 return 1;
16699}
16700
16701
994141e6 16702static PyObject *_wrap_GREY_BRUSH_get() {
d14a1e28
RD
16703 PyObject *pyobj;
16704
15afbcd0 16705 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16706 return pyobj;
16707}
16708
16709
994141e6
RD
16710static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16711 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
d14a1e28
RD
16712 return 1;
16713}
16714
16715
994141e6 16716static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
d14a1e28
RD
16717 PyObject *pyobj;
16718
15afbcd0 16719 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16720 return pyobj;
16721}
16722
16723
994141e6
RD
16724static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16725 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
d14a1e28
RD
16726 return 1;
16727}
16728
16729
994141e6 16730static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
d14a1e28
RD
16731 PyObject *pyobj;
16732
15afbcd0 16733 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16734 return pyobj;
16735}
16736
16737
994141e6
RD
16738static int _wrap_BLACK_set(PyObject *_val) {
16739 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
d14a1e28
RD
16740 return 1;
16741}
16742
16743
994141e6 16744static PyObject *_wrap_BLACK_get() {
d14a1e28
RD
16745 PyObject *pyobj;
16746
15afbcd0 16747 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16748 return pyobj;
16749}
16750
16751
994141e6
RD
16752static int _wrap_WHITE_set(PyObject *_val) {
16753 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
d14a1e28
RD
16754 return 1;
16755}
16756
16757
994141e6 16758static PyObject *_wrap_WHITE_get() {
d14a1e28
RD
16759 PyObject *pyobj;
16760
15afbcd0 16761 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16762 return pyobj;
16763}
16764
16765
994141e6
RD
16766static int _wrap_RED_set(PyObject *_val) {
16767 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
d14a1e28
RD
16768 return 1;
16769}
16770
16771
994141e6 16772static PyObject *_wrap_RED_get() {
d14a1e28
RD
16773 PyObject *pyobj;
16774
15afbcd0 16775 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16776 return pyobj;
16777}
16778
16779
994141e6
RD
16780static int _wrap_BLUE_set(PyObject *_val) {
16781 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
d14a1e28
RD
16782 return 1;
16783}
16784
16785
994141e6 16786static PyObject *_wrap_BLUE_get() {
d14a1e28
RD
16787 PyObject *pyobj;
16788
15afbcd0 16789 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16790 return pyobj;
16791}
16792
16793
994141e6
RD
16794static int _wrap_GREEN_set(PyObject *_val) {
16795 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
d14a1e28
RD
16796 return 1;
16797}
16798
16799
994141e6 16800static PyObject *_wrap_GREEN_get() {
d14a1e28
RD
16801 PyObject *pyobj;
16802
15afbcd0 16803 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16804 return pyobj;
16805}
16806
16807
994141e6
RD
16808static int _wrap_CYAN_set(PyObject *_val) {
16809 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
d14a1e28
RD
16810 return 1;
16811}
16812
16813
994141e6 16814static PyObject *_wrap_CYAN_get() {
d14a1e28
RD
16815 PyObject *pyobj;
16816
15afbcd0 16817 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16818 return pyobj;
16819}
16820
16821
994141e6
RD
16822static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16823 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
d14a1e28
RD
16824 return 1;
16825}
16826
16827
994141e6 16828static PyObject *_wrap_LIGHT_GREY_get() {
d14a1e28
RD
16829 PyObject *pyobj;
16830
15afbcd0 16831 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16832 return pyobj;
16833}
16834
16835
994141e6
RD
16836static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16837 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
d14a1e28
RD
16838 return 1;
16839}
16840
16841
994141e6 16842static PyObject *_wrap_STANDARD_CURSOR_get() {
d14a1e28
RD
16843 PyObject *pyobj;
16844
15afbcd0 16845 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
16846 return pyobj;
16847}
16848
16849
994141e6
RD
16850static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16851 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
d14a1e28
RD
16852 return 1;
16853}
16854
16855
994141e6 16856static PyObject *_wrap_HOURGLASS_CURSOR_get() {
d14a1e28
RD
16857 PyObject *pyobj;
16858
15afbcd0 16859 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
16860 return pyobj;
16861}
16862
16863
994141e6
RD
16864static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16865 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
d14a1e28
RD
16866 return 1;
16867}
16868
16869
994141e6 16870static PyObject *_wrap_CROSS_CURSOR_get() {
d14a1e28
RD
16871 PyObject *pyobj;
16872
15afbcd0 16873 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
16874 return pyobj;
16875}
16876
16877
994141e6
RD
16878static int _wrap_NullBitmap_set(PyObject *_val) {
16879 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
d14a1e28
RD
16880 return 1;
16881}
16882
16883
994141e6 16884static PyObject *_wrap_NullBitmap_get() {
d14a1e28
RD
16885 PyObject *pyobj;
16886
15afbcd0 16887 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
d14a1e28
RD
16888 return pyobj;
16889}
16890
16891
994141e6
RD
16892static int _wrap_NullIcon_set(PyObject *_val) {
16893 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
d14a1e28
RD
16894 return 1;
16895}
16896
16897
994141e6 16898static PyObject *_wrap_NullIcon_get() {
d14a1e28
RD
16899 PyObject *pyobj;
16900
15afbcd0 16901 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
d14a1e28
RD
16902 return pyobj;
16903}
16904
16905
994141e6
RD
16906static int _wrap_NullCursor_set(PyObject *_val) {
16907 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
d14a1e28
RD
16908 return 1;
16909}
16910
16911
994141e6 16912static PyObject *_wrap_NullCursor_get() {
d14a1e28
RD
16913 PyObject *pyobj;
16914
15afbcd0 16915 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
16916 return pyobj;
16917}
16918
16919
994141e6
RD
16920static int _wrap_NullPen_set(PyObject *_val) {
16921 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
d14a1e28
RD
16922 return 1;
16923}
16924
16925
994141e6 16926static PyObject *_wrap_NullPen_get() {
d14a1e28
RD
16927 PyObject *pyobj;
16928
15afbcd0 16929 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
16930 return pyobj;
16931}
16932
16933
994141e6
RD
16934static int _wrap_NullBrush_set(PyObject *_val) {
16935 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
d14a1e28
RD
16936 return 1;
16937}
16938
16939
994141e6 16940static PyObject *_wrap_NullBrush_get() {
d14a1e28
RD
16941 PyObject *pyobj;
16942
15afbcd0 16943 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16944 return pyobj;
16945}
16946
16947
994141e6
RD
16948static int _wrap_NullPalette_set(PyObject *_val) {
16949 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
d14a1e28
RD
16950 return 1;
16951}
16952
16953
994141e6 16954static PyObject *_wrap_NullPalette_get() {
d14a1e28
RD
16955 PyObject *pyobj;
16956
15afbcd0 16957 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
d14a1e28
RD
16958 return pyobj;
16959}
16960
16961
994141e6
RD
16962static int _wrap_NullFont_set(PyObject *_val) {
16963 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
d14a1e28
RD
16964 return 1;
16965}
16966
16967
994141e6 16968static PyObject *_wrap_NullFont_get() {
d14a1e28
RD
16969 PyObject *pyobj;
16970
15afbcd0 16971 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
d14a1e28
RD
16972 return pyobj;
16973}
16974
16975
994141e6
RD
16976static int _wrap_NullColour_set(PyObject *_val) {
16977 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
d14a1e28
RD
16978 return 1;
16979}
16980
16981
994141e6 16982static PyObject *_wrap_NullColour_get() {
d14a1e28
RD
16983 PyObject *pyobj;
16984
15afbcd0 16985 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16986 return pyobj;
16987}
16988
16989
994141e6
RD
16990static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
16991 PyObject *resultobj;
16992 wxPenList *arg1 = (wxPenList *) 0 ;
16993 wxPen *arg2 = (wxPen *) 0 ;
16994 PyObject * obj0 = 0 ;
16995 PyObject * obj1 = 0 ;
16996 char *kwnames[] = {
16997 (char *) "self",(char *) "pen", NULL
16998 };
16999
17000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17003 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17005 {
17006 PyThreadState* __tstate = wxPyBeginAllowThreads();
17007 (arg1)->AddPen(arg2);
17008
17009 wxPyEndAllowThreads(__tstate);
17010 if (PyErr_Occurred()) SWIG_fail;
17011 }
17012 Py_INCREF(Py_None); resultobj = Py_None;
17013 return resultobj;
17014 fail:
17015 return NULL;
d14a1e28
RD
17016}
17017
17018
994141e6
RD
17019static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17020 PyObject *resultobj;
17021 wxPenList *arg1 = (wxPenList *) 0 ;
17022 wxColour *arg2 = 0 ;
17023 int arg3 ;
17024 int arg4 ;
17025 wxPen *result;
17026 wxColour temp2 ;
17027 PyObject * obj0 = 0 ;
17028 PyObject * obj1 = 0 ;
17029 PyObject * obj2 = 0 ;
17030 PyObject * obj3 = 0 ;
17031 char *kwnames[] = {
17032 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17033 };
d14a1e28 17034
994141e6 17035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
17036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17038 {
17039 arg2 = &temp2;
17040 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17041 }
15afbcd0
RD
17042 arg3 = (int) SWIG_AsInt(obj2);
17043 if (PyErr_Occurred()) SWIG_fail;
17044 arg4 = (int) SWIG_AsInt(obj3);
17045 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17046 {
17047 PyThreadState* __tstate = wxPyBeginAllowThreads();
17048 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17049
17050 wxPyEndAllowThreads(__tstate);
17051 if (PyErr_Occurred()) SWIG_fail;
17052 }
15afbcd0 17053 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
994141e6
RD
17054 return resultobj;
17055 fail:
17056 return NULL;
d14a1e28
RD
17057}
17058
17059
994141e6
RD
17060static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17061 PyObject *resultobj;
17062 wxPenList *arg1 = (wxPenList *) 0 ;
17063 wxPen *arg2 = (wxPen *) 0 ;
17064 PyObject * obj0 = 0 ;
17065 PyObject * obj1 = 0 ;
17066 char *kwnames[] = {
17067 (char *) "self",(char *) "pen", NULL
17068 };
17069
17070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17073 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17075 {
17076 PyThreadState* __tstate = wxPyBeginAllowThreads();
17077 (arg1)->RemovePen(arg2);
17078
17079 wxPyEndAllowThreads(__tstate);
17080 if (PyErr_Occurred()) SWIG_fail;
17081 }
17082 Py_INCREF(Py_None); resultobj = Py_None;
17083 return resultobj;
17084 fail:
17085 return NULL;
d14a1e28
RD
17086}
17087
17088
994141e6
RD
17089static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17090 PyObject *resultobj;
17091 wxPenList *arg1 = (wxPenList *) 0 ;
17092 int result;
17093 PyObject * obj0 = 0 ;
17094 char *kwnames[] = {
17095 (char *) "self", NULL
17096 };
d14a1e28 17097
994141e6 17098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
17099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17101 {
17102 PyThreadState* __tstate = wxPyBeginAllowThreads();
17103 result = (int)(arg1)->GetCount();
17104
17105 wxPyEndAllowThreads(__tstate);
17106 if (PyErr_Occurred()) SWIG_fail;
17107 }
15afbcd0 17108 resultobj = SWIG_FromInt((int)result);
994141e6
RD
17109 return resultobj;
17110 fail:
17111 return NULL;
d14a1e28
RD
17112}
17113
17114
994141e6
RD
17115static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17116 PyObject *obj;
17117 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17118 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17119 Py_INCREF(obj);
17120 return Py_BuildValue((char *)"");
17121}
17122static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17123 PyObject *resultobj;
17124 wxBrushList *arg1 = (wxBrushList *) 0 ;
17125 wxBrush *arg2 = (wxBrush *) 0 ;
17126 PyObject * obj0 = 0 ;
17127 PyObject * obj1 = 0 ;
17128 char *kwnames[] = {
17129 (char *) "self",(char *) "brush", NULL
17130 };
17131
17132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17135 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17137 {
17138 PyThreadState* __tstate = wxPyBeginAllowThreads();
17139 (arg1)->AddBrush(arg2);
17140
17141 wxPyEndAllowThreads(__tstate);
17142 if (PyErr_Occurred()) SWIG_fail;
17143 }
17144 Py_INCREF(Py_None); resultobj = Py_None;
17145 return resultobj;
17146 fail:
17147 return NULL;
17148}
17149
17150
17151static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17152 PyObject *resultobj;
17153 wxBrushList *arg1 = (wxBrushList *) 0 ;
17154 wxColour *arg2 = 0 ;
17155 int arg3 ;
17156 wxBrush *result;
17157 wxColour temp2 ;
17158 PyObject * obj0 = 0 ;
17159 PyObject * obj1 = 0 ;
17160 PyObject * obj2 = 0 ;
17161 char *kwnames[] = {
17162 (char *) "self",(char *) "colour",(char *) "style", NULL
17163 };
17164
17165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
17166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17168 {
17169 arg2 = &temp2;
17170 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17171 }
15afbcd0
RD
17172 arg3 = (int) SWIG_AsInt(obj2);
17173 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17174 {
17175 PyThreadState* __tstate = wxPyBeginAllowThreads();
17176 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17177
17178 wxPyEndAllowThreads(__tstate);
17179 if (PyErr_Occurred()) SWIG_fail;
17180 }
15afbcd0 17181 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
994141e6
RD
17182 return resultobj;
17183 fail:
17184 return NULL;
d14a1e28
RD
17185}
17186
17187
994141e6
RD
17188static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17189 PyObject *resultobj;
17190 wxBrushList *arg1 = (wxBrushList *) 0 ;
17191 wxBrush *arg2 = (wxBrush *) 0 ;
17192 PyObject * obj0 = 0 ;
17193 PyObject * obj1 = 0 ;
17194 char *kwnames[] = {
17195 (char *) "self",(char *) "brush", NULL
17196 };
d14a1e28 17197
994141e6 17198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17201 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17203 {
17204 PyThreadState* __tstate = wxPyBeginAllowThreads();
17205 (arg1)->RemoveBrush(arg2);
17206
17207 wxPyEndAllowThreads(__tstate);
17208 if (PyErr_Occurred()) SWIG_fail;
17209 }
17210 Py_INCREF(Py_None); resultobj = Py_None;
17211 return resultobj;
17212 fail:
17213 return NULL;
d14a1e28
RD
17214}
17215
17216
994141e6
RD
17217static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17218 PyObject *resultobj;
17219 wxBrushList *arg1 = (wxBrushList *) 0 ;
17220 int result;
17221 PyObject * obj0 = 0 ;
17222 char *kwnames[] = {
17223 (char *) "self", NULL
17224 };
d14a1e28 17225
994141e6 17226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
17227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17229 {
17230 PyThreadState* __tstate = wxPyBeginAllowThreads();
17231 result = (int)(arg1)->GetCount();
17232
17233 wxPyEndAllowThreads(__tstate);
17234 if (PyErr_Occurred()) SWIG_fail;
17235 }
15afbcd0 17236 resultobj = SWIG_FromInt((int)result);
994141e6
RD
17237 return resultobj;
17238 fail:
17239 return NULL;
d14a1e28
RD
17240}
17241
17242
994141e6
RD
17243static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17244 PyObject *obj;
17245 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17246 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17247 Py_INCREF(obj);
17248 return Py_BuildValue((char *)"");
d14a1e28 17249}
994141e6
RD
17250static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17251 PyObject *resultobj;
17252 wxColourDatabase *result;
17253 char *kwnames[] = {
17254 NULL
17255 };
d14a1e28 17256
994141e6
RD
17257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17258 {
e3b71cb8 17259 if (!wxPyCheckForApp()) SWIG_fail;
994141e6
RD
17260 PyThreadState* __tstate = wxPyBeginAllowThreads();
17261 result = (wxColourDatabase *)new wxColourDatabase();
17262
17263 wxPyEndAllowThreads(__tstate);
110da5b0 17264 if (PyErr_Occurred()) SWIG_fail;
994141e6 17265 }
15afbcd0 17266 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
994141e6
RD
17267 return resultobj;
17268 fail:
17269 return NULL;
d14a1e28
RD
17270}
17271
17272
994141e6
RD
17273static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17274 PyObject *resultobj;
17275 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17276 PyObject * obj0 = 0 ;
17277 char *kwnames[] = {
17278 (char *) "self", NULL
17279 };
d14a1e28 17280
994141e6 17281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
15afbcd0
RD
17282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17284 {
17285 PyThreadState* __tstate = wxPyBeginAllowThreads();
17286 delete arg1;
17287
17288 wxPyEndAllowThreads(__tstate);
17289 if (PyErr_Occurred()) SWIG_fail;
17290 }
17291 Py_INCREF(Py_None); resultobj = Py_None;
17292 return resultobj;
17293 fail:
17294 return NULL;
d14a1e28
RD
17295}
17296
17297
994141e6
RD
17298static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17299 PyObject *resultobj;
17300 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17301 wxString *arg2 = 0 ;
17302 wxColour result;
17303 bool temp2 = False ;
17304 PyObject * obj0 = 0 ;
17305 PyObject * obj1 = 0 ;
17306 char *kwnames[] = {
17307 (char *) "self",(char *) "name", NULL
17308 };
17309
17310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17313 {
17314 arg2 = wxString_in_helper(obj1);
17315 if (arg2 == NULL) SWIG_fail;
17316 temp2 = True;
17317 }
17318 {
17319 PyThreadState* __tstate = wxPyBeginAllowThreads();
17320 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17321
17322 wxPyEndAllowThreads(__tstate);
17323 if (PyErr_Occurred()) SWIG_fail;
17324 }
17325 {
17326 wxColour * resultptr;
17327 resultptr = new wxColour((wxColour &) result);
15afbcd0 17328 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
994141e6
RD
17329 }
17330 {
17331 if (temp2)
17332 delete arg2;
17333 }
17334 return resultobj;
17335 fail:
17336 {
17337 if (temp2)
17338 delete arg2;
17339 }
17340 return NULL;
d14a1e28
RD
17341}
17342
17343
994141e6
RD
17344static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17345 PyObject *resultobj;
17346 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17347 wxColour *arg2 = 0 ;
17348 wxString result;
17349 wxColour temp2 ;
17350 PyObject * obj0 = 0 ;
17351 PyObject * obj1 = 0 ;
17352 char *kwnames[] = {
17353 (char *) "self",(char *) "colour", NULL
17354 };
d14a1e28 17355
994141e6 17356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17359 {
17360 arg2 = &temp2;
17361 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17362 }
17363 {
17364 PyThreadState* __tstate = wxPyBeginAllowThreads();
17365 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17366
17367 wxPyEndAllowThreads(__tstate);
17368 if (PyErr_Occurred()) SWIG_fail;
17369 }
17370 {
17371#if wxUSE_UNICODE
17372 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17373#else
17374 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17375#endif
17376 }
17377 return resultobj;
17378 fail:
17379 return NULL;
d14a1e28
RD
17380}
17381
17382
994141e6
RD
17383static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17384 PyObject *resultobj;
17385 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17386 wxString *arg2 = 0 ;
17387 wxColour *arg3 = 0 ;
17388 bool temp2 = False ;
17389 wxColour temp3 ;
17390 PyObject * obj0 = 0 ;
17391 PyObject * obj1 = 0 ;
17392 PyObject * obj2 = 0 ;
17393 char *kwnames[] = {
17394 (char *) "self",(char *) "name",(char *) "colour", NULL
17395 };
17396
17397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
17398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17400 {
17401 arg2 = wxString_in_helper(obj1);
17402 if (arg2 == NULL) SWIG_fail;
17403 temp2 = True;
17404 }
17405 {
17406 arg3 = &temp3;
17407 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17408 }
17409 {
17410 PyThreadState* __tstate = wxPyBeginAllowThreads();
17411 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17412
17413 wxPyEndAllowThreads(__tstate);
17414 if (PyErr_Occurred()) SWIG_fail;
17415 }
17416 Py_INCREF(Py_None); resultobj = Py_None;
17417 {
17418 if (temp2)
17419 delete arg2;
17420 }
17421 return resultobj;
17422 fail:
17423 {
17424 if (temp2)
17425 delete arg2;
17426 }
17427 return NULL;
d14a1e28
RD
17428}
17429
17430
994141e6
RD
17431static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17432 PyObject *resultobj;
17433 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17434 wxString *arg2 = 0 ;
17435 int arg3 ;
17436 int arg4 ;
17437 int arg5 ;
17438 bool temp2 = False ;
17439 PyObject * obj0 = 0 ;
17440 PyObject * obj1 = 0 ;
17441 PyObject * obj2 = 0 ;
17442 PyObject * obj3 = 0 ;
17443 PyObject * obj4 = 0 ;
17444 char *kwnames[] = {
17445 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17446 };
d14a1e28 17447
994141e6 17448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
17449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17451 {
17452 arg2 = wxString_in_helper(obj1);
17453 if (arg2 == NULL) SWIG_fail;
17454 temp2 = True;
17455 }
15afbcd0
RD
17456 arg3 = (int) SWIG_AsInt(obj2);
17457 if (PyErr_Occurred()) SWIG_fail;
17458 arg4 = (int) SWIG_AsInt(obj3);
17459 if (PyErr_Occurred()) SWIG_fail;
17460 arg5 = (int) SWIG_AsInt(obj4);
17461 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17462 {
17463 PyThreadState* __tstate = wxPyBeginAllowThreads();
17464 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17465
17466 wxPyEndAllowThreads(__tstate);
17467 if (PyErr_Occurred()) SWIG_fail;
17468 }
17469 Py_INCREF(Py_None); resultobj = Py_None;
17470 {
17471 if (temp2)
17472 delete arg2;
17473 }
17474 return resultobj;
17475 fail:
17476 {
17477 if (temp2)
17478 delete arg2;
17479 }
17480 return NULL;
d14a1e28
RD
17481}
17482
17483
994141e6
RD
17484static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17485 PyObject *obj;
17486 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17487 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17488 Py_INCREF(obj);
17489 return Py_BuildValue((char *)"");
d14a1e28 17490}
994141e6
RD
17491static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17492 PyObject *resultobj;
17493 wxFontList *arg1 = (wxFontList *) 0 ;
17494 wxFont *arg2 = (wxFont *) 0 ;
17495 PyObject * obj0 = 0 ;
17496 PyObject * obj1 = 0 ;
17497 char *kwnames[] = {
17498 (char *) "self",(char *) "font", NULL
17499 };
d14a1e28 17500
994141e6 17501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17504 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17506 {
17507 PyThreadState* __tstate = wxPyBeginAllowThreads();
17508 (arg1)->AddFont(arg2);
17509
17510 wxPyEndAllowThreads(__tstate);
17511 if (PyErr_Occurred()) SWIG_fail;
17512 }
17513 Py_INCREF(Py_None); resultobj = Py_None;
17514 return resultobj;
17515 fail:
17516 return NULL;
d14a1e28
RD
17517}
17518
17519
994141e6
RD
17520static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17521 PyObject *resultobj;
17522 wxFontList *arg1 = (wxFontList *) 0 ;
17523 int arg2 ;
17524 int arg3 ;
17525 int arg4 ;
17526 int arg5 ;
17527 bool arg6 = (bool) False ;
17528 wxString const &arg7_defvalue = wxPyEmptyString ;
17529 wxString *arg7 = (wxString *) &arg7_defvalue ;
17530 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17531 wxFont *result;
17532 bool temp7 = False ;
17533 PyObject * obj0 = 0 ;
17534 PyObject * obj1 = 0 ;
17535 PyObject * obj2 = 0 ;
17536 PyObject * obj3 = 0 ;
17537 PyObject * obj4 = 0 ;
17538 PyObject * obj5 = 0 ;
17539 PyObject * obj6 = 0 ;
17540 PyObject * obj7 = 0 ;
17541 char *kwnames[] = {
17542 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17543 };
d14a1e28 17544
994141e6 17545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
15afbcd0
RD
17546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17548 arg2 = (int) SWIG_AsInt(obj1);
17549 if (PyErr_Occurred()) SWIG_fail;
17550 arg3 = (int) SWIG_AsInt(obj2);
17551 if (PyErr_Occurred()) SWIG_fail;
17552 arg4 = (int) SWIG_AsInt(obj3);
17553 if (PyErr_Occurred()) SWIG_fail;
17554 arg5 = (int) SWIG_AsInt(obj4);
17555 if (PyErr_Occurred()) SWIG_fail;
994141e6 17556 if (obj5) {
15afbcd0
RD
17557 arg6 = (bool) SWIG_AsBool(obj5);
17558 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17559 }
17560 if (obj6) {
17561 {
17562 arg7 = wxString_in_helper(obj6);
17563 if (arg7 == NULL) SWIG_fail;
17564 temp7 = True;
17565 }
17566 }
17567 if (obj7) {
15afbcd0
RD
17568 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17569 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17570 }
17571 {
17572 PyThreadState* __tstate = wxPyBeginAllowThreads();
17573 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17574
17575 wxPyEndAllowThreads(__tstate);
17576 if (PyErr_Occurred()) SWIG_fail;
17577 }
15afbcd0 17578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
994141e6
RD
17579 {
17580 if (temp7)
17581 delete arg7;
17582 }
17583 return resultobj;
17584 fail:
17585 {
17586 if (temp7)
17587 delete arg7;
17588 }
17589 return NULL;
d14a1e28
RD
17590}
17591
17592
994141e6
RD
17593static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17594 PyObject *resultobj;
17595 wxFontList *arg1 = (wxFontList *) 0 ;
17596 wxFont *arg2 = (wxFont *) 0 ;
17597 PyObject * obj0 = 0 ;
17598 PyObject * obj1 = 0 ;
17599 char *kwnames[] = {
17600 (char *) "self",(char *) "font", NULL
17601 };
d14a1e28 17602
994141e6 17603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17606 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17608 {
17609 PyThreadState* __tstate = wxPyBeginAllowThreads();
17610 (arg1)->RemoveFont(arg2);
17611
17612 wxPyEndAllowThreads(__tstate);
17613 if (PyErr_Occurred()) SWIG_fail;
17614 }
17615 Py_INCREF(Py_None); resultobj = Py_None;
17616 return resultobj;
17617 fail:
17618 return NULL;
d14a1e28
RD
17619}
17620
17621
994141e6
RD
17622static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17623 PyObject *resultobj;
17624 wxFontList *arg1 = (wxFontList *) 0 ;
17625 int result;
17626 PyObject * obj0 = 0 ;
17627 char *kwnames[] = {
17628 (char *) "self", NULL
17629 };
d14a1e28 17630
994141e6 17631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
17632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17634 {
17635 PyThreadState* __tstate = wxPyBeginAllowThreads();
17636 result = (int)(arg1)->GetCount();
17637
17638 wxPyEndAllowThreads(__tstate);
17639 if (PyErr_Occurred()) SWIG_fail;
17640 }
15afbcd0 17641 resultobj = SWIG_FromInt((int)result);
994141e6
RD
17642 return resultobj;
17643 fail:
17644 return NULL;
d14a1e28
RD
17645}
17646
17647
994141e6
RD
17648static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17649 PyObject *obj;
17650 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17651 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17652 Py_INCREF(obj);
17653 return Py_BuildValue((char *)"");
17654}
d14a1e28
RD
17655static int _wrap_TheFontList_set(PyObject *_val) {
17656 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17657 return 1;
17658}
17659
17660
17661static PyObject *_wrap_TheFontList_get() {
17662 PyObject *pyobj;
17663
15afbcd0 17664 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
d14a1e28
RD
17665 return pyobj;
17666}
17667
17668
17669static int _wrap_ThePenList_set(PyObject *_val) {
17670 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17671 return 1;
17672}
17673
17674
17675static PyObject *_wrap_ThePenList_get() {
17676 PyObject *pyobj;
17677
15afbcd0 17678 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
d14a1e28
RD
17679 return pyobj;
17680}
17681
17682
17683static int _wrap_TheBrushList_set(PyObject *_val) {
17684 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17685 return 1;
17686}
17687
17688
17689static PyObject *_wrap_TheBrushList_get() {
17690 PyObject *pyobj;
17691
15afbcd0 17692 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
d14a1e28
RD
17693 return pyobj;
17694}
17695
17696
17697static int _wrap_TheColourDatabase_set(PyObject *_val) {
17698 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17699 return 1;
17700}
17701
17702
17703static PyObject *_wrap_TheColourDatabase_get() {
17704 PyObject *pyobj;
17705
15afbcd0 17706 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
d14a1e28
RD
17707 return pyobj;
17708}
17709
17710
e811c8ce 17711static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17712 PyObject *resultobj;
e811c8ce 17713 wxEffects *result;
d14a1e28 17714 char *kwnames[] = {
e811c8ce 17715 NULL
d14a1e28
RD
17716 };
17717
e811c8ce 17718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
d14a1e28
RD
17719 {
17720 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 17721 result = (wxEffects *)new wxEffects();
d14a1e28
RD
17722
17723 wxPyEndAllowThreads(__tstate);
17724 if (PyErr_Occurred()) SWIG_fail;
17725 }
15afbcd0 17726 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
d14a1e28
RD
17727 return resultobj;
17728 fail:
17729 return NULL;
17730}
17731
17732
e811c8ce 17733static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17734 PyObject *resultobj;
e811c8ce
RD
17735 wxEffects *arg1 = (wxEffects *) 0 ;
17736 wxColour result;
d14a1e28 17737 PyObject * obj0 = 0 ;
d14a1e28 17738 char *kwnames[] = {
e811c8ce 17739 (char *) "self", NULL
d14a1e28
RD
17740 };
17741
e811c8ce 17742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
15afbcd0
RD
17743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17745 {
17746 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 17747 result = ((wxEffects const *)arg1)->GetHighlightColour();
d14a1e28
RD
17748
17749 wxPyEndAllowThreads(__tstate);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 }
e811c8ce
RD
17752 {
17753 wxColour * resultptr;
17754 resultptr = new wxColour((wxColour &) result);
15afbcd0 17755 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
e811c8ce 17756 }
d14a1e28
RD
17757 return resultobj;
17758 fail:
17759 return NULL;
17760}
17761
17762
e811c8ce 17763static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17764 PyObject *resultobj;
e811c8ce
RD
17765 wxEffects *arg1 = (wxEffects *) 0 ;
17766 wxColour result;
d14a1e28 17767 PyObject * obj0 = 0 ;
d14a1e28 17768 char *kwnames[] = {
e811c8ce 17769 (char *) "self", NULL
d14a1e28
RD
17770 };
17771
e811c8ce 17772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
15afbcd0
RD
17773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17775 {
17776 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 17777 result = ((wxEffects const *)arg1)->GetLightShadow();
d14a1e28
RD
17778
17779 wxPyEndAllowThreads(__tstate);
17780 if (PyErr_Occurred()) SWIG_fail;
17781 }
d14a1e28 17782 {
e811c8ce
RD
17783 wxColour * resultptr;
17784 resultptr = new wxColour((wxColour &) result);
15afbcd0 17785 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
17786 }
17787 return resultobj;
17788 fail:
d14a1e28
RD
17789 return NULL;
17790}
17791
17792
e811c8ce 17793static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17794 PyObject *resultobj;
e811c8ce
RD
17795 wxEffects *arg1 = (wxEffects *) 0 ;
17796 wxColour result;
d14a1e28 17797 PyObject * obj0 = 0 ;
d14a1e28 17798 char *kwnames[] = {
e811c8ce 17799 (char *) "self", NULL
d14a1e28
RD
17800 };
17801
e811c8ce 17802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
15afbcd0
RD
17803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17805 {
17806 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 17807 result = ((wxEffects const *)arg1)->GetFaceColour();
d14a1e28
RD
17808
17809 wxPyEndAllowThreads(__tstate);
17810 if (PyErr_Occurred()) SWIG_fail;
17811 }
e811c8ce
RD
17812 {
17813 wxColour * resultptr;
17814 resultptr = new wxColour((wxColour &) result);
15afbcd0 17815 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
e811c8ce 17816 }
d14a1e28
RD
17817 return resultobj;
17818 fail:
17819 return NULL;
17820}
17821
17822
e811c8ce 17823static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17824 PyObject *resultobj;
e811c8ce
RD
17825 wxEffects *arg1 = (wxEffects *) 0 ;
17826 wxColour result;
d14a1e28
RD
17827 PyObject * obj0 = 0 ;
17828 char *kwnames[] = {
e811c8ce 17829 (char *) "self", NULL
d14a1e28
RD
17830 };
17831
17832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
15afbcd0
RD
17833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17835 {
17836 PyThreadState* __tstate = wxPyBeginAllowThreads();
17837 result = ((wxEffects const *)arg1)->GetMediumShadow();
17838
17839 wxPyEndAllowThreads(__tstate);
17840 if (PyErr_Occurred()) SWIG_fail;
17841 }
17842 {
17843 wxColour * resultptr;
17844 resultptr = new wxColour((wxColour &) result);
15afbcd0 17845 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
17846 }
17847 return resultobj;
17848 fail:
17849 return NULL;
17850}
17851
17852
17853static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17854 PyObject *resultobj;
17855 wxEffects *arg1 = (wxEffects *) 0 ;
17856 wxColour result;
17857 PyObject * obj0 = 0 ;
17858 char *kwnames[] = {
17859 (char *) "self", NULL
17860 };
17861
17862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
15afbcd0
RD
17863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17865 {
17866 PyThreadState* __tstate = wxPyBeginAllowThreads();
17867 result = ((wxEffects const *)arg1)->GetDarkShadow();
17868
17869 wxPyEndAllowThreads(__tstate);
17870 if (PyErr_Occurred()) SWIG_fail;
17871 }
17872 {
17873 wxColour * resultptr;
17874 resultptr = new wxColour((wxColour &) result);
15afbcd0 17875 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
17876 }
17877 return resultobj;
17878 fail:
17879 return NULL;
17880}
17881
17882
17883static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17884 PyObject *resultobj;
17885 wxEffects *arg1 = (wxEffects *) 0 ;
17886 wxColour *arg2 = 0 ;
17887 wxColour temp2 ;
17888 PyObject * obj0 = 0 ;
17889 PyObject * obj1 = 0 ;
17890 char *kwnames[] = {
17891 (char *) "self",(char *) "c", NULL
17892 };
17893
17894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17897 {
17898 arg2 = &temp2;
17899 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17900 }
17901 {
17902 PyThreadState* __tstate = wxPyBeginAllowThreads();
17903 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17904
17905 wxPyEndAllowThreads(__tstate);
17906 if (PyErr_Occurred()) SWIG_fail;
17907 }
17908 Py_INCREF(Py_None); resultobj = Py_None;
17909 return resultobj;
17910 fail:
17911 return NULL;
17912}
17913
17914
17915static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17916 PyObject *resultobj;
17917 wxEffects *arg1 = (wxEffects *) 0 ;
17918 wxColour *arg2 = 0 ;
17919 wxColour temp2 ;
17920 PyObject * obj0 = 0 ;
17921 PyObject * obj1 = 0 ;
17922 char *kwnames[] = {
17923 (char *) "self",(char *) "c", NULL
17924 };
17925
17926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17929 {
17930 arg2 = &temp2;
17931 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17932 }
17933 {
17934 PyThreadState* __tstate = wxPyBeginAllowThreads();
17935 (arg1)->SetLightShadow((wxColour const &)*arg2);
17936
17937 wxPyEndAllowThreads(__tstate);
17938 if (PyErr_Occurred()) SWIG_fail;
17939 }
17940 Py_INCREF(Py_None); resultobj = Py_None;
17941 return resultobj;
17942 fail:
17943 return NULL;
17944}
17945
17946
17947static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17948 PyObject *resultobj;
17949 wxEffects *arg1 = (wxEffects *) 0 ;
17950 wxColour *arg2 = 0 ;
17951 wxColour temp2 ;
17952 PyObject * obj0 = 0 ;
17953 PyObject * obj1 = 0 ;
17954 char *kwnames[] = {
17955 (char *) "self",(char *) "c", NULL
17956 };
17957
17958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17961 {
17962 arg2 = &temp2;
17963 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17964 }
17965 {
17966 PyThreadState* __tstate = wxPyBeginAllowThreads();
17967 (arg1)->SetFaceColour((wxColour const &)*arg2);
17968
17969 wxPyEndAllowThreads(__tstate);
17970 if (PyErr_Occurred()) SWIG_fail;
17971 }
17972 Py_INCREF(Py_None); resultobj = Py_None;
17973 return resultobj;
17974 fail:
17975 return NULL;
17976}
17977
17978
17979static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17980 PyObject *resultobj;
17981 wxEffects *arg1 = (wxEffects *) 0 ;
17982 wxColour *arg2 = 0 ;
17983 wxColour temp2 ;
17984 PyObject * obj0 = 0 ;
17985 PyObject * obj1 = 0 ;
17986 char *kwnames[] = {
17987 (char *) "self",(char *) "c", NULL
17988 };
17989
17990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17993 {
17994 arg2 = &temp2;
17995 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17996 }
17997 {
17998 PyThreadState* __tstate = wxPyBeginAllowThreads();
17999 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18000
18001 wxPyEndAllowThreads(__tstate);
18002 if (PyErr_Occurred()) SWIG_fail;
18003 }
18004 Py_INCREF(Py_None); resultobj = Py_None;
18005 return resultobj;
18006 fail:
18007 return NULL;
18008}
18009
18010
18011static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18012 PyObject *resultobj;
18013 wxEffects *arg1 = (wxEffects *) 0 ;
18014 wxColour *arg2 = 0 ;
18015 wxColour temp2 ;
18016 PyObject * obj0 = 0 ;
18017 PyObject * obj1 = 0 ;
18018 char *kwnames[] = {
18019 (char *) "self",(char *) "c", NULL
18020 };
18021
18022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
18023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18025 {
18026 arg2 = &temp2;
18027 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18028 }
18029 {
18030 PyThreadState* __tstate = wxPyBeginAllowThreads();
18031 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18032
18033 wxPyEndAllowThreads(__tstate);
18034 if (PyErr_Occurred()) SWIG_fail;
18035 }
18036 Py_INCREF(Py_None); resultobj = Py_None;
18037 return resultobj;
18038 fail:
18039 return NULL;
18040}
18041
18042
18043static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18044 PyObject *resultobj;
18045 wxEffects *arg1 = (wxEffects *) 0 ;
18046 wxColour *arg2 = 0 ;
18047 wxColour *arg3 = 0 ;
18048 wxColour *arg4 = 0 ;
18049 wxColour *arg5 = 0 ;
18050 wxColour *arg6 = 0 ;
18051 wxColour temp2 ;
18052 wxColour temp3 ;
18053 wxColour temp4 ;
18054 wxColour temp5 ;
18055 wxColour temp6 ;
18056 PyObject * obj0 = 0 ;
18057 PyObject * obj1 = 0 ;
18058 PyObject * obj2 = 0 ;
18059 PyObject * obj3 = 0 ;
18060 PyObject * obj4 = 0 ;
18061 PyObject * obj5 = 0 ;
18062 char *kwnames[] = {
18063 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18064 };
18065
18066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15afbcd0
RD
18067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18069 {
18070 arg2 = &temp2;
18071 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18072 }
18073 {
18074 arg3 = &temp3;
18075 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18076 }
18077 {
18078 arg4 = &temp4;
18079 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18080 }
18081 {
18082 arg5 = &temp5;
18083 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18084 }
18085 {
18086 arg6 = &temp6;
18087 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18088 }
18089 {
18090 PyThreadState* __tstate = wxPyBeginAllowThreads();
18091 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18092
18093 wxPyEndAllowThreads(__tstate);
18094 if (PyErr_Occurred()) SWIG_fail;
18095 }
18096 Py_INCREF(Py_None); resultobj = Py_None;
18097 return resultobj;
18098 fail:
18099 return NULL;
18100}
18101
18102
18103static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18104 PyObject *resultobj;
18105 wxEffects *arg1 = (wxEffects *) 0 ;
18106 wxDC *arg2 = 0 ;
18107 wxRect *arg3 = 0 ;
18108 int arg4 = (int) 1 ;
18109 wxRect temp3 ;
18110 PyObject * obj0 = 0 ;
18111 PyObject * obj1 = 0 ;
18112 PyObject * obj2 = 0 ;
994141e6 18113 PyObject * obj3 = 0 ;
d14a1e28
RD
18114 char *kwnames[] = {
18115 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18116 };
18117
994141e6 18118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
18119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18121 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18122 SWIG_POINTER_EXCEPTION | 0)) == -1)
18123 SWIG_fail;
d14a1e28 18124 if (arg2 == NULL) {
15afbcd0
RD
18125 PyErr_SetString(PyExc_TypeError,"null reference");
18126 SWIG_fail;
d14a1e28
RD
18127 }
18128 {
18129 arg3 = &temp3;
18130 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18131 }
994141e6 18132 if (obj3) {
15afbcd0
RD
18133 arg4 = (int) SWIG_AsInt(obj3);
18134 if (PyErr_Occurred()) SWIG_fail;
994141e6 18135 }
d14a1e28
RD
18136 {
18137 PyThreadState* __tstate = wxPyBeginAllowThreads();
18138 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18139
18140 wxPyEndAllowThreads(__tstate);
18141 if (PyErr_Occurred()) SWIG_fail;
18142 }
18143 Py_INCREF(Py_None); resultobj = Py_None;
18144 return resultobj;
18145 fail:
18146 return NULL;
18147}
18148
18149
18150static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18151 PyObject *resultobj;
18152 wxEffects *arg1 = (wxEffects *) 0 ;
18153 wxRect *arg2 = 0 ;
18154 wxDC *arg3 = 0 ;
18155 wxBitmap *arg4 = 0 ;
18156 bool result;
18157 wxRect temp2 ;
18158 PyObject * obj0 = 0 ;
18159 PyObject * obj1 = 0 ;
18160 PyObject * obj2 = 0 ;
18161 PyObject * obj3 = 0 ;
18162 char *kwnames[] = {
18163 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18164 };
18165
18166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
18167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18169 {
18170 arg2 = &temp2;
18171 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18172 }
15afbcd0
RD
18173 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18174 SWIG_POINTER_EXCEPTION | 0)) == -1)
18175 SWIG_fail;
d14a1e28 18176 if (arg3 == NULL) {
15afbcd0
RD
18177 PyErr_SetString(PyExc_TypeError,"null reference");
18178 SWIG_fail;
d14a1e28 18179 }
15afbcd0
RD
18180 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18181 SWIG_POINTER_EXCEPTION | 0)) == -1)
18182 SWIG_fail;
d14a1e28 18183 if (arg4 == NULL) {
15afbcd0
RD
18184 PyErr_SetString(PyExc_TypeError,"null reference");
18185 SWIG_fail;
d14a1e28
RD
18186 }
18187 {
18188 PyThreadState* __tstate = wxPyBeginAllowThreads();
18189 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18190
18191 wxPyEndAllowThreads(__tstate);
18192 if (PyErr_Occurred()) SWIG_fail;
18193 }
4f89f6a3
RD
18194 {
18195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18196 }
d14a1e28
RD
18197 return resultobj;
18198 fail:
18199 return NULL;
18200}
18201
18202
18203static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18204 PyObject *obj;
18205 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18206 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18207 Py_INCREF(obj);
18208 return Py_BuildValue((char *)"");
18209}
18210static PyMethodDef SwigMethods[] = {
18211 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18212 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18213 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18214 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18215 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18216 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18217 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18218 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18219 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
b88bce5f 18220 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18221 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18222 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18223 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18224 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18225 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
c9c7117a 18226 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
b88bce5f
RD
18227 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18228 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18229 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18230 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18231 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
b88bce5f 18232 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18233 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18234 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18235 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18236 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18237 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18238 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18239 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18240 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18241 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18242 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18243 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18244 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18245 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18246 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18247 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18248 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18249 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18250 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18251 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18252 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18253 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18254 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
66c033b4
RD
18255 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
18256 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
3adfb63b 18257 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
22faec7d 18258 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18259 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
d14a1e28
RD
18260 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18261 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18262 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18263 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18264 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18265 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18266 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18267 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18268 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18269 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18270 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18271 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
66c033b4 18272 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18273 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18274 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18275 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18276 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18277 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18278 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18279 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18280 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
b2df227b 18281 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18282 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18283 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18284 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18285 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18286 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18287 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18288 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18289 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18290 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18291 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18292 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
b2df227b 18293 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
4276dc52
RD
18294 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18295 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18296 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18297 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18298 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18299 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18300 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18301 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18302 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18303 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18304 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18305 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18306 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18307 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18308 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18309 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18310 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18311 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18312 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18313 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18314 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18315 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18316 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18317 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18318 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18319 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18320 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18321 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18322 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18323 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18324 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18327 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18328 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18329 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18331 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18335 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18336 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18337 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
e6ffcedd 18339 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18340 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18346 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18347 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18348 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18350 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18351 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18352 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18353 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18354 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18355 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18356 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18358 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18360 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18362 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18363 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
e6ffcedd 18364 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18365 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18366 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18371 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18374 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18378 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18380 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18387 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18404 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18413 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
b2df227b 18424 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18425 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18433 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18447 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18470 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18475 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18478 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18485 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18507 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18509 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18517 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18520 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18521 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18522 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18523 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18524 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18525 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18526 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18527 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18528 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18529 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18530 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18531 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18532 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18533 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18534 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18535 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18536 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18538 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18539 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18541 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18542 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18543 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18544 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18546 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18547 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18548 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18549 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18550 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18551 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18552 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18553 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18554 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18555 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
03e37cd5
RD
18556 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18561 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18577 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18579 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
db914595 18585 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18586 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
322913ce 18587 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18588 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
322913ce 18589 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18590 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18618 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
322913ce 18619 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18620 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18621 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18622 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
322913ce 18623 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18624 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18625 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18626 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18632 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18633 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18646 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
3adfb63b 18650 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
e498079e 18651 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18652 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
e498079e 18654 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18655 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18656 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18661 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18663 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18665 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18667 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18669 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18675 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18677 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18679 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18681 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18690 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18691 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18692 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18693 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18694 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18695 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18696 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18697 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18698 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18699 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18701 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18702 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18703 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18704 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18705 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18706 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18707 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18708 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18709 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18710 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18712 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18713 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18714 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
d14a1e28
RD
18715 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18717 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18718 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18719 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18721 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18723 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18724 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18728 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18729 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18730 { NULL, NULL }
18731};
18732
18733
18734/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18735
e811c8ce
RD
18736static void *_p_wxControlTo_p_wxWindow(void *x) {
18737 return (void *)((wxWindow *) ((wxControl *) x));
18738}
18739static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18740 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18741}
18742static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18743 return (void *)((wxWindow *) ((wxMenuBar *) x));
18744}
d14a1e28
RD
18745static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18746 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18747}
18748static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18749 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18750}
d14a1e28
RD
18751static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18752 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18753}
18754static void *_p_wxPenTo_p_wxObject(void *x) {
18755 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18756}
18757static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18758 return (void *)((wxObject *) ((wxRegionIterator *) x));
18759}
18760static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18761 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18762}
18763static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18764 return (void *)((wxObject *) ((wxSizerItem *) x));
18765}
18766static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18767 return (void *)((wxObject *) ((wxColourDatabase *) x));
18768}
18769static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18770 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18771}
18772static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18773 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18774}
18775static void *_p_wxIconTo_p_wxObject(void *x) {
18776 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18777}
18778static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18779 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18780}
18781static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18782 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18783}
18784static void *_p_wxSizerTo_p_wxObject(void *x) {
18785 return (void *)((wxObject *) ((wxSizer *) x));
18786}
18787static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18788 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18789}
18790static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18791 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18792}
18793static void *_p_wxPenListTo_p_wxObject(void *x) {
18794 return (void *)((wxObject *) ((wxPenList *) x));
18795}
18796static void *_p_wxEventTo_p_wxObject(void *x) {
18797 return (void *)((wxObject *) ((wxEvent *) x));
18798}
18799static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18800 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18801}
18802static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18803 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18804}
18805static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18806 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18807}
18808static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18809 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18810}
18811static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18812 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18813}
18814static void *_p_wxDCTo_p_wxObject(void *x) {
18815 return (void *)((wxObject *) ((wxDC *) x));
18816}
18817static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18818 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18819}
18820static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18821 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18822}
18823static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18824 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18825}
18826static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18827 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18828}
18829static void *_p_wxControlTo_p_wxObject(void *x) {
18830 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18831}
18832static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18833 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18834}
18835static void *_p_wxClientDCTo_p_wxObject(void *x) {
18836 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18837}
18838static void *_p_wxFSFileTo_p_wxObject(void *x) {
18839 return (void *)((wxObject *) ((wxFSFile *) x));
18840}
18841static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18842 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18843}
18844static void *_p_wxRegionTo_p_wxObject(void *x) {
18845 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18846}
18847static void *_p_wxPySizerTo_p_wxObject(void *x) {
18848 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18849}
18850static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18851 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18852}
18853static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18854 return (void *)((wxObject *) ((wxGDIObject *) x));
18855}
18856static void *_p_wxEffectsTo_p_wxObject(void *x) {
18857 return (void *)((wxObject *) ((wxEffects *) x));
18858}
18859static void *_p_wxPyEventTo_p_wxObject(void *x) {
18860 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18861}
18862static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18863 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18864}
18865static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18866 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18867}
18868static void *_p_wxShowEventTo_p_wxObject(void *x) {
18869 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18870}
18871static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18872 return (void *)((wxObject *) ((wxMenuItem *) x));
18873}
18874static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18875 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18876}
18877static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18878 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18879}
18880static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18881 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18882}
18883static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18884 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18885}
18886static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18887 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18888}
18889static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18890 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18891}
18892static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18893 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18894}
18895static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18896 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18897}
18898static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18899 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18900}
18901static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18902 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18903}
18904static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18905 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18906}
18907static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18908 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18909}
18910static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18911 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18912}
18913static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18914 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18915}
18916static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18917 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18918}
18919static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18920 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18921}
18922static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18923 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18924}
18925static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18926 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18927}
18928static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18929 return (void *)((wxObject *) ((wxImageHandler *) x));
18930}
18931static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18932 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18933}
18934static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18935 return (void *)((wxObject *) ((wxEvtHandler *) x));
18936}
18937static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18938 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18939}
18940static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18941 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18942}
18943static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18944 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18945}
18946static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18947 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18948}
1e0c8722
RD
18949static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18950 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18951}
d14a1e28
RD
18952static void *_p_wxImageTo_p_wxObject(void *x) {
18953 return (void *)((wxObject *) ((wxImage *) x));
18954}
18955static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18956 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18957}
d14a1e28
RD
18958static void *_p_wxPaletteTo_p_wxObject(void *x) {
18959 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18960}
18961static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18962 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18963}
18964static void *_p_wxImageListTo_p_wxObject(void *x) {
18965 return (void *)((wxObject *) ((wxImageList *) x));
18966}
18967static void *_p_wxCursorTo_p_wxObject(void *x) {
18968 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18969}
18970static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18971 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18972}
18973static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18974 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18975}
18976static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18977 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18978}
18979static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18980 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18981}
18982static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18983 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18984}
18985static void *_p_wxWindowTo_p_wxObject(void *x) {
18986 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18987}
18988static void *_p_wxMenuTo_p_wxObject(void *x) {
18989 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
18990}
18991static void *_p_wxMenuBarTo_p_wxObject(void *x) {
18992 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
18993}
18994static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
18995 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
18996}
18997static void *_p_wxBrushListTo_p_wxObject(void *x) {
18998 return (void *)((wxObject *) ((wxBrushList *) x));
18999}
d14a1e28
RD
19000static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19001 return (void *)((wxObject *) ((wxFileSystem *) x));
19002}
19003static void *_p_wxBitmapTo_p_wxObject(void *x) {
19004 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19005}
19006static void *_p_wxMaskTo_p_wxObject(void *x) {
19007 return (void *)((wxObject *) ((wxMask *) x));
19008}
19009static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19010 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19011}
19012static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19013 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19014}
19015static void *_p_wxPyAppTo_p_wxObject(void *x) {
19016 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19017}
19018static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19019 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19020}
19021static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19022 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19023}
19024static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19025 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19026}
19027static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19028 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19029}
19030static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19031 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19032}
19033static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19034 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19035}
19036static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19037 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19038}
19039static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19040 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19041}
19042static void *_p_wxFontTo_p_wxObject(void *x) {
19043 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19044}
19045static void *_p_wxBrushTo_p_wxObject(void *x) {
19046 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19047}
19048static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19049 return (void *)((wxObject *) ((wxMetaFile *) x));
19050}
19051static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19052 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19053}
19054static void *_p_wxColourTo_p_wxObject(void *x) {
19055 return (void *)((wxObject *) ((wxColour *) x));
19056}
19057static void *_p_wxFontListTo_p_wxObject(void *x) {
19058 return (void *)((wxObject *) ((wxFontList *) x));
19059}
19060static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19061 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19062}
19063static void *_p_wxValidatorTo_p_wxObject(void *x) {
19064 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19065}
e811c8ce
RD
19066static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19067 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
d14a1e28 19068}
e811c8ce
RD
19069static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19070 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
d14a1e28 19071}
e811c8ce
RD
19072static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19073 return (void *)((wxDC *) ((wxScreenDC *) x));
19074}
19075static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19076 return (void *)((wxDC *) ((wxMirrorDC *) x));
19077}
19078static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19079 return (void *)((wxDC *) ((wxMemoryDC *) x));
19080}
19081static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19082 return (void *)((wxDC *) ((wxWindowDC *) x));
19083}
19084static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19085 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19086}
19087static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19088 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19089}
19090static void *_p_wxClientDCTo_p_wxDC(void *x) {
19091 return (void *)((wxDC *) ((wxClientDC *) x));
19092}
19093static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19094 return (void *)((wxDC *) ((wxPaintDC *) x));
19095}
19096static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19097 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19098}
19099static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19100 return (void *)((wxDC *) ((wxPrinterDC *) x));
19101}
e811c8ce
RD
19102static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19103 return (void *)((wxGDIObject *) ((wxIcon *) x));
19104}
19105static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19106 return (void *)((wxGDIObject *) ((wxPalette *) x));
19107}
19108static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19109 return (void *)((wxGDIObject *) ((wxPen *) x));
19110}
19111static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19112 return (void *)((wxGDIObject *) ((wxFont *) x));
19113}
19114static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19115 return (void *)((wxGDIObject *) ((wxCursor *) x));
19116}
19117static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19118 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19119}
19120static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19121 return (void *)((wxGDIObject *) ((wxRegion *) x));
19122}
19123static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19124 return (void *)((wxGDIObject *) ((wxBrush *) x));
19125}
15afbcd0
RD
19126static 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}};
19127static 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}};
19128static 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}};
19129static 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}};
19130static 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}};
19131static 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}};
19132static 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}};
19133static 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}};
19134static 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}};
19135static 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}};
19136static 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}};
19137static 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}};
b2df227b 19138static 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}};
15afbcd0
RD
19139static 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}};
19140static 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}};
15afbcd0
RD
19141static 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}};
19142static 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}};
19143static 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}};
19144static 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}};
19145static 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}};
19146static 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}};
19147static 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}};
66c033b4 19148static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPenList", _p_wxPenListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMask", _p_wxMaskTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDC", _p_wxDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageList", _p_wxImageListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColour", _p_wxColourTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontList", _p_wxFontListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0
RD
19149static 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}};
19150static 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}};
19151static 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}};
19152static 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}};
19153static 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}};
19154static 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}};
19155static 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}};
19156static 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}};
19157static 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}};
19158static 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}};
19159static 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}};
19160static 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}};
19161static 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}};
66c033b4 19162static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", 0, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0
RD
19163static 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}};
19164static 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}};
19165static 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}};
b2df227b 19166static 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}};
66c033b4 19167static 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}};
15afbcd0
RD
19168static 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}};
19169static 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}};
19170static 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}};
19171static 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}};
66c033b4 19172static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0
RD
19173static 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}};
19174static 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}};
19175static 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}};
15afbcd0
RD
19176static 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}};
19177static 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}};
19178static 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}};
19179static 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}};
19180static 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
19181
19182static swig_type_info *swig_types_initial[] = {
19183_swigt__p_wxPostScriptDC,
d14a1e28
RD
19184_swigt__p_wxBrush,
19185_swigt__p_wxColour,
d14a1e28
RD
19186_swigt__p_wxDC,
19187_swigt__p_wxMirrorDC,
19188_swigt__p_byte,
19189_swigt__p_wxPyFontEnumerator,
994141e6 19190_swigt__p_char,
d14a1e28
RD
19191_swigt__p_wxIconLocation,
19192_swigt__p_wxImage,
19193_swigt__p_wxMetaFileDC,
19194_swigt__p_wxMask,
b2df227b 19195_swigt__p_wxSize,
d14a1e28
RD
19196_swigt__p_wxFont,
19197_swigt__p_wxWindow,
d14a1e28
RD
19198_swigt__p_double,
19199_swigt__p_wxMemoryDC,
19200_swigt__p_wxFontMapper,
d14a1e28
RD
19201_swigt__p_wxEffects,
19202_swigt__p_wxNativeEncodingInfo,
19203_swigt__p_wxPalette,
19204_swigt__p_wxBitmap,
19205_swigt__p_wxObject,
19206_swigt__p_wxRegionIterator,
19207_swigt__p_wxRect,
19208_swigt__p_wxString,
19209_swigt__p_wxPrinterDC,
19210_swigt__p_wxIconBundle,
19211_swigt__p_wxPoint,
19212_swigt__p_wxDash,
19213_swigt__p_wxScreenDC,
19214_swigt__p_wxCursor,
19215_swigt__p_wxClientDC,
d14a1e28
RD
19216_swigt__p_wxBufferedDC,
19217_swigt__p_wxImageList,
19218_swigt__p_unsigned_char,
19219_swigt__p_wxGDIObject,
d14a1e28 19220_swigt__p_wxIcon,
994141e6 19221_swigt__p_wxLocale,
d14a1e28 19222_swigt__p_wxRegion,
b2df227b 19223_swigt__p_wxLanguageInfo,
66c033b4 19224_swigt__p_wxConfigBase,
d14a1e28
RD
19225_swigt__p_wxWindowDC,
19226_swigt__p_wxPrintData,
19227_swigt__p_wxBrushList,
19228_swigt__p_wxFontList,
19229_swigt__p_wxPen,
19230_swigt__p_wxBufferedPaintDC,
19231_swigt__p_wxPaintDC,
19232_swigt__p_wxPenList,
d14a1e28
RD
19233_swigt__p_int,
19234_swigt__p_wxMetaFile,
19235_swigt__p_wxNativeFontInfo,
19236_swigt__p_wxEncodingConverter,
19237_swigt__p_wxColourDatabase,
192380
19239};
19240
19241
19242/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19243
19244static swig_const_info swig_const_table[] = {
d14a1e28
RD
19245{0}};
19246
19247#ifdef __cplusplus
19248}
19249#endif
19250
19251#ifdef __cplusplus
19252extern "C"
19253#endif
19254SWIGEXPORT(void) SWIG_init(void) {
19255 static PyObject *SWIG_globals = 0;
19256 static int typeinit = 0;
19257 PyObject *m, *d;
19258 int i;
19259 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19260 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19261 d = PyModule_GetDict(m);
19262
19263 if (!typeinit) {
19264 for (i = 0; swig_types_initial[i]; i++) {
19265 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19266 }
19267 typeinit = 1;
19268 }
19269 SWIG_InstallConstants(d,swig_const_table);
19270
15afbcd0
RD
19271 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19272 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19273 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19274 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19275 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19276 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19277 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19278 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19279 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19280 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19281 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19282 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19283 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19284 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19285 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19286 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19287 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19288 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19289 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19290 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19291 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19292 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19293 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19294 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19295 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19296 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19297 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19298 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19299 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19300 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19301 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19302 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19303 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19304 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19305 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19306 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19307 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19308 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19309 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19310 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19311 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19312 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19313 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19314 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19315 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19316 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19317 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19318 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19319 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
b2df227b 19320 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
15afbcd0
RD
19321 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19322 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19323 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19324 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19325 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19326 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19327 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19328 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19329 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19330 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19331 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19332 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19333 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19334 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19335 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19336 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19337 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19338 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19339 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19340 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19341 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19342 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19343 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19344 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19345 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19346 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19347 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19348 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19349 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19350 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19351 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19352 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19353 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19354 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19355 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19356 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19357 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19358 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19359 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19360 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19361 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19362 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19363 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19364 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19365 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19366 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19367 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19368 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19369 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19370 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19371 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19372 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19373 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19374 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19375 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19376 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19377 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19378 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19379 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19380 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19381 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19382 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19383 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19384 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19385 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19386 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19387 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19388 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19389 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19390 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19391 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19392 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19393 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19394 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19395 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19396 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19397 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
d14a1e28
RD
19398
19399 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19400
15afbcd0
RD
19401 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19402 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19403 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19404 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19405 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19406 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19407 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19408 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19409 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19410 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19411 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19412 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19413 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19414 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19415 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19416 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19417 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19418 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19419 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19420 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19421 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19422 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19423 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19424 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19425 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19426 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19427 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19428 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19429 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19430 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19431 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19432 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19433 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19434 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19435 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19436 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19437 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19438 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19439 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19440 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19441 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19442 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19443 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19444 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19445 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19446 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19447 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19448 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19449 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19450 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19451 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19452 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19453 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19454 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19455 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19456 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19457 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19458 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19459 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19460 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19461 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19462 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19463 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19464 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19465 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19466 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19467 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19468 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19469 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19470 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19471 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19472 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19473 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19474 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19475 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19476 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19477 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19478 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19479 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19480 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19481 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19482 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19483 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19484 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19485 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19486 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19487 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19488 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19489 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19490 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19491 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19492 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19493 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19494 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19495 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19496 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19497 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19498 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19499 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19500 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19501 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19502 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19503 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19504 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19505 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19506 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19507 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19508 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19509 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19510 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19511 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19512 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19513 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19514 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19515 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19516 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19517 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19518 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19519 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19520 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19521 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19522 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19523 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19524 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19525 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19526 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19527 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19528 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19529 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19530 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19531 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19532 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19533 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19534 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19535 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19536 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19537 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19538 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19539 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19540 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19541 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19542 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19543 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19544 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19545 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19546 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19547 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19548 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19549 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19550 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19551 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19552 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19553 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19554 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19555 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19556 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19557 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19558 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19559 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19560 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19561 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19562 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19563 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19564 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19565 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19566 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19567 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19568 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19569 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19570 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19571 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19572 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19573 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19574 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19575 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19576 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19577 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19578 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19579 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19580 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19581 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19582 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19583 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19584 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19585 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19586 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19587 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19588 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19589 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19590 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19591 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19592 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19593 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19594 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19595 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19596 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19597 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19598 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19599 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19600 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19601 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19602 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19603 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19604 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19605 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19606 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19607 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19608 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19609 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19610 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19611 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19612 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19613 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19614 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19615 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19616 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19617 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19618 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19619 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19620 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19621 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19622 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19623 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19624 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19625 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19626 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19627 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19628 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19629 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19630 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19631 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19632 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19633 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19634 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19635 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19636 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19637 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19638 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19639 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19640 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19641 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19642 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19643 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19644 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19645 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19646 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19647 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19648 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19649 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19650 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19651 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19652 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19653 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
d14a1e28
RD
19654 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19655 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19656 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19657 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19658 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19659 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19660 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19661 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19662 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19663 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19664 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19665 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19666 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19667 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19668 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19669 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19670 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19671 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19672 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19673 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19674 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19675 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19676 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19677 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19678 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19679 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19680 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19681 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19682 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19683 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19684 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19685 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19686 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19687 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19688 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19689 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19690 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19691 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19692 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19693 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19694 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19695 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19696 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19697 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19698 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19699 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19700 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
7722248d
RD
19701
19702 // Work around a chicken/egg problem in drawlist.cpp
19703 wxPyDrawList_SetAPIPtr();
19704
d14a1e28
RD
19705}
19706