]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_gdi_wrap.cpp
Skip, Skip, Skip
[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();
749 return wxArrayString2PyList_helper(*arr);
750 }
751PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
752 wxArrayString* arr = self->GetFacenames();
753 return wxArrayString2PyList_helper(*arr);
754 }
755
756
41e2b43e
RD
757wxLocale *new_wxLocale(int language,int flags){
758 if (language == -1)
759 return new wxLocale();
760 else
761 return new wxLocale(language, flags);
762 }
d14a1e28
RD
763
764#include "wx/wxPython/pydrawxxx.h"
765
03e37cd5 766wxColour wxDC_GetPixel(wxDC *self,int x,int y){
d14a1e28
RD
767 wxColour col;
768 self->GetPixel(x, y, &col);
769 return col;
770 }
03e37cd5 771wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
d14a1e28
RD
772 wxColour col;
773 self->GetPixel(pt, &col);
774 return col;
775 }
994141e6 776
15afbcd0
RD
777SWIGSTATICINLINE(double)
778SWIG_AsDouble(PyObject *obj)
994141e6 779{
69223c70
RD
780 if (PyNumber_Check(obj))
781 return PyFloat_AsDouble(obj);
782 else {
783 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
784 obj->ob_type->tp_name);
785 PyErr_SetObject(PyExc_TypeError, errmsg);
786 Py_DECREF(errmsg);
787 return 0;
788 }
15afbcd0
RD
789}
790
791
792SWIGSTATICINLINE(int)
793SWIG_CheckDouble(PyObject* obj)
794{
795 SWIG_AsDouble(obj);
796 if (PyErr_Occurred()) {
797 PyErr_Clear();
798 return 0;
799 } else {
800 return 1;
801 }
994141e6
RD
802}
803
d14a1e28
RD
804wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
805 wxRect rv;
806 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
807 return rv;
808 }
809wxRect wxDC_GetClippingRect(wxDC *self){
810 wxRect rect;
811 self->GetClippingBox(rect);
812 return rect;
813 }
db914595
RD
814wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
815 wxArrayInt widths;
816 self->GetPartialTextExtents(text, widths);
817 return widths;
818 }
03e37cd5
RD
819void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
820 self->SetLogicalOrigin(point.x, point.y);
821 }
822void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
823 self->SetDeviceOrigin(point.x, point.y);
824 }
825void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
826 self->CalcBoundingBox(point.x, point.y);
827 }
d14a1e28
RD
828PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
829 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
830 }
831PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
832 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
833 }
834PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
835 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
836 }
837PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
838 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
839 }
840PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
841 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
842 }
843PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
844 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
845 }
846
847static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
848 *x1 = dc->MinX();
849 *y1 = dc->MinY();
850 *x2 = dc->MaxX();
851 *y2 = dc->MaxY();
852}
853
854
b88bce5f 855#include <wx/dcbuffer.h>
b88bce5f 856
b88bce5f 857
d14a1e28
RD
858#include <wx/dcps.h>
859
860
861class wxMetaFile : public wxObject {
862public:
863 wxMetaFile(const wxString&)
39f61e25 864 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
865};
866
867class wxMetaFileDC : public wxClientDC {
868public:
869 wxMetaFileDC(const wxString&, int, int, const wxString&)
39f61e25 870 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
871};
872
873
874
875class wxPrinterDC : public wxClientDC {
876public:
877 wxPrinterDC(const wxPrintData&)
39f61e25 878 { wxPyRaiseNotImplemented(); }
33b885b9 879
d14a1e28 880// wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
39f61e25 881// { wxPyRaiseNotImplemented(); }
d14a1e28
RD
882};
883
884
885
886void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
887 self->AddColour(name, wxColour(red, green, blue));
888 }
889
d14a1e28
RD
890#include <wx/effects.h>
891
892#ifdef __cplusplus
893extern "C" {
894#endif
895static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
896 PyObject *resultobj;
897 wxGDIObject *result;
898 char *kwnames[] = {
899 NULL
900 };
901
902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
903 {
e3b71cb8 904 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
905 PyThreadState* __tstate = wxPyBeginAllowThreads();
906 result = (wxGDIObject *)new wxGDIObject();
907
908 wxPyEndAllowThreads(__tstate);
110da5b0 909 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 910 }
15afbcd0 911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
d14a1e28
RD
912 return resultobj;
913 fail:
914 return NULL;
915}
916
917
918static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
919 PyObject *resultobj;
920 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
921 PyObject * obj0 = 0 ;
922 char *kwnames[] = {
923 (char *) "self", NULL
924 };
925
926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
15afbcd0
RD
927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
929 {
930 PyThreadState* __tstate = wxPyBeginAllowThreads();
931 delete arg1;
932
933 wxPyEndAllowThreads(__tstate);
934 if (PyErr_Occurred()) SWIG_fail;
935 }
936 Py_INCREF(Py_None); resultobj = Py_None;
937 return resultobj;
938 fail:
939 return NULL;
940}
941
942
943static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
944 PyObject *resultobj;
945 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
946 bool result;
947 PyObject * obj0 = 0 ;
948 char *kwnames[] = {
949 (char *) "self", NULL
950 };
951
952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
15afbcd0
RD
953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
955 {
956 PyThreadState* __tstate = wxPyBeginAllowThreads();
957 result = (bool)(arg1)->GetVisible();
958
959 wxPyEndAllowThreads(__tstate);
960 if (PyErr_Occurred()) SWIG_fail;
961 }
4f89f6a3
RD
962 {
963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
964 }
d14a1e28
RD
965 return resultobj;
966 fail:
967 return NULL;
968}
969
970
971static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
972 PyObject *resultobj;
973 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
974 bool arg2 ;
975 PyObject * obj0 = 0 ;
976 PyObject * obj1 = 0 ;
977 char *kwnames[] = {
978 (char *) "self",(char *) "visible", NULL
979 };
980
981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
984 arg2 = (bool) SWIG_AsBool(obj1);
985 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
986 {
987 PyThreadState* __tstate = wxPyBeginAllowThreads();
988 (arg1)->SetVisible(arg2);
989
990 wxPyEndAllowThreads(__tstate);
991 if (PyErr_Occurred()) SWIG_fail;
992 }
993 Py_INCREF(Py_None); resultobj = Py_None;
994 return resultobj;
995 fail:
996 return NULL;
997}
998
999
1000static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1001 PyObject *resultobj;
1002 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1003 bool result;
1004 PyObject * obj0 = 0 ;
1005 char *kwnames[] = {
1006 (char *) "self", NULL
1007 };
1008
1009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
15afbcd0
RD
1010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1012 {
1013 PyThreadState* __tstate = wxPyBeginAllowThreads();
1014 result = (bool)(arg1)->IsNull();
1015
1016 wxPyEndAllowThreads(__tstate);
1017 if (PyErr_Occurred()) SWIG_fail;
1018 }
4f89f6a3
RD
1019 {
1020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1021 }
d14a1e28
RD
1022 return resultobj;
1023 fail:
1024 return NULL;
1025}
1026
1027
1028static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1029 PyObject *obj;
1030 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1031 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1032 Py_INCREF(obj);
1033 return Py_BuildValue((char *)"");
1034}
1035static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1036 PyObject *resultobj;
41e2b43e
RD
1037 byte arg1 = (byte) 0 ;
1038 byte arg2 = (byte) 0 ;
1039 byte arg3 = (byte) 0 ;
d14a1e28
RD
1040 wxColour *result;
1041 PyObject * obj0 = 0 ;
1042 PyObject * obj1 = 0 ;
1043 PyObject * obj2 = 0 ;
1044 char *kwnames[] = {
1045 (char *) "red",(char *) "green",(char *) "blue", NULL
1046 };
1047
1048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1049 if (obj0) {
41e2b43e 1050 arg1 = (byte) SWIG_AsUnsignedChar(obj0);
15afbcd0 1051 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1052 }
1053 if (obj1) {
41e2b43e 1054 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
15afbcd0 1055 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1056 }
1057 if (obj2) {
41e2b43e 1058 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
15afbcd0 1059 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1060 }
1061 {
1062 PyThreadState* __tstate = wxPyBeginAllowThreads();
1063 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1064
1065 wxPyEndAllowThreads(__tstate);
1066 if (PyErr_Occurred()) SWIG_fail;
1067 }
15afbcd0 1068 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1069 return resultobj;
1070 fail:
1071 return NULL;
1072}
1073
1074
d14a1e28
RD
1075static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1076 PyObject *resultobj;
1077 wxString *arg1 = 0 ;
1078 wxColour *result;
e811c8ce 1079 bool temp1 = False ;
d14a1e28
RD
1080 PyObject * obj0 = 0 ;
1081 char *kwnames[] = {
1082 (char *) "colorName", NULL
1083 };
1084
1085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1086 {
1087 arg1 = wxString_in_helper(obj0);
1088 if (arg1 == NULL) SWIG_fail;
e811c8ce 1089 temp1 = True;
d14a1e28
RD
1090 }
1091 {
eab6e45e 1092 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
1093 PyThreadState* __tstate = wxPyBeginAllowThreads();
1094 result = (wxColour *)new wxColour((wxString const &)*arg1);
1095
1096 wxPyEndAllowThreads(__tstate);
1097 if (PyErr_Occurred()) SWIG_fail;
1098 }
15afbcd0 1099 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1100 {
1101 if (temp1)
1102 delete arg1;
1103 }
1104 return resultobj;
1105 fail:
1106 {
1107 if (temp1)
1108 delete arg1;
1109 }
1110 return NULL;
1111}
1112
1113
1114static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1115 PyObject *resultobj;
1116 unsigned long arg1 ;
1117 wxColour *result;
1118 PyObject * obj0 = 0 ;
1119 char *kwnames[] = {
1120 (char *) "colRGB", NULL
1121 };
1122
1123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
15afbcd0
RD
1124 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1125 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1126 {
1127 PyThreadState* __tstate = wxPyBeginAllowThreads();
1128 result = (wxColour *)new wxColour(arg1);
1129
1130 wxPyEndAllowThreads(__tstate);
1131 if (PyErr_Occurred()) SWIG_fail;
1132 }
15afbcd0 1133 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1134 return resultobj;
1135 fail:
1136 return NULL;
1137}
1138
1139
b88bce5f
RD
1140static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1141 PyObject *resultobj;
1142 wxColour *arg1 = (wxColour *) 0 ;
1143 PyObject * obj0 = 0 ;
1144 char *kwnames[] = {
1145 (char *) "self", NULL
1146 };
1147
1148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
15afbcd0
RD
1149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
b88bce5f
RD
1151 {
1152 PyThreadState* __tstate = wxPyBeginAllowThreads();
1153 delete arg1;
1154
1155 wxPyEndAllowThreads(__tstate);
1156 if (PyErr_Occurred()) SWIG_fail;
1157 }
1158 Py_INCREF(Py_None); resultobj = Py_None;
1159 return resultobj;
1160 fail:
1161 return NULL;
1162}
1163
1164
d14a1e28
RD
1165static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1166 PyObject *resultobj;
1167 wxColour *arg1 = (wxColour *) 0 ;
41e2b43e 1168 byte result;
d14a1e28
RD
1169 PyObject * obj0 = 0 ;
1170 char *kwnames[] = {
1171 (char *) "self", NULL
1172 };
1173
1174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
15afbcd0
RD
1175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1177 {
1178 PyThreadState* __tstate = wxPyBeginAllowThreads();
41e2b43e 1179 result = (byte)(arg1)->Red();
d14a1e28
RD
1180
1181 wxPyEndAllowThreads(__tstate);
1182 if (PyErr_Occurred()) SWIG_fail;
1183 }
15afbcd0 1184 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1185 return resultobj;
1186 fail:
1187 return NULL;
1188}
1189
1190
1191static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1192 PyObject *resultobj;
1193 wxColour *arg1 = (wxColour *) 0 ;
41e2b43e 1194 byte result;
d14a1e28
RD
1195 PyObject * obj0 = 0 ;
1196 char *kwnames[] = {
1197 (char *) "self", NULL
1198 };
1199
1200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
15afbcd0
RD
1201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1203 {
1204 PyThreadState* __tstate = wxPyBeginAllowThreads();
41e2b43e 1205 result = (byte)(arg1)->Green();
d14a1e28
RD
1206
1207 wxPyEndAllowThreads(__tstate);
1208 if (PyErr_Occurred()) SWIG_fail;
1209 }
15afbcd0 1210 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1211 return resultobj;
1212 fail:
1213 return NULL;
1214}
1215
1216
1217static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1218 PyObject *resultobj;
1219 wxColour *arg1 = (wxColour *) 0 ;
41e2b43e 1220 byte result;
d14a1e28
RD
1221 PyObject * obj0 = 0 ;
1222 char *kwnames[] = {
1223 (char *) "self", NULL
1224 };
1225
1226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
15afbcd0
RD
1227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1229 {
1230 PyThreadState* __tstate = wxPyBeginAllowThreads();
41e2b43e 1231 result = (byte)(arg1)->Blue();
d14a1e28
RD
1232
1233 wxPyEndAllowThreads(__tstate);
1234 if (PyErr_Occurred()) SWIG_fail;
1235 }
15afbcd0 1236 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
1237 return resultobj;
1238 fail:
1239 return NULL;
1240}
1241
1242
1243static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1244 PyObject *resultobj;
1245 wxColour *arg1 = (wxColour *) 0 ;
1246 bool result;
1247 PyObject * obj0 = 0 ;
1248 char *kwnames[] = {
1249 (char *) "self", NULL
1250 };
1251
1252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
1253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1255 {
1256 PyThreadState* __tstate = wxPyBeginAllowThreads();
1257 result = (bool)(arg1)->Ok();
1258
1259 wxPyEndAllowThreads(__tstate);
1260 if (PyErr_Occurred()) SWIG_fail;
1261 }
4f89f6a3
RD
1262 {
1263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1264 }
d14a1e28
RD
1265 return resultobj;
1266 fail:
1267 return NULL;
1268}
1269
1270
1271static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1272 PyObject *resultobj;
1273 wxColour *arg1 = (wxColour *) 0 ;
41e2b43e
RD
1274 byte arg2 ;
1275 byte arg3 ;
1276 byte arg4 ;
d14a1e28
RD
1277 PyObject * obj0 = 0 ;
1278 PyObject * obj1 = 0 ;
1279 PyObject * obj2 = 0 ;
1280 PyObject * obj3 = 0 ;
1281 char *kwnames[] = {
1282 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1283 };
1284
1285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
1286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
41e2b43e 1288 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
15afbcd0 1289 if (PyErr_Occurred()) SWIG_fail;
41e2b43e 1290 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
15afbcd0 1291 if (PyErr_Occurred()) SWIG_fail;
41e2b43e 1292 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
15afbcd0 1293 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1294 {
1295 PyThreadState* __tstate = wxPyBeginAllowThreads();
1296 (arg1)->Set(arg2,arg3,arg4);
1297
1298 wxPyEndAllowThreads(__tstate);
1299 if (PyErr_Occurred()) SWIG_fail;
1300 }
1301 Py_INCREF(Py_None); resultobj = Py_None;
1302 return resultobj;
1303 fail:
1304 return NULL;
1305}
1306
1307
c9c7117a 1308static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1309 PyObject *resultobj;
1310 wxColour *arg1 = (wxColour *) 0 ;
1311 unsigned long arg2 ;
1312 PyObject * obj0 = 0 ;
1313 PyObject * obj1 = 0 ;
1314 char *kwnames[] = {
1315 (char *) "self",(char *) "colRGB", NULL
1316 };
1317
c9c7117a 1318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1321 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1322 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1323 {
1324 PyThreadState* __tstate = wxPyBeginAllowThreads();
1325 (arg1)->Set(arg2);
1326
1327 wxPyEndAllowThreads(__tstate);
1328 if (PyErr_Occurred()) SWIG_fail;
1329 }
1330 Py_INCREF(Py_None); resultobj = Py_None;
1331 return resultobj;
1332 fail:
1333 return NULL;
1334}
1335
1336
b88bce5f
RD
1337static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1338 PyObject *resultobj;
1339 wxColour *arg1 = (wxColour *) 0 ;
1340 wxString *arg2 = 0 ;
1341 bool temp2 = False ;
1342 PyObject * obj0 = 0 ;
1343 PyObject * obj1 = 0 ;
1344 char *kwnames[] = {
1345 (char *) "self",(char *) "colourName", NULL
1346 };
1347
1348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
b88bce5f
RD
1351 {
1352 arg2 = wxString_in_helper(obj1);
1353 if (arg2 == NULL) SWIG_fail;
1354 temp2 = True;
1355 }
1356 {
1357 PyThreadState* __tstate = wxPyBeginAllowThreads();
1358 (arg1)->InitFromName((wxString const &)*arg2);
1359
1360 wxPyEndAllowThreads(__tstate);
1361 if (PyErr_Occurred()) SWIG_fail;
1362 }
1363 Py_INCREF(Py_None); resultobj = Py_None;
1364 {
1365 if (temp2)
1366 delete arg2;
1367 }
1368 return resultobj;
1369 fail:
1370 {
1371 if (temp2)
1372 delete arg2;
1373 }
1374 return NULL;
1375}
1376
1377
1378static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1379 PyObject *resultobj;
1380 wxColour *arg1 = (wxColour *) 0 ;
1381 long result;
1382 PyObject * obj0 = 0 ;
1383 char *kwnames[] = {
1384 (char *) "self", NULL
1385 };
1386
1387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
15afbcd0
RD
1388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
b88bce5f
RD
1390 {
1391 PyThreadState* __tstate = wxPyBeginAllowThreads();
1392 result = (long)((wxColour const *)arg1)->GetPixel();
1393
1394 wxPyEndAllowThreads(__tstate);
1395 if (PyErr_Occurred()) SWIG_fail;
1396 }
15afbcd0 1397 resultobj = SWIG_FromLong((long)result);
b88bce5f
RD
1398 return resultobj;
1399 fail:
1400 return NULL;
1401}
1402
1403
d14a1e28
RD
1404static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1405 PyObject *resultobj;
1406 wxColour *arg1 = (wxColour *) 0 ;
1407 wxColour *arg2 = 0 ;
1408 bool result;
1409 wxColour temp2 ;
1410 PyObject * obj0 = 0 ;
1411 PyObject * obj1 = 0 ;
1412 char *kwnames[] = {
1413 (char *) "self",(char *) "colour", NULL
1414 };
1415
1416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1419 {
1420 arg2 = &temp2;
1421 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1422 }
1423 {
1424 PyThreadState* __tstate = wxPyBeginAllowThreads();
1425 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1426
1427 wxPyEndAllowThreads(__tstate);
1428 if (PyErr_Occurred()) SWIG_fail;
1429 }
4f89f6a3
RD
1430 {
1431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1432 }
d14a1e28
RD
1433 return resultobj;
1434 fail:
1435 return NULL;
1436}
1437
1438
1439static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1440 PyObject *resultobj;
1441 wxColour *arg1 = (wxColour *) 0 ;
1442 wxColour *arg2 = 0 ;
1443 bool result;
1444 wxColour temp2 ;
1445 PyObject * obj0 = 0 ;
1446 PyObject * obj1 = 0 ;
1447 char *kwnames[] = {
1448 (char *) "self",(char *) "colour", NULL
1449 };
1450
1451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1454 {
1455 arg2 = &temp2;
1456 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1457 }
1458 {
1459 PyThreadState* __tstate = wxPyBeginAllowThreads();
1460 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1461
1462 wxPyEndAllowThreads(__tstate);
1463 if (PyErr_Occurred()) SWIG_fail;
1464 }
4f89f6a3
RD
1465 {
1466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1467 }
d14a1e28
RD
1468 return resultobj;
1469 fail:
1470 return NULL;
1471}
1472
1473
b88bce5f 1474static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
c9c7117a
RD
1475 PyObject *resultobj;
1476 wxColour *arg1 = (wxColour *) 0 ;
b88bce5f 1477 PyObject *result;
c9c7117a 1478 PyObject * obj0 = 0 ;
c9c7117a 1479 char *kwnames[] = {
b88bce5f 1480 (char *) "self", NULL
c9c7117a
RD
1481 };
1482
b88bce5f 1483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
15afbcd0
RD
1484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c9c7117a
RD
1486 {
1487 PyThreadState* __tstate = wxPyBeginAllowThreads();
b88bce5f 1488 result = (PyObject *)wxColour_Get(arg1);
c9c7117a
RD
1489
1490 wxPyEndAllowThreads(__tstate);
1491 if (PyErr_Occurred()) SWIG_fail;
1492 }
b88bce5f 1493 resultobj = result;
c9c7117a
RD
1494 return resultobj;
1495 fail:
c9c7117a
RD
1496 return NULL;
1497}
1498
1499
b88bce5f 1500static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1501 PyObject *resultobj;
1502 wxColour *arg1 = (wxColour *) 0 ;
b88bce5f 1503 unsigned long result;
d14a1e28
RD
1504 PyObject * obj0 = 0 ;
1505 char *kwnames[] = {
1506 (char *) "self", NULL
1507 };
1508
b88bce5f 1509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
15afbcd0
RD
1510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1512 {
1513 PyThreadState* __tstate = wxPyBeginAllowThreads();
b88bce5f 1514 result = (unsigned long)wxColour_GetRGB(arg1);
d14a1e28
RD
1515
1516 wxPyEndAllowThreads(__tstate);
1517 if (PyErr_Occurred()) SWIG_fail;
1518 }
15afbcd0 1519 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
1520 return resultobj;
1521 fail:
1522 return NULL;
1523}
1524
1525
1526static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1527 PyObject *obj;
1528 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1529 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1530 Py_INCREF(obj);
1531 return Py_BuildValue((char *)"");
1532}
1533static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1534 PyObject *resultobj;
1535 int arg1 ;
1536 unsigned char *arg2 = (unsigned char *) 0 ;
1537 unsigned char *arg3 = (unsigned char *) 0 ;
1538 unsigned char *arg4 = (unsigned char *) 0 ;
1539 wxPalette *result;
994141e6 1540 PyObject * obj0 = 0 ;
d14a1e28
RD
1541 PyObject * obj1 = 0 ;
1542 PyObject * obj2 = 0 ;
1543 PyObject * obj3 = 0 ;
1544 char *kwnames[] = {
1545 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1546 };
1547
994141e6 1548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
1549 arg1 = (int) SWIG_AsInt(obj0);
1550 if (PyErr_Occurred()) SWIG_fail;
1551 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1553 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1555 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 1557 {
e3b71cb8 1558 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
1559 PyThreadState* __tstate = wxPyBeginAllowThreads();
1560 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1561
1562 wxPyEndAllowThreads(__tstate);
110da5b0 1563 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 1564 }
15afbcd0 1565 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
d14a1e28
RD
1566 return resultobj;
1567 fail:
1568 return NULL;
1569}
1570
1571
1572static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1573 PyObject *resultobj;
1574 wxPalette *arg1 = (wxPalette *) 0 ;
1575 PyObject * obj0 = 0 ;
1576 char *kwnames[] = {
1577 (char *) "self", NULL
1578 };
1579
1580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
15afbcd0
RD
1581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1583 {
1584 PyThreadState* __tstate = wxPyBeginAllowThreads();
1585 delete arg1;
1586
1587 wxPyEndAllowThreads(__tstate);
1588 if (PyErr_Occurred()) SWIG_fail;
1589 }
1590 Py_INCREF(Py_None); resultobj = Py_None;
1591 return resultobj;
1592 fail:
1593 return NULL;
1594}
1595
1596
1597static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1598 PyObject *resultobj;
1599 wxPalette *arg1 = (wxPalette *) 0 ;
1600 byte arg2 ;
1601 byte arg3 ;
1602 byte arg4 ;
1603 int result;
1604 PyObject * obj0 = 0 ;
1605 PyObject * obj1 = 0 ;
1606 PyObject * obj2 = 0 ;
1607 PyObject * obj3 = 0 ;
1608 char *kwnames[] = {
1609 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1610 };
1611
1612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
1613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1615 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1616 if (PyErr_Occurred()) SWIG_fail;
1617 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1618 if (PyErr_Occurred()) SWIG_fail;
1619 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1620 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1621 {
1622 PyThreadState* __tstate = wxPyBeginAllowThreads();
1623 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1624
1625 wxPyEndAllowThreads(__tstate);
1626 if (PyErr_Occurred()) SWIG_fail;
1627 }
15afbcd0 1628 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1629 return resultobj;
1630 fail:
1631 return NULL;
1632}
1633
1634
1635static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1636 PyObject *resultobj;
1637 wxPalette *arg1 = (wxPalette *) 0 ;
1638 int arg2 ;
1639 byte *arg3 = (byte *) 0 ;
1640 byte *arg4 = (byte *) 0 ;
1641 byte *arg5 = (byte *) 0 ;
1642 bool result;
1643 byte temp3 ;
1644 byte temp4 ;
1645 byte temp5 ;
1646 PyObject * obj0 = 0 ;
994141e6 1647 PyObject * obj1 = 0 ;
d14a1e28
RD
1648 char *kwnames[] = {
1649 (char *) "self",(char *) "pixel", NULL
1650 };
1651
1652 arg3 = &temp3;
1653 arg4 = &temp4;
1654 arg5 = &temp5;
994141e6 1655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1658 arg2 = (int) SWIG_AsInt(obj1);
1659 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1660 {
1661 PyThreadState* __tstate = wxPyBeginAllowThreads();
1662 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1663
1664 wxPyEndAllowThreads(__tstate);
1665 if (PyErr_Occurred()) SWIG_fail;
1666 }
4f89f6a3
RD
1667 {
1668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1669 }
d14a1e28
RD
1670 {
1671 PyObject *o = PyInt_FromLong((long) (*arg3));
1672 resultobj = t_output_helper(resultobj,o);
1673 }
1674 {
1675 PyObject *o = PyInt_FromLong((long) (*arg4));
1676 resultobj = t_output_helper(resultobj,o);
1677 }
1678 {
1679 PyObject *o = PyInt_FromLong((long) (*arg5));
1680 resultobj = t_output_helper(resultobj,o);
1681 }
1682 return resultobj;
1683 fail:
1684 return NULL;
1685}
1686
1687
1688static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1689 PyObject *resultobj;
1690 wxPalette *arg1 = (wxPalette *) 0 ;
1691 bool result;
1692 PyObject * obj0 = 0 ;
1693 char *kwnames[] = {
1694 (char *) "self", NULL
1695 };
1696
1697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
1698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1700 {
1701 PyThreadState* __tstate = wxPyBeginAllowThreads();
1702 result = (bool)(arg1)->Ok();
1703
1704 wxPyEndAllowThreads(__tstate);
1705 if (PyErr_Occurred()) SWIG_fail;
1706 }
4f89f6a3
RD
1707 {
1708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1709 }
d14a1e28
RD
1710 return resultobj;
1711 fail:
1712 return NULL;
1713}
1714
1715
1716static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1717 PyObject *obj;
1718 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1719 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1720 Py_INCREF(obj);
1721 return Py_BuildValue((char *)"");
1722}
1723static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1724 PyObject *resultobj;
1725 wxColour *arg1 = 0 ;
1726 int arg2 = (int) 1 ;
1727 int arg3 = (int) wxSOLID ;
1728 wxPen *result;
1729 wxColour temp1 ;
1730 PyObject * obj0 = 0 ;
994141e6
RD
1731 PyObject * obj1 = 0 ;
1732 PyObject * obj2 = 0 ;
d14a1e28
RD
1733 char *kwnames[] = {
1734 (char *) "colour",(char *) "width",(char *) "style", NULL
1735 };
1736
994141e6 1737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
1738 {
1739 arg1 = &temp1;
1740 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1741 }
994141e6 1742 if (obj1) {
15afbcd0
RD
1743 arg2 = (int) SWIG_AsInt(obj1);
1744 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
1745 }
1746 if (obj2) {
15afbcd0
RD
1747 arg3 = (int) SWIG_AsInt(obj2);
1748 if (PyErr_Occurred()) SWIG_fail;
994141e6 1749 }
d14a1e28 1750 {
e3b71cb8 1751 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
1752 PyThreadState* __tstate = wxPyBeginAllowThreads();
1753 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1754
1755 wxPyEndAllowThreads(__tstate);
110da5b0 1756 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 1757 }
15afbcd0 1758 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
d14a1e28
RD
1759 return resultobj;
1760 fail:
1761 return NULL;
1762}
1763
1764
1765static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1766 PyObject *resultobj;
1767 wxPen *arg1 = (wxPen *) 0 ;
1768 PyObject * obj0 = 0 ;
1769 char *kwnames[] = {
1770 (char *) "self", NULL
1771 };
1772
1773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
15afbcd0
RD
1774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1776 {
1777 PyThreadState* __tstate = wxPyBeginAllowThreads();
1778 delete arg1;
1779
1780 wxPyEndAllowThreads(__tstate);
1781 if (PyErr_Occurred()) SWIG_fail;
1782 }
1783 Py_INCREF(Py_None); resultobj = Py_None;
1784 return resultobj;
1785 fail:
1786 return NULL;
1787}
1788
1789
1790static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1791 PyObject *resultobj;
1792 wxPen *arg1 = (wxPen *) 0 ;
1793 int result;
1794 PyObject * obj0 = 0 ;
1795 char *kwnames[] = {
1796 (char *) "self", NULL
1797 };
1798
1799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
15afbcd0
RD
1800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1802 {
1803 PyThreadState* __tstate = wxPyBeginAllowThreads();
1804 result = (int)(arg1)->GetCap();
1805
1806 wxPyEndAllowThreads(__tstate);
1807 if (PyErr_Occurred()) SWIG_fail;
1808 }
15afbcd0 1809 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1810 return resultobj;
1811 fail:
1812 return NULL;
1813}
1814
1815
1816static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1817 PyObject *resultobj;
1818 wxPen *arg1 = (wxPen *) 0 ;
1819 wxColour result;
1820 PyObject * obj0 = 0 ;
1821 char *kwnames[] = {
1822 (char *) "self", NULL
1823 };
1824
1825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
15afbcd0
RD
1826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1828 {
1829 PyThreadState* __tstate = wxPyBeginAllowThreads();
1830 result = (arg1)->GetColour();
1831
1832 wxPyEndAllowThreads(__tstate);
1833 if (PyErr_Occurred()) SWIG_fail;
1834 }
1835 {
1836 wxColour * resultptr;
1837 resultptr = new wxColour((wxColour &) result);
15afbcd0 1838 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1839 }
1840 return resultobj;
1841 fail:
1842 return NULL;
1843}
1844
1845
1846static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1847 PyObject *resultobj;
1848 wxPen *arg1 = (wxPen *) 0 ;
1849 int result;
1850 PyObject * obj0 = 0 ;
1851 char *kwnames[] = {
1852 (char *) "self", NULL
1853 };
1854
1855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
15afbcd0
RD
1856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1858 {
1859 PyThreadState* __tstate = wxPyBeginAllowThreads();
1860 result = (int)(arg1)->GetJoin();
1861
1862 wxPyEndAllowThreads(__tstate);
1863 if (PyErr_Occurred()) SWIG_fail;
1864 }
15afbcd0 1865 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1866 return resultobj;
1867 fail:
1868 return NULL;
1869}
1870
1871
1872static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1873 PyObject *resultobj;
1874 wxPen *arg1 = (wxPen *) 0 ;
1875 int result;
1876 PyObject * obj0 = 0 ;
1877 char *kwnames[] = {
1878 (char *) "self", NULL
1879 };
1880
1881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
15afbcd0
RD
1882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1884 {
1885 PyThreadState* __tstate = wxPyBeginAllowThreads();
1886 result = (int)(arg1)->GetStyle();
1887
1888 wxPyEndAllowThreads(__tstate);
1889 if (PyErr_Occurred()) SWIG_fail;
1890 }
15afbcd0 1891 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1892 return resultobj;
1893 fail:
1894 return NULL;
1895}
1896
1897
1898static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1899 PyObject *resultobj;
1900 wxPen *arg1 = (wxPen *) 0 ;
1901 int result;
1902 PyObject * obj0 = 0 ;
1903 char *kwnames[] = {
1904 (char *) "self", NULL
1905 };
1906
1907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
1908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1910 {
1911 PyThreadState* __tstate = wxPyBeginAllowThreads();
1912 result = (int)(arg1)->GetWidth();
1913
1914 wxPyEndAllowThreads(__tstate);
1915 if (PyErr_Occurred()) SWIG_fail;
1916 }
15afbcd0 1917 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1918 return resultobj;
1919 fail:
1920 return NULL;
1921}
1922
1923
1924static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1925 PyObject *resultobj;
1926 wxPen *arg1 = (wxPen *) 0 ;
1927 bool result;
1928 PyObject * obj0 = 0 ;
1929 char *kwnames[] = {
1930 (char *) "self", NULL
1931 };
1932
1933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
1934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1936 {
1937 PyThreadState* __tstate = wxPyBeginAllowThreads();
1938 result = (bool)(arg1)->Ok();
1939
1940 wxPyEndAllowThreads(__tstate);
1941 if (PyErr_Occurred()) SWIG_fail;
1942 }
4f89f6a3
RD
1943 {
1944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1945 }
d14a1e28
RD
1946 return resultobj;
1947 fail:
1948 return NULL;
1949}
1950
1951
1952static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1953 PyObject *resultobj;
1954 wxPen *arg1 = (wxPen *) 0 ;
1955 int arg2 ;
1956 PyObject * obj0 = 0 ;
994141e6 1957 PyObject * obj1 = 0 ;
d14a1e28
RD
1958 char *kwnames[] = {
1959 (char *) "self",(char *) "cap_style", NULL
1960 };
1961
994141e6 1962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1965 arg2 = (int) SWIG_AsInt(obj1);
1966 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1967 {
1968 PyThreadState* __tstate = wxPyBeginAllowThreads();
1969 (arg1)->SetCap(arg2);
1970
1971 wxPyEndAllowThreads(__tstate);
1972 if (PyErr_Occurred()) SWIG_fail;
1973 }
1974 Py_INCREF(Py_None); resultobj = Py_None;
1975 return resultobj;
1976 fail:
1977 return NULL;
1978}
1979
1980
1981static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1982 PyObject *resultobj;
1983 wxPen *arg1 = (wxPen *) 0 ;
1984 wxColour *arg2 = 0 ;
1985 wxColour temp2 ;
1986 PyObject * obj0 = 0 ;
1987 PyObject * obj1 = 0 ;
1988 char *kwnames[] = {
1989 (char *) "self",(char *) "colour", NULL
1990 };
1991
1992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
1993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1995 {
1996 arg2 = &temp2;
1997 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1998 }
1999 {
2000 PyThreadState* __tstate = wxPyBeginAllowThreads();
2001 (arg1)->SetColour(*arg2);
2002
2003 wxPyEndAllowThreads(__tstate);
2004 if (PyErr_Occurred()) SWIG_fail;
2005 }
2006 Py_INCREF(Py_None); resultobj = Py_None;
2007 return resultobj;
2008 fail:
2009 return NULL;
2010}
2011
2012
2013static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2014 PyObject *resultobj;
2015 wxPen *arg1 = (wxPen *) 0 ;
2016 int arg2 ;
2017 PyObject * obj0 = 0 ;
994141e6 2018 PyObject * obj1 = 0 ;
d14a1e28
RD
2019 char *kwnames[] = {
2020 (char *) "self",(char *) "join_style", NULL
2021 };
2022
994141e6 2023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2026 arg2 = (int) SWIG_AsInt(obj1);
2027 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2028 {
2029 PyThreadState* __tstate = wxPyBeginAllowThreads();
2030 (arg1)->SetJoin(arg2);
2031
2032 wxPyEndAllowThreads(__tstate);
2033 if (PyErr_Occurred()) SWIG_fail;
2034 }
2035 Py_INCREF(Py_None); resultobj = Py_None;
2036 return resultobj;
2037 fail:
2038 return NULL;
2039}
2040
2041
2042static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2043 PyObject *resultobj;
2044 wxPen *arg1 = (wxPen *) 0 ;
2045 int arg2 ;
2046 PyObject * obj0 = 0 ;
994141e6 2047 PyObject * obj1 = 0 ;
d14a1e28
RD
2048 char *kwnames[] = {
2049 (char *) "self",(char *) "style", NULL
2050 };
2051
994141e6 2052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2055 arg2 = (int) SWIG_AsInt(obj1);
2056 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2057 {
2058 PyThreadState* __tstate = wxPyBeginAllowThreads();
2059 (arg1)->SetStyle(arg2);
2060
2061 wxPyEndAllowThreads(__tstate);
2062 if (PyErr_Occurred()) SWIG_fail;
2063 }
2064 Py_INCREF(Py_None); resultobj = Py_None;
2065 return resultobj;
2066 fail:
2067 return NULL;
2068}
2069
2070
2071static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2072 PyObject *resultobj;
2073 wxPen *arg1 = (wxPen *) 0 ;
2074 int arg2 ;
2075 PyObject * obj0 = 0 ;
994141e6 2076 PyObject * obj1 = 0 ;
d14a1e28
RD
2077 char *kwnames[] = {
2078 (char *) "self",(char *) "width", NULL
2079 };
2080
994141e6 2081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2084 arg2 = (int) SWIG_AsInt(obj1);
2085 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2086 {
2087 PyThreadState* __tstate = wxPyBeginAllowThreads();
2088 (arg1)->SetWidth(arg2);
2089
2090 wxPyEndAllowThreads(__tstate);
2091 if (PyErr_Occurred()) SWIG_fail;
2092 }
2093 Py_INCREF(Py_None); resultobj = Py_None;
2094 return resultobj;
2095 fail:
2096 return NULL;
2097}
2098
2099
2100static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2101 PyObject *resultobj;
2102 wxPen *arg1 = (wxPen *) 0 ;
2103 int arg2 ;
2104 wxDash *arg3 = (wxDash *) 0 ;
2105 PyObject * obj0 = 0 ;
2106 PyObject * obj1 = 0 ;
2107 char *kwnames[] = {
2108 (char *) "self",(char *) "dashes", NULL
2109 };
2110
2111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2114 {
2115 arg2 = PyList_Size(obj1);
2116 arg3 = (wxDash*)byte_LIST_helper(obj1);
2117 if (arg3 == NULL) SWIG_fail;
2118 }
2119 {
2120 PyThreadState* __tstate = wxPyBeginAllowThreads();
2121 (arg1)->SetDashes(arg2,arg3);
2122
2123 wxPyEndAllowThreads(__tstate);
2124 if (PyErr_Occurred()) SWIG_fail;
2125 }
2126 Py_INCREF(Py_None); resultobj = Py_None;
2127 {
2128 if (arg3) delete [] arg3;
2129 }
2130 return resultobj;
2131 fail:
2132 {
2133 if (arg3) delete [] arg3;
2134 }
2135 return NULL;
2136}
2137
2138
2139static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2140 PyObject *resultobj;
2141 wxPen *arg1 = (wxPen *) 0 ;
2142 PyObject *result;
2143 PyObject * obj0 = 0 ;
2144 char *kwnames[] = {
2145 (char *) "self", NULL
2146 };
2147
2148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
15afbcd0
RD
2149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2151 {
2152 PyThreadState* __tstate = wxPyBeginAllowThreads();
2153 result = (PyObject *)wxPen_GetDashes(arg1);
2154
2155 wxPyEndAllowThreads(__tstate);
2156 if (PyErr_Occurred()) SWIG_fail;
2157 }
2158 resultobj = result;
2159 return resultobj;
2160 fail:
2161 return NULL;
2162}
2163
2164
66c033b4 2165static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
22faec7d
RD
2166 PyObject *resultobj;
2167 wxPen *arg1 = (wxPen *) 0 ;
66c033b4
RD
2168 PyObject *arg2 = (PyObject *) 0 ;
2169 PyObject *arg3 = (PyObject *) 0 ;
22faec7d
RD
2170 PyObject * obj0 = 0 ;
2171 PyObject * obj1 = 0 ;
66c033b4 2172 PyObject * obj2 = 0 ;
22faec7d 2173 char *kwnames[] = {
66c033b4 2174 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
22faec7d
RD
2175 };
2176
66c033b4 2177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
2178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
66c033b4
RD
2180 arg2 = obj1;
2181 arg3 = obj2;
3adfb63b
RD
2182 {
2183 PyThreadState* __tstate = wxPyBeginAllowThreads();
66c033b4 2184 wxPen__SetDashes(arg1,arg2,arg3);
3adfb63b
RD
2185
2186 wxPyEndAllowThreads(__tstate);
2187 if (PyErr_Occurred()) SWIG_fail;
2188 }
66c033b4 2189 Py_INCREF(Py_None); resultobj = Py_None;
3adfb63b
RD
2190 return resultobj;
2191 fail:
2192 return NULL;
2193}
2194
2195
c9c7117a
RD
2196static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2197 PyObject *resultobj;
2198 wxPen *arg1 = (wxPen *) 0 ;
2199 int result;
2200 PyObject * obj0 = 0 ;
2201 char *kwnames[] = {
2202 (char *) "self", NULL
2203 };
2204
2205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
2206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c9c7117a
RD
2208 {
2209 PyThreadState* __tstate = wxPyBeginAllowThreads();
2210 result = (int)((wxPen const *)arg1)->GetDashCount();
2211
2212 wxPyEndAllowThreads(__tstate);
2213 if (PyErr_Occurred()) SWIG_fail;
2214 }
15afbcd0 2215 resultobj = SWIG_FromInt((int)result);
c9c7117a
RD
2216 return resultobj;
2217 fail:
2218 return NULL;
2219}
2220
2221
66c033b4 2222static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 2223 PyObject *resultobj;
66c033b4
RD
2224 wxPen *arg1 = (wxPen *) 0 ;
2225 wxPen *arg2 = (wxPen *) 0 ;
2226 bool result;
d14a1e28 2227 PyObject * obj0 = 0 ;
994141e6 2228 PyObject * obj1 = 0 ;
d14a1e28 2229 char *kwnames[] = {
66c033b4 2230 (char *) "self",(char *) "other", NULL
d14a1e28
RD
2231 };
2232
66c033b4
RD
2233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2236 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2238 {
2239 PyThreadState* __tstate = wxPyBeginAllowThreads();
66c033b4 2240 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
d14a1e28
RD
2241
2242 wxPyEndAllowThreads(__tstate);
2243 if (PyErr_Occurred()) SWIG_fail;
2244 }
d14a1e28 2245 {
66c033b4 2246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28 2247 }
d14a1e28
RD
2248 return resultobj;
2249 fail:
2250 return NULL;
2251}
2252
2253
66c033b4 2254static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 2255 PyObject *resultobj;
66c033b4
RD
2256 wxPen *arg1 = (wxPen *) 0 ;
2257 wxPen *arg2 = (wxPen *) 0 ;
2258 bool result;
d14a1e28
RD
2259 PyObject * obj0 = 0 ;
2260 PyObject * obj1 = 0 ;
2261 char *kwnames[] = {
66c033b4 2262 (char *) "self",(char *) "other", NULL
d14a1e28
RD
2263 };
2264
66c033b4
RD
2265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2268 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
15afbcd0 2269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2270 {
2271 PyThreadState* __tstate = wxPyBeginAllowThreads();
66c033b4 2272 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
d14a1e28
RD
2273
2274 wxPyEndAllowThreads(__tstate);
2275 if (PyErr_Occurred()) SWIG_fail;
2276 }
d14a1e28 2277 {
66c033b4 2278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
2279 }
2280 return resultobj;
2281 fail:
d14a1e28
RD
2282 return NULL;
2283}
2284
2285
66c033b4 2286static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
d14a1e28
RD
2287 PyObject *obj;
2288 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
66c033b4 2289 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
d14a1e28
RD
2290 Py_INCREF(obj);
2291 return Py_BuildValue((char *)"");
2292}
2293static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2294 PyObject *resultobj;
2295 wxColour *arg1 = 0 ;
2296 int arg2 = (int) wxSOLID ;
2297 wxBrush *result;
2298 wxColour temp1 ;
2299 PyObject * obj0 = 0 ;
994141e6 2300 PyObject * obj1 = 0 ;
d14a1e28
RD
2301 char *kwnames[] = {
2302 (char *) "colour",(char *) "style", NULL
2303 };
2304
994141e6 2305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2306 {
2307 arg1 = &temp1;
2308 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2309 }
994141e6 2310 if (obj1) {
15afbcd0
RD
2311 arg2 = (int) SWIG_AsInt(obj1);
2312 if (PyErr_Occurred()) SWIG_fail;
994141e6 2313 }
d14a1e28 2314 {
e3b71cb8 2315 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2316 PyThreadState* __tstate = wxPyBeginAllowThreads();
2317 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2318
2319 wxPyEndAllowThreads(__tstate);
110da5b0 2320 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2321 }
15afbcd0 2322 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
d14a1e28
RD
2323 return resultobj;
2324 fail:
2325 return NULL;
2326}
2327
2328
2329static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2330 PyObject *resultobj;
2331 wxBrush *arg1 = (wxBrush *) 0 ;
2332 PyObject * obj0 = 0 ;
2333 char *kwnames[] = {
2334 (char *) "self", NULL
2335 };
2336
2337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
15afbcd0
RD
2338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2340 {
2341 PyThreadState* __tstate = wxPyBeginAllowThreads();
2342 delete arg1;
2343
2344 wxPyEndAllowThreads(__tstate);
2345 if (PyErr_Occurred()) SWIG_fail;
2346 }
2347 Py_INCREF(Py_None); resultobj = Py_None;
2348 return resultobj;
2349 fail:
2350 return NULL;
2351}
2352
2353
2354static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2355 PyObject *resultobj;
2356 wxBrush *arg1 = (wxBrush *) 0 ;
2357 wxColour *arg2 = 0 ;
2358 wxColour temp2 ;
2359 PyObject * obj0 = 0 ;
2360 PyObject * obj1 = 0 ;
2361 char *kwnames[] = {
2362 (char *) "self",(char *) "col", NULL
2363 };
2364
2365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2368 {
2369 arg2 = &temp2;
2370 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2371 }
2372 {
2373 PyThreadState* __tstate = wxPyBeginAllowThreads();
2374 (arg1)->SetColour((wxColour const &)*arg2);
2375
2376 wxPyEndAllowThreads(__tstate);
2377 if (PyErr_Occurred()) SWIG_fail;
2378 }
2379 Py_INCREF(Py_None); resultobj = Py_None;
2380 return resultobj;
2381 fail:
2382 return NULL;
2383}
2384
2385
2386static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2387 PyObject *resultobj;
2388 wxBrush *arg1 = (wxBrush *) 0 ;
2389 int arg2 ;
2390 PyObject * obj0 = 0 ;
994141e6 2391 PyObject * obj1 = 0 ;
d14a1e28
RD
2392 char *kwnames[] = {
2393 (char *) "self",(char *) "style", NULL
2394 };
2395
994141e6 2396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2399 arg2 = (int) SWIG_AsInt(obj1);
2400 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2401 {
2402 PyThreadState* __tstate = wxPyBeginAllowThreads();
2403 (arg1)->SetStyle(arg2);
2404
2405 wxPyEndAllowThreads(__tstate);
2406 if (PyErr_Occurred()) SWIG_fail;
2407 }
2408 Py_INCREF(Py_None); resultobj = Py_None;
2409 return resultobj;
2410 fail:
2411 return NULL;
2412}
2413
2414
2415static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2416 PyObject *resultobj;
2417 wxBrush *arg1 = (wxBrush *) 0 ;
2418 wxBitmap *arg2 = 0 ;
2419 PyObject * obj0 = 0 ;
2420 PyObject * obj1 = 0 ;
2421 char *kwnames[] = {
2422 (char *) "self",(char *) "stipple", NULL
2423 };
2424
2425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2428 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2429 SWIG_POINTER_EXCEPTION | 0)) == -1)
2430 SWIG_fail;
d14a1e28 2431 if (arg2 == NULL) {
15afbcd0
RD
2432 PyErr_SetString(PyExc_TypeError,"null reference");
2433 SWIG_fail;
d14a1e28
RD
2434 }
2435 {
2436 PyThreadState* __tstate = wxPyBeginAllowThreads();
2437 (arg1)->SetStipple((wxBitmap const &)*arg2);
2438
2439 wxPyEndAllowThreads(__tstate);
2440 if (PyErr_Occurred()) SWIG_fail;
2441 }
2442 Py_INCREF(Py_None); resultobj = Py_None;
2443 return resultobj;
2444 fail:
2445 return NULL;
2446}
2447
2448
2449static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2450 PyObject *resultobj;
2451 wxBrush *arg1 = (wxBrush *) 0 ;
2452 wxColour result;
2453 PyObject * obj0 = 0 ;
2454 char *kwnames[] = {
2455 (char *) "self", NULL
2456 };
2457
2458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
15afbcd0
RD
2459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2461 {
2462 PyThreadState* __tstate = wxPyBeginAllowThreads();
2463 result = ((wxBrush const *)arg1)->GetColour();
2464
2465 wxPyEndAllowThreads(__tstate);
2466 if (PyErr_Occurred()) SWIG_fail;
2467 }
2468 {
2469 wxColour * resultptr;
2470 resultptr = new wxColour((wxColour &) result);
15afbcd0 2471 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
2472 }
2473 return resultobj;
2474 fail:
2475 return NULL;
2476}
2477
2478
2479static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2480 PyObject *resultobj;
2481 wxBrush *arg1 = (wxBrush *) 0 ;
2482 int result;
2483 PyObject * obj0 = 0 ;
2484 char *kwnames[] = {
2485 (char *) "self", NULL
2486 };
2487
2488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
15afbcd0
RD
2489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2491 {
2492 PyThreadState* __tstate = wxPyBeginAllowThreads();
2493 result = (int)((wxBrush const *)arg1)->GetStyle();
2494
2495 wxPyEndAllowThreads(__tstate);
2496 if (PyErr_Occurred()) SWIG_fail;
2497 }
15afbcd0 2498 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
2499 return resultobj;
2500 fail:
2501 return NULL;
2502}
2503
2504
2505static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2506 PyObject *resultobj;
2507 wxBrush *arg1 = (wxBrush *) 0 ;
2508 wxBitmap *result;
2509 PyObject * obj0 = 0 ;
2510 char *kwnames[] = {
2511 (char *) "self", NULL
2512 };
2513
2514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
15afbcd0
RD
2515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2517 {
2518 PyThreadState* __tstate = wxPyBeginAllowThreads();
2519 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2520
2521 wxPyEndAllowThreads(__tstate);
2522 if (PyErr_Occurred()) SWIG_fail;
2523 }
15afbcd0 2524 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
d14a1e28
RD
2525 return resultobj;
2526 fail:
2527 return NULL;
2528}
2529
2530
2531static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2532 PyObject *resultobj;
2533 wxBrush *arg1 = (wxBrush *) 0 ;
2534 bool result;
2535 PyObject * obj0 = 0 ;
2536 char *kwnames[] = {
2537 (char *) "self", NULL
2538 };
2539
2540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
2541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2543 {
2544 PyThreadState* __tstate = wxPyBeginAllowThreads();
2545 result = (bool)(arg1)->Ok();
2546
2547 wxPyEndAllowThreads(__tstate);
2548 if (PyErr_Occurred()) SWIG_fail;
2549 }
4f89f6a3
RD
2550 {
2551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2552 }
d14a1e28
RD
2553 return resultobj;
2554 fail:
2555 return NULL;
2556}
2557
2558
2559static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2560 PyObject *obj;
2561 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2562 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2563 Py_INCREF(obj);
2564 return Py_BuildValue((char *)"");
2565}
2566static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2567 PyObject *resultobj;
2568 wxString *arg1 = 0 ;
2569 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2570 wxBitmap *result;
e811c8ce 2571 bool temp1 = False ;
d14a1e28 2572 PyObject * obj0 = 0 ;
994141e6 2573 PyObject * obj1 = 0 ;
d14a1e28
RD
2574 char *kwnames[] = {
2575 (char *) "name",(char *) "type", NULL
2576 };
2577
994141e6 2578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2579 {
2580 arg1 = wxString_in_helper(obj0);
2581 if (arg1 == NULL) SWIG_fail;
e811c8ce 2582 temp1 = True;
d14a1e28 2583 }
994141e6 2584 if (obj1) {
15afbcd0
RD
2585 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2586 if (PyErr_Occurred()) SWIG_fail;
994141e6 2587 }
d14a1e28 2588 {
e3b71cb8 2589 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2590 PyThreadState* __tstate = wxPyBeginAllowThreads();
2591 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2592
2593 wxPyEndAllowThreads(__tstate);
110da5b0 2594 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2595 }
15afbcd0 2596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2597 {
2598 if (temp1)
2599 delete arg1;
2600 }
2601 return resultobj;
2602 fail:
2603 {
2604 if (temp1)
2605 delete arg1;
2606 }
2607 return NULL;
2608}
2609
2610
2611static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2612 PyObject *resultobj;
2613 wxBitmap *arg1 = (wxBitmap *) 0 ;
2614 PyObject * obj0 = 0 ;
2615 char *kwnames[] = {
2616 (char *) "self", NULL
2617 };
2618
2619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
15afbcd0
RD
2620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2622 {
2623 PyThreadState* __tstate = wxPyBeginAllowThreads();
2624 delete arg1;
2625
2626 wxPyEndAllowThreads(__tstate);
2627 if (PyErr_Occurred()) SWIG_fail;
2628 }
2629 Py_INCREF(Py_None); resultobj = Py_None;
2630 return resultobj;
2631 fail:
2632 return NULL;
2633}
2634
2635
66c033b4
RD
2636static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2637 PyObject *resultobj;
2638 int arg1 ;
2639 int arg2 ;
2640 int arg3 = (int) -1 ;
2641 wxBitmap *result;
2642 PyObject * obj0 = 0 ;
2643 PyObject * obj1 = 0 ;
2644 PyObject * obj2 = 0 ;
2645 char *kwnames[] = {
2646 (char *) "width",(char *) "height",(char *) "depth", NULL
2647 };
2648
2649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2650 arg1 = (int) SWIG_AsInt(obj0);
2651 if (PyErr_Occurred()) SWIG_fail;
2652 arg2 = (int) SWIG_AsInt(obj1);
2653 if (PyErr_Occurred()) SWIG_fail;
2654 if (obj2) {
2655 arg3 = (int) SWIG_AsInt(obj2);
2656 if (PyErr_Occurred()) SWIG_fail;
2657 }
2658 {
e3b71cb8 2659 if (!wxPyCheckForApp()) SWIG_fail;
66c033b4
RD
2660 PyThreadState* __tstate = wxPyBeginAllowThreads();
2661 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2662
2663 wxPyEndAllowThreads(__tstate);
110da5b0 2664 if (PyErr_Occurred()) SWIG_fail;
66c033b4
RD
2665 }
2666 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2667 return resultobj;
2668 fail:
2669 return NULL;
2670}
2671
2672
d14a1e28
RD
2673static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2674 PyObject *resultobj;
2675 wxIcon *arg1 = 0 ;
2676 wxBitmap *result;
2677 PyObject * obj0 = 0 ;
2678 char *kwnames[] = {
2679 (char *) "icon", NULL
2680 };
2681
2682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
15afbcd0
RD
2683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2684 SWIG_POINTER_EXCEPTION | 0)) == -1)
2685 SWIG_fail;
d14a1e28 2686 if (arg1 == NULL) {
15afbcd0
RD
2687 PyErr_SetString(PyExc_TypeError,"null reference");
2688 SWIG_fail;
d14a1e28
RD
2689 }
2690 {
e3b71cb8 2691 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2692 PyThreadState* __tstate = wxPyBeginAllowThreads();
2693 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2694
2695 wxPyEndAllowThreads(__tstate);
110da5b0 2696 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2697 }
15afbcd0 2698 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2699 return resultobj;
2700 fail:
2701 return NULL;
2702}
2703
2704
2705static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2706 PyObject *resultobj;
2707 wxImage *arg1 = 0 ;
2708 int arg2 = (int) -1 ;
2709 wxBitmap *result;
2710 PyObject * obj0 = 0 ;
994141e6 2711 PyObject * obj1 = 0 ;
d14a1e28
RD
2712 char *kwnames[] = {
2713 (char *) "image",(char *) "depth", NULL
2714 };
2715
994141e6 2716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
2717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2718 SWIG_POINTER_EXCEPTION | 0)) == -1)
2719 SWIG_fail;
d14a1e28 2720 if (arg1 == NULL) {
15afbcd0
RD
2721 PyErr_SetString(PyExc_TypeError,"null reference");
2722 SWIG_fail;
d14a1e28 2723 }
994141e6 2724 if (obj1) {
15afbcd0
RD
2725 arg2 = (int) SWIG_AsInt(obj1);
2726 if (PyErr_Occurred()) SWIG_fail;
994141e6 2727 }
d14a1e28 2728 {
e3b71cb8 2729 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2730 PyThreadState* __tstate = wxPyBeginAllowThreads();
2731 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2732
2733 wxPyEndAllowThreads(__tstate);
110da5b0 2734 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2735 }
15afbcd0 2736 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2737 return resultobj;
2738 fail:
2739 return NULL;
2740}
2741
2742
2743static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2744 PyObject *resultobj;
2745 PyObject *arg1 = (PyObject *) 0 ;
2746 wxBitmap *result;
2747 PyObject * obj0 = 0 ;
2748 char *kwnames[] = {
2749 (char *) "listOfStrings", NULL
2750 };
2751
2752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2753 arg1 = obj0;
2754 {
e3b71cb8 2755 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2756 PyThreadState* __tstate = wxPyBeginAllowThreads();
2757 result = (wxBitmap *)new_wxBitmap(arg1);
2758
2759 wxPyEndAllowThreads(__tstate);
110da5b0 2760 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2761 }
15afbcd0 2762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2763 return resultobj;
2764 fail:
2765 return NULL;
2766}
2767
2768
2769static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2770 PyObject *resultobj;
2771 PyObject *arg1 = (PyObject *) 0 ;
2772 int arg2 ;
2773 int arg3 ;
2774 int arg4 = (int) 1 ;
2775 wxBitmap *result;
2776 PyObject * obj0 = 0 ;
994141e6
RD
2777 PyObject * obj1 = 0 ;
2778 PyObject * obj2 = 0 ;
2779 PyObject * obj3 = 0 ;
d14a1e28
RD
2780 char *kwnames[] = {
2781 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2782 };
2783
994141e6 2784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 2785 arg1 = obj0;
15afbcd0
RD
2786 arg2 = (int) SWIG_AsInt(obj1);
2787 if (PyErr_Occurred()) SWIG_fail;
2788 arg3 = (int) SWIG_AsInt(obj2);
2789 if (PyErr_Occurred()) SWIG_fail;
994141e6 2790 if (obj3) {
15afbcd0
RD
2791 arg4 = (int) SWIG_AsInt(obj3);
2792 if (PyErr_Occurred()) SWIG_fail;
994141e6 2793 }
d14a1e28 2794 {
e3b71cb8 2795 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2796 PyThreadState* __tstate = wxPyBeginAllowThreads();
2797 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2798
2799 wxPyEndAllowThreads(__tstate);
110da5b0 2800 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2801 }
15afbcd0 2802 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
2803 return resultobj;
2804 fail:
2805 return NULL;
2806}
2807
2808
2809static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2810 PyObject *resultobj;
2811 wxBitmap *arg1 = (wxBitmap *) 0 ;
2812 bool result;
2813 PyObject * obj0 = 0 ;
2814 char *kwnames[] = {
2815 (char *) "self", NULL
2816 };
2817
2818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
2819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2821 {
2822 PyThreadState* __tstate = wxPyBeginAllowThreads();
2823 result = (bool)(arg1)->Ok();
2824
2825 wxPyEndAllowThreads(__tstate);
2826 if (PyErr_Occurred()) SWIG_fail;
2827 }
4f89f6a3
RD
2828 {
2829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2830 }
d14a1e28
RD
2831 return resultobj;
2832 fail:
2833 return NULL;
2834}
2835
2836
2837static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2838 PyObject *resultobj;
2839 wxBitmap *arg1 = (wxBitmap *) 0 ;
2840 int result;
2841 PyObject * obj0 = 0 ;
2842 char *kwnames[] = {
2843 (char *) "self", NULL
2844 };
2845
2846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
2847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2849 {
2850 PyThreadState* __tstate = wxPyBeginAllowThreads();
2851 result = (int)(arg1)->GetWidth();
2852
2853 wxPyEndAllowThreads(__tstate);
2854 if (PyErr_Occurred()) SWIG_fail;
2855 }
15afbcd0 2856 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
2857 return resultobj;
2858 fail:
2859 return NULL;
2860}
2861
2862
2863static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2864 PyObject *resultobj;
2865 wxBitmap *arg1 = (wxBitmap *) 0 ;
2866 int result;
2867 PyObject * obj0 = 0 ;
2868 char *kwnames[] = {
2869 (char *) "self", NULL
2870 };
2871
2872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
2873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2875 {
2876 PyThreadState* __tstate = wxPyBeginAllowThreads();
2877 result = (int)(arg1)->GetHeight();
2878
2879 wxPyEndAllowThreads(__tstate);
2880 if (PyErr_Occurred()) SWIG_fail;
2881 }
15afbcd0 2882 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
2883 return resultobj;
2884 fail:
2885 return NULL;
2886}
2887
2888
2889static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2890 PyObject *resultobj;
2891 wxBitmap *arg1 = (wxBitmap *) 0 ;
2892 int result;
2893 PyObject * obj0 = 0 ;
2894 char *kwnames[] = {
2895 (char *) "self", NULL
2896 };
2897
2898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
15afbcd0
RD
2899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2901 {
2902 PyThreadState* __tstate = wxPyBeginAllowThreads();
2903 result = (int)(arg1)->GetDepth();
2904
2905 wxPyEndAllowThreads(__tstate);
2906 if (PyErr_Occurred()) SWIG_fail;
2907 }
15afbcd0 2908 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
2909 return resultobj;
2910 fail:
2911 return NULL;
2912}
2913
2914
b2df227b
RD
2915static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2916 PyObject *resultobj;
2917 wxBitmap *arg1 = (wxBitmap *) 0 ;
2918 wxSize result;
2919 PyObject * obj0 = 0 ;
2920 char *kwnames[] = {
2921 (char *) "self", NULL
2922 };
2923
2924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
2925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2927 {
2928 PyThreadState* __tstate = wxPyBeginAllowThreads();
2929 result = wxBitmap_GetSize(arg1);
2930
2931 wxPyEndAllowThreads(__tstate);
2932 if (PyErr_Occurred()) SWIG_fail;
2933 }
2934 {
2935 wxSize * resultptr;
2936 resultptr = new wxSize((wxSize &) result);
2937 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2938 }
2939 return resultobj;
2940 fail:
2941 return NULL;
2942}
2943
2944
d14a1e28
RD
2945static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2946 PyObject *resultobj;
2947 wxBitmap *arg1 = (wxBitmap *) 0 ;
2948 SwigValueWrapper< wxImage > result;
2949 PyObject * obj0 = 0 ;
2950 char *kwnames[] = {
2951 (char *) "self", NULL
2952 };
2953
2954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
15afbcd0
RD
2955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2957 {
2958 PyThreadState* __tstate = wxPyBeginAllowThreads();
2959 result = ((wxBitmap const *)arg1)->ConvertToImage();
2960
2961 wxPyEndAllowThreads(__tstate);
2962 if (PyErr_Occurred()) SWIG_fail;
2963 }
2964 {
2965 wxImage * resultptr;
2966 resultptr = new wxImage((wxImage &) result);
15afbcd0 2967 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
d14a1e28
RD
2968 }
2969 return resultobj;
2970 fail:
2971 return NULL;
2972}
2973
2974
2975static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2976 PyObject *resultobj;
2977 wxBitmap *arg1 = (wxBitmap *) 0 ;
2978 wxMask *result;
2979 PyObject * obj0 = 0 ;
2980 char *kwnames[] = {
2981 (char *) "self", NULL
2982 };
2983
2984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
15afbcd0
RD
2985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2987 {
2988 PyThreadState* __tstate = wxPyBeginAllowThreads();
2989 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2990
2991 wxPyEndAllowThreads(__tstate);
2992 if (PyErr_Occurred()) SWIG_fail;
2993 }
15afbcd0 2994 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
d14a1e28
RD
2995 return resultobj;
2996 fail:
2997 return NULL;
2998}
2999
3000
3001static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3002 PyObject *resultobj;
3003 wxBitmap *arg1 = (wxBitmap *) 0 ;
3004 wxMask *arg2 = (wxMask *) 0 ;
3005 PyObject * obj0 = 0 ;
3006 PyObject * obj1 = 0 ;
3007 char *kwnames[] = {
3008 (char *) "self",(char *) "mask", NULL
3009 };
3010
3011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3014 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3016 {
3017 PyThreadState* __tstate = wxPyBeginAllowThreads();
3018 (arg1)->SetMask(arg2);
3019
3020 wxPyEndAllowThreads(__tstate);
3021 if (PyErr_Occurred()) SWIG_fail;
3022 }
3023 Py_INCREF(Py_None); resultobj = Py_None;
3024 return resultobj;
3025 fail:
3026 return NULL;
3027}
3028
3029
3030static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3031 PyObject *resultobj;
3032 wxBitmap *arg1 = (wxBitmap *) 0 ;
3033 wxColour *arg2 = 0 ;
3034 wxColour temp2 ;
3035 PyObject * obj0 = 0 ;
3036 PyObject * obj1 = 0 ;
3037 char *kwnames[] = {
3038 (char *) "self",(char *) "colour", NULL
3039 };
3040
3041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3044 {
3045 arg2 = &temp2;
3046 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3047 }
3048 {
3049 PyThreadState* __tstate = wxPyBeginAllowThreads();
3050 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3051
3052 wxPyEndAllowThreads(__tstate);
3053 if (PyErr_Occurred()) SWIG_fail;
3054 }
3055 Py_INCREF(Py_None); resultobj = Py_None;
3056 return resultobj;
3057 fail:
3058 return NULL;
3059}
3060
3061
3062static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3063 PyObject *resultobj;
3064 wxBitmap *arg1 = (wxBitmap *) 0 ;
3065 wxRect *arg2 = 0 ;
3066 SwigValueWrapper< wxBitmap > result;
3067 wxRect temp2 ;
3068 PyObject * obj0 = 0 ;
3069 PyObject * obj1 = 0 ;
3070 char *kwnames[] = {
3071 (char *) "self",(char *) "rect", NULL
3072 };
3073
3074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3077 {
3078 arg2 = &temp2;
3079 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3080 }
3081 {
3082 PyThreadState* __tstate = wxPyBeginAllowThreads();
3083 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3084
3085 wxPyEndAllowThreads(__tstate);
3086 if (PyErr_Occurred()) SWIG_fail;
3087 }
3088 {
3089 wxBitmap * resultptr;
3090 resultptr = new wxBitmap((wxBitmap &) result);
15afbcd0 3091 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
3092 }
3093 return resultobj;
3094 fail:
3095 return NULL;
3096}
3097
3098
3099static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3100 PyObject *resultobj;
3101 wxBitmap *arg1 = (wxBitmap *) 0 ;
3102 wxString *arg2 = 0 ;
3103 int arg3 ;
66c033b4 3104 wxPalette *arg4 = (wxPalette *) NULL ;
d14a1e28 3105 bool result;
e811c8ce 3106 bool temp2 = False ;
d14a1e28
RD
3107 PyObject * obj0 = 0 ;
3108 PyObject * obj1 = 0 ;
994141e6 3109 PyObject * obj2 = 0 ;
d14a1e28
RD
3110 PyObject * obj3 = 0 ;
3111 char *kwnames[] = {
3112 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3113 };
3114
994141e6 3115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
3116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3118 {
3119 arg2 = wxString_in_helper(obj1);
3120 if (arg2 == NULL) SWIG_fail;
e811c8ce 3121 temp2 = True;
d14a1e28 3122 }
15afbcd0
RD
3123 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3124 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3125 if (obj3) {
15afbcd0
RD
3126 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3128 }
3129 {
3130 PyThreadState* __tstate = wxPyBeginAllowThreads();
3131 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3132
3133 wxPyEndAllowThreads(__tstate);
3134 if (PyErr_Occurred()) SWIG_fail;
3135 }
4f89f6a3
RD
3136 {
3137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3138 }
d14a1e28
RD
3139 {
3140 if (temp2)
3141 delete arg2;
3142 }
3143 return resultobj;
3144 fail:
3145 {
3146 if (temp2)
3147 delete arg2;
3148 }
3149 return NULL;
3150}
3151
3152
3153static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3154 PyObject *resultobj;
3155 wxBitmap *arg1 = (wxBitmap *) 0 ;
3156 wxString *arg2 = 0 ;
3157 int arg3 ;
3158 bool result;
e811c8ce 3159 bool temp2 = False ;
d14a1e28
RD
3160 PyObject * obj0 = 0 ;
3161 PyObject * obj1 = 0 ;
994141e6 3162 PyObject * obj2 = 0 ;
d14a1e28
RD
3163 char *kwnames[] = {
3164 (char *) "self",(char *) "name",(char *) "type", NULL
3165 };
3166
994141e6 3167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
3168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3170 {
3171 arg2 = wxString_in_helper(obj1);
3172 if (arg2 == NULL) SWIG_fail;
e811c8ce 3173 temp2 = True;
d14a1e28 3174 }
15afbcd0
RD
3175 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3176 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3177 {
3178 PyThreadState* __tstate = wxPyBeginAllowThreads();
3179 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3180
3181 wxPyEndAllowThreads(__tstate);
3182 if (PyErr_Occurred()) SWIG_fail;
3183 }
4f89f6a3
RD
3184 {
3185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3186 }
d14a1e28
RD
3187 {
3188 if (temp2)
3189 delete arg2;
3190 }
3191 return resultobj;
3192 fail:
3193 {
3194 if (temp2)
3195 delete arg2;
3196 }
3197 return NULL;
3198}
3199
3200
3201static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3202 PyObject *resultobj;
3203 wxBitmap *arg1 = (wxBitmap *) 0 ;
3204 wxIcon *arg2 = 0 ;
3205 bool result;
3206 PyObject * obj0 = 0 ;
3207 PyObject * obj1 = 0 ;
3208 char *kwnames[] = {
3209 (char *) "self",(char *) "icon", NULL
3210 };
3211
3212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3215 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3216 SWIG_POINTER_EXCEPTION | 0)) == -1)
3217 SWIG_fail;
d14a1e28 3218 if (arg2 == NULL) {
15afbcd0
RD
3219 PyErr_SetString(PyExc_TypeError,"null reference");
3220 SWIG_fail;
d14a1e28
RD
3221 }
3222 {
3223 PyThreadState* __tstate = wxPyBeginAllowThreads();
3224 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3225
3226 wxPyEndAllowThreads(__tstate);
3227 if (PyErr_Occurred()) SWIG_fail;
3228 }
4f89f6a3
RD
3229 {
3230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3231 }
d14a1e28
RD
3232 return resultobj;
3233 fail:
3234 return NULL;
3235}
3236
3237
3238static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3239 PyObject *resultobj;
3240 wxBitmap *arg1 = (wxBitmap *) 0 ;
3241 int arg2 ;
3242 PyObject * obj0 = 0 ;
994141e6 3243 PyObject * obj1 = 0 ;
d14a1e28
RD
3244 char *kwnames[] = {
3245 (char *) "self",(char *) "height", NULL
3246 };
3247
994141e6 3248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3251 arg2 = (int) SWIG_AsInt(obj1);
3252 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3253 {
3254 PyThreadState* __tstate = wxPyBeginAllowThreads();
3255 (arg1)->SetHeight(arg2);
3256
3257 wxPyEndAllowThreads(__tstate);
3258 if (PyErr_Occurred()) SWIG_fail;
3259 }
3260 Py_INCREF(Py_None); resultobj = Py_None;
3261 return resultobj;
3262 fail:
3263 return NULL;
3264}
3265
3266
3267static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3268 PyObject *resultobj;
3269 wxBitmap *arg1 = (wxBitmap *) 0 ;
3270 int arg2 ;
3271 PyObject * obj0 = 0 ;
994141e6 3272 PyObject * obj1 = 0 ;
d14a1e28
RD
3273 char *kwnames[] = {
3274 (char *) "self",(char *) "width", NULL
3275 };
3276
994141e6 3277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3280 arg2 = (int) SWIG_AsInt(obj1);
3281 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3282 {
3283 PyThreadState* __tstate = wxPyBeginAllowThreads();
3284 (arg1)->SetWidth(arg2);
3285
3286 wxPyEndAllowThreads(__tstate);
3287 if (PyErr_Occurred()) SWIG_fail;
3288 }
3289 Py_INCREF(Py_None); resultobj = Py_None;
3290 return resultobj;
3291 fail:
3292 return NULL;
3293}
3294
3295
3296static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3297 PyObject *resultobj;
3298 wxBitmap *arg1 = (wxBitmap *) 0 ;
3299 int arg2 ;
3300 PyObject * obj0 = 0 ;
994141e6 3301 PyObject * obj1 = 0 ;
d14a1e28
RD
3302 char *kwnames[] = {
3303 (char *) "self",(char *) "depth", NULL
3304 };
3305
994141e6 3306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3309 arg2 = (int) SWIG_AsInt(obj1);
3310 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3311 {
3312 PyThreadState* __tstate = wxPyBeginAllowThreads();
3313 (arg1)->SetDepth(arg2);
3314
3315 wxPyEndAllowThreads(__tstate);
3316 if (PyErr_Occurred()) SWIG_fail;
3317 }
3318 Py_INCREF(Py_None); resultobj = Py_None;
3319 return resultobj;
3320 fail:
3321 return NULL;
3322}
3323
3324
b2df227b
RD
3325static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3326 PyObject *resultobj;
3327 wxBitmap *arg1 = (wxBitmap *) 0 ;
3328 wxSize *arg2 = 0 ;
3329 wxSize temp2 ;
3330 PyObject * obj0 = 0 ;
3331 PyObject * obj1 = 0 ;
3332 char *kwnames[] = {
3333 (char *) "self",(char *) "size", NULL
3334 };
3335
3336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3339 {
3340 arg2 = &temp2;
3341 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3342 }
3343 {
3344 PyThreadState* __tstate = wxPyBeginAllowThreads();
3345 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3346
3347 wxPyEndAllowThreads(__tstate);
3348 if (PyErr_Occurred()) SWIG_fail;
3349 }
3350 Py_INCREF(Py_None); resultobj = Py_None;
3351 return resultobj;
3352 fail:
3353 return NULL;
3354}
3355
3356
4276dc52
RD
3357static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3358 PyObject *resultobj;
3359 wxBitmap *arg1 = (wxBitmap *) 0 ;
3360 wxBitmap *arg2 = (wxBitmap *) 0 ;
3361 bool result;
3362 PyObject * obj0 = 0 ;
3363 PyObject * obj1 = 0 ;
3364 char *kwnames[] = {
3365 (char *) "self",(char *) "other", NULL
3366 };
3367
3368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3371 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3373 {
3374 PyThreadState* __tstate = wxPyBeginAllowThreads();
3375 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3376
3377 wxPyEndAllowThreads(__tstate);
3378 if (PyErr_Occurred()) SWIG_fail;
3379 }
4f89f6a3
RD
3380 {
3381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3382 }
4276dc52
RD
3383 return resultobj;
3384 fail:
3385 return NULL;
3386}
3387
3388
3389static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3390 PyObject *resultobj;
3391 wxBitmap *arg1 = (wxBitmap *) 0 ;
3392 wxBitmap *arg2 = (wxBitmap *) 0 ;
3393 bool result;
3394 PyObject * obj0 = 0 ;
3395 PyObject * obj1 = 0 ;
3396 char *kwnames[] = {
3397 (char *) "self",(char *) "other", NULL
3398 };
3399
3400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3403 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3405 {
3406 PyThreadState* __tstate = wxPyBeginAllowThreads();
3407 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3408
3409 wxPyEndAllowThreads(__tstate);
3410 if (PyErr_Occurred()) SWIG_fail;
3411 }
4f89f6a3
RD
3412 {
3413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3414 }
4276dc52
RD
3415 return resultobj;
3416 fail:
3417 return NULL;
3418}
3419
3420
d14a1e28
RD
3421static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3422 PyObject *obj;
3423 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3424 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3425 Py_INCREF(obj);
3426 return Py_BuildValue((char *)"");
3427}
3428static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3429 PyObject *resultobj;
3430 wxBitmap *arg1 = 0 ;
0482c494
RD
3431 wxColour const &arg2_defvalue = wxNullColour ;
3432 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
d14a1e28
RD
3433 wxMask *result;
3434 wxColour temp2 ;
3435 PyObject * obj0 = 0 ;
3436 PyObject * obj1 = 0 ;
3437 char *kwnames[] = {
3438 (char *) "bitmap",(char *) "colour", NULL
3439 };
3440
0482c494 3441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3443 SWIG_POINTER_EXCEPTION | 0)) == -1)
3444 SWIG_fail;
d14a1e28 3445 if (arg1 == NULL) {
15afbcd0
RD
3446 PyErr_SetString(PyExc_TypeError,"null reference");
3447 SWIG_fail;
d14a1e28 3448 }
0482c494
RD
3449 if (obj1) {
3450 {
3451 arg2 = &temp2;
3452 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3453 }
d14a1e28
RD
3454 }
3455 {
e3b71cb8 3456 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 3457 PyThreadState* __tstate = wxPyBeginAllowThreads();
0482c494 3458 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
d14a1e28
RD
3459
3460 wxPyEndAllowThreads(__tstate);
110da5b0 3461 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3462 }
15afbcd0 3463 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
d14a1e28
RD
3464 return resultobj;
3465 fail:
3466 return NULL;
3467}
3468
3469
3470static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3471 PyObject *obj;
3472 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3473 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3474 Py_INCREF(obj);
3475 return Py_BuildValue((char *)"");
3476}
3477static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3478 PyObject *resultobj;
3479 wxString *arg1 = 0 ;
f87da722 3480 int arg2 ;
d14a1e28
RD
3481 int arg3 = (int) -1 ;
3482 int arg4 = (int) -1 ;
3483 wxIcon *result;
e811c8ce 3484 bool temp1 = False ;
d14a1e28 3485 PyObject * obj0 = 0 ;
994141e6
RD
3486 PyObject * obj1 = 0 ;
3487 PyObject * obj2 = 0 ;
3488 PyObject * obj3 = 0 ;
d14a1e28 3489 char *kwnames[] = {
f87da722 3490 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
d14a1e28
RD
3491 };
3492
994141e6 3493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
3494 {
3495 arg1 = wxString_in_helper(obj0);
3496 if (arg1 == NULL) SWIG_fail;
e811c8ce 3497 temp1 = True;
d14a1e28 3498 }
15afbcd0
RD
3499 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3500 if (PyErr_Occurred()) SWIG_fail;
994141e6 3501 if (obj2) {
15afbcd0
RD
3502 arg3 = (int) SWIG_AsInt(obj2);
3503 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3504 }
3505 if (obj3) {
15afbcd0
RD
3506 arg4 = (int) SWIG_AsInt(obj3);
3507 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3508 }
3509 {
e3b71cb8 3510 if (!wxPyCheckForApp()) SWIG_fail;
994141e6
RD
3511 PyThreadState* __tstate = wxPyBeginAllowThreads();
3512 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3513
3514 wxPyEndAllowThreads(__tstate);
110da5b0 3515 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3516 }
15afbcd0 3517 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3518 {
3519 if (temp1)
3520 delete arg1;
3521 }
3522 return resultobj;
3523 fail:
3524 {
3525 if (temp1)
3526 delete arg1;
3527 }
3528 return NULL;
3529}
3530
3531
3532static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3533 PyObject *resultobj;
3534 wxIcon *arg1 = (wxIcon *) 0 ;
3535 PyObject * obj0 = 0 ;
3536 char *kwnames[] = {
3537 (char *) "self", NULL
3538 };
3539
3540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
15afbcd0
RD
3541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3543 {
3544 PyThreadState* __tstate = wxPyBeginAllowThreads();
3545 delete arg1;
3546
3547 wxPyEndAllowThreads(__tstate);
3548 if (PyErr_Occurred()) SWIG_fail;
3549 }
3550 Py_INCREF(Py_None); resultobj = Py_None;
3551 return resultobj;
3552 fail:
3553 return NULL;
3554}
3555
3556
3557static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3558 PyObject *resultobj;
3559 wxIcon *result;
3560 char *kwnames[] = {
3561 NULL
3562 };
3563
3564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3565 {
e3b71cb8 3566 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
3567 PyThreadState* __tstate = wxPyBeginAllowThreads();
3568 result = (wxIcon *)new wxIcon();
3569
3570 wxPyEndAllowThreads(__tstate);
110da5b0 3571 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3572 }
15afbcd0 3573 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3574 return resultobj;
3575 fail:
3576 return NULL;
3577}
3578
3579
3580static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3581 PyObject *resultobj;
3582 wxIconLocation *arg1 = 0 ;
3583 wxIcon *result;
3584 PyObject * obj0 = 0 ;
3585 char *kwnames[] = {
3586 (char *) "loc", NULL
3587 };
3588
3589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
15afbcd0
RD
3590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3591 SWIG_POINTER_EXCEPTION | 0)) == -1)
3592 SWIG_fail;
d14a1e28 3593 if (arg1 == NULL) {
15afbcd0
RD
3594 PyErr_SetString(PyExc_TypeError,"null reference");
3595 SWIG_fail;
d14a1e28
RD
3596 }
3597 {
e3b71cb8 3598 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
3599 PyThreadState* __tstate = wxPyBeginAllowThreads();
3600 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3601
3602 wxPyEndAllowThreads(__tstate);
110da5b0 3603 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3604 }
15afbcd0 3605 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3606 return resultobj;
3607 fail:
3608 return NULL;
3609}
3610
3611
3612static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3613 PyObject *resultobj;
3614 wxBitmap *arg1 = 0 ;
3615 wxIcon *result;
3616 PyObject * obj0 = 0 ;
3617 char *kwnames[] = {
3618 (char *) "bmp", NULL
3619 };
3620
3621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
15afbcd0
RD
3622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3623 SWIG_POINTER_EXCEPTION | 0)) == -1)
3624 SWIG_fail;
d14a1e28 3625 if (arg1 == NULL) {
15afbcd0
RD
3626 PyErr_SetString(PyExc_TypeError,"null reference");
3627 SWIG_fail;
d14a1e28
RD
3628 }
3629 {
e3b71cb8 3630 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
3631 PyThreadState* __tstate = wxPyBeginAllowThreads();
3632 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3633
3634 wxPyEndAllowThreads(__tstate);
110da5b0 3635 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3636 }
15afbcd0 3637 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3638 return resultobj;
3639 fail:
3640 return NULL;
3641}
3642
3643
3644static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3645 PyObject *resultobj;
3646 PyObject *arg1 = (PyObject *) 0 ;
3647 wxIcon *result;
3648 PyObject * obj0 = 0 ;
3649 char *kwnames[] = {
3650 (char *) "listOfStrings", NULL
3651 };
3652
3653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3654 arg1 = obj0;
3655 {
e3b71cb8 3656 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
3657 PyThreadState* __tstate = wxPyBeginAllowThreads();
3658 result = (wxIcon *)new_wxIcon(arg1);
3659
3660 wxPyEndAllowThreads(__tstate);
110da5b0 3661 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3662 }
15afbcd0 3663 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
3664 return resultobj;
3665 fail:
3666 return NULL;
3667}
3668
3669
3670static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3671 PyObject *resultobj;
3672 wxIcon *arg1 = (wxIcon *) 0 ;
3673 wxString *arg2 = 0 ;
f87da722 3674 int arg3 ;
d14a1e28 3675 bool result;
e811c8ce 3676 bool temp2 = False ;
d14a1e28
RD
3677 PyObject * obj0 = 0 ;
3678 PyObject * obj1 = 0 ;
994141e6 3679 PyObject * obj2 = 0 ;
d14a1e28 3680 char *kwnames[] = {
f87da722 3681 (char *) "self",(char *) "name",(char *) "type", NULL
d14a1e28
RD
3682 };
3683
994141e6 3684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
3685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3687 {
3688 arg2 = wxString_in_helper(obj1);
3689 if (arg2 == NULL) SWIG_fail;
e811c8ce 3690 temp2 = True;
d14a1e28 3691 }
15afbcd0
RD
3692 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3693 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3694 {
3695 PyThreadState* __tstate = wxPyBeginAllowThreads();
f87da722 3696 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
d14a1e28
RD
3697
3698 wxPyEndAllowThreads(__tstate);
3699 if (PyErr_Occurred()) SWIG_fail;
3700 }
4f89f6a3
RD
3701 {
3702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3703 }
d14a1e28
RD
3704 {
3705 if (temp2)
3706 delete arg2;
3707 }
3708 return resultobj;
3709 fail:
3710 {
3711 if (temp2)
3712 delete arg2;
3713 }
3714 return NULL;
3715}
3716
3717
3718static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3719 PyObject *resultobj;
3720 wxIcon *arg1 = (wxIcon *) 0 ;
3721 bool result;
3722 PyObject * obj0 = 0 ;
3723 char *kwnames[] = {
3724 (char *) "self", NULL
3725 };
3726
3727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
3728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3730 {
3731 PyThreadState* __tstate = wxPyBeginAllowThreads();
3732 result = (bool)(arg1)->Ok();
3733
3734 wxPyEndAllowThreads(__tstate);
3735 if (PyErr_Occurred()) SWIG_fail;
3736 }
4f89f6a3
RD
3737 {
3738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3739 }
d14a1e28
RD
3740 return resultobj;
3741 fail:
3742 return NULL;
3743}
3744
3745
3746static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3747 PyObject *resultobj;
3748 wxIcon *arg1 = (wxIcon *) 0 ;
3749 int result;
3750 PyObject * obj0 = 0 ;
3751 char *kwnames[] = {
3752 (char *) "self", NULL
3753 };
3754
3755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
3756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3758 {
3759 PyThreadState* __tstate = wxPyBeginAllowThreads();
3760 result = (int)(arg1)->GetWidth();
3761
3762 wxPyEndAllowThreads(__tstate);
3763 if (PyErr_Occurred()) SWIG_fail;
3764 }
15afbcd0 3765 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3766 return resultobj;
3767 fail:
3768 return NULL;
3769}
3770
3771
3772static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3773 PyObject *resultobj;
3774 wxIcon *arg1 = (wxIcon *) 0 ;
3775 int result;
3776 PyObject * obj0 = 0 ;
3777 char *kwnames[] = {
3778 (char *) "self", NULL
3779 };
3780
3781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
3782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3784 {
3785 PyThreadState* __tstate = wxPyBeginAllowThreads();
3786 result = (int)(arg1)->GetHeight();
3787
3788 wxPyEndAllowThreads(__tstate);
3789 if (PyErr_Occurred()) SWIG_fail;
3790 }
15afbcd0 3791 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3792 return resultobj;
3793 fail:
3794 return NULL;
3795}
3796
3797
3798static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3799 PyObject *resultobj;
3800 wxIcon *arg1 = (wxIcon *) 0 ;
3801 int result;
3802 PyObject * obj0 = 0 ;
3803 char *kwnames[] = {
3804 (char *) "self", NULL
3805 };
3806
3807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
15afbcd0
RD
3808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3810 {
3811 PyThreadState* __tstate = wxPyBeginAllowThreads();
3812 result = (int)(arg1)->GetDepth();
3813
3814 wxPyEndAllowThreads(__tstate);
3815 if (PyErr_Occurred()) SWIG_fail;
3816 }
15afbcd0 3817 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3818 return resultobj;
3819 fail:
3820 return NULL;
3821}
3822
3823
3824static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3825 PyObject *resultobj;
3826 wxIcon *arg1 = (wxIcon *) 0 ;
3827 int arg2 ;
3828 PyObject * obj0 = 0 ;
994141e6 3829 PyObject * obj1 = 0 ;
d14a1e28
RD
3830 char *kwnames[] = {
3831 (char *) "self",(char *) "w", NULL
3832 };
3833
994141e6 3834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3837 arg2 = (int) SWIG_AsInt(obj1);
3838 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3839 {
3840 PyThreadState* __tstate = wxPyBeginAllowThreads();
3841 (arg1)->SetWidth(arg2);
3842
3843 wxPyEndAllowThreads(__tstate);
3844 if (PyErr_Occurred()) SWIG_fail;
3845 }
3846 Py_INCREF(Py_None); resultobj = Py_None;
3847 return resultobj;
3848 fail:
3849 return NULL;
3850}
3851
3852
3853static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3854 PyObject *resultobj;
3855 wxIcon *arg1 = (wxIcon *) 0 ;
3856 int arg2 ;
3857 PyObject * obj0 = 0 ;
994141e6 3858 PyObject * obj1 = 0 ;
d14a1e28
RD
3859 char *kwnames[] = {
3860 (char *) "self",(char *) "h", NULL
3861 };
3862
994141e6 3863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3866 arg2 = (int) SWIG_AsInt(obj1);
3867 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3868 {
3869 PyThreadState* __tstate = wxPyBeginAllowThreads();
3870 (arg1)->SetHeight(arg2);
3871
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 Py_INCREF(Py_None); resultobj = Py_None;
3876 return resultobj;
3877 fail:
3878 return NULL;
3879}
3880
3881
3882static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3883 PyObject *resultobj;
3884 wxIcon *arg1 = (wxIcon *) 0 ;
3885 int arg2 ;
3886 PyObject * obj0 = 0 ;
994141e6 3887 PyObject * obj1 = 0 ;
d14a1e28
RD
3888 char *kwnames[] = {
3889 (char *) "self",(char *) "d", NULL
3890 };
3891
994141e6 3892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3895 arg2 = (int) SWIG_AsInt(obj1);
3896 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3897 {
3898 PyThreadState* __tstate = wxPyBeginAllowThreads();
3899 (arg1)->SetDepth(arg2);
3900
3901 wxPyEndAllowThreads(__tstate);
3902 if (PyErr_Occurred()) SWIG_fail;
3903 }
3904 Py_INCREF(Py_None); resultobj = Py_None;
3905 return resultobj;
3906 fail:
3907 return NULL;
3908}
3909
3910
3911static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3912 PyObject *resultobj;
3913 wxIcon *arg1 = (wxIcon *) 0 ;
3914 wxBitmap *arg2 = 0 ;
3915 PyObject * obj0 = 0 ;
3916 PyObject * obj1 = 0 ;
3917 char *kwnames[] = {
3918 (char *) "self",(char *) "bmp", NULL
3919 };
3920
3921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
3922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3924 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3925 SWIG_POINTER_EXCEPTION | 0)) == -1)
3926 SWIG_fail;
d14a1e28 3927 if (arg2 == NULL) {
15afbcd0
RD
3928 PyErr_SetString(PyExc_TypeError,"null reference");
3929 SWIG_fail;
d14a1e28
RD
3930 }
3931 {
3932 PyThreadState* __tstate = wxPyBeginAllowThreads();
3933 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3934
3935 wxPyEndAllowThreads(__tstate);
3936 if (PyErr_Occurred()) SWIG_fail;
3937 }
3938 Py_INCREF(Py_None); resultobj = Py_None;
3939 return resultobj;
3940 fail:
3941 return NULL;
3942}
3943
3944
3945static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3946 PyObject *obj;
3947 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3948 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3949 Py_INCREF(obj);
3950 return Py_BuildValue((char *)"");
3951}
3952static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3953 PyObject *resultobj;
3954 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3955 int arg2 = (int) 0 ;
3956 wxIconLocation *result;
7eae615b 3957 bool temp1 = False ;
d14a1e28 3958 PyObject * obj0 = 0 ;
994141e6 3959 PyObject * obj1 = 0 ;
d14a1e28
RD
3960 char *kwnames[] = {
3961 (char *) "filename",(char *) "num", NULL
3962 };
3963
994141e6 3964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 3965 if (obj0) {
7eae615b
RD
3966 {
3967 arg1 = wxString_in_helper(obj0);
3968 if (arg1 == NULL) SWIG_fail;
3969 temp1 = True;
3970 }
d14a1e28 3971 }
994141e6 3972 if (obj1) {
15afbcd0
RD
3973 arg2 = (int) SWIG_AsInt(obj1);
3974 if (PyErr_Occurred()) SWIG_fail;
994141e6 3975 }
d14a1e28
RD
3976 {
3977 PyThreadState* __tstate = wxPyBeginAllowThreads();
3978 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3979
3980 wxPyEndAllowThreads(__tstate);
3981 if (PyErr_Occurred()) SWIG_fail;
3982 }
15afbcd0 3983 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
7eae615b
RD
3984 {
3985 if (temp1)
3986 delete arg1;
3987 }
d14a1e28
RD
3988 return resultobj;
3989 fail:
7eae615b
RD
3990 {
3991 if (temp1)
3992 delete arg1;
3993 }
d14a1e28
RD
3994 return NULL;
3995}
3996
3997
3998static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3999 PyObject *resultobj;
4000 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4001 PyObject * obj0 = 0 ;
4002 char *kwnames[] = {
4003 (char *) "self", NULL
4004 };
4005
4006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
15afbcd0
RD
4007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4009 {
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 delete arg1;
4012
4013 wxPyEndAllowThreads(__tstate);
4014 if (PyErr_Occurred()) SWIG_fail;
4015 }
4016 Py_INCREF(Py_None); resultobj = Py_None;
4017 return resultobj;
4018 fail:
4019 return NULL;
4020}
4021
4022
4023static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4024 PyObject *resultobj;
4025 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4026 bool result;
4027 PyObject * obj0 = 0 ;
4028 char *kwnames[] = {
4029 (char *) "self", NULL
4030 };
4031
4032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
15afbcd0
RD
4033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4035 {
4036 PyThreadState* __tstate = wxPyBeginAllowThreads();
4037 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4038
4039 wxPyEndAllowThreads(__tstate);
4040 if (PyErr_Occurred()) SWIG_fail;
4041 }
4f89f6a3
RD
4042 {
4043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4044 }
d14a1e28
RD
4045 return resultobj;
4046 fail:
4047 return NULL;
4048}
4049
4050
4051static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4052 PyObject *resultobj;
4053 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4054 wxString *arg2 = 0 ;
e811c8ce 4055 bool temp2 = False ;
d14a1e28
RD
4056 PyObject * obj0 = 0 ;
4057 PyObject * obj1 = 0 ;
4058 char *kwnames[] = {
4059 (char *) "self",(char *) "filename", NULL
4060 };
4061
4062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4065 {
4066 arg2 = wxString_in_helper(obj1);
4067 if (arg2 == NULL) SWIG_fail;
e811c8ce 4068 temp2 = True;
d14a1e28
RD
4069 }
4070 {
4071 PyThreadState* __tstate = wxPyBeginAllowThreads();
4072 (arg1)->SetFileName((wxString const &)*arg2);
4073
4074 wxPyEndAllowThreads(__tstate);
4075 if (PyErr_Occurred()) SWIG_fail;
4076 }
4077 Py_INCREF(Py_None); resultobj = Py_None;
4078 {
4079 if (temp2)
4080 delete arg2;
4081 }
4082 return resultobj;
4083 fail:
4084 {
4085 if (temp2)
4086 delete arg2;
4087 }
4088 return NULL;
4089}
4090
4091
4092static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4093 PyObject *resultobj;
4094 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4095 wxString *result;
4096 PyObject * obj0 = 0 ;
4097 char *kwnames[] = {
4098 (char *) "self", NULL
4099 };
4100
4101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
15afbcd0
RD
4102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4104 {
4105 PyThreadState* __tstate = wxPyBeginAllowThreads();
4106 {
4107 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4108 result = (wxString *) &_result_ref;
4109 }
4110
4111 wxPyEndAllowThreads(__tstate);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
cc6dd355
RD
4114 {
4115#if wxUSE_UNICODE
4116 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4117#else
4118 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4119#endif
4120 }
d14a1e28
RD
4121 return resultobj;
4122 fail:
4123 return NULL;
4124}
4125
4126
4127static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4128 PyObject *resultobj;
4129 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4130 int arg2 ;
4131 PyObject * obj0 = 0 ;
994141e6 4132 PyObject * obj1 = 0 ;
d14a1e28
RD
4133 char *kwnames[] = {
4134 (char *) "self",(char *) "num", NULL
4135 };
4136
994141e6 4137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4140 arg2 = (int) SWIG_AsInt(obj1);
4141 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4142 {
4143 PyThreadState* __tstate = wxPyBeginAllowThreads();
4144 wxIconLocation_SetIndex(arg1,arg2);
4145
4146 wxPyEndAllowThreads(__tstate);
4147 if (PyErr_Occurred()) SWIG_fail;
4148 }
4149 Py_INCREF(Py_None); resultobj = Py_None;
4150 return resultobj;
4151 fail:
4152 return NULL;
4153}
4154
4155
4156static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4157 PyObject *resultobj;
4158 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4159 int result;
4160 PyObject * obj0 = 0 ;
4161 char *kwnames[] = {
4162 (char *) "self", NULL
4163 };
4164
4165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
15afbcd0
RD
4166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 result = (int)wxIconLocation_GetIndex(arg1);
4171
4172 wxPyEndAllowThreads(__tstate);
4173 if (PyErr_Occurred()) SWIG_fail;
4174 }
15afbcd0 4175 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4176 return resultobj;
4177 fail:
4178 return NULL;
4179}
4180
4181
4182static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4183 PyObject *obj;
4184 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4185 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4186 Py_INCREF(obj);
4187 return Py_BuildValue((char *)"");
4188}
4189static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4190 PyObject *resultobj;
4191 wxIconBundle *result;
4192 char *kwnames[] = {
4193 NULL
4194 };
4195
4196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4197 {
4198 PyThreadState* __tstate = wxPyBeginAllowThreads();
4199 result = (wxIconBundle *)new wxIconBundle();
4200
4201 wxPyEndAllowThreads(__tstate);
4202 if (PyErr_Occurred()) SWIG_fail;
4203 }
15afbcd0 4204 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4205 return resultobj;
4206 fail:
4207 return NULL;
4208}
4209
4210
4211static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4212 PyObject *resultobj;
4213 wxString *arg1 = 0 ;
4214 long arg2 ;
4215 wxIconBundle *result;
e811c8ce 4216 bool temp1 = False ;
d14a1e28 4217 PyObject * obj0 = 0 ;
994141e6 4218 PyObject * obj1 = 0 ;
d14a1e28
RD
4219 char *kwnames[] = {
4220 (char *) "file",(char *) "type", NULL
4221 };
4222
994141e6 4223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
4224 {
4225 arg1 = wxString_in_helper(obj0);
4226 if (arg1 == NULL) SWIG_fail;
e811c8ce 4227 temp1 = True;
d14a1e28 4228 }
15afbcd0
RD
4229 arg2 = (long) SWIG_AsLong(obj1);
4230 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4231 {
4232 PyThreadState* __tstate = wxPyBeginAllowThreads();
4233 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4234
4235 wxPyEndAllowThreads(__tstate);
4236 if (PyErr_Occurred()) SWIG_fail;
4237 }
15afbcd0 4238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4239 {
4240 if (temp1)
4241 delete arg1;
4242 }
4243 return resultobj;
4244 fail:
4245 {
4246 if (temp1)
4247 delete arg1;
4248 }
4249 return NULL;
4250}
4251
4252
4253static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4254 PyObject *resultobj;
4255 wxIcon *arg1 = 0 ;
4256 wxIconBundle *result;
4257 PyObject * obj0 = 0 ;
4258 char *kwnames[] = {
4259 (char *) "icon", NULL
4260 };
4261
4262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
15afbcd0
RD
4263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4264 SWIG_POINTER_EXCEPTION | 0)) == -1)
4265 SWIG_fail;
d14a1e28 4266 if (arg1 == NULL) {
15afbcd0
RD
4267 PyErr_SetString(PyExc_TypeError,"null reference");
4268 SWIG_fail;
d14a1e28
RD
4269 }
4270 {
4271 PyThreadState* __tstate = wxPyBeginAllowThreads();
4272 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4273
4274 wxPyEndAllowThreads(__tstate);
4275 if (PyErr_Occurred()) SWIG_fail;
4276 }
15afbcd0 4277 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
4278 return resultobj;
4279 fail:
4280 return NULL;
4281}
4282
4283
4284static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4285 PyObject *resultobj;
4286 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4287 PyObject * obj0 = 0 ;
4288 char *kwnames[] = {
4289 (char *) "self", NULL
4290 };
4291
4292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
15afbcd0
RD
4293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4295 {
4296 PyThreadState* __tstate = wxPyBeginAllowThreads();
4297 delete arg1;
4298
4299 wxPyEndAllowThreads(__tstate);
4300 if (PyErr_Occurred()) SWIG_fail;
4301 }
4302 Py_INCREF(Py_None); resultobj = Py_None;
4303 return resultobj;
4304 fail:
4305 return NULL;
4306}
4307
4308
4309static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4310 PyObject *resultobj;
4311 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4312 wxIcon *arg2 = 0 ;
4313 PyObject * obj0 = 0 ;
4314 PyObject * obj1 = 0 ;
4315 char *kwnames[] = {
4316 (char *) "self",(char *) "icon", NULL
4317 };
4318
4319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4322 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4323 SWIG_POINTER_EXCEPTION | 0)) == -1)
4324 SWIG_fail;
d14a1e28 4325 if (arg2 == NULL) {
15afbcd0
RD
4326 PyErr_SetString(PyExc_TypeError,"null reference");
4327 SWIG_fail;
d14a1e28
RD
4328 }
4329 {
4330 PyThreadState* __tstate = wxPyBeginAllowThreads();
4331 (arg1)->AddIcon((wxIcon const &)*arg2);
4332
4333 wxPyEndAllowThreads(__tstate);
4334 if (PyErr_Occurred()) SWIG_fail;
4335 }
4336 Py_INCREF(Py_None); resultobj = Py_None;
4337 return resultobj;
4338 fail:
4339 return NULL;
4340}
4341
4342
4343static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4344 PyObject *resultobj;
4345 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4346 wxString *arg2 = 0 ;
4347 long arg3 ;
e811c8ce 4348 bool temp2 = False ;
d14a1e28
RD
4349 PyObject * obj0 = 0 ;
4350 PyObject * obj1 = 0 ;
994141e6 4351 PyObject * obj2 = 0 ;
d14a1e28
RD
4352 char *kwnames[] = {
4353 (char *) "self",(char *) "file",(char *) "type", NULL
4354 };
4355
994141e6 4356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
4357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4359 {
4360 arg2 = wxString_in_helper(obj1);
4361 if (arg2 == NULL) SWIG_fail;
e811c8ce 4362 temp2 = True;
d14a1e28 4363 }
15afbcd0
RD
4364 arg3 = (long) SWIG_AsLong(obj2);
4365 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4366 {
4367 PyThreadState* __tstate = wxPyBeginAllowThreads();
4368 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4369
4370 wxPyEndAllowThreads(__tstate);
4371 if (PyErr_Occurred()) SWIG_fail;
4372 }
4373 Py_INCREF(Py_None); resultobj = Py_None;
4374 {
4375 if (temp2)
4376 delete arg2;
4377 }
4378 return resultobj;
4379 fail:
4380 {
4381 if (temp2)
4382 delete arg2;
4383 }
4384 return NULL;
4385}
4386
4387
4388static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4389 PyObject *resultobj;
4390 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4391 wxSize *arg2 = 0 ;
4392 wxIcon *result;
4393 wxSize temp2 ;
4394 PyObject * obj0 = 0 ;
4395 PyObject * obj1 = 0 ;
4396 char *kwnames[] = {
4397 (char *) "self",(char *) "size", NULL
4398 };
4399
4400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4403 {
4404 arg2 = &temp2;
4405 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4406 }
4407 {
4408 PyThreadState* __tstate = wxPyBeginAllowThreads();
4409 {
4410 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4411 result = (wxIcon *) &_result_ref;
4412 }
4413
4414 wxPyEndAllowThreads(__tstate);
4415 if (PyErr_Occurred()) SWIG_fail;
4416 }
4276dc52
RD
4417 {
4418 wxIcon* resultptr = new wxIcon(*result);
4419 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4420 }
d14a1e28
RD
4421 return resultobj;
4422 fail:
4423 return NULL;
4424}
4425
4426
4427static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4428 PyObject *obj;
4429 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4430 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4431 Py_INCREF(obj);
4432 return Py_BuildValue((char *)"");
4433}
4434static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4435 PyObject *resultobj;
4436 wxString *arg1 = (wxString *) 0 ;
4437 long arg2 ;
4438 int arg3 = (int) 0 ;
4439 int arg4 = (int) 0 ;
4440 wxCursor *result;
7eae615b 4441 bool temp1 = False ;
d14a1e28 4442 PyObject * obj0 = 0 ;
994141e6
RD
4443 PyObject * obj1 = 0 ;
4444 PyObject * obj2 = 0 ;
4445 PyObject * obj3 = 0 ;
d14a1e28 4446 char *kwnames[] = {
15afbcd0 4447 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
d14a1e28
RD
4448 };
4449
994141e6 4450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7eae615b
RD
4451 {
4452 arg1 = wxString_in_helper(obj0);
4453 if (arg1 == NULL) SWIG_fail;
4454 temp1 = True;
4455 }
15afbcd0
RD
4456 arg2 = (long) SWIG_AsLong(obj1);
4457 if (PyErr_Occurred()) SWIG_fail;
994141e6 4458 if (obj2) {
15afbcd0
RD
4459 arg3 = (int) SWIG_AsInt(obj2);
4460 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
4461 }
4462 if (obj3) {
15afbcd0
RD
4463 arg4 = (int) SWIG_AsInt(obj3);
4464 if (PyErr_Occurred()) SWIG_fail;
994141e6 4465 }
d14a1e28 4466 {
e3b71cb8 4467 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
4468 PyThreadState* __tstate = wxPyBeginAllowThreads();
4469 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4470
4471 wxPyEndAllowThreads(__tstate);
110da5b0 4472 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4473 }
15afbcd0 4474 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
7eae615b
RD
4475 {
4476 if (temp1)
4477 delete arg1;
4478 }
d14a1e28
RD
4479 return resultobj;
4480 fail:
7eae615b
RD
4481 {
4482 if (temp1)
4483 delete arg1;
4484 }
d14a1e28
RD
4485 return NULL;
4486}
4487
4488
4489static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4490 PyObject *resultobj;
4491 wxCursor *arg1 = (wxCursor *) 0 ;
4492 PyObject * obj0 = 0 ;
4493 char *kwnames[] = {
4494 (char *) "self", NULL
4495 };
4496
4497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
15afbcd0
RD
4498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4500 {
4501 PyThreadState* __tstate = wxPyBeginAllowThreads();
4502 delete arg1;
4503
4504 wxPyEndAllowThreads(__tstate);
4505 if (PyErr_Occurred()) SWIG_fail;
4506 }
4507 Py_INCREF(Py_None); resultobj = Py_None;
4508 return resultobj;
4509 fail:
4510 return NULL;
4511}
4512
4513
4514static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4515 PyObject *resultobj;
4516 int arg1 ;
4517 wxCursor *result;
994141e6 4518 PyObject * obj0 = 0 ;
d14a1e28
RD
4519 char *kwnames[] = {
4520 (char *) "id", NULL
4521 };
4522
994141e6 4523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
15afbcd0
RD
4524 arg1 = (int) SWIG_AsInt(obj0);
4525 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4526 {
e3b71cb8 4527 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
4528 PyThreadState* __tstate = wxPyBeginAllowThreads();
4529 result = (wxCursor *)new wxCursor(arg1);
4530
4531 wxPyEndAllowThreads(__tstate);
110da5b0 4532 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4533 }
15afbcd0 4534 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d14a1e28
RD
4535 return resultobj;
4536 fail:
4537 return NULL;
4538}
4539
4540
4541static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4542 PyObject *resultobj;
4543 wxImage *arg1 = 0 ;
4544 wxCursor *result;
4545 PyObject * obj0 = 0 ;
4546 char *kwnames[] = {
4547 (char *) "image", NULL
4548 };
4549
4550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
15afbcd0
RD
4551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4552 SWIG_POINTER_EXCEPTION | 0)) == -1)
4553 SWIG_fail;
d14a1e28 4554 if (arg1 == NULL) {
15afbcd0
RD
4555 PyErr_SetString(PyExc_TypeError,"null reference");
4556 SWIG_fail;
d14a1e28
RD
4557 }
4558 {
e3b71cb8 4559 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
4560 PyThreadState* __tstate = wxPyBeginAllowThreads();
4561 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4562
4563 wxPyEndAllowThreads(__tstate);
110da5b0 4564 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4565 }
15afbcd0 4566 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d14a1e28
RD
4567 return resultobj;
4568 fail:
4569 return NULL;
4570}
4571
4572
15afbcd0 4573static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
4574 PyObject *resultobj;
4575 wxCursor *arg1 = (wxCursor *) 0 ;
4576 bool result;
4577 PyObject * obj0 = 0 ;
4578 char *kwnames[] = {
4579 (char *) "self", NULL
4580 };
4581
4582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
4583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4585 {
4586 PyThreadState* __tstate = wxPyBeginAllowThreads();
4587 result = (bool)(arg1)->Ok();
4588
4589 wxPyEndAllowThreads(__tstate);
4590 if (PyErr_Occurred()) SWIG_fail;
4591 }
4f89f6a3
RD
4592 {
4593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4594 }
d14a1e28
RD
4595 return resultobj;
4596 fail:
4597 return NULL;
4598}
4599
4600
4601static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4602 PyObject *obj;
4603 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4604 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4605 Py_INCREF(obj);
4606 return Py_BuildValue((char *)"");
4607}
4608static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4609 PyObject *resultobj;
e811c8ce
RD
4610 int arg1 = (int) 0 ;
4611 int arg2 = (int) 0 ;
4612 int arg3 = (int) 0 ;
4613 int arg4 = (int) 0 ;
d14a1e28 4614 wxRegion *result;
994141e6
RD
4615 PyObject * obj0 = 0 ;
4616 PyObject * obj1 = 0 ;
4617 PyObject * obj2 = 0 ;
4618 PyObject * obj3 = 0 ;
d14a1e28
RD
4619 char *kwnames[] = {
4620 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4621 };
4622
994141e6
RD
4623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4624 if (obj0) {
15afbcd0
RD
4625 arg1 = (int) SWIG_AsInt(obj0);
4626 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
4627 }
4628 if (obj1) {
15afbcd0
RD
4629 arg2 = (int) SWIG_AsInt(obj1);
4630 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
4631 }
4632 if (obj2) {
15afbcd0
RD
4633 arg3 = (int) SWIG_AsInt(obj2);
4634 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
4635 }
4636 if (obj3) {
15afbcd0
RD
4637 arg4 = (int) SWIG_AsInt(obj3);
4638 if (PyErr_Occurred()) SWIG_fail;
994141e6 4639 }
d14a1e28 4640 {
e3b71cb8 4641 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
4642 PyThreadState* __tstate = wxPyBeginAllowThreads();
4643 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4644
4645 wxPyEndAllowThreads(__tstate);
110da5b0 4646 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4647 }
15afbcd0 4648 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
4649 return resultobj;
4650 fail:
4651 return NULL;
4652}
4653
4654
4655static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4656 PyObject *resultobj;
4657 wxBitmap *arg1 = 0 ;
e6ffcedd
RD
4658 wxRegion *result;
4659 PyObject * obj0 = 0 ;
4660 char *kwnames[] = {
4661 (char *) "bmp", NULL
4662 };
4663
4664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
4665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4666 SWIG_POINTER_EXCEPTION | 0)) == -1)
4667 SWIG_fail;
4668 if (arg1 == NULL) {
4669 PyErr_SetString(PyExc_TypeError,"null reference");
4670 SWIG_fail;
4671 }
4672 {
4673 if (!wxPyCheckForApp()) SWIG_fail;
4674 PyThreadState* __tstate = wxPyBeginAllowThreads();
4675 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
4676
4677 wxPyEndAllowThreads(__tstate);
110da5b0 4678 if (PyErr_Occurred()) SWIG_fail;
e6ffcedd
RD
4679 }
4680 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4681 return resultobj;
4682 fail:
4683 return NULL;
4684}
4685
4686
4687static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4688 PyObject *resultobj;
4689 wxBitmap *arg1 = 0 ;
4690 wxColour *arg2 = 0 ;
d14a1e28
RD
4691 int arg3 = (int) 0 ;
4692 wxRegion *result;
4693 wxColour temp2 ;
4694 PyObject * obj0 = 0 ;
4695 PyObject * obj1 = 0 ;
994141e6 4696 PyObject * obj2 = 0 ;
d14a1e28
RD
4697 char *kwnames[] = {
4698 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4699 };
4700
e6ffcedd 4701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
4702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4703 SWIG_POINTER_EXCEPTION | 0)) == -1)
4704 SWIG_fail;
d14a1e28 4705 if (arg1 == NULL) {
15afbcd0
RD
4706 PyErr_SetString(PyExc_TypeError,"null reference");
4707 SWIG_fail;
d14a1e28 4708 }
e6ffcedd
RD
4709 {
4710 arg2 = &temp2;
4711 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 4712 }
994141e6 4713 if (obj2) {
15afbcd0
RD
4714 arg3 = (int) SWIG_AsInt(obj2);
4715 if (PyErr_Occurred()) SWIG_fail;
994141e6 4716 }
d14a1e28 4717 {
e3b71cb8 4718 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
4719 PyThreadState* __tstate = wxPyBeginAllowThreads();
4720 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4721
4722 wxPyEndAllowThreads(__tstate);
110da5b0 4723 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4724 }
15afbcd0 4725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
4726 return resultobj;
4727 fail:
4728 return NULL;
4729}
4730
4731
4732static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4733 PyObject *resultobj;
4734 int arg1 ;
4735 wxPoint *arg2 = (wxPoint *) 0 ;
4736 int arg3 = (int) wxWINDING_RULE ;
4737 wxRegion *result;
4738 PyObject * obj0 = 0 ;
994141e6 4739 PyObject * obj1 = 0 ;
d14a1e28
RD
4740 char *kwnames[] = {
4741 (char *) "points",(char *) "fillStyle", NULL
4742 };
4743
994141e6 4744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
4745 {
4746 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4747 if (arg2 == NULL) SWIG_fail;
4748 }
994141e6 4749 if (obj1) {
15afbcd0
RD
4750 arg3 = (int) SWIG_AsInt(obj1);
4751 if (PyErr_Occurred()) SWIG_fail;
994141e6 4752 }
d14a1e28 4753 {
e3b71cb8 4754 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
4755 PyThreadState* __tstate = wxPyBeginAllowThreads();
4756 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4757
4758 wxPyEndAllowThreads(__tstate);
110da5b0 4759 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4760 }
15afbcd0 4761 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
4762 {
4763 if (arg2) delete [] arg2;
4764 }
4765 return resultobj;
4766 fail:
4767 {
4768 if (arg2) delete [] arg2;
4769 }
4770 return NULL;
4771}
4772
4773
4774static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4775 PyObject *resultobj;
4776 wxRegion *arg1 = (wxRegion *) 0 ;
4777 PyObject * obj0 = 0 ;
4778 char *kwnames[] = {
4779 (char *) "self", NULL
4780 };
4781
4782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
15afbcd0
RD
4783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4785 {
4786 PyThreadState* __tstate = wxPyBeginAllowThreads();
4787 delete arg1;
4788
4789 wxPyEndAllowThreads(__tstate);
4790 if (PyErr_Occurred()) SWIG_fail;
4791 }
4792 Py_INCREF(Py_None); resultobj = Py_None;
4793 return resultobj;
4794 fail:
4795 return NULL;
4796}
4797
4798
4799static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4800 PyObject *resultobj;
4801 wxRegion *arg1 = (wxRegion *) 0 ;
4802 PyObject * obj0 = 0 ;
4803 char *kwnames[] = {
4804 (char *) "self", NULL
4805 };
4806
4807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
15afbcd0
RD
4808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4810 {
4811 PyThreadState* __tstate = wxPyBeginAllowThreads();
4812 (arg1)->Clear();
4813
4814 wxPyEndAllowThreads(__tstate);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 }
4817 Py_INCREF(Py_None); resultobj = Py_None;
4818 return resultobj;
4819 fail:
4820 return NULL;
4821}
4822
4823
4824static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4825 PyObject *resultobj;
4826 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
4827 int arg2 ;
4828 int arg3 ;
d14a1e28
RD
4829 bool result;
4830 PyObject * obj0 = 0 ;
994141e6
RD
4831 PyObject * obj1 = 0 ;
4832 PyObject * obj2 = 0 ;
d14a1e28
RD
4833 char *kwnames[] = {
4834 (char *) "self",(char *) "x",(char *) "y", NULL
4835 };
4836
994141e6 4837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
4838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4840 arg2 = (int) SWIG_AsInt(obj1);
4841 if (PyErr_Occurred()) SWIG_fail;
4842 arg3 = (int) SWIG_AsInt(obj2);
4843 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4844 {
4845 PyThreadState* __tstate = wxPyBeginAllowThreads();
4846 result = (bool)(arg1)->Offset(arg2,arg3);
4847
4848 wxPyEndAllowThreads(__tstate);
4849 if (PyErr_Occurred()) SWIG_fail;
4850 }
4f89f6a3
RD
4851 {
4852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4853 }
d14a1e28
RD
4854 return resultobj;
4855 fail:
4856 return NULL;
4857}
4858
4859
4860static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4861 PyObject *resultobj;
4862 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
4863 int arg2 ;
4864 int arg3 ;
d14a1e28
RD
4865 int result;
4866 PyObject * obj0 = 0 ;
994141e6
RD
4867 PyObject * obj1 = 0 ;
4868 PyObject * obj2 = 0 ;
d14a1e28
RD
4869 char *kwnames[] = {
4870 (char *) "self",(char *) "x",(char *) "y", NULL
4871 };
4872
994141e6 4873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
4874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4876 arg2 = (int) SWIG_AsInt(obj1);
4877 if (PyErr_Occurred()) SWIG_fail;
4878 arg3 = (int) SWIG_AsInt(obj2);
4879 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4880 {
4881 PyThreadState* __tstate = wxPyBeginAllowThreads();
4882 result = (int)(arg1)->Contains(arg2,arg3);
4883
4884 wxPyEndAllowThreads(__tstate);
4885 if (PyErr_Occurred()) SWIG_fail;
4886 }
15afbcd0 4887 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4888 return resultobj;
4889 fail:
4890 return NULL;
4891}
4892
4893
4894static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4895 PyObject *resultobj;
4896 wxRegion *arg1 = (wxRegion *) 0 ;
4897 wxPoint *arg2 = 0 ;
4898 int result;
4899 wxPoint temp2 ;
4900 PyObject * obj0 = 0 ;
4901 PyObject * obj1 = 0 ;
4902 char *kwnames[] = {
4903 (char *) "self",(char *) "pt", NULL
4904 };
4905
4906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4909 {
4910 arg2 = &temp2;
4911 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4912 }
4913 {
4914 PyThreadState* __tstate = wxPyBeginAllowThreads();
4915 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4916
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
15afbcd0 4920 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4921 return resultobj;
4922 fail:
4923 return NULL;
4924}
4925
4926
4927static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj;
4929 wxRegion *arg1 = (wxRegion *) 0 ;
4930 wxRect *arg2 = 0 ;
4931 int result;
4932 wxRect temp2 ;
4933 PyObject * obj0 = 0 ;
4934 PyObject * obj1 = 0 ;
4935 char *kwnames[] = {
4936 (char *) "self",(char *) "rect", NULL
4937 };
4938
4939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4942 {
4943 arg2 = &temp2;
4944 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4945 }
4946 {
4947 PyThreadState* __tstate = wxPyBeginAllowThreads();
4948 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4949
4950 wxPyEndAllowThreads(__tstate);
4951 if (PyErr_Occurred()) SWIG_fail;
4952 }
15afbcd0 4953 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4954 return resultobj;
4955 fail:
4956 return NULL;
4957}
4958
4959
4960static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4961 PyObject *resultobj;
4962 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
4963 int arg2 ;
4964 int arg3 ;
4965 int arg4 ;
4966 int arg5 ;
d14a1e28
RD
4967 int result;
4968 PyObject * obj0 = 0 ;
994141e6
RD
4969 PyObject * obj1 = 0 ;
4970 PyObject * obj2 = 0 ;
4971 PyObject * obj3 = 0 ;
4972 PyObject * obj4 = 0 ;
d14a1e28
RD
4973 char *kwnames[] = {
4974 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4975 };
4976
994141e6 4977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
4978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4980 arg2 = (int) SWIG_AsInt(obj1);
4981 if (PyErr_Occurred()) SWIG_fail;
4982 arg3 = (int) SWIG_AsInt(obj2);
4983 if (PyErr_Occurred()) SWIG_fail;
4984 arg4 = (int) SWIG_AsInt(obj3);
4985 if (PyErr_Occurred()) SWIG_fail;
4986 arg5 = (int) SWIG_AsInt(obj4);
4987 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4988 {
4989 PyThreadState* __tstate = wxPyBeginAllowThreads();
4990 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4991
4992 wxPyEndAllowThreads(__tstate);
4993 if (PyErr_Occurred()) SWIG_fail;
4994 }
15afbcd0 4995 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4996 return resultobj;
4997 fail:
4998 return NULL;
4999}
5000
5001
5002static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5003 PyObject *resultobj;
5004 wxRegion *arg1 = (wxRegion *) 0 ;
5005 wxRect result;
5006 PyObject * obj0 = 0 ;
5007 char *kwnames[] = {
5008 (char *) "self", NULL
5009 };
5010
5011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
15afbcd0
RD
5012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5014 {
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
5016 result = (arg1)->GetBox();
5017
5018 wxPyEndAllowThreads(__tstate);
5019 if (PyErr_Occurred()) SWIG_fail;
5020 }
5021 {
5022 wxRect * resultptr;
5023 resultptr = new wxRect((wxRect &) result);
15afbcd0 5024 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
5025 }
5026 return resultobj;
5027 fail:
5028 return NULL;
5029}
5030
5031
5032static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5033 PyObject *resultobj;
5034 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
5035 int arg2 ;
5036 int arg3 ;
5037 int arg4 ;
5038 int arg5 ;
d14a1e28
RD
5039 bool result;
5040 PyObject * obj0 = 0 ;
994141e6
RD
5041 PyObject * obj1 = 0 ;
5042 PyObject * obj2 = 0 ;
5043 PyObject * obj3 = 0 ;
5044 PyObject * obj4 = 0 ;
d14a1e28
RD
5045 char *kwnames[] = {
5046 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5047 };
5048
994141e6 5049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
5050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5052 arg2 = (int) SWIG_AsInt(obj1);
5053 if (PyErr_Occurred()) SWIG_fail;
5054 arg3 = (int) SWIG_AsInt(obj2);
5055 if (PyErr_Occurred()) SWIG_fail;
5056 arg4 = (int) SWIG_AsInt(obj3);
5057 if (PyErr_Occurred()) SWIG_fail;
5058 arg5 = (int) SWIG_AsInt(obj4);
5059 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5063
5064 wxPyEndAllowThreads(__tstate);
5065 if (PyErr_Occurred()) SWIG_fail;
5066 }
4f89f6a3
RD
5067 {
5068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5069 }
d14a1e28
RD
5070 return resultobj;
5071 fail:
5072 return NULL;
5073}
5074
5075
5076static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5077 PyObject *resultobj;
5078 wxRegion *arg1 = (wxRegion *) 0 ;
5079 wxRect *arg2 = 0 ;
5080 bool result;
5081 wxRect temp2 ;
5082 PyObject * obj0 = 0 ;
5083 PyObject * obj1 = 0 ;
5084 char *kwnames[] = {
5085 (char *) "self",(char *) "rect", NULL
5086 };
5087
5088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5091 {
5092 arg2 = &temp2;
5093 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5094 }
5095 {
5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
5097 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5098
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 }
4f89f6a3
RD
5102 {
5103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5104 }
d14a1e28
RD
5105 return resultobj;
5106 fail:
5107 return NULL;
5108}
5109
5110
5111static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5112 PyObject *resultobj;
5113 wxRegion *arg1 = (wxRegion *) 0 ;
5114 wxRegion *arg2 = 0 ;
5115 bool result;
5116 PyObject * obj0 = 0 ;
5117 PyObject * obj1 = 0 ;
5118 char *kwnames[] = {
5119 (char *) "self",(char *) "region", NULL
5120 };
5121
5122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5125 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5126 SWIG_POINTER_EXCEPTION | 0)) == -1)
5127 SWIG_fail;
d14a1e28 5128 if (arg2 == NULL) {
15afbcd0
RD
5129 PyErr_SetString(PyExc_TypeError,"null reference");
5130 SWIG_fail;
d14a1e28
RD
5131 }
5132 {
5133 PyThreadState* __tstate = wxPyBeginAllowThreads();
5134 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5135
5136 wxPyEndAllowThreads(__tstate);
5137 if (PyErr_Occurred()) SWIG_fail;
5138 }
4f89f6a3
RD
5139 {
5140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5141 }
d14a1e28
RD
5142 return resultobj;
5143 fail:
5144 return NULL;
5145}
5146
5147
5148static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5149 PyObject *resultobj;
5150 wxRegion *arg1 = (wxRegion *) 0 ;
5151 bool result;
5152 PyObject * obj0 = 0 ;
5153 char *kwnames[] = {
5154 (char *) "self", NULL
5155 };
5156
5157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
15afbcd0
RD
5158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5160 {
5161 PyThreadState* __tstate = wxPyBeginAllowThreads();
5162 result = (bool)(arg1)->IsEmpty();
5163
5164 wxPyEndAllowThreads(__tstate);
5165 if (PyErr_Occurred()) SWIG_fail;
5166 }
4f89f6a3
RD
5167 {
5168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5169 }
d14a1e28
RD
5170 return resultobj;
5171 fail:
5172 return NULL;
5173}
5174
5175
5176static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5177 PyObject *resultobj;
5178 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
5179 int arg2 ;
5180 int arg3 ;
5181 int arg4 ;
5182 int arg5 ;
d14a1e28
RD
5183 bool result;
5184 PyObject * obj0 = 0 ;
994141e6
RD
5185 PyObject * obj1 = 0 ;
5186 PyObject * obj2 = 0 ;
5187 PyObject * obj3 = 0 ;
5188 PyObject * obj4 = 0 ;
d14a1e28
RD
5189 char *kwnames[] = {
5190 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5191 };
5192
994141e6 5193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
5194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5196 arg2 = (int) SWIG_AsInt(obj1);
5197 if (PyErr_Occurred()) SWIG_fail;
5198 arg3 = (int) SWIG_AsInt(obj2);
5199 if (PyErr_Occurred()) SWIG_fail;
5200 arg4 = (int) SWIG_AsInt(obj3);
5201 if (PyErr_Occurred()) SWIG_fail;
5202 arg5 = (int) SWIG_AsInt(obj4);
5203 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5204 {
5205 PyThreadState* __tstate = wxPyBeginAllowThreads();
5206 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5207
5208 wxPyEndAllowThreads(__tstate);
5209 if (PyErr_Occurred()) SWIG_fail;
5210 }
4f89f6a3
RD
5211 {
5212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5213 }
d14a1e28
RD
5214 return resultobj;
5215 fail:
5216 return NULL;
5217}
5218
5219
5220static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5221 PyObject *resultobj;
5222 wxRegion *arg1 = (wxRegion *) 0 ;
5223 wxRect *arg2 = 0 ;
5224 bool result;
5225 wxRect temp2 ;
5226 PyObject * obj0 = 0 ;
5227 PyObject * obj1 = 0 ;
5228 char *kwnames[] = {
5229 (char *) "self",(char *) "rect", NULL
5230 };
5231
5232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5235 {
5236 arg2 = &temp2;
5237 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5238 }
5239 {
5240 PyThreadState* __tstate = wxPyBeginAllowThreads();
5241 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5242
5243 wxPyEndAllowThreads(__tstate);
5244 if (PyErr_Occurred()) SWIG_fail;
5245 }
4f89f6a3
RD
5246 {
5247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5248 }
d14a1e28
RD
5249 return resultobj;
5250 fail:
5251 return NULL;
5252}
5253
5254
5255static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5256 PyObject *resultobj;
5257 wxRegion *arg1 = (wxRegion *) 0 ;
5258 wxRegion *arg2 = 0 ;
5259 bool result;
5260 PyObject * obj0 = 0 ;
5261 PyObject * obj1 = 0 ;
5262 char *kwnames[] = {
5263 (char *) "self",(char *) "region", NULL
5264 };
5265
5266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5269 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5270 SWIG_POINTER_EXCEPTION | 0)) == -1)
5271 SWIG_fail;
d14a1e28 5272 if (arg2 == NULL) {
15afbcd0
RD
5273 PyErr_SetString(PyExc_TypeError,"null reference");
5274 SWIG_fail;
d14a1e28
RD
5275 }
5276 {
5277 PyThreadState* __tstate = wxPyBeginAllowThreads();
5278 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5279
5280 wxPyEndAllowThreads(__tstate);
5281 if (PyErr_Occurred()) SWIG_fail;
5282 }
4f89f6a3
RD
5283 {
5284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5285 }
d14a1e28
RD
5286 return resultobj;
5287 fail:
5288 return NULL;
5289}
5290
5291
5292static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5293 PyObject *resultobj;
5294 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
5295 int arg2 ;
5296 int arg3 ;
5297 int arg4 ;
5298 int arg5 ;
d14a1e28
RD
5299 bool result;
5300 PyObject * obj0 = 0 ;
994141e6
RD
5301 PyObject * obj1 = 0 ;
5302 PyObject * obj2 = 0 ;
5303 PyObject * obj3 = 0 ;
5304 PyObject * obj4 = 0 ;
d14a1e28
RD
5305 char *kwnames[] = {
5306 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5307 };
5308
994141e6 5309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
5310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5312 arg2 = (int) SWIG_AsInt(obj1);
5313 if (PyErr_Occurred()) SWIG_fail;
5314 arg3 = (int) SWIG_AsInt(obj2);
5315 if (PyErr_Occurred()) SWIG_fail;
5316 arg4 = (int) SWIG_AsInt(obj3);
5317 if (PyErr_Occurred()) SWIG_fail;
5318 arg5 = (int) SWIG_AsInt(obj4);
5319 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5320 {
5321 PyThreadState* __tstate = wxPyBeginAllowThreads();
5322 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5323
5324 wxPyEndAllowThreads(__tstate);
5325 if (PyErr_Occurred()) SWIG_fail;
5326 }
4f89f6a3
RD
5327 {
5328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5329 }
d14a1e28
RD
5330 return resultobj;
5331 fail:
5332 return NULL;
5333}
5334
5335
5336static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5337 PyObject *resultobj;
5338 wxRegion *arg1 = (wxRegion *) 0 ;
5339 wxRect *arg2 = 0 ;
5340 bool result;
5341 wxRect temp2 ;
5342 PyObject * obj0 = 0 ;
5343 PyObject * obj1 = 0 ;
5344 char *kwnames[] = {
5345 (char *) "self",(char *) "rect", NULL
5346 };
5347
5348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5351 {
5352 arg2 = &temp2;
5353 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5354 }
5355 {
5356 PyThreadState* __tstate = wxPyBeginAllowThreads();
5357 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5358
5359 wxPyEndAllowThreads(__tstate);
5360 if (PyErr_Occurred()) SWIG_fail;
5361 }
4f89f6a3
RD
5362 {
5363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5364 }
d14a1e28
RD
5365 return resultobj;
5366 fail:
5367 return NULL;
5368}
5369
5370
5371static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5372 PyObject *resultobj;
5373 wxRegion *arg1 = (wxRegion *) 0 ;
5374 wxRegion *arg2 = 0 ;
5375 bool result;
5376 PyObject * obj0 = 0 ;
5377 PyObject * obj1 = 0 ;
5378 char *kwnames[] = {
5379 (char *) "self",(char *) "region", NULL
5380 };
5381
5382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5385 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5386 SWIG_POINTER_EXCEPTION | 0)) == -1)
5387 SWIG_fail;
d14a1e28 5388 if (arg2 == NULL) {
15afbcd0
RD
5389 PyErr_SetString(PyExc_TypeError,"null reference");
5390 SWIG_fail;
d14a1e28
RD
5391 }
5392 {
5393 PyThreadState* __tstate = wxPyBeginAllowThreads();
5394 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5395
5396 wxPyEndAllowThreads(__tstate);
5397 if (PyErr_Occurred()) SWIG_fail;
5398 }
4f89f6a3
RD
5399 {
5400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5401 }
d14a1e28
RD
5402 return resultobj;
5403 fail:
5404 return NULL;
5405}
5406
5407
5408static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5409 PyObject *resultobj;
5410 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
5411 int arg2 ;
5412 int arg3 ;
5413 int arg4 ;
5414 int arg5 ;
d14a1e28
RD
5415 bool result;
5416 PyObject * obj0 = 0 ;
994141e6
RD
5417 PyObject * obj1 = 0 ;
5418 PyObject * obj2 = 0 ;
5419 PyObject * obj3 = 0 ;
5420 PyObject * obj4 = 0 ;
d14a1e28
RD
5421 char *kwnames[] = {
5422 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5423 };
5424
994141e6 5425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
5426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5428 arg2 = (int) SWIG_AsInt(obj1);
5429 if (PyErr_Occurred()) SWIG_fail;
5430 arg3 = (int) SWIG_AsInt(obj2);
5431 if (PyErr_Occurred()) SWIG_fail;
5432 arg4 = (int) SWIG_AsInt(obj3);
5433 if (PyErr_Occurred()) SWIG_fail;
5434 arg5 = (int) SWIG_AsInt(obj4);
5435 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5436 {
5437 PyThreadState* __tstate = wxPyBeginAllowThreads();
5438 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5439
5440 wxPyEndAllowThreads(__tstate);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
4f89f6a3
RD
5443 {
5444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5445 }
d14a1e28
RD
5446 return resultobj;
5447 fail:
5448 return NULL;
5449}
5450
5451
5452static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5453 PyObject *resultobj;
5454 wxRegion *arg1 = (wxRegion *) 0 ;
5455 wxRect *arg2 = 0 ;
5456 bool result;
5457 wxRect temp2 ;
5458 PyObject * obj0 = 0 ;
5459 PyObject * obj1 = 0 ;
5460 char *kwnames[] = {
5461 (char *) "self",(char *) "rect", NULL
5462 };
5463
5464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5467 {
5468 arg2 = &temp2;
5469 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5470 }
5471 {
5472 PyThreadState* __tstate = wxPyBeginAllowThreads();
5473 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5474
5475 wxPyEndAllowThreads(__tstate);
5476 if (PyErr_Occurred()) SWIG_fail;
5477 }
4f89f6a3
RD
5478 {
5479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5480 }
d14a1e28
RD
5481 return resultobj;
5482 fail:
5483 return NULL;
5484}
5485
5486
5487static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5488 PyObject *resultobj;
5489 wxRegion *arg1 = (wxRegion *) 0 ;
5490 wxRegion *arg2 = 0 ;
5491 bool result;
5492 PyObject * obj0 = 0 ;
5493 PyObject * obj1 = 0 ;
5494 char *kwnames[] = {
5495 (char *) "self",(char *) "region", NULL
5496 };
5497
5498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5501 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5502 SWIG_POINTER_EXCEPTION | 0)) == -1)
5503 SWIG_fail;
d14a1e28 5504 if (arg2 == NULL) {
15afbcd0
RD
5505 PyErr_SetString(PyExc_TypeError,"null reference");
5506 SWIG_fail;
d14a1e28
RD
5507 }
5508 {
5509 PyThreadState* __tstate = wxPyBeginAllowThreads();
5510 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5511
5512 wxPyEndAllowThreads(__tstate);
5513 if (PyErr_Occurred()) SWIG_fail;
5514 }
4f89f6a3
RD
5515 {
5516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5517 }
d14a1e28
RD
5518 return resultobj;
5519 fail:
5520 return NULL;
5521}
5522
5523
5524static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5525 PyObject *resultobj;
5526 wxRegion *arg1 = (wxRegion *) 0 ;
5527 SwigValueWrapper< wxBitmap > result;
5528 PyObject * obj0 = 0 ;
5529 char *kwnames[] = {
5530 (char *) "self", NULL
5531 };
5532
5533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
15afbcd0
RD
5534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5536 {
5537 PyThreadState* __tstate = wxPyBeginAllowThreads();
5538 result = (arg1)->ConvertToBitmap();
5539
5540 wxPyEndAllowThreads(__tstate);
5541 if (PyErr_Occurred()) SWIG_fail;
5542 }
5543 {
5544 wxBitmap * resultptr;
5545 resultptr = new wxBitmap((wxBitmap &) result);
15afbcd0 5546 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
5547 }
5548 return resultobj;
5549 fail:
5550 return NULL;
5551}
5552
5553
5554static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5555 PyObject *resultobj;
5556 wxRegion *arg1 = (wxRegion *) 0 ;
5557 wxBitmap *arg2 = 0 ;
e6ffcedd
RD
5558 bool result;
5559 PyObject * obj0 = 0 ;
5560 PyObject * obj1 = 0 ;
5561 char *kwnames[] = {
5562 (char *) "self",(char *) "bmp", NULL
5563 };
5564
5565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
5566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5568 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5569 SWIG_POINTER_EXCEPTION | 0)) == -1)
5570 SWIG_fail;
5571 if (arg2 == NULL) {
5572 PyErr_SetString(PyExc_TypeError,"null reference");
5573 SWIG_fail;
5574 }
5575 {
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5578
5579 wxPyEndAllowThreads(__tstate);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 }
5582 {
5583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5584 }
5585 return resultobj;
5586 fail:
5587 return NULL;
5588}
5589
5590
5591static PyObject *_wrap_Region_UnionBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5592 PyObject *resultobj;
5593 wxRegion *arg1 = (wxRegion *) 0 ;
5594 wxBitmap *arg2 = 0 ;
5595 wxColour *arg3 = 0 ;
d14a1e28
RD
5596 int arg4 = (int) 0 ;
5597 bool result;
5598 wxColour temp3 ;
5599 PyObject * obj0 = 0 ;
5600 PyObject * obj1 = 0 ;
5601 PyObject * obj2 = 0 ;
994141e6 5602 PyObject * obj3 = 0 ;
d14a1e28
RD
5603 char *kwnames[] = {
5604 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5605 };
5606
e6ffcedd 5607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
5608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5610 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5611 SWIG_POINTER_EXCEPTION | 0)) == -1)
5612 SWIG_fail;
d14a1e28 5613 if (arg2 == NULL) {
15afbcd0
RD
5614 PyErr_SetString(PyExc_TypeError,"null reference");
5615 SWIG_fail;
d14a1e28 5616 }
e6ffcedd
RD
5617 {
5618 arg3 = &temp3;
5619 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 5620 }
994141e6 5621 if (obj3) {
15afbcd0
RD
5622 arg4 = (int) SWIG_AsInt(obj3);
5623 if (PyErr_Occurred()) SWIG_fail;
994141e6 5624 }
d14a1e28
RD
5625 {
5626 PyThreadState* __tstate = wxPyBeginAllowThreads();
5627 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5628
5629 wxPyEndAllowThreads(__tstate);
5630 if (PyErr_Occurred()) SWIG_fail;
5631 }
4f89f6a3
RD
5632 {
5633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5634 }
d14a1e28
RD
5635 return resultobj;
5636 fail:
5637 return NULL;
5638}
5639
5640
5641static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5642 PyObject *obj;
5643 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5644 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5645 Py_INCREF(obj);
5646 return Py_BuildValue((char *)"");
5647}
5648static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5649 PyObject *resultobj;
5650 wxRegion *arg1 = 0 ;
5651 wxRegionIterator *result;
5652 PyObject * obj0 = 0 ;
5653 char *kwnames[] = {
5654 (char *) "region", NULL
5655 };
5656
5657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
15afbcd0
RD
5658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5659 SWIG_POINTER_EXCEPTION | 0)) == -1)
5660 SWIG_fail;
d14a1e28 5661 if (arg1 == NULL) {
15afbcd0
RD
5662 PyErr_SetString(PyExc_TypeError,"null reference");
5663 SWIG_fail;
d14a1e28
RD
5664 }
5665 {
e3b71cb8 5666 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
5668 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5669
5670 wxPyEndAllowThreads(__tstate);
110da5b0 5671 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 5672 }
15afbcd0 5673 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
d14a1e28
RD
5674 return resultobj;
5675 fail:
5676 return NULL;
5677}
5678
5679
5680static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5681 PyObject *resultobj;
5682 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5683 PyObject * obj0 = 0 ;
5684 char *kwnames[] = {
5685 (char *) "self", NULL
5686 };
5687
5688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
15afbcd0
RD
5689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5691 {
5692 PyThreadState* __tstate = wxPyBeginAllowThreads();
5693 delete arg1;
5694
5695 wxPyEndAllowThreads(__tstate);
5696 if (PyErr_Occurred()) SWIG_fail;
5697 }
5698 Py_INCREF(Py_None); resultobj = Py_None;
5699 return resultobj;
5700 fail:
5701 return NULL;
5702}
5703
5704
5705static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5706 PyObject *resultobj;
5707 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5708 int result;
d14a1e28
RD
5709 PyObject * obj0 = 0 ;
5710 char *kwnames[] = {
5711 (char *) "self", NULL
5712 };
5713
5714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
15afbcd0
RD
5715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5717 {
5718 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5719 result = (int)(arg1)->GetX();
d14a1e28
RD
5720
5721 wxPyEndAllowThreads(__tstate);
5722 if (PyErr_Occurred()) SWIG_fail;
5723 }
15afbcd0 5724 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5725 return resultobj;
5726 fail:
5727 return NULL;
5728}
5729
5730
5731static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5732 PyObject *resultobj;
5733 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5734 int result;
d14a1e28
RD
5735 PyObject * obj0 = 0 ;
5736 char *kwnames[] = {
5737 (char *) "self", NULL
5738 };
5739
5740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
15afbcd0
RD
5741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5743 {
5744 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5745 result = (int)(arg1)->GetY();
d14a1e28
RD
5746
5747 wxPyEndAllowThreads(__tstate);
5748 if (PyErr_Occurred()) SWIG_fail;
5749 }
15afbcd0 5750 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5751 return resultobj;
5752 fail:
5753 return NULL;
5754}
5755
5756
5757static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5758 PyObject *resultobj;
5759 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5760 int result;
d14a1e28
RD
5761 PyObject * obj0 = 0 ;
5762 char *kwnames[] = {
5763 (char *) "self", NULL
5764 };
5765
5766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
15afbcd0
RD
5767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5769 {
5770 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5771 result = (int)(arg1)->GetW();
d14a1e28
RD
5772
5773 wxPyEndAllowThreads(__tstate);
5774 if (PyErr_Occurred()) SWIG_fail;
5775 }
15afbcd0 5776 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5777 return resultobj;
5778 fail:
5779 return NULL;
5780}
5781
5782
5783static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5784 PyObject *resultobj;
5785 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5786 int result;
d14a1e28
RD
5787 PyObject * obj0 = 0 ;
5788 char *kwnames[] = {
5789 (char *) "self", NULL
5790 };
5791
5792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
5793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5795 {
5796 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5797 result = (int)(arg1)->GetWidth();
d14a1e28
RD
5798
5799 wxPyEndAllowThreads(__tstate);
5800 if (PyErr_Occurred()) SWIG_fail;
5801 }
15afbcd0 5802 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5803 return resultobj;
5804 fail:
5805 return NULL;
5806}
5807
5808
5809static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5810 PyObject *resultobj;
5811 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5812 int result;
d14a1e28
RD
5813 PyObject * obj0 = 0 ;
5814 char *kwnames[] = {
5815 (char *) "self", NULL
5816 };
5817
5818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
15afbcd0
RD
5819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5821 {
5822 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5823 result = (int)(arg1)->GetH();
d14a1e28
RD
5824
5825 wxPyEndAllowThreads(__tstate);
5826 if (PyErr_Occurred()) SWIG_fail;
5827 }
15afbcd0 5828 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5829 return resultobj;
5830 fail:
5831 return NULL;
5832}
5833
5834
5835static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5836 PyObject *resultobj;
5837 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 5838 int result;
d14a1e28
RD
5839 PyObject * obj0 = 0 ;
5840 char *kwnames[] = {
5841 (char *) "self", NULL
5842 };
5843
5844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
5845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5847 {
5848 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 5849 result = (int)(arg1)->GetHeight();
d14a1e28
RD
5850
5851 wxPyEndAllowThreads(__tstate);
5852 if (PyErr_Occurred()) SWIG_fail;
5853 }
15afbcd0 5854 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5855 return resultobj;
5856 fail:
5857 return NULL;
5858}
5859
5860
5861static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5862 PyObject *resultobj;
5863 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5864 wxRect result;
5865 PyObject * obj0 = 0 ;
5866 char *kwnames[] = {
5867 (char *) "self", NULL
5868 };
5869
5870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
15afbcd0
RD
5871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5873 {
5874 PyThreadState* __tstate = wxPyBeginAllowThreads();
5875 result = (arg1)->GetRect();
5876
5877 wxPyEndAllowThreads(__tstate);
5878 if (PyErr_Occurred()) SWIG_fail;
5879 }
5880 {
5881 wxRect * resultptr;
5882 resultptr = new wxRect((wxRect &) result);
15afbcd0 5883 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
5884 }
5885 return resultobj;
5886 fail:
5887 return NULL;
5888}
5889
5890
5891static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5892 PyObject *resultobj;
5893 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5894 bool result;
5895 PyObject * obj0 = 0 ;
5896 char *kwnames[] = {
5897 (char *) "self", NULL
5898 };
5899
5900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
15afbcd0
RD
5901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5903 {
5904 PyThreadState* __tstate = wxPyBeginAllowThreads();
5905 result = (bool)(arg1)->HaveRects();
5906
5907 wxPyEndAllowThreads(__tstate);
5908 if (PyErr_Occurred()) SWIG_fail;
5909 }
4f89f6a3
RD
5910 {
5911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5912 }
d14a1e28
RD
5913 return resultobj;
5914 fail:
5915 return NULL;
5916}
5917
5918
5919static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5920 PyObject *resultobj;
5921 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5922 PyObject * obj0 = 0 ;
5923 char *kwnames[] = {
5924 (char *) "self", NULL
5925 };
5926
5927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
15afbcd0
RD
5928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5930 {
5931 PyThreadState* __tstate = wxPyBeginAllowThreads();
5932 (arg1)->Reset();
5933
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 Py_INCREF(Py_None); resultobj = Py_None;
5938 return resultobj;
5939 fail:
5940 return NULL;
5941}
5942
5943
5944static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5945 PyObject *resultobj;
5946 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5947 PyObject * obj0 = 0 ;
5948 char *kwnames[] = {
5949 (char *) "self", NULL
5950 };
5951
5952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
15afbcd0
RD
5953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5955 {
5956 PyThreadState* __tstate = wxPyBeginAllowThreads();
5957 wxRegionIterator_Next(arg1);
5958
5959 wxPyEndAllowThreads(__tstate);
5960 if (PyErr_Occurred()) SWIG_fail;
5961 }
5962 Py_INCREF(Py_None); resultobj = Py_None;
5963 return resultobj;
5964 fail:
5965 return NULL;
5966}
5967
5968
5969static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5970 PyObject *resultobj;
5971 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5972 bool result;
5973 PyObject * obj0 = 0 ;
5974 char *kwnames[] = {
5975 (char *) "self", NULL
5976 };
5977
5978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
15afbcd0
RD
5979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5981 {
5982 PyThreadState* __tstate = wxPyBeginAllowThreads();
5983 result = (bool)wxRegionIterator___nonzero__(arg1);
5984
5985 wxPyEndAllowThreads(__tstate);
5986 if (PyErr_Occurred()) SWIG_fail;
5987 }
4f89f6a3
RD
5988 {
5989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5990 }
d14a1e28
RD
5991 return resultobj;
5992 fail:
5993 return NULL;
5994}
5995
5996
5997static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5998 PyObject *obj;
5999 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6000 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6001 Py_INCREF(obj);
6002 return Py_BuildValue((char *)"");
6003}
6004static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6005 PyObject *resultobj;
6006 wxNativeFontInfo *result;
6007 char *kwnames[] = {
6008 NULL
6009 };
6010
6011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6015
6016 wxPyEndAllowThreads(__tstate);
6017 if (PyErr_Occurred()) SWIG_fail;
6018 }
15afbcd0 6019 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
d14a1e28
RD
6020 return resultobj;
6021 fail:
6022 return NULL;
6023}
6024
6025
6026static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6027 PyObject *resultobj;
6028 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6029 PyObject * obj0 = 0 ;
6030 char *kwnames[] = {
6031 (char *) "self", NULL
6032 };
6033
6034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
6035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6037 {
6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6039 delete arg1;
6040
6041 wxPyEndAllowThreads(__tstate);
6042 if (PyErr_Occurred()) SWIG_fail;
6043 }
6044 Py_INCREF(Py_None); resultobj = Py_None;
6045 return resultobj;
6046 fail:
6047 return NULL;
6048}
6049
6050
6051static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6052 PyObject *resultobj;
6053 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6054 PyObject * obj0 = 0 ;
6055 char *kwnames[] = {
6056 (char *) "self", NULL
6057 };
6058
6059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
15afbcd0
RD
6060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 (arg1)->Init();
6065
6066 wxPyEndAllowThreads(__tstate);
6067 if (PyErr_Occurred()) SWIG_fail;
6068 }
6069 Py_INCREF(Py_None); resultobj = Py_None;
6070 return resultobj;
6071 fail:
6072 return NULL;
6073}
6074
6075
6076static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6077 PyObject *resultobj;
6078 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6079 wxFont *arg2 = 0 ;
6080 PyObject * obj0 = 0 ;
6081 PyObject * obj1 = 0 ;
6082 char *kwnames[] = {
6083 (char *) "self",(char *) "font", NULL
6084 };
6085
6086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6089 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6090 SWIG_POINTER_EXCEPTION | 0)) == -1)
6091 SWIG_fail;
d14a1e28 6092 if (arg2 == NULL) {
15afbcd0
RD
6093 PyErr_SetString(PyExc_TypeError,"null reference");
6094 SWIG_fail;
d14a1e28
RD
6095 }
6096 {
6097 PyThreadState* __tstate = wxPyBeginAllowThreads();
6098 (arg1)->InitFromFont((wxFont const &)*arg2);
6099
6100 wxPyEndAllowThreads(__tstate);
6101 if (PyErr_Occurred()) SWIG_fail;
6102 }
6103 Py_INCREF(Py_None); resultobj = Py_None;
6104 return resultobj;
6105 fail:
6106 return NULL;
6107}
6108
6109
6110static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6111 PyObject *resultobj;
6112 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6113 int result;
6114 PyObject * obj0 = 0 ;
6115 char *kwnames[] = {
6116 (char *) "self", NULL
6117 };
6118
6119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
15afbcd0
RD
6120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6122 {
6123 PyThreadState* __tstate = wxPyBeginAllowThreads();
6124 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6125
6126 wxPyEndAllowThreads(__tstate);
6127 if (PyErr_Occurred()) SWIG_fail;
6128 }
15afbcd0 6129 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6130 return resultobj;
6131 fail:
6132 return NULL;
6133}
6134
6135
6136static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6137 PyObject *resultobj;
6138 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6139 int result;
6140 PyObject * obj0 = 0 ;
6141 char *kwnames[] = {
6142 (char *) "self", NULL
6143 };
6144
6145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
15afbcd0
RD
6146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6148 {
6149 PyThreadState* __tstate = wxPyBeginAllowThreads();
6150 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6151
6152 wxPyEndAllowThreads(__tstate);
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
15afbcd0 6155 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6156 return resultobj;
6157 fail:
6158 return NULL;
6159}
6160
6161
6162static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6163 PyObject *resultobj;
6164 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6165 int result;
6166 PyObject * obj0 = 0 ;
6167 char *kwnames[] = {
6168 (char *) "self", NULL
6169 };
6170
6171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
6172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6174 {
6175 PyThreadState* __tstate = wxPyBeginAllowThreads();
6176 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6177
6178 wxPyEndAllowThreads(__tstate);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
15afbcd0 6181 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6182 return resultobj;
6183 fail:
6184 return NULL;
6185}
6186
6187
6188static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6189 PyObject *resultobj;
6190 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6191 bool result;
6192 PyObject * obj0 = 0 ;
6193 char *kwnames[] = {
6194 (char *) "self", NULL
6195 };
6196
6197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
15afbcd0
RD
6198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6200 {
6201 PyThreadState* __tstate = wxPyBeginAllowThreads();
6202 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6203
6204 wxPyEndAllowThreads(__tstate);
6205 if (PyErr_Occurred()) SWIG_fail;
6206 }
4f89f6a3
RD
6207 {
6208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6209 }
d14a1e28
RD
6210 return resultobj;
6211 fail:
6212 return NULL;
6213}
6214
6215
6216static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6217 PyObject *resultobj;
6218 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6219 wxString result;
6220 PyObject * obj0 = 0 ;
6221 char *kwnames[] = {
6222 (char *) "self", NULL
6223 };
6224
6225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
15afbcd0
RD
6226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6228 {
6229 PyThreadState* __tstate = wxPyBeginAllowThreads();
6230 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6231
6232 wxPyEndAllowThreads(__tstate);
6233 if (PyErr_Occurred()) SWIG_fail;
6234 }
6235 {
6236#if wxUSE_UNICODE
6237 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6238#else
6239 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6240#endif
6241 }
6242 return resultobj;
6243 fail:
6244 return NULL;
6245}
6246
6247
6248static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6249 PyObject *resultobj;
6250 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6251 int result;
6252 PyObject * obj0 = 0 ;
6253 char *kwnames[] = {
6254 (char *) "self", NULL
6255 };
6256
6257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
15afbcd0
RD
6258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6260 {
6261 PyThreadState* __tstate = wxPyBeginAllowThreads();
6262 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6263
6264 wxPyEndAllowThreads(__tstate);
6265 if (PyErr_Occurred()) SWIG_fail;
6266 }
15afbcd0 6267 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6268 return resultobj;
6269 fail:
6270 return NULL;
6271}
6272
6273
6274static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6275 PyObject *resultobj;
6276 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6277 int result;
6278 PyObject * obj0 = 0 ;
6279 char *kwnames[] = {
6280 (char *) "self", NULL
6281 };
6282
6283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
6284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6286 {
6287 PyThreadState* __tstate = wxPyBeginAllowThreads();
6288 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6289
6290 wxPyEndAllowThreads(__tstate);
6291 if (PyErr_Occurred()) SWIG_fail;
6292 }
15afbcd0 6293 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6294 return resultobj;
6295 fail:
6296 return NULL;
6297}
6298
6299
6300static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6301 PyObject *resultobj;
6302 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6303 int arg2 ;
6304 PyObject * obj0 = 0 ;
994141e6 6305 PyObject * obj1 = 0 ;
d14a1e28
RD
6306 char *kwnames[] = {
6307 (char *) "self",(char *) "pointsize", NULL
6308 };
6309
994141e6 6310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6313 arg2 = (int) SWIG_AsInt(obj1);
6314 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6315 {
6316 PyThreadState* __tstate = wxPyBeginAllowThreads();
6317 (arg1)->SetPointSize(arg2);
6318
6319 wxPyEndAllowThreads(__tstate);
6320 if (PyErr_Occurred()) SWIG_fail;
6321 }
6322 Py_INCREF(Py_None); resultobj = Py_None;
6323 return resultobj;
6324 fail:
6325 return NULL;
6326}
6327
6328
6329static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6330 PyObject *resultobj;
6331 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6332 int arg2 ;
6333 PyObject * obj0 = 0 ;
994141e6 6334 PyObject * obj1 = 0 ;
d14a1e28
RD
6335 char *kwnames[] = {
6336 (char *) "self",(char *) "style", NULL
6337 };
6338
994141e6 6339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6342 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6343 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6344 {
6345 PyThreadState* __tstate = wxPyBeginAllowThreads();
6346 (arg1)->SetStyle((wxFontStyle )arg2);
6347
6348 wxPyEndAllowThreads(__tstate);
6349 if (PyErr_Occurred()) SWIG_fail;
6350 }
6351 Py_INCREF(Py_None); resultobj = Py_None;
6352 return resultobj;
6353 fail:
6354 return NULL;
6355}
6356
6357
6358static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6359 PyObject *resultobj;
6360 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6361 int arg2 ;
6362 PyObject * obj0 = 0 ;
994141e6 6363 PyObject * obj1 = 0 ;
d14a1e28
RD
6364 char *kwnames[] = {
6365 (char *) "self",(char *) "weight", NULL
6366 };
6367
994141e6 6368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6371 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6372 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6373 {
6374 PyThreadState* __tstate = wxPyBeginAllowThreads();
6375 (arg1)->SetWeight((wxFontWeight )arg2);
6376
6377 wxPyEndAllowThreads(__tstate);
6378 if (PyErr_Occurred()) SWIG_fail;
6379 }
6380 Py_INCREF(Py_None); resultobj = Py_None;
6381 return resultobj;
6382 fail:
6383 return NULL;
6384}
6385
6386
6387static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6388 PyObject *resultobj;
6389 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6390 bool arg2 ;
6391 PyObject * obj0 = 0 ;
6392 PyObject * obj1 = 0 ;
6393 char *kwnames[] = {
6394 (char *) "self",(char *) "underlined", NULL
6395 };
6396
6397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6400 arg2 = (bool) SWIG_AsBool(obj1);
6401 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6402 {
6403 PyThreadState* __tstate = wxPyBeginAllowThreads();
6404 (arg1)->SetUnderlined(arg2);
6405
6406 wxPyEndAllowThreads(__tstate);
6407 if (PyErr_Occurred()) SWIG_fail;
6408 }
6409 Py_INCREF(Py_None); resultobj = Py_None;
6410 return resultobj;
6411 fail:
6412 return NULL;
6413}
6414
6415
6416static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6417 PyObject *resultobj;
6418 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6419 wxString arg2 ;
d14a1e28
RD
6420 PyObject * obj0 = 0 ;
6421 PyObject * obj1 = 0 ;
6422 char *kwnames[] = {
6423 (char *) "self",(char *) "facename", NULL
6424 };
6425
6426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
e811c8ce
RD
6429 {
6430 wxString* sptr = wxString_in_helper(obj1);
6431 if (sptr == NULL) SWIG_fail;
6432 arg2 = *sptr;
6433 delete sptr;
6434 }
d14a1e28
RD
6435 {
6436 PyThreadState* __tstate = wxPyBeginAllowThreads();
6437 (arg1)->SetFaceName(arg2);
6438
6439 wxPyEndAllowThreads(__tstate);
6440 if (PyErr_Occurred()) SWIG_fail;
6441 }
6442 Py_INCREF(Py_None); resultobj = Py_None;
6443 return resultobj;
6444 fail:
6445 return NULL;
6446}
6447
6448
6449static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6450 PyObject *resultobj;
6451 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6452 int arg2 ;
6453 PyObject * obj0 = 0 ;
994141e6 6454 PyObject * obj1 = 0 ;
d14a1e28
RD
6455 char *kwnames[] = {
6456 (char *) "self",(char *) "family", NULL
6457 };
6458
994141e6 6459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6462 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6463 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6464 {
6465 PyThreadState* __tstate = wxPyBeginAllowThreads();
6466 (arg1)->SetFamily((wxFontFamily )arg2);
6467
6468 wxPyEndAllowThreads(__tstate);
6469 if (PyErr_Occurred()) SWIG_fail;
6470 }
6471 Py_INCREF(Py_None); resultobj = Py_None;
6472 return resultobj;
6473 fail:
6474 return NULL;
6475}
6476
6477
6478static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6479 PyObject *resultobj;
6480 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6481 int arg2 ;
6482 PyObject * obj0 = 0 ;
994141e6 6483 PyObject * obj1 = 0 ;
d14a1e28
RD
6484 char *kwnames[] = {
6485 (char *) "self",(char *) "encoding", NULL
6486 };
6487
994141e6 6488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6491 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6492 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6493 {
6494 PyThreadState* __tstate = wxPyBeginAllowThreads();
6495 (arg1)->SetEncoding((wxFontEncoding )arg2);
6496
6497 wxPyEndAllowThreads(__tstate);
6498 if (PyErr_Occurred()) SWIG_fail;
6499 }
6500 Py_INCREF(Py_None); resultobj = Py_None;
6501 return resultobj;
6502 fail:
6503 return NULL;
6504}
6505
6506
6507static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6508 PyObject *resultobj;
6509 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6510 wxString *arg2 = 0 ;
6511 bool result;
e811c8ce 6512 bool temp2 = False ;
d14a1e28
RD
6513 PyObject * obj0 = 0 ;
6514 PyObject * obj1 = 0 ;
6515 char *kwnames[] = {
6516 (char *) "self",(char *) "s", NULL
6517 };
6518
6519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6522 {
6523 arg2 = wxString_in_helper(obj1);
6524 if (arg2 == NULL) SWIG_fail;
e811c8ce 6525 temp2 = True;
d14a1e28
RD
6526 }
6527 {
6528 PyThreadState* __tstate = wxPyBeginAllowThreads();
6529 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6530
6531 wxPyEndAllowThreads(__tstate);
6532 if (PyErr_Occurred()) SWIG_fail;
6533 }
4f89f6a3
RD
6534 {
6535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6536 }
d14a1e28
RD
6537 {
6538 if (temp2)
6539 delete arg2;
6540 }
6541 return resultobj;
6542 fail:
6543 {
6544 if (temp2)
6545 delete arg2;
6546 }
6547 return NULL;
6548}
6549
6550
6551static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6552 PyObject *resultobj;
6553 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6554 wxString result;
6555 PyObject * obj0 = 0 ;
6556 char *kwnames[] = {
6557 (char *) "self", NULL
6558 };
6559
6560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
15afbcd0
RD
6561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6563 {
6564 PyThreadState* __tstate = wxPyBeginAllowThreads();
6565 result = ((wxNativeFontInfo const *)arg1)->ToString();
6566
6567 wxPyEndAllowThreads(__tstate);
6568 if (PyErr_Occurred()) SWIG_fail;
6569 }
6570 {
6571#if wxUSE_UNICODE
6572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6573#else
6574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6575#endif
6576 }
6577 return resultobj;
6578 fail:
6579 return NULL;
6580}
6581
6582
6583static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6584 PyObject *resultobj;
6585 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6586 wxString result;
6587 PyObject * obj0 = 0 ;
6588 char *kwnames[] = {
6589 (char *) "self", NULL
6590 };
6591
6592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
15afbcd0
RD
6593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6595 {
6596 PyThreadState* __tstate = wxPyBeginAllowThreads();
6597 result = wxNativeFontInfo___str__(arg1);
6598
6599 wxPyEndAllowThreads(__tstate);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 }
6602 {
6603#if wxUSE_UNICODE
6604 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6605#else
6606 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6607#endif
6608 }
6609 return resultobj;
6610 fail:
6611 return NULL;
6612}
6613
6614
6615static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6616 PyObject *resultobj;
6617 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6618 wxString *arg2 = 0 ;
6619 bool result;
e811c8ce 6620 bool temp2 = False ;
d14a1e28
RD
6621 PyObject * obj0 = 0 ;
6622 PyObject * obj1 = 0 ;
6623 char *kwnames[] = {
6624 (char *) "self",(char *) "s", NULL
6625 };
6626
6627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6630 {
6631 arg2 = wxString_in_helper(obj1);
6632 if (arg2 == NULL) SWIG_fail;
e811c8ce 6633 temp2 = True;
d14a1e28
RD
6634 }
6635 {
6636 PyThreadState* __tstate = wxPyBeginAllowThreads();
6637 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6638
6639 wxPyEndAllowThreads(__tstate);
6640 if (PyErr_Occurred()) SWIG_fail;
6641 }
4f89f6a3
RD
6642 {
6643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6644 }
d14a1e28
RD
6645 {
6646 if (temp2)
6647 delete arg2;
6648 }
6649 return resultobj;
6650 fail:
6651 {
6652 if (temp2)
6653 delete arg2;
6654 }
6655 return NULL;
6656}
6657
6658
6659static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6660 PyObject *resultobj;
6661 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6662 wxString result;
6663 PyObject * obj0 = 0 ;
6664 char *kwnames[] = {
6665 (char *) "self", NULL
6666 };
6667
6668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
15afbcd0
RD
6669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6671 {
6672 PyThreadState* __tstate = wxPyBeginAllowThreads();
6673 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6674
6675 wxPyEndAllowThreads(__tstate);
6676 if (PyErr_Occurred()) SWIG_fail;
6677 }
6678 {
6679#if wxUSE_UNICODE
6680 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6681#else
6682 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6683#endif
6684 }
6685 return resultobj;
6686 fail:
6687 return NULL;
6688}
6689
6690
6691static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6692 PyObject *obj;
6693 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6694 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6695 Py_INCREF(obj);
6696 return Py_BuildValue((char *)"");
6697}
6698static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6699 PyObject *resultobj;
6700 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
196addbf 6701 wxString *arg2 = (wxString *) 0 ;
7eae615b 6702 bool temp2 = False ;
d14a1e28
RD
6703 PyObject * obj0 = 0 ;
6704 PyObject * obj1 = 0 ;
6705 char *kwnames[] = {
6706 (char *) "self",(char *) "facename", NULL
6707 };
6708
6709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7eae615b
RD
6712 {
6713 arg2 = wxString_in_helper(obj1);
6714 if (arg2 == NULL) SWIG_fail;
6715 temp2 = True;
6716 }
196addbf 6717 if (arg1) (arg1)->facename = *arg2;
d14a1e28
RD
6718
6719 Py_INCREF(Py_None); resultobj = Py_None;
7eae615b
RD
6720 {
6721 if (temp2)
6722 delete arg2;
6723 }
d14a1e28
RD
6724 return resultobj;
6725 fail:
7eae615b
RD
6726 {
6727 if (temp2)
6728 delete arg2;
6729 }
d14a1e28
RD
6730 return NULL;
6731}
6732
6733
6734static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6735 PyObject *resultobj;
6736 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
196addbf 6737 wxString *result;
d14a1e28
RD
6738 PyObject * obj0 = 0 ;
6739 char *kwnames[] = {
6740 (char *) "self", NULL
6741 };
6742
6743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
6744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
196addbf 6746 result = (wxString *)& ((arg1)->facename);
d14a1e28
RD
6747
6748 {
6749#if wxUSE_UNICODE
196addbf 6750 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 6751#else
196addbf 6752 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
6753#endif
6754 }
6755 return resultobj;
6756 fail:
6757 return NULL;
6758}
6759
6760
6761static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6762 PyObject *resultobj;
6763 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6764 int arg2 ;
6765 PyObject * obj0 = 0 ;
994141e6 6766 PyObject * obj1 = 0 ;
d14a1e28
RD
6767 char *kwnames[] = {
6768 (char *) "self",(char *) "encoding", NULL
6769 };
6770
994141e6 6771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6774 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6775 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6776 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6777
6778 Py_INCREF(Py_None); resultobj = Py_None;
6779 return resultobj;
6780 fail:
6781 return NULL;
6782}
6783
6784
6785static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6786 PyObject *resultobj;
6787 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6788 int result;
6789 PyObject * obj0 = 0 ;
6790 char *kwnames[] = {
6791 (char *) "self", NULL
6792 };
6793
6794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
6795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6797 result = (int) ((arg1)->encoding);
6798
15afbcd0 6799 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6800 return resultobj;
6801 fail:
6802 return NULL;
6803}
6804
6805
6806static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6807 PyObject *resultobj;
6808 wxNativeEncodingInfo *result;
6809 char *kwnames[] = {
6810 NULL
6811 };
6812
6813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6814 {
6815 PyThreadState* __tstate = wxPyBeginAllowThreads();
6816 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6817
6818 wxPyEndAllowThreads(__tstate);
6819 if (PyErr_Occurred()) SWIG_fail;
6820 }
15afbcd0 6821 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
d14a1e28
RD
6822 return resultobj;
6823 fail:
6824 return NULL;
6825}
6826
6827
6828static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6829 PyObject *resultobj;
6830 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6831 PyObject * obj0 = 0 ;
6832 char *kwnames[] = {
6833 (char *) "self", NULL
6834 };
6835
6836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
6837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6839 {
6840 PyThreadState* __tstate = wxPyBeginAllowThreads();
6841 delete arg1;
6842
6843 wxPyEndAllowThreads(__tstate);
6844 if (PyErr_Occurred()) SWIG_fail;
6845 }
6846 Py_INCREF(Py_None); resultobj = Py_None;
6847 return resultobj;
6848 fail:
6849 return NULL;
6850}
6851
6852
6853static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6854 PyObject *resultobj;
6855 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6856 wxString *arg2 = 0 ;
6857 bool result;
e811c8ce 6858 bool temp2 = False ;
d14a1e28
RD
6859 PyObject * obj0 = 0 ;
6860 PyObject * obj1 = 0 ;
6861 char *kwnames[] = {
6862 (char *) "self",(char *) "s", NULL
6863 };
6864
6865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6868 {
6869 arg2 = wxString_in_helper(obj1);
6870 if (arg2 == NULL) SWIG_fail;
e811c8ce 6871 temp2 = True;
d14a1e28
RD
6872 }
6873 {
6874 PyThreadState* __tstate = wxPyBeginAllowThreads();
6875 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6876
6877 wxPyEndAllowThreads(__tstate);
6878 if (PyErr_Occurred()) SWIG_fail;
6879 }
4f89f6a3
RD
6880 {
6881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6882 }
d14a1e28
RD
6883 {
6884 if (temp2)
6885 delete arg2;
6886 }
6887 return resultobj;
6888 fail:
6889 {
6890 if (temp2)
6891 delete arg2;
6892 }
6893 return NULL;
6894}
6895
6896
6897static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6898 PyObject *resultobj;
6899 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6900 wxString result;
6901 PyObject * obj0 = 0 ;
6902 char *kwnames[] = {
6903 (char *) "self", NULL
6904 };
6905
6906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
15afbcd0
RD
6907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6909 {
6910 PyThreadState* __tstate = wxPyBeginAllowThreads();
6911 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6912
6913 wxPyEndAllowThreads(__tstate);
6914 if (PyErr_Occurred()) SWIG_fail;
6915 }
6916 {
6917#if wxUSE_UNICODE
6918 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6919#else
6920 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6921#endif
6922 }
6923 return resultobj;
6924 fail:
6925 return NULL;
6926}
6927
6928
6929static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6930 PyObject *obj;
6931 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6932 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6933 Py_INCREF(obj);
6934 return Py_BuildValue((char *)"");
6935}
6936static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj;
6938 int arg1 ;
6939 wxNativeEncodingInfo *result;
994141e6 6940 PyObject * obj0 = 0 ;
d14a1e28
RD
6941 char *kwnames[] = {
6942 (char *) "encoding", NULL
6943 };
6944
994141e6 6945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
6946 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6947 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
6948 {
6949 PyThreadState* __tstate = wxPyBeginAllowThreads();
6950 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
d14a1e28
RD
6951
6952 wxPyEndAllowThreads(__tstate);
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
15afbcd0 6955 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
d14a1e28
RD
6956 return resultobj;
6957 fail:
6958 return NULL;
6959}
6960
6961
6962static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6963 PyObject *resultobj;
6964 wxNativeEncodingInfo *arg1 = 0 ;
6965 bool result;
6966 PyObject * obj0 = 0 ;
6967 char *kwnames[] = {
6968 (char *) "info", NULL
6969 };
6970
6971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
6972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6973 SWIG_POINTER_EXCEPTION | 0)) == -1)
6974 SWIG_fail;
d14a1e28 6975 if (arg1 == NULL) {
15afbcd0
RD
6976 PyErr_SetString(PyExc_TypeError,"null reference");
6977 SWIG_fail;
d14a1e28
RD
6978 }
6979 {
6980 PyThreadState* __tstate = wxPyBeginAllowThreads();
6981 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6982
6983 wxPyEndAllowThreads(__tstate);
6984 if (PyErr_Occurred()) SWIG_fail;
6985 }
4f89f6a3
RD
6986 {
6987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6988 }
d14a1e28
RD
6989 return resultobj;
6990 fail:
6991 return NULL;
6992}
6993
6994
6995static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6996 PyObject *resultobj;
6997 wxFontMapper *result;
6998 char *kwnames[] = {
6999 NULL
7000 };
7001
7002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7003 {
7004 PyThreadState* __tstate = wxPyBeginAllowThreads();
7005 result = (wxFontMapper *)new wxFontMapper();
7006
7007 wxPyEndAllowThreads(__tstate);
7008 if (PyErr_Occurred()) SWIG_fail;
7009 }
15afbcd0 7010 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
d14a1e28
RD
7011 return resultobj;
7012 fail:
7013 return NULL;
7014}
7015
7016
7017static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7018 PyObject *resultobj;
7019 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7020 PyObject * obj0 = 0 ;
7021 char *kwnames[] = {
7022 (char *) "self", NULL
7023 };
7024
7025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
15afbcd0
RD
7026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7028 {
7029 PyThreadState* __tstate = wxPyBeginAllowThreads();
7030 delete arg1;
7031
7032 wxPyEndAllowThreads(__tstate);
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 Py_INCREF(Py_None); resultobj = Py_None;
7036 return resultobj;
7037 fail:
7038 return NULL;
7039}
7040
7041
7042static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7043 PyObject *resultobj;
7044 wxFontMapper *result;
7045 char *kwnames[] = {
7046 NULL
7047 };
7048
7049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7050 {
7051 PyThreadState* __tstate = wxPyBeginAllowThreads();
7052 result = (wxFontMapper *)wxFontMapper::Get();
7053
7054 wxPyEndAllowThreads(__tstate);
7055 if (PyErr_Occurred()) SWIG_fail;
7056 }
15afbcd0 7057 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
d14a1e28
RD
7058 return resultobj;
7059 fail:
7060 return NULL;
7061}
7062
7063
7064static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7065 PyObject *resultobj;
7066 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7067 wxFontMapper *result;
7068 PyObject * obj0 = 0 ;
7069 char *kwnames[] = {
7070 (char *) "mapper", NULL
7071 };
7072
7073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
15afbcd0
RD
7074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7076 {
7077 PyThreadState* __tstate = wxPyBeginAllowThreads();
7078 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7079
7080 wxPyEndAllowThreads(__tstate);
7081 if (PyErr_Occurred()) SWIG_fail;
7082 }
15afbcd0 7083 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
d14a1e28
RD
7084 return resultobj;
7085 fail:
7086 return NULL;
7087}
7088
7089
7090static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7091 PyObject *resultobj;
7092 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7093 wxString *arg2 = 0 ;
e811c8ce 7094 bool arg3 = (bool) True ;
d14a1e28 7095 int result;
e811c8ce 7096 bool temp2 = False ;
d14a1e28
RD
7097 PyObject * obj0 = 0 ;
7098 PyObject * obj1 = 0 ;
7099 PyObject * obj2 = 0 ;
7100 char *kwnames[] = {
7101 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7102 };
7103
7104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
7105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7107 {
7108 arg2 = wxString_in_helper(obj1);
7109 if (arg2 == NULL) SWIG_fail;
e811c8ce 7110 temp2 = True;
d14a1e28
RD
7111 }
7112 if (obj2) {
15afbcd0
RD
7113 arg3 = (bool) SWIG_AsBool(obj2);
7114 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7115 }
7116 {
7117 PyThreadState* __tstate = wxPyBeginAllowThreads();
7118 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7119
7120 wxPyEndAllowThreads(__tstate);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
15afbcd0 7123 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7124 {
7125 if (temp2)
7126 delete arg2;
7127 }
7128 return resultobj;
7129 fail:
7130 {
7131 if (temp2)
7132 delete arg2;
7133 }
7134 return NULL;
7135}
7136
7137
7138static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7139 PyObject *resultobj;
7140 size_t result;
7141 char *kwnames[] = {
7142 NULL
7143 };
7144
7145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7146 {
7147 PyThreadState* __tstate = wxPyBeginAllowThreads();
7148 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7149
7150 wxPyEndAllowThreads(__tstate);
7151 if (PyErr_Occurred()) SWIG_fail;
7152 }
15afbcd0 7153 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
7154 return resultobj;
7155 fail:
7156 return NULL;
7157}
7158
7159
7160static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7161 PyObject *resultobj;
7162 size_t arg1 ;
7163 int result;
7164 PyObject * obj0 = 0 ;
7165 char *kwnames[] = {
7166 (char *) "n", NULL
7167 };
7168
7169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
7170 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7171 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7172 {
7173 PyThreadState* __tstate = wxPyBeginAllowThreads();
7174 result = (int)wxFontMapper::GetEncoding(arg1);
7175
7176 wxPyEndAllowThreads(__tstate);
7177 if (PyErr_Occurred()) SWIG_fail;
7178 }
15afbcd0 7179 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7180 return resultobj;
7181 fail:
7182 return NULL;
7183}
7184
7185
7186static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7187 PyObject *resultobj;
7188 int arg1 ;
7189 wxString result;
994141e6 7190 PyObject * obj0 = 0 ;
d14a1e28
RD
7191 char *kwnames[] = {
7192 (char *) "encoding", NULL
7193 };
7194
994141e6 7195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
15afbcd0
RD
7196 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7197 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7198 {
7199 PyThreadState* __tstate = wxPyBeginAllowThreads();
7200 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7201
7202 wxPyEndAllowThreads(__tstate);
7203 if (PyErr_Occurred()) SWIG_fail;
7204 }
7205 {
7206#if wxUSE_UNICODE
7207 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7208#else
7209 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7210#endif
7211 }
7212 return resultobj;
7213 fail:
7214 return NULL;
7215}
7216
7217
7218static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7219 PyObject *resultobj;
7220 int arg1 ;
7221 wxString result;
994141e6 7222 PyObject * obj0 = 0 ;
d14a1e28
RD
7223 char *kwnames[] = {
7224 (char *) "encoding", NULL
7225 };
7226
994141e6 7227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
15afbcd0
RD
7228 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7229 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7230 {
7231 PyThreadState* __tstate = wxPyBeginAllowThreads();
7232 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7233
7234 wxPyEndAllowThreads(__tstate);
7235 if (PyErr_Occurred()) SWIG_fail;
7236 }
7237 {
7238#if wxUSE_UNICODE
7239 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7240#else
7241 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7242#endif
7243 }
7244 return resultobj;
7245 fail:
7246 return NULL;
7247}
7248
7249
b2df227b
RD
7250static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7251 PyObject *resultobj;
7252 wxString *arg1 = 0 ;
7253 int result;
7254 bool temp1 = False ;
7255 PyObject * obj0 = 0 ;
7256 char *kwnames[] = {
7257 (char *) "name", NULL
7258 };
7259
7260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7261 {
7262 arg1 = wxString_in_helper(obj0);
7263 if (arg1 == NULL) SWIG_fail;
7264 temp1 = True;
7265 }
7266 {
7267 PyThreadState* __tstate = wxPyBeginAllowThreads();
7268 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7269
7270 wxPyEndAllowThreads(__tstate);
7271 if (PyErr_Occurred()) SWIG_fail;
7272 }
7273 resultobj = SWIG_FromInt((int)result);
7274 {
7275 if (temp1)
7276 delete arg1;
7277 }
7278 return resultobj;
7279 fail:
7280 {
7281 if (temp1)
7282 delete arg1;
7283 }
7284 return NULL;
7285}
7286
7287
d14a1e28
RD
7288static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7289 PyObject *resultobj;
7290 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7291 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7292 PyObject * obj0 = 0 ;
7293 PyObject * obj1 = 0 ;
7294 char *kwnames[] = {
7295 (char *) "self",(char *) "config", NULL
7296 };
7297
7298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7301 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7303 {
7304 PyThreadState* __tstate = wxPyBeginAllowThreads();
7305 (arg1)->SetConfig(arg2);
7306
7307 wxPyEndAllowThreads(__tstate);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 Py_INCREF(Py_None); resultobj = Py_None;
7311 return resultobj;
7312 fail:
7313 return NULL;
7314}
7315
7316
7317static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7318 PyObject *resultobj;
7319 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7320 wxString *arg2 = 0 ;
e811c8ce 7321 bool temp2 = False ;
d14a1e28
RD
7322 PyObject * obj0 = 0 ;
7323 PyObject * obj1 = 0 ;
7324 char *kwnames[] = {
7325 (char *) "self",(char *) "prefix", NULL
7326 };
7327
7328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7331 {
7332 arg2 = wxString_in_helper(obj1);
7333 if (arg2 == NULL) SWIG_fail;
e811c8ce 7334 temp2 = True;
d14a1e28
RD
7335 }
7336 {
7337 PyThreadState* __tstate = wxPyBeginAllowThreads();
7338 (arg1)->SetConfigPath((wxString const &)*arg2);
7339
7340 wxPyEndAllowThreads(__tstate);
7341 if (PyErr_Occurred()) SWIG_fail;
7342 }
7343 Py_INCREF(Py_None); resultobj = Py_None;
7344 {
7345 if (temp2)
7346 delete arg2;
7347 }
7348 return resultobj;
7349 fail:
7350 {
7351 if (temp2)
7352 delete arg2;
7353 }
7354 return NULL;
7355}
7356
7357
7358static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7359 PyObject *resultobj;
7360 wxString result;
7361 char *kwnames[] = {
7362 NULL
7363 };
7364
7365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7366 {
7367 PyThreadState* __tstate = wxPyBeginAllowThreads();
7368 result = wxFontMapper::GetDefaultConfigPath();
7369
7370 wxPyEndAllowThreads(__tstate);
7371 if (PyErr_Occurred()) SWIG_fail;
7372 }
7373 {
7374#if wxUSE_UNICODE
7375 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7376#else
7377 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7378#endif
7379 }
7380 return resultobj;
7381 fail:
7382 return NULL;
7383}
7384
7385
7386static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7387 PyObject *resultobj;
7388 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7389 int arg2 ;
7390 wxString const &arg3_defvalue = wxPyEmptyString ;
7391 wxString *arg3 = (wxString *) &arg3_defvalue ;
e811c8ce 7392 bool arg4 = (bool) True ;
d14a1e28 7393 PyObject *result;
e811c8ce 7394 bool temp3 = False ;
d14a1e28 7395 PyObject * obj0 = 0 ;
994141e6 7396 PyObject * obj1 = 0 ;
d14a1e28
RD
7397 PyObject * obj2 = 0 ;
7398 PyObject * obj3 = 0 ;
7399 char *kwnames[] = {
7400 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7401 };
7402
994141e6 7403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
7404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7406 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7407 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7408 if (obj2) {
7409 {
7410 arg3 = wxString_in_helper(obj2);
7411 if (arg3 == NULL) SWIG_fail;
e811c8ce 7412 temp3 = True;
d14a1e28
RD
7413 }
7414 }
7415 if (obj3) {
15afbcd0
RD
7416 arg4 = (bool) SWIG_AsBool(obj3);
7417 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7418 }
7419 {
7420 PyThreadState* __tstate = wxPyBeginAllowThreads();
7421 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7422
7423 wxPyEndAllowThreads(__tstate);
7424 if (PyErr_Occurred()) SWIG_fail;
7425 }
7426 resultobj = result;
7427 {
7428 if (temp3)
7429 delete arg3;
7430 }
7431 return resultobj;
7432 fail:
7433 {
7434 if (temp3)
7435 delete arg3;
7436 }
7437 return NULL;
7438}
7439
7440
7441static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7442 PyObject *resultobj;
7443 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7444 int arg2 ;
7445 wxString const &arg3_defvalue = wxPyEmptyString ;
7446 wxString *arg3 = (wxString *) &arg3_defvalue ;
7447 bool result;
e811c8ce 7448 bool temp3 = False ;
d14a1e28 7449 PyObject * obj0 = 0 ;
994141e6 7450 PyObject * obj1 = 0 ;
d14a1e28
RD
7451 PyObject * obj2 = 0 ;
7452 char *kwnames[] = {
7453 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7454 };
7455
994141e6 7456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
7457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7459 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7460 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7461 if (obj2) {
7462 {
7463 arg3 = wxString_in_helper(obj2);
7464 if (arg3 == NULL) SWIG_fail;
e811c8ce 7465 temp3 = True;
d14a1e28
RD
7466 }
7467 }
7468 {
7469 PyThreadState* __tstate = wxPyBeginAllowThreads();
7470 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7471
7472 wxPyEndAllowThreads(__tstate);
7473 if (PyErr_Occurred()) SWIG_fail;
7474 }
4f89f6a3
RD
7475 {
7476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7477 }
d14a1e28
RD
7478 {
7479 if (temp3)
7480 delete arg3;
7481 }
7482 return resultobj;
7483 fail:
7484 {
7485 if (temp3)
7486 delete arg3;
7487 }
7488 return NULL;
7489}
7490
7491
7492static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7493 PyObject *resultobj;
7494 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7495 wxWindow *arg2 = (wxWindow *) 0 ;
7496 PyObject * obj0 = 0 ;
7497 PyObject * obj1 = 0 ;
7498 char *kwnames[] = {
7499 (char *) "self",(char *) "parent", NULL
7500 };
7501
7502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7507 {
7508 PyThreadState* __tstate = wxPyBeginAllowThreads();
7509 (arg1)->SetDialogParent(arg2);
7510
7511 wxPyEndAllowThreads(__tstate);
7512 if (PyErr_Occurred()) SWIG_fail;
7513 }
7514 Py_INCREF(Py_None); resultobj = Py_None;
7515 return resultobj;
7516 fail:
7517 return NULL;
7518}
7519
7520
7521static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7522 PyObject *resultobj;
7523 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7524 wxString *arg2 = 0 ;
e811c8ce 7525 bool temp2 = False ;
d14a1e28
RD
7526 PyObject * obj0 = 0 ;
7527 PyObject * obj1 = 0 ;
7528 char *kwnames[] = {
7529 (char *) "self",(char *) "title", NULL
7530 };
7531
7532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7535 {
7536 arg2 = wxString_in_helper(obj1);
7537 if (arg2 == NULL) SWIG_fail;
e811c8ce 7538 temp2 = True;
d14a1e28
RD
7539 }
7540 {
7541 PyThreadState* __tstate = wxPyBeginAllowThreads();
7542 (arg1)->SetDialogTitle((wxString const &)*arg2);
7543
7544 wxPyEndAllowThreads(__tstate);
7545 if (PyErr_Occurred()) SWIG_fail;
7546 }
7547 Py_INCREF(Py_None); resultobj = Py_None;
7548 {
7549 if (temp2)
7550 delete arg2;
7551 }
7552 return resultobj;
7553 fail:
7554 {
7555 if (temp2)
7556 delete arg2;
7557 }
7558 return NULL;
7559}
7560
7561
7562static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7563 PyObject *obj;
7564 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7565 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7566 Py_INCREF(obj);
7567 return Py_BuildValue((char *)"");
7568}
7569static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7570 PyObject *resultobj;
7571 int arg1 ;
7572 int arg2 ;
7573 int arg3 ;
7574 int arg4 ;
e811c8ce 7575 bool arg5 = (bool) False ;
d14a1e28
RD
7576 wxString const &arg6_defvalue = wxPyEmptyString ;
7577 wxString *arg6 = (wxString *) &arg6_defvalue ;
7578 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7579 wxFont *result;
e811c8ce 7580 bool temp6 = False ;
994141e6
RD
7581 PyObject * obj0 = 0 ;
7582 PyObject * obj1 = 0 ;
7583 PyObject * obj2 = 0 ;
7584 PyObject * obj3 = 0 ;
d14a1e28
RD
7585 PyObject * obj4 = 0 ;
7586 PyObject * obj5 = 0 ;
994141e6 7587 PyObject * obj6 = 0 ;
d14a1e28
RD
7588 char *kwnames[] = {
7589 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7590 };
7591
994141e6 7592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15afbcd0
RD
7593 arg1 = (int) SWIG_AsInt(obj0);
7594 if (PyErr_Occurred()) SWIG_fail;
7595 arg2 = (int) SWIG_AsInt(obj1);
7596 if (PyErr_Occurred()) SWIG_fail;
7597 arg3 = (int) SWIG_AsInt(obj2);
7598 if (PyErr_Occurred()) SWIG_fail;
7599 arg4 = (int) SWIG_AsInt(obj3);
7600 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 7601 if (obj4) {
15afbcd0
RD
7602 arg5 = (bool) SWIG_AsBool(obj4);
7603 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7604 }
7605 if (obj5) {
7606 {
7607 arg6 = wxString_in_helper(obj5);
7608 if (arg6 == NULL) SWIG_fail;
e811c8ce 7609 temp6 = True;
d14a1e28
RD
7610 }
7611 }
994141e6 7612 if (obj6) {
15afbcd0
RD
7613 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7614 if (PyErr_Occurred()) SWIG_fail;
994141e6 7615 }
d14a1e28 7616 {
e3b71cb8 7617 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
7618 PyThreadState* __tstate = wxPyBeginAllowThreads();
7619 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7620
7621 wxPyEndAllowThreads(__tstate);
110da5b0 7622 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 7623 }
15afbcd0 7624 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
7625 {
7626 if (temp6)
7627 delete arg6;
7628 }
7629 return resultobj;
7630 fail:
7631 {
7632 if (temp6)
7633 delete arg6;
7634 }
7635 return NULL;
7636}
7637
7638
7639static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7640 PyObject *resultobj;
7641 wxFont *arg1 = (wxFont *) 0 ;
7642 PyObject * obj0 = 0 ;
7643 char *kwnames[] = {
7644 (char *) "self", NULL
7645 };
7646
7647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
15afbcd0
RD
7648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7650 {
7651 PyThreadState* __tstate = wxPyBeginAllowThreads();
7652 delete arg1;
7653
7654 wxPyEndAllowThreads(__tstate);
7655 if (PyErr_Occurred()) SWIG_fail;
7656 }
7657 Py_INCREF(Py_None); resultobj = Py_None;
7658 return resultobj;
7659 fail:
7660 return NULL;
7661}
7662
7663
7664static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7665 PyObject *resultobj;
7666 wxNativeFontInfo *arg1 = 0 ;
7667 wxFont *result;
7668 PyObject * obj0 = 0 ;
7669 char *kwnames[] = {
7670 (char *) "info", NULL
7671 };
7672
7673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
7674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7675 SWIG_POINTER_EXCEPTION | 0)) == -1)
7676 SWIG_fail;
d14a1e28 7677 if (arg1 == NULL) {
15afbcd0
RD
7678 PyErr_SetString(PyExc_TypeError,"null reference");
7679 SWIG_fail;
d14a1e28
RD
7680 }
7681 {
e3b71cb8 7682 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
7683 PyThreadState* __tstate = wxPyBeginAllowThreads();
7684 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7685
7686 wxPyEndAllowThreads(__tstate);
110da5b0 7687 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 7688 }
15afbcd0 7689 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
7690 return resultobj;
7691 fail:
7692 return NULL;
7693}
7694
7695
7696static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7697 PyObject *resultobj;
7698 wxString *arg1 = 0 ;
7699 wxFont *result;
e811c8ce 7700 bool temp1 = False ;
d14a1e28
RD
7701 PyObject * obj0 = 0 ;
7702 char *kwnames[] = {
7703 (char *) "info", NULL
7704 };
7705
7706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7707 {
7708 arg1 = wxString_in_helper(obj0);
7709 if (arg1 == NULL) SWIG_fail;
e811c8ce 7710 temp1 = True;
d14a1e28
RD
7711 }
7712 {
e3b71cb8 7713 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
7714 PyThreadState* __tstate = wxPyBeginAllowThreads();
7715 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7716
7717 wxPyEndAllowThreads(__tstate);
110da5b0 7718 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 7719 }
15afbcd0 7720 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
7721 {
7722 if (temp1)
7723 delete arg1;
7724 }
7725 return resultobj;
7726 fail:
7727 {
7728 if (temp1)
7729 delete arg1;
7730 }
7731 return NULL;
7732}
7733
7734
7735static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7736 PyObject *resultobj;
7737 int arg1 ;
7738 int arg2 ;
7739 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7740 wxString const &arg4_defvalue = wxPyEmptyString ;
7741 wxString *arg4 = (wxString *) &arg4_defvalue ;
7742 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7743 wxFont *result;
e811c8ce 7744 bool temp4 = False ;
994141e6
RD
7745 PyObject * obj0 = 0 ;
7746 PyObject * obj1 = 0 ;
7747 PyObject * obj2 = 0 ;
d14a1e28 7748 PyObject * obj3 = 0 ;
994141e6 7749 PyObject * obj4 = 0 ;
d14a1e28
RD
7750 char *kwnames[] = {
7751 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7752 };
7753
994141e6 7754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
7755 arg1 = (int) SWIG_AsInt(obj0);
7756 if (PyErr_Occurred()) SWIG_fail;
7757 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7758 if (PyErr_Occurred()) SWIG_fail;
994141e6 7759 if (obj2) {
15afbcd0
RD
7760 arg3 = (int) SWIG_AsInt(obj2);
7761 if (PyErr_Occurred()) SWIG_fail;
994141e6 7762 }
d14a1e28
RD
7763 if (obj3) {
7764 {
7765 arg4 = wxString_in_helper(obj3);
7766 if (arg4 == NULL) SWIG_fail;
e811c8ce 7767 temp4 = True;
d14a1e28
RD
7768 }
7769 }
994141e6 7770 if (obj4) {
15afbcd0
RD
7771 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7772 if (PyErr_Occurred()) SWIG_fail;
994141e6 7773 }
d14a1e28 7774 {
e3b71cb8 7775 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
7776 PyThreadState* __tstate = wxPyBeginAllowThreads();
7777 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7778
7779 wxPyEndAllowThreads(__tstate);
110da5b0 7780 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 7781 }
15afbcd0 7782 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
7783 {
7784 if (temp4)
7785 delete arg4;
7786 }
7787 return resultobj;
7788 fail:
7789 {
7790 if (temp4)
7791 delete arg4;
7792 }
7793 return NULL;
7794}
7795
7796
7797static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7798 PyObject *resultobj;
7799 wxFont *arg1 = (wxFont *) 0 ;
7800 bool result;
7801 PyObject * obj0 = 0 ;
7802 char *kwnames[] = {
7803 (char *) "self", NULL
7804 };
7805
7806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
7807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7809 {
7810 PyThreadState* __tstate = wxPyBeginAllowThreads();
7811 result = (bool)((wxFont const *)arg1)->Ok();
7812
7813 wxPyEndAllowThreads(__tstate);
7814 if (PyErr_Occurred()) SWIG_fail;
7815 }
4f89f6a3
RD
7816 {
7817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7818 }
d14a1e28
RD
7819 return resultobj;
7820 fail:
7821 return NULL;
7822}
7823
7824
7825static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7826 PyObject *resultobj;
7827 wxFont *arg1 = (wxFont *) 0 ;
22faec7d 7828 wxFont *arg2 = (wxFont *) 0 ;
d14a1e28
RD
7829 bool result;
7830 PyObject * obj0 = 0 ;
7831 PyObject * obj1 = 0 ;
7832 char *kwnames[] = {
22faec7d 7833 (char *) "self",(char *) "other", NULL
d14a1e28
RD
7834 };
7835
7836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7839 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7841 {
7842 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 7843 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
d14a1e28
RD
7844
7845 wxPyEndAllowThreads(__tstate);
7846 if (PyErr_Occurred()) SWIG_fail;
7847 }
4f89f6a3
RD
7848 {
7849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7850 }
d14a1e28
RD
7851 return resultobj;
7852 fail:
7853 return NULL;
7854}
7855
7856
7857static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7858 PyObject *resultobj;
7859 wxFont *arg1 = (wxFont *) 0 ;
22faec7d 7860 wxFont *arg2 = (wxFont *) 0 ;
d14a1e28
RD
7861 bool result;
7862 PyObject * obj0 = 0 ;
7863 PyObject * obj1 = 0 ;
7864 char *kwnames[] = {
22faec7d 7865 (char *) "self",(char *) "other", NULL
d14a1e28
RD
7866 };
7867
7868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7871 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7873 {
7874 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 7875 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
d14a1e28
RD
7876
7877 wxPyEndAllowThreads(__tstate);
7878 if (PyErr_Occurred()) SWIG_fail;
7879 }
4f89f6a3
RD
7880 {
7881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7882 }
d14a1e28
RD
7883 return resultobj;
7884 fail:
7885 return NULL;
7886}
7887
7888
7889static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7890 PyObject *resultobj;
7891 wxFont *arg1 = (wxFont *) 0 ;
7892 int result;
7893 PyObject * obj0 = 0 ;
7894 char *kwnames[] = {
7895 (char *) "self", NULL
7896 };
7897
7898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
15afbcd0
RD
7899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7901 {
7902 PyThreadState* __tstate = wxPyBeginAllowThreads();
7903 result = (int)((wxFont const *)arg1)->GetPointSize();
7904
7905 wxPyEndAllowThreads(__tstate);
7906 if (PyErr_Occurred()) SWIG_fail;
7907 }
15afbcd0 7908 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7909 return resultobj;
7910 fail:
7911 return NULL;
7912}
7913
7914
7915static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7916 PyObject *resultobj;
7917 wxFont *arg1 = (wxFont *) 0 ;
7918 int result;
7919 PyObject * obj0 = 0 ;
7920 char *kwnames[] = {
7921 (char *) "self", NULL
7922 };
7923
7924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
15afbcd0
RD
7925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7927 {
7928 PyThreadState* __tstate = wxPyBeginAllowThreads();
7929 result = (int)((wxFont const *)arg1)->GetFamily();
7930
7931 wxPyEndAllowThreads(__tstate);
7932 if (PyErr_Occurred()) SWIG_fail;
7933 }
15afbcd0 7934 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7935 return resultobj;
7936 fail:
7937 return NULL;
7938}
7939
7940
7941static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7942 PyObject *resultobj;
7943 wxFont *arg1 = (wxFont *) 0 ;
7944 int result;
7945 PyObject * obj0 = 0 ;
7946 char *kwnames[] = {
7947 (char *) "self", NULL
7948 };
7949
7950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
15afbcd0
RD
7951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7953 {
7954 PyThreadState* __tstate = wxPyBeginAllowThreads();
7955 result = (int)((wxFont const *)arg1)->GetStyle();
7956
7957 wxPyEndAllowThreads(__tstate);
7958 if (PyErr_Occurred()) SWIG_fail;
7959 }
15afbcd0 7960 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7961 return resultobj;
7962 fail:
7963 return NULL;
7964}
7965
7966
7967static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7968 PyObject *resultobj;
7969 wxFont *arg1 = (wxFont *) 0 ;
7970 int result;
7971 PyObject * obj0 = 0 ;
7972 char *kwnames[] = {
7973 (char *) "self", NULL
7974 };
7975
7976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
7977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7979 {
7980 PyThreadState* __tstate = wxPyBeginAllowThreads();
7981 result = (int)((wxFont const *)arg1)->GetWeight();
7982
7983 wxPyEndAllowThreads(__tstate);
7984 if (PyErr_Occurred()) SWIG_fail;
7985 }
15afbcd0 7986 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
7987 return resultobj;
7988 fail:
7989 return NULL;
7990}
7991
7992
7993static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7994 PyObject *resultobj;
7995 wxFont *arg1 = (wxFont *) 0 ;
7996 bool result;
7997 PyObject * obj0 = 0 ;
7998 char *kwnames[] = {
7999 (char *) "self", NULL
8000 };
8001
8002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
15afbcd0
RD
8003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8005 {
8006 PyThreadState* __tstate = wxPyBeginAllowThreads();
8007 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8008
8009 wxPyEndAllowThreads(__tstate);
8010 if (PyErr_Occurred()) SWIG_fail;
8011 }
4f89f6a3
RD
8012 {
8013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8014 }
d14a1e28
RD
8015 return resultobj;
8016 fail:
8017 return NULL;
8018}
8019
8020
8021static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8022 PyObject *resultobj;
8023 wxFont *arg1 = (wxFont *) 0 ;
8024 wxString result;
8025 PyObject * obj0 = 0 ;
8026 char *kwnames[] = {
8027 (char *) "self", NULL
8028 };
8029
8030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
15afbcd0
RD
8031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8033 {
8034 PyThreadState* __tstate = wxPyBeginAllowThreads();
8035 result = ((wxFont const *)arg1)->GetFaceName();
8036
8037 wxPyEndAllowThreads(__tstate);
8038 if (PyErr_Occurred()) SWIG_fail;
8039 }
8040 {
8041#if wxUSE_UNICODE
8042 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8043#else
8044 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8045#endif
8046 }
8047 return resultobj;
8048 fail:
8049 return NULL;
8050}
8051
8052
8053static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8054 PyObject *resultobj;
8055 wxFont *arg1 = (wxFont *) 0 ;
8056 int result;
8057 PyObject * obj0 = 0 ;
8058 char *kwnames[] = {
8059 (char *) "self", NULL
8060 };
8061
8062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
8063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8065 {
8066 PyThreadState* __tstate = wxPyBeginAllowThreads();
8067 result = (int)((wxFont const *)arg1)->GetEncoding();
8068
8069 wxPyEndAllowThreads(__tstate);
8070 if (PyErr_Occurred()) SWIG_fail;
8071 }
15afbcd0 8072 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8073 return resultobj;
8074 fail:
8075 return NULL;
8076}
8077
8078
8079static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8080 PyObject *resultobj;
8081 wxFont *arg1 = (wxFont *) 0 ;
8082 wxNativeFontInfo *result;
8083 PyObject * obj0 = 0 ;
8084 char *kwnames[] = {
8085 (char *) "self", NULL
8086 };
8087
8088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
8089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8091 {
8092 PyThreadState* __tstate = wxPyBeginAllowThreads();
8093 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8094
8095 wxPyEndAllowThreads(__tstate);
8096 if (PyErr_Occurred()) SWIG_fail;
8097 }
15afbcd0 8098 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
d14a1e28
RD
8099 return resultobj;
8100 fail:
8101 return NULL;
8102}
8103
8104
8105static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8106 PyObject *resultobj;
8107 wxFont *arg1 = (wxFont *) 0 ;
8108 bool result;
8109 PyObject * obj0 = 0 ;
8110 char *kwnames[] = {
8111 (char *) "self", NULL
8112 };
8113
8114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
8115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8117 {
8118 PyThreadState* __tstate = wxPyBeginAllowThreads();
8119 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8120
8121 wxPyEndAllowThreads(__tstate);
8122 if (PyErr_Occurred()) SWIG_fail;
8123 }
4f89f6a3
RD
8124 {
8125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8126 }
d14a1e28
RD
8127 return resultobj;
8128 fail:
8129 return NULL;
8130}
8131
8132
8133static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8134 PyObject *resultobj;
8135 wxFont *arg1 = (wxFont *) 0 ;
8136 wxString result;
8137 PyObject * obj0 = 0 ;
8138 char *kwnames[] = {
8139 (char *) "self", NULL
8140 };
8141
8142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
15afbcd0
RD
8143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8145 {
8146 PyThreadState* __tstate = wxPyBeginAllowThreads();
8147 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8148
8149 wxPyEndAllowThreads(__tstate);
8150 if (PyErr_Occurred()) SWIG_fail;
8151 }
8152 {
8153#if wxUSE_UNICODE
8154 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8155#else
8156 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8157#endif
8158 }
8159 return resultobj;
8160 fail:
8161 return NULL;
8162}
8163
8164
8165static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8166 PyObject *resultobj;
8167 wxFont *arg1 = (wxFont *) 0 ;
8168 wxString result;
8169 PyObject * obj0 = 0 ;
8170 char *kwnames[] = {
8171 (char *) "self", NULL
8172 };
8173
8174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
15afbcd0
RD
8175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8177 {
8178 PyThreadState* __tstate = wxPyBeginAllowThreads();
8179 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8180
8181 wxPyEndAllowThreads(__tstate);
8182 if (PyErr_Occurred()) SWIG_fail;
8183 }
8184 {
8185#if wxUSE_UNICODE
8186 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8187#else
8188 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8189#endif
8190 }
8191 return resultobj;
8192 fail:
8193 return NULL;
8194}
8195
8196
8197static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8198 PyObject *resultobj;
8199 wxFont *arg1 = (wxFont *) 0 ;
8200 int arg2 ;
8201 PyObject * obj0 = 0 ;
994141e6 8202 PyObject * obj1 = 0 ;
d14a1e28
RD
8203 char *kwnames[] = {
8204 (char *) "self",(char *) "pointSize", NULL
8205 };
8206
994141e6 8207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8210 arg2 = (int) SWIG_AsInt(obj1);
8211 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8212 {
8213 PyThreadState* __tstate = wxPyBeginAllowThreads();
8214 (arg1)->SetPointSize(arg2);
8215
8216 wxPyEndAllowThreads(__tstate);
8217 if (PyErr_Occurred()) SWIG_fail;
8218 }
8219 Py_INCREF(Py_None); resultobj = Py_None;
8220 return resultobj;
8221 fail:
8222 return NULL;
8223}
8224
8225
8226static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8227 PyObject *resultobj;
8228 wxFont *arg1 = (wxFont *) 0 ;
8229 int arg2 ;
8230 PyObject * obj0 = 0 ;
994141e6 8231 PyObject * obj1 = 0 ;
d14a1e28
RD
8232 char *kwnames[] = {
8233 (char *) "self",(char *) "family", NULL
8234 };
8235
994141e6 8236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8239 arg2 = (int) SWIG_AsInt(obj1);
8240 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8241 {
8242 PyThreadState* __tstate = wxPyBeginAllowThreads();
8243 (arg1)->SetFamily(arg2);
8244
8245 wxPyEndAllowThreads(__tstate);
8246 if (PyErr_Occurred()) SWIG_fail;
8247 }
8248 Py_INCREF(Py_None); resultobj = Py_None;
8249 return resultobj;
8250 fail:
8251 return NULL;
8252}
8253
8254
8255static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8256 PyObject *resultobj;
8257 wxFont *arg1 = (wxFont *) 0 ;
8258 int arg2 ;
8259 PyObject * obj0 = 0 ;
994141e6 8260 PyObject * obj1 = 0 ;
d14a1e28
RD
8261 char *kwnames[] = {
8262 (char *) "self",(char *) "style", NULL
8263 };
8264
994141e6 8265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8268 arg2 = (int) SWIG_AsInt(obj1);
8269 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8270 {
8271 PyThreadState* __tstate = wxPyBeginAllowThreads();
8272 (arg1)->SetStyle(arg2);
8273
8274 wxPyEndAllowThreads(__tstate);
8275 if (PyErr_Occurred()) SWIG_fail;
8276 }
8277 Py_INCREF(Py_None); resultobj = Py_None;
8278 return resultobj;
8279 fail:
8280 return NULL;
8281}
8282
8283
8284static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8285 PyObject *resultobj;
8286 wxFont *arg1 = (wxFont *) 0 ;
8287 int arg2 ;
8288 PyObject * obj0 = 0 ;
994141e6 8289 PyObject * obj1 = 0 ;
d14a1e28
RD
8290 char *kwnames[] = {
8291 (char *) "self",(char *) "weight", NULL
8292 };
8293
994141e6 8294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8297 arg2 = (int) SWIG_AsInt(obj1);
8298 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8299 {
8300 PyThreadState* __tstate = wxPyBeginAllowThreads();
8301 (arg1)->SetWeight(arg2);
8302
8303 wxPyEndAllowThreads(__tstate);
8304 if (PyErr_Occurred()) SWIG_fail;
8305 }
8306 Py_INCREF(Py_None); resultobj = Py_None;
8307 return resultobj;
8308 fail:
8309 return NULL;
8310}
8311
8312
8313static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8314 PyObject *resultobj;
8315 wxFont *arg1 = (wxFont *) 0 ;
8316 wxString *arg2 = 0 ;
e811c8ce 8317 bool temp2 = False ;
d14a1e28
RD
8318 PyObject * obj0 = 0 ;
8319 PyObject * obj1 = 0 ;
8320 char *kwnames[] = {
8321 (char *) "self",(char *) "faceName", NULL
8322 };
8323
8324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8327 {
8328 arg2 = wxString_in_helper(obj1);
8329 if (arg2 == NULL) SWIG_fail;
e811c8ce 8330 temp2 = True;
d14a1e28
RD
8331 }
8332 {
8333 PyThreadState* __tstate = wxPyBeginAllowThreads();
8334 (arg1)->SetFaceName((wxString const &)*arg2);
8335
8336 wxPyEndAllowThreads(__tstate);
8337 if (PyErr_Occurred()) SWIG_fail;
8338 }
8339 Py_INCREF(Py_None); resultobj = Py_None;
8340 {
8341 if (temp2)
8342 delete arg2;
8343 }
8344 return resultobj;
8345 fail:
8346 {
8347 if (temp2)
8348 delete arg2;
8349 }
8350 return NULL;
8351}
8352
8353
8354static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8355 PyObject *resultobj;
8356 wxFont *arg1 = (wxFont *) 0 ;
8357 bool arg2 ;
8358 PyObject * obj0 = 0 ;
8359 PyObject * obj1 = 0 ;
8360 char *kwnames[] = {
8361 (char *) "self",(char *) "underlined", NULL
8362 };
8363
8364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8367 arg2 = (bool) SWIG_AsBool(obj1);
8368 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8369 {
8370 PyThreadState* __tstate = wxPyBeginAllowThreads();
8371 (arg1)->SetUnderlined(arg2);
8372
8373 wxPyEndAllowThreads(__tstate);
8374 if (PyErr_Occurred()) SWIG_fail;
8375 }
8376 Py_INCREF(Py_None); resultobj = Py_None;
8377 return resultobj;
8378 fail:
8379 return NULL;
8380}
8381
8382
8383static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8384 PyObject *resultobj;
8385 wxFont *arg1 = (wxFont *) 0 ;
8386 int arg2 ;
8387 PyObject * obj0 = 0 ;
994141e6 8388 PyObject * obj1 = 0 ;
d14a1e28
RD
8389 char *kwnames[] = {
8390 (char *) "self",(char *) "encoding", NULL
8391 };
8392
994141e6 8393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8396 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8397 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8398 {
8399 PyThreadState* __tstate = wxPyBeginAllowThreads();
8400 (arg1)->SetEncoding((wxFontEncoding )arg2);
8401
8402 wxPyEndAllowThreads(__tstate);
8403 if (PyErr_Occurred()) SWIG_fail;
8404 }
8405 Py_INCREF(Py_None); resultobj = Py_None;
8406 return resultobj;
8407 fail:
8408 return NULL;
8409}
8410
8411
8412static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8413 PyObject *resultobj;
8414 wxFont *arg1 = (wxFont *) 0 ;
8415 wxNativeFontInfo *arg2 = 0 ;
8416 PyObject * obj0 = 0 ;
8417 PyObject * obj1 = 0 ;
8418 char *kwnames[] = {
8419 (char *) "self",(char *) "info", NULL
8420 };
8421
8422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8425 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8426 SWIG_POINTER_EXCEPTION | 0)) == -1)
8427 SWIG_fail;
d14a1e28 8428 if (arg2 == NULL) {
15afbcd0
RD
8429 PyErr_SetString(PyExc_TypeError,"null reference");
8430 SWIG_fail;
d14a1e28
RD
8431 }
8432 {
8433 PyThreadState* __tstate = wxPyBeginAllowThreads();
8434 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8435
8436 wxPyEndAllowThreads(__tstate);
8437 if (PyErr_Occurred()) SWIG_fail;
8438 }
8439 Py_INCREF(Py_None); resultobj = Py_None;
8440 return resultobj;
8441 fail:
8442 return NULL;
8443}
8444
8445
8446static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8447 PyObject *resultobj;
8448 wxFont *arg1 = (wxFont *) 0 ;
8449 wxString *arg2 = 0 ;
e811c8ce 8450 bool temp2 = False ;
d14a1e28
RD
8451 PyObject * obj0 = 0 ;
8452 PyObject * obj1 = 0 ;
8453 char *kwnames[] = {
8454 (char *) "self",(char *) "info", NULL
8455 };
8456
8457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8460 {
8461 arg2 = wxString_in_helper(obj1);
8462 if (arg2 == NULL) SWIG_fail;
e811c8ce 8463 temp2 = True;
d14a1e28
RD
8464 }
8465 {
8466 PyThreadState* __tstate = wxPyBeginAllowThreads();
8467 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8468
8469 wxPyEndAllowThreads(__tstate);
8470 if (PyErr_Occurred()) SWIG_fail;
8471 }
8472 Py_INCREF(Py_None); resultobj = Py_None;
8473 {
8474 if (temp2)
8475 delete arg2;
8476 }
8477 return resultobj;
8478 fail:
8479 {
8480 if (temp2)
8481 delete arg2;
8482 }
8483 return NULL;
8484}
8485
8486
8487static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8488 PyObject *resultobj;
8489 wxFont *arg1 = (wxFont *) 0 ;
8490 wxString *arg2 = 0 ;
e811c8ce 8491 bool temp2 = False ;
d14a1e28
RD
8492 PyObject * obj0 = 0 ;
8493 PyObject * obj1 = 0 ;
8494 char *kwnames[] = {
8495 (char *) "self",(char *) "info", NULL
8496 };
8497
8498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8501 {
8502 arg2 = wxString_in_helper(obj1);
8503 if (arg2 == NULL) SWIG_fail;
e811c8ce 8504 temp2 = True;
d14a1e28
RD
8505 }
8506 {
8507 PyThreadState* __tstate = wxPyBeginAllowThreads();
8508 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8509
8510 wxPyEndAllowThreads(__tstate);
8511 if (PyErr_Occurred()) SWIG_fail;
8512 }
8513 Py_INCREF(Py_None); resultobj = Py_None;
8514 {
8515 if (temp2)
8516 delete arg2;
8517 }
8518 return resultobj;
8519 fail:
8520 {
8521 if (temp2)
8522 delete arg2;
8523 }
8524 return NULL;
8525}
8526
8527
8528static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8529 PyObject *resultobj;
8530 wxFont *arg1 = (wxFont *) 0 ;
8531 wxString result;
8532 PyObject * obj0 = 0 ;
8533 char *kwnames[] = {
8534 (char *) "self", NULL
8535 };
8536
8537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
15afbcd0
RD
8538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8540 {
8541 PyThreadState* __tstate = wxPyBeginAllowThreads();
8542 result = ((wxFont const *)arg1)->GetFamilyString();
8543
8544 wxPyEndAllowThreads(__tstate);
8545 if (PyErr_Occurred()) SWIG_fail;
8546 }
8547 {
8548#if wxUSE_UNICODE
8549 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8550#else
8551 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8552#endif
8553 }
8554 return resultobj;
8555 fail:
8556 return NULL;
8557}
8558
8559
8560static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8561 PyObject *resultobj;
8562 wxFont *arg1 = (wxFont *) 0 ;
8563 wxString result;
8564 PyObject * obj0 = 0 ;
8565 char *kwnames[] = {
8566 (char *) "self", NULL
8567 };
8568
8569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
15afbcd0
RD
8570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8572 {
8573 PyThreadState* __tstate = wxPyBeginAllowThreads();
8574 result = ((wxFont const *)arg1)->GetStyleString();
8575
8576 wxPyEndAllowThreads(__tstate);
8577 if (PyErr_Occurred()) SWIG_fail;
8578 }
8579 {
8580#if wxUSE_UNICODE
8581 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8582#else
8583 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8584#endif
8585 }
8586 return resultobj;
8587 fail:
8588 return NULL;
8589}
8590
8591
8592static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8593 PyObject *resultobj;
8594 wxFont *arg1 = (wxFont *) 0 ;
8595 wxString result;
8596 PyObject * obj0 = 0 ;
8597 char *kwnames[] = {
8598 (char *) "self", NULL
8599 };
8600
8601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
15afbcd0
RD
8602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8604 {
8605 PyThreadState* __tstate = wxPyBeginAllowThreads();
8606 result = ((wxFont const *)arg1)->GetWeightString();
8607
8608 wxPyEndAllowThreads(__tstate);
8609 if (PyErr_Occurred()) SWIG_fail;
8610 }
8611 {
8612#if wxUSE_UNICODE
8613 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8614#else
8615 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8616#endif
8617 }
8618 return resultobj;
8619 fail:
8620 return NULL;
8621}
8622
8623
8624static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8625 PyObject *resultobj;
8626 wxFont *arg1 = (wxFont *) 0 ;
e811c8ce 8627 bool arg2 = (bool) True ;
d14a1e28
RD
8628 PyObject * obj0 = 0 ;
8629 PyObject * obj1 = 0 ;
8630 char *kwnames[] = {
8631 (char *) "self",(char *) "no", NULL
8632 };
8633
8634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 8637 if (obj1) {
15afbcd0
RD
8638 arg2 = (bool) SWIG_AsBool(obj1);
8639 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8640 }
8641 {
8642 PyThreadState* __tstate = wxPyBeginAllowThreads();
8643 (arg1)->SetNoAntiAliasing(arg2);
8644
8645 wxPyEndAllowThreads(__tstate);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 Py_INCREF(Py_None); resultobj = Py_None;
8649 return resultobj;
8650 fail:
8651 return NULL;
8652}
8653
8654
8655static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8656 PyObject *resultobj;
8657 wxFont *arg1 = (wxFont *) 0 ;
8658 bool result;
8659 PyObject * obj0 = 0 ;
8660 char *kwnames[] = {
8661 (char *) "self", NULL
8662 };
8663
8664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
15afbcd0
RD
8665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8667 {
8668 PyThreadState* __tstate = wxPyBeginAllowThreads();
8669 result = (bool)(arg1)->GetNoAntiAliasing();
8670
8671 wxPyEndAllowThreads(__tstate);
8672 if (PyErr_Occurred()) SWIG_fail;
8673 }
4f89f6a3
RD
8674 {
8675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8676 }
d14a1e28
RD
8677 return resultobj;
8678 fail:
8679 return NULL;
8680}
8681
8682
8683static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8684 PyObject *resultobj;
8685 int result;
8686 char *kwnames[] = {
8687 NULL
8688 };
8689
8690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8691 {
e3b71cb8 8692 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
8693 PyThreadState* __tstate = wxPyBeginAllowThreads();
8694 result = (int)wxFont::GetDefaultEncoding();
8695
8696 wxPyEndAllowThreads(__tstate);
110da5b0 8697 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 8698 }
15afbcd0 8699 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8700 return resultobj;
8701 fail:
8702 return NULL;
8703}
8704
8705
8706static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8707 PyObject *resultobj;
8708 int arg1 ;
994141e6 8709 PyObject * obj0 = 0 ;
d14a1e28
RD
8710 char *kwnames[] = {
8711 (char *) "encoding", NULL
8712 };
8713
994141e6 8714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
15afbcd0
RD
8715 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8716 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 8717 {
e3b71cb8 8718 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
8719 PyThreadState* __tstate = wxPyBeginAllowThreads();
8720 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8721
8722 wxPyEndAllowThreads(__tstate);
110da5b0 8723 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8724 }
8725 Py_INCREF(Py_None); resultobj = Py_None;
8726 return resultobj;
8727 fail:
8728 return NULL;
8729}
8730
8731
8732static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8733 PyObject *obj;
8734 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8735 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8736 Py_INCREF(obj);
8737 return Py_BuildValue((char *)"");
8738}
8739static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8740 PyObject *resultobj;
8741 wxPyFontEnumerator *result;
8742 char *kwnames[] = {
8743 NULL
8744 };
8745
8746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8747 {
e3b71cb8 8748 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
8749 PyThreadState* __tstate = wxPyBeginAllowThreads();
8750 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8751
8752 wxPyEndAllowThreads(__tstate);
110da5b0 8753 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 8754 }
15afbcd0 8755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
d14a1e28
RD
8756 return resultobj;
8757 fail:
8758 return NULL;
8759}
8760
8761
8762static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8763 PyObject *resultobj;
8764 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8765 PyObject * obj0 = 0 ;
8766 char *kwnames[] = {
8767 (char *) "self", NULL
8768 };
8769
8770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
15afbcd0
RD
8771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8773 {
8774 PyThreadState* __tstate = wxPyBeginAllowThreads();
8775 delete arg1;
8776
8777 wxPyEndAllowThreads(__tstate);
8778 if (PyErr_Occurred()) SWIG_fail;
8779 }
8780 Py_INCREF(Py_None); resultobj = Py_None;
8781 return resultobj;
8782 fail:
8783 return NULL;
8784}
8785
8786
8787static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8788 PyObject *resultobj;
8789 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8790 PyObject *arg2 = (PyObject *) 0 ;
8791 PyObject *arg3 = (PyObject *) 0 ;
8792 bool arg4 ;
8793 PyObject * obj0 = 0 ;
8794 PyObject * obj1 = 0 ;
8795 PyObject * obj2 = 0 ;
8796 PyObject * obj3 = 0 ;
8797 char *kwnames[] = {
8798 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8799 };
8800
8801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
8802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8804 arg2 = obj1;
8805 arg3 = obj2;
15afbcd0
RD
8806 arg4 = (bool) SWIG_AsBool(obj3);
8807 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8808 {
8809 PyThreadState* __tstate = wxPyBeginAllowThreads();
8810 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8811
8812 wxPyEndAllowThreads(__tstate);
8813 if (PyErr_Occurred()) SWIG_fail;
8814 }
8815 Py_INCREF(Py_None); resultobj = Py_None;
8816 return resultobj;
8817 fail:
8818 return NULL;
8819}
8820
8821
8822static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8823 PyObject *resultobj;
8824 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8825 int arg2 = (int) wxFONTENCODING_SYSTEM ;
e811c8ce 8826 bool arg3 = (bool) False ;
d14a1e28
RD
8827 bool result;
8828 PyObject * obj0 = 0 ;
994141e6 8829 PyObject * obj1 = 0 ;
d14a1e28
RD
8830 PyObject * obj2 = 0 ;
8831 char *kwnames[] = {
8832 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8833 };
8834
994141e6 8835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
8836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 8838 if (obj1) {
15afbcd0
RD
8839 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8840 if (PyErr_Occurred()) SWIG_fail;
994141e6 8841 }
d14a1e28 8842 if (obj2) {
15afbcd0
RD
8843 arg3 = (bool) SWIG_AsBool(obj2);
8844 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8845 }
8846 {
8847 PyThreadState* __tstate = wxPyBeginAllowThreads();
8848 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8849
8850 wxPyEndAllowThreads(__tstate);
8851 if (PyErr_Occurred()) SWIG_fail;
8852 }
4f89f6a3
RD
8853 {
8854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8855 }
d14a1e28
RD
8856 return resultobj;
8857 fail:
8858 return NULL;
8859}
8860
8861
8862static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8863 PyObject *resultobj;
8864 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8865 wxString const &arg2_defvalue = wxPyEmptyString ;
8866 wxString *arg2 = (wxString *) &arg2_defvalue ;
8867 bool result;
e811c8ce 8868 bool temp2 = False ;
d14a1e28
RD
8869 PyObject * obj0 = 0 ;
8870 PyObject * obj1 = 0 ;
8871 char *kwnames[] = {
8872 (char *) "self",(char *) "facename", NULL
8873 };
8874
8875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8878 if (obj1) {
8879 {
8880 arg2 = wxString_in_helper(obj1);
8881 if (arg2 == NULL) SWIG_fail;
e811c8ce 8882 temp2 = True;
d14a1e28
RD
8883 }
8884 }
8885 {
8886 PyThreadState* __tstate = wxPyBeginAllowThreads();
8887 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8888
8889 wxPyEndAllowThreads(__tstate);
8890 if (PyErr_Occurred()) SWIG_fail;
8891 }
4f89f6a3
RD
8892 {
8893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8894 }
d14a1e28
RD
8895 {
8896 if (temp2)
8897 delete arg2;
8898 }
8899 return resultobj;
8900 fail:
8901 {
8902 if (temp2)
8903 delete arg2;
8904 }
8905 return NULL;
8906}
8907
8908
8909static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8910 PyObject *resultobj;
8911 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8912 PyObject *result;
8913 PyObject * obj0 = 0 ;
8914 char *kwnames[] = {
8915 (char *) "self", NULL
8916 };
8917
8918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
15afbcd0
RD
8919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8921 {
8922 PyThreadState* __tstate = wxPyBeginAllowThreads();
8923 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8924
8925 wxPyEndAllowThreads(__tstate);
8926 if (PyErr_Occurred()) SWIG_fail;
8927 }
8928 resultobj = result;
8929 return resultobj;
8930 fail:
8931 return NULL;
8932}
8933
8934
8935static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8936 PyObject *resultobj;
8937 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8938 PyObject *result;
8939 PyObject * obj0 = 0 ;
8940 char *kwnames[] = {
8941 (char *) "self", NULL
8942 };
8943
8944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
15afbcd0
RD
8945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8947 {
8948 PyThreadState* __tstate = wxPyBeginAllowThreads();
8949 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8950
8951 wxPyEndAllowThreads(__tstate);
8952 if (PyErr_Occurred()) SWIG_fail;
8953 }
8954 resultobj = result;
8955 return resultobj;
8956 fail:
8957 return NULL;
8958}
8959
8960
8961static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8962 PyObject *obj;
8963 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8964 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8965 Py_INCREF(obj);
8966 return Py_BuildValue((char *)"");
8967}
8968static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8969 PyObject *resultobj;
8970 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8971 int arg2 ;
8972 PyObject * obj0 = 0 ;
994141e6 8973 PyObject * obj1 = 0 ;
d14a1e28
RD
8974 char *kwnames[] = {
8975 (char *) "self",(char *) "Language", NULL
8976 };
8977
994141e6 8978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8981 arg2 = (int) SWIG_AsInt(obj1);
8982 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8983 if (arg1) (arg1)->Language = arg2;
8984
8985 Py_INCREF(Py_None); resultobj = Py_None;
8986 return resultobj;
8987 fail:
8988 return NULL;
8989}
8990
8991
8992static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8993 PyObject *resultobj;
8994 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8995 int result;
8996 PyObject * obj0 = 0 ;
8997 char *kwnames[] = {
8998 (char *) "self", NULL
8999 };
9000
9001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
9002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9004 result = (int) ((arg1)->Language);
9005
15afbcd0 9006 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9007 return resultobj;
9008 fail:
9009 return NULL;
9010}
9011
9012
9013static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9014 PyObject *resultobj;
9015 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
196addbf 9016 wxString *arg2 = (wxString *) 0 ;
7eae615b 9017 bool temp2 = False ;
d14a1e28
RD
9018 PyObject * obj0 = 0 ;
9019 PyObject * obj1 = 0 ;
9020 char *kwnames[] = {
9021 (char *) "self",(char *) "CanonicalName", NULL
9022 };
9023
9024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
9025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7eae615b
RD
9027 {
9028 arg2 = wxString_in_helper(obj1);
9029 if (arg2 == NULL) SWIG_fail;
9030 temp2 = True;
9031 }
196addbf 9032 if (arg1) (arg1)->CanonicalName = *arg2;
d14a1e28
RD
9033
9034 Py_INCREF(Py_None); resultobj = Py_None;
7eae615b
RD
9035 {
9036 if (temp2)
9037 delete arg2;
9038 }
d14a1e28
RD
9039 return resultobj;
9040 fail:
7eae615b
RD
9041 {
9042 if (temp2)
9043 delete arg2;
9044 }
d14a1e28
RD
9045 return NULL;
9046}
9047
9048
9049static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9050 PyObject *resultobj;
9051 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
196addbf 9052 wxString *result;
d14a1e28
RD
9053 PyObject * obj0 = 0 ;
9054 char *kwnames[] = {
9055 (char *) "self", NULL
9056 };
9057
9058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
9059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
196addbf 9061 result = (wxString *)& ((arg1)->CanonicalName);
d14a1e28
RD
9062
9063 {
9064#if wxUSE_UNICODE
196addbf 9065 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 9066#else
196addbf 9067 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
9068#endif
9069 }
9070 return resultobj;
9071 fail:
9072 return NULL;
9073}
9074
9075
9076static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9077 PyObject *resultobj;
9078 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
196addbf 9079 wxString *arg2 = (wxString *) 0 ;
7eae615b 9080 bool temp2 = False ;
d14a1e28
RD
9081 PyObject * obj0 = 0 ;
9082 PyObject * obj1 = 0 ;
9083 char *kwnames[] = {
9084 (char *) "self",(char *) "Description", NULL
9085 };
9086
9087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
9088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7eae615b
RD
9090 {
9091 arg2 = wxString_in_helper(obj1);
9092 if (arg2 == NULL) SWIG_fail;
9093 temp2 = True;
9094 }
196addbf 9095 if (arg1) (arg1)->Description = *arg2;
d14a1e28
RD
9096
9097 Py_INCREF(Py_None); resultobj = Py_None;
7eae615b
RD
9098 {
9099 if (temp2)
9100 delete arg2;
9101 }
d14a1e28
RD
9102 return resultobj;
9103 fail:
7eae615b
RD
9104 {
9105 if (temp2)
9106 delete arg2;
9107 }
d14a1e28
RD
9108 return NULL;
9109}
9110
9111
9112static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9113 PyObject *resultobj;
9114 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
196addbf 9115 wxString *result;
d14a1e28
RD
9116 PyObject * obj0 = 0 ;
9117 char *kwnames[] = {
9118 (char *) "self", NULL
9119 };
9120
9121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
9122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
196addbf 9124 result = (wxString *)& ((arg1)->Description);
d14a1e28
RD
9125
9126 {
9127#if wxUSE_UNICODE
196addbf 9128 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 9129#else
196addbf 9130 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
9131#endif
9132 }
9133 return resultobj;
9134 fail:
9135 return NULL;
9136}
9137
9138
9139static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9140 PyObject *obj;
9141 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9142 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9143 Py_INCREF(obj);
9144 return Py_BuildValue((char *)"");
9145}
9146static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9147 PyObject *resultobj;
41e2b43e 9148 int arg1 = (int) -1 ;
d14a1e28
RD
9149 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9150 wxLocale *result;
994141e6
RD
9151 PyObject * obj0 = 0 ;
9152 PyObject * obj1 = 0 ;
d14a1e28
RD
9153 char *kwnames[] = {
9154 (char *) "language",(char *) "flags", NULL
9155 };
9156
994141e6
RD
9157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9158 if (obj0) {
15afbcd0
RD
9159 arg1 = (int) SWIG_AsInt(obj0);
9160 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
9161 }
9162 if (obj1) {
15afbcd0
RD
9163 arg2 = (int) SWIG_AsInt(obj1);
9164 if (PyErr_Occurred()) SWIG_fail;
994141e6 9165 }
d14a1e28
RD
9166 {
9167 PyThreadState* __tstate = wxPyBeginAllowThreads();
41e2b43e 9168 result = (wxLocale *)new_wxLocale(arg1,arg2);
d14a1e28
RD
9169
9170 wxPyEndAllowThreads(__tstate);
9171 if (PyErr_Occurred()) SWIG_fail;
9172 }
15afbcd0 9173 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
d14a1e28
RD
9174 return resultobj;
9175 fail:
9176 return NULL;
9177}
9178
9179
9180static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9181 PyObject *resultobj;
9182 wxLocale *arg1 = (wxLocale *) 0 ;
9183 PyObject * obj0 = 0 ;
9184 char *kwnames[] = {
9185 (char *) "self", NULL
9186 };
9187
9188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
15afbcd0
RD
9189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9191 {
9192 PyThreadState* __tstate = wxPyBeginAllowThreads();
9193 delete arg1;
9194
9195 wxPyEndAllowThreads(__tstate);
9196 if (PyErr_Occurred()) SWIG_fail;
9197 }
9198 Py_INCREF(Py_None); resultobj = Py_None;
9199 return resultobj;
9200 fail:
9201 return NULL;
9202}
9203
9204
9205static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9206 PyObject *resultobj;
9207 wxLocale *arg1 = (wxLocale *) 0 ;
9208 wxString *arg2 = 0 ;
9209 wxString const &arg3_defvalue = wxPyEmptyString ;
9210 wxString *arg3 = (wxString *) &arg3_defvalue ;
9211 wxString const &arg4_defvalue = wxPyEmptyString ;
9212 wxString *arg4 = (wxString *) &arg4_defvalue ;
e811c8ce
RD
9213 bool arg5 = (bool) True ;
9214 bool arg6 = (bool) False ;
d14a1e28 9215 bool result;
e811c8ce
RD
9216 bool temp2 = False ;
9217 bool temp3 = False ;
9218 bool temp4 = False ;
d14a1e28
RD
9219 PyObject * obj0 = 0 ;
9220 PyObject * obj1 = 0 ;
9221 PyObject * obj2 = 0 ;
9222 PyObject * obj3 = 0 ;
9223 PyObject * obj4 = 0 ;
9224 PyObject * obj5 = 0 ;
9225 char *kwnames[] = {
9226 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9227 };
9228
9229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15afbcd0
RD
9230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9232 {
9233 arg2 = wxString_in_helper(obj1);
9234 if (arg2 == NULL) SWIG_fail;
e811c8ce 9235 temp2 = True;
d14a1e28
RD
9236 }
9237 if (obj2) {
9238 {
9239 arg3 = wxString_in_helper(obj2);
9240 if (arg3 == NULL) SWIG_fail;
e811c8ce 9241 temp3 = True;
d14a1e28
RD
9242 }
9243 }
9244 if (obj3) {
9245 {
9246 arg4 = wxString_in_helper(obj3);
9247 if (arg4 == NULL) SWIG_fail;
e811c8ce 9248 temp4 = True;
d14a1e28
RD
9249 }
9250 }
9251 if (obj4) {
15afbcd0
RD
9252 arg5 = (bool) SWIG_AsBool(obj4);
9253 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9254 }
9255 if (obj5) {
15afbcd0
RD
9256 arg6 = (bool) SWIG_AsBool(obj5);
9257 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9258 }
9259 {
9260 PyThreadState* __tstate = wxPyBeginAllowThreads();
9261 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9262
9263 wxPyEndAllowThreads(__tstate);
9264 if (PyErr_Occurred()) SWIG_fail;
9265 }
4f89f6a3
RD
9266 {
9267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9268 }
d14a1e28
RD
9269 {
9270 if (temp2)
9271 delete arg2;
9272 }
9273 {
9274 if (temp3)
9275 delete arg3;
9276 }
9277 {
9278 if (temp4)
9279 delete arg4;
9280 }
9281 return resultobj;
9282 fail:
9283 {
9284 if (temp2)
9285 delete arg2;
9286 }
9287 {
9288 if (temp3)
9289 delete arg3;
9290 }
9291 {
9292 if (temp4)
9293 delete arg4;
9294 }
9295 return NULL;
9296}
9297
9298
9299static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9300 PyObject *resultobj;
9301 wxLocale *arg1 = (wxLocale *) 0 ;
9302 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9303 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9304 bool result;
9305 PyObject * obj0 = 0 ;
994141e6
RD
9306 PyObject * obj1 = 0 ;
9307 PyObject * obj2 = 0 ;
d14a1e28
RD
9308 char *kwnames[] = {
9309 (char *) "self",(char *) "language",(char *) "flags", NULL
9310 };
9311
994141e6 9312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
9313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 9315 if (obj1) {
15afbcd0
RD
9316 arg2 = (int) SWIG_AsInt(obj1);
9317 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
9318 }
9319 if (obj2) {
15afbcd0
RD
9320 arg3 = (int) SWIG_AsInt(obj2);
9321 if (PyErr_Occurred()) SWIG_fail;
994141e6 9322 }
d14a1e28
RD
9323 {
9324 PyThreadState* __tstate = wxPyBeginAllowThreads();
9325 result = (bool)(arg1)->Init(arg2,arg3);
9326
9327 wxPyEndAllowThreads(__tstate);
9328 if (PyErr_Occurred()) SWIG_fail;
9329 }
4f89f6a3
RD
9330 {
9331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9332 }
d14a1e28
RD
9333 return resultobj;
9334 fail:
9335 return NULL;
9336}
9337
9338
9339static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9340 PyObject *resultobj;
9341 int result;
9342 char *kwnames[] = {
9343 NULL
9344 };
9345
9346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9347 {
9348 PyThreadState* __tstate = wxPyBeginAllowThreads();
9349 result = (int)wxLocale::GetSystemLanguage();
9350
9351 wxPyEndAllowThreads(__tstate);
9352 if (PyErr_Occurred()) SWIG_fail;
9353 }
15afbcd0 9354 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9355 return resultobj;
9356 fail:
9357 return NULL;
9358}
9359
9360
9361static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9362 PyObject *resultobj;
9363 int result;
9364 char *kwnames[] = {
9365 NULL
9366 };
9367
9368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9369 {
9370 PyThreadState* __tstate = wxPyBeginAllowThreads();
9371 result = (int)wxLocale::GetSystemEncoding();
9372
9373 wxPyEndAllowThreads(__tstate);
9374 if (PyErr_Occurred()) SWIG_fail;
9375 }
15afbcd0 9376 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9377 return resultobj;
9378 fail:
9379 return NULL;
9380}
9381
9382
9383static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9384 PyObject *resultobj;
9385 wxString result;
9386 char *kwnames[] = {
9387 NULL
9388 };
9389
9390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9391 {
9392 PyThreadState* __tstate = wxPyBeginAllowThreads();
9393 result = wxLocale::GetSystemEncodingName();
9394
9395 wxPyEndAllowThreads(__tstate);
9396 if (PyErr_Occurred()) SWIG_fail;
9397 }
9398 {
9399#if wxUSE_UNICODE
9400 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9401#else
9402 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9403#endif
9404 }
9405 return resultobj;
9406 fail:
9407 return NULL;
9408}
9409
9410
9411static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9412 PyObject *resultobj;
9413 wxLocale *arg1 = (wxLocale *) 0 ;
9414 bool result;
9415 PyObject * obj0 = 0 ;
9416 char *kwnames[] = {
9417 (char *) "self", NULL
9418 };
9419
9420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
15afbcd0
RD
9421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9423 {
9424 PyThreadState* __tstate = wxPyBeginAllowThreads();
9425 result = (bool)((wxLocale const *)arg1)->IsOk();
9426
9427 wxPyEndAllowThreads(__tstate);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 }
4f89f6a3
RD
9430 {
9431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9432 }
d14a1e28
RD
9433 return resultobj;
9434 fail:
9435 return NULL;
9436}
9437
9438
9439static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9440 PyObject *resultobj;
9441 wxLocale *arg1 = (wxLocale *) 0 ;
9442 wxString result;
9443 PyObject * obj0 = 0 ;
9444 char *kwnames[] = {
9445 (char *) "self", NULL
9446 };
9447
9448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
15afbcd0
RD
9449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9451 {
9452 PyThreadState* __tstate = wxPyBeginAllowThreads();
9453 result = ((wxLocale const *)arg1)->GetLocale();
9454
9455 wxPyEndAllowThreads(__tstate);
9456 if (PyErr_Occurred()) SWIG_fail;
9457 }
9458 {
9459#if wxUSE_UNICODE
9460 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9461#else
9462 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9463#endif
9464 }
9465 return resultobj;
9466 fail:
9467 return NULL;
9468}
9469
9470
9471static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9472 PyObject *resultobj;
9473 wxLocale *arg1 = (wxLocale *) 0 ;
9474 int result;
9475 PyObject * obj0 = 0 ;
9476 char *kwnames[] = {
9477 (char *) "self", NULL
9478 };
9479
9480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
15afbcd0
RD
9481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9483 {
9484 PyThreadState* __tstate = wxPyBeginAllowThreads();
9485 result = (int)((wxLocale const *)arg1)->GetLanguage();
9486
9487 wxPyEndAllowThreads(__tstate);
9488 if (PyErr_Occurred()) SWIG_fail;
9489 }
15afbcd0 9490 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9491 return resultobj;
9492 fail:
9493 return NULL;
9494}
9495
9496
9497static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9498 PyObject *resultobj;
9499 wxLocale *arg1 = (wxLocale *) 0 ;
9500 wxString result;
9501 PyObject * obj0 = 0 ;
9502 char *kwnames[] = {
9503 (char *) "self", NULL
9504 };
9505
9506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
15afbcd0
RD
9507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9509 {
9510 PyThreadState* __tstate = wxPyBeginAllowThreads();
9511 result = ((wxLocale const *)arg1)->GetSysName();
9512
9513 wxPyEndAllowThreads(__tstate);
9514 if (PyErr_Occurred()) SWIG_fail;
9515 }
9516 {
9517#if wxUSE_UNICODE
9518 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9519#else
9520 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9521#endif
9522 }
9523 return resultobj;
9524 fail:
9525 return NULL;
9526}
9527
9528
9529static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9530 PyObject *resultobj;
9531 wxLocale *arg1 = (wxLocale *) 0 ;
9532 wxString result;
9533 PyObject * obj0 = 0 ;
9534 char *kwnames[] = {
9535 (char *) "self", NULL
9536 };
9537
9538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
15afbcd0
RD
9539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9541 {
9542 PyThreadState* __tstate = wxPyBeginAllowThreads();
9543 result = ((wxLocale const *)arg1)->GetCanonicalName();
9544
9545 wxPyEndAllowThreads(__tstate);
9546 if (PyErr_Occurred()) SWIG_fail;
9547 }
9548 {
9549#if wxUSE_UNICODE
9550 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9551#else
9552 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9553#endif
9554 }
9555 return resultobj;
9556 fail:
9557 return NULL;
9558}
9559
9560
9561static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9562 PyObject *resultobj;
9563 wxString *arg1 = 0 ;
e811c8ce 9564 bool temp1 = False ;
d14a1e28
RD
9565 PyObject * obj0 = 0 ;
9566 char *kwnames[] = {
9567 (char *) "prefix", NULL
9568 };
9569
9570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9571 {
9572 arg1 = wxString_in_helper(obj0);
9573 if (arg1 == NULL) SWIG_fail;
e811c8ce 9574 temp1 = True;
d14a1e28
RD
9575 }
9576 {
9577 PyThreadState* __tstate = wxPyBeginAllowThreads();
9578 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9579
9580 wxPyEndAllowThreads(__tstate);
9581 if (PyErr_Occurred()) SWIG_fail;
9582 }
9583 Py_INCREF(Py_None); resultobj = Py_None;
9584 {
9585 if (temp1)
9586 delete arg1;
9587 }
9588 return resultobj;
9589 fail:
9590 {
9591 if (temp1)
9592 delete arg1;
9593 }
9594 return NULL;
9595}
9596
9597
9598static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9599 PyObject *resultobj;
9600 wxLocale *arg1 = (wxLocale *) 0 ;
9601 wxString *arg2 = 0 ;
9602 bool result;
e811c8ce 9603 bool temp2 = False ;
d14a1e28
RD
9604 PyObject * obj0 = 0 ;
9605 PyObject * obj1 = 0 ;
9606 char *kwnames[] = {
9607 (char *) "self",(char *) "szDomain", NULL
9608 };
9609
9610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
9611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9613 {
9614 arg2 = wxString_in_helper(obj1);
9615 if (arg2 == NULL) SWIG_fail;
e811c8ce 9616 temp2 = True;
d14a1e28
RD
9617 }
9618 {
9619 PyThreadState* __tstate = wxPyBeginAllowThreads();
9620 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9621
9622 wxPyEndAllowThreads(__tstate);
9623 if (PyErr_Occurred()) SWIG_fail;
9624 }
4f89f6a3
RD
9625 {
9626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9627 }
d14a1e28
RD
9628 {
9629 if (temp2)
9630 delete arg2;
9631 }
9632 return resultobj;
9633 fail:
9634 {
9635 if (temp2)
9636 delete arg2;
9637 }
9638 return NULL;
9639}
9640
9641
9642static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9643 PyObject *resultobj;
9644 wxLocale *arg1 = (wxLocale *) 0 ;
9645 wxString *arg2 = 0 ;
9646 bool result;
e811c8ce 9647 bool temp2 = False ;
d14a1e28
RD
9648 PyObject * obj0 = 0 ;
9649 PyObject * obj1 = 0 ;
9650 char *kwnames[] = {
9651 (char *) "self",(char *) "szDomain", NULL
9652 };
9653
9654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
9655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9657 {
9658 arg2 = wxString_in_helper(obj1);
9659 if (arg2 == NULL) SWIG_fail;
e811c8ce 9660 temp2 = True;
d14a1e28
RD
9661 }
9662 {
9663 PyThreadState* __tstate = wxPyBeginAllowThreads();
9664 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9665
9666 wxPyEndAllowThreads(__tstate);
9667 if (PyErr_Occurred()) SWIG_fail;
9668 }
4f89f6a3
RD
9669 {
9670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9671 }
d14a1e28
RD
9672 {
9673 if (temp2)
9674 delete arg2;
9675 }
9676 return resultobj;
9677 fail:
9678 {
9679 if (temp2)
9680 delete arg2;
9681 }
9682 return NULL;
9683}
9684
9685
9686static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9687 PyObject *resultobj;
9688 int arg1 ;
9689 wxLanguageInfo *result;
994141e6 9690 PyObject * obj0 = 0 ;
d14a1e28
RD
9691 char *kwnames[] = {
9692 (char *) "lang", NULL
9693 };
9694
994141e6 9695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
9696 arg1 = (int) SWIG_AsInt(obj0);
9697 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9701
9702 wxPyEndAllowThreads(__tstate);
9703 if (PyErr_Occurred()) SWIG_fail;
9704 }
15afbcd0 9705 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
d14a1e28
RD
9706 return resultobj;
9707 fail:
9708 return NULL;
9709}
9710
9711
9712static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9713 PyObject *resultobj;
9714 int arg1 ;
9715 wxString result;
994141e6 9716 PyObject * obj0 = 0 ;
d14a1e28
RD
9717 char *kwnames[] = {
9718 (char *) "lang", NULL
9719 };
9720
994141e6 9721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
15afbcd0
RD
9722 arg1 = (int) SWIG_AsInt(obj0);
9723 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9724 {
9725 PyThreadState* __tstate = wxPyBeginAllowThreads();
9726 result = wxLocale::GetLanguageName(arg1);
9727
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) SWIG_fail;
9730 }
9731 {
9732#if wxUSE_UNICODE
9733 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9734#else
9735 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9736#endif
9737 }
9738 return resultobj;
9739 fail:
9740 return NULL;
9741}
9742
9743
9744static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9745 PyObject *resultobj;
9746 wxString *arg1 = 0 ;
9747 wxLanguageInfo *result;
e811c8ce 9748 bool temp1 = False ;
d14a1e28
RD
9749 PyObject * obj0 = 0 ;
9750 char *kwnames[] = {
9751 (char *) "locale", NULL
9752 };
9753
9754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9755 {
9756 arg1 = wxString_in_helper(obj0);
9757 if (arg1 == NULL) SWIG_fail;
e811c8ce 9758 temp1 = True;
d14a1e28
RD
9759 }
9760 {
9761 PyThreadState* __tstate = wxPyBeginAllowThreads();
9762 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9763
9764 wxPyEndAllowThreads(__tstate);
9765 if (PyErr_Occurred()) SWIG_fail;
9766 }
15afbcd0 9767 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
d14a1e28
RD
9768 {
9769 if (temp1)
9770 delete arg1;
9771 }
9772 return resultobj;
9773 fail:
9774 {
9775 if (temp1)
9776 delete arg1;
9777 }
9778 return NULL;
9779}
9780
9781
9782static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9783 PyObject *resultobj;
9784 wxLanguageInfo *arg1 = 0 ;
9785 PyObject * obj0 = 0 ;
9786 char *kwnames[] = {
9787 (char *) "info", NULL
9788 };
9789
9790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
15afbcd0
RD
9791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9792 SWIG_POINTER_EXCEPTION | 0)) == -1)
9793 SWIG_fail;
d14a1e28 9794 if (arg1 == NULL) {
15afbcd0
RD
9795 PyErr_SetString(PyExc_TypeError,"null reference");
9796 SWIG_fail;
d14a1e28
RD
9797 }
9798 {
9799 PyThreadState* __tstate = wxPyBeginAllowThreads();
9800 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9801
9802 wxPyEndAllowThreads(__tstate);
9803 if (PyErr_Occurred()) SWIG_fail;
9804 }
9805 Py_INCREF(Py_None); resultobj = Py_None;
9806 return resultobj;
9807 fail:
9808 return NULL;
9809}
9810
9811
9812static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9813 PyObject *resultobj;
9814 wxLocale *arg1 = (wxLocale *) 0 ;
9815 wxString *arg2 = 0 ;
9816 wxString const &arg3_defvalue = wxPyEmptyString ;
9817 wxString *arg3 = (wxString *) &arg3_defvalue ;
9818 wxString result;
e811c8ce
RD
9819 bool temp2 = False ;
9820 bool temp3 = False ;
d14a1e28
RD
9821 PyObject * obj0 = 0 ;
9822 PyObject * obj1 = 0 ;
9823 PyObject * obj2 = 0 ;
9824 char *kwnames[] = {
9825 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9826 };
9827
9828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
9829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9831 {
9832 arg2 = wxString_in_helper(obj1);
9833 if (arg2 == NULL) SWIG_fail;
e811c8ce 9834 temp2 = True;
d14a1e28
RD
9835 }
9836 if (obj2) {
9837 {
9838 arg3 = wxString_in_helper(obj2);
9839 if (arg3 == NULL) SWIG_fail;
e811c8ce 9840 temp3 = True;
d14a1e28
RD
9841 }
9842 }
9843 {
9844 PyThreadState* __tstate = wxPyBeginAllowThreads();
9845 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9846
9847 wxPyEndAllowThreads(__tstate);
9848 if (PyErr_Occurred()) SWIG_fail;
9849 }
9850 {
9851#if wxUSE_UNICODE
9852 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9853#else
9854 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9855#endif
9856 }
9857 {
9858 if (temp2)
9859 delete arg2;
9860 }
9861 {
9862 if (temp3)
9863 delete arg3;
9864 }
9865 return resultobj;
9866 fail:
9867 {
9868 if (temp2)
9869 delete arg2;
9870 }
9871 {
9872 if (temp3)
9873 delete arg3;
9874 }
9875 return NULL;
9876}
9877
9878
9879static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9880 PyObject *resultobj;
9881 wxLocale *arg1 = (wxLocale *) 0 ;
9882 wxString *result;
9883 PyObject * obj0 = 0 ;
9884 char *kwnames[] = {
9885 (char *) "self", NULL
9886 };
9887
9888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
15afbcd0
RD
9889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9891 {
9892 PyThreadState* __tstate = wxPyBeginAllowThreads();
9893 {
9894 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9895 result = (wxString *) &_result_ref;
9896 }
9897
9898 wxPyEndAllowThreads(__tstate);
9899 if (PyErr_Occurred()) SWIG_fail;
9900 }
cc6dd355
RD
9901 {
9902#if wxUSE_UNICODE
9903 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9904#else
9905 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9906#endif
9907 }
d14a1e28
RD
9908 return resultobj;
9909 fail:
9910 return NULL;
9911}
9912
9913
9914static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9915 PyObject *obj;
9916 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9917 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9918 Py_INCREF(obj);
9919 return Py_BuildValue((char *)"");
9920}
9921static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9922 PyObject *resultobj;
9923 wxLocale *result;
9924 char *kwnames[] = {
9925 NULL
9926 };
9927
9928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9929 {
9930 PyThreadState* __tstate = wxPyBeginAllowThreads();
9931 result = (wxLocale *)wxGetLocale();
9932
9933 wxPyEndAllowThreads(__tstate);
9934 if (PyErr_Occurred()) SWIG_fail;
9935 }
15afbcd0 9936 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
d14a1e28
RD
9937 return resultobj;
9938 fail:
9939 return NULL;
9940}
9941
9942
9943static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9944 PyObject *resultobj;
9945 wxString *arg1 = 0 ;
9946 wxString result;
e811c8ce 9947 bool temp1 = False ;
d14a1e28
RD
9948 PyObject * obj0 = 0 ;
9949
9950 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9951 {
9952 arg1 = wxString_in_helper(obj0);
9953 if (arg1 == NULL) SWIG_fail;
e811c8ce 9954 temp1 = True;
d14a1e28
RD
9955 }
9956 {
9957 PyThreadState* __tstate = wxPyBeginAllowThreads();
9958 result = wxGetTranslation((wxString const &)*arg1);
9959
9960 wxPyEndAllowThreads(__tstate);
9961 if (PyErr_Occurred()) SWIG_fail;
9962 }
9963 {
9964#if wxUSE_UNICODE
9965 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9966#else
9967 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9968#endif
9969 }
9970 {
9971 if (temp1)
9972 delete arg1;
9973 }
9974 return resultobj;
9975 fail:
9976 {
9977 if (temp1)
9978 delete arg1;
9979 }
9980 return NULL;
9981}
9982
9983
9984static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9985 PyObject *resultobj;
9986 wxString *arg1 = 0 ;
9987 wxString *arg2 = 0 ;
9988 size_t arg3 ;
9989 wxString result;
e811c8ce
RD
9990 bool temp1 = False ;
9991 bool temp2 = False ;
d14a1e28
RD
9992 PyObject * obj0 = 0 ;
9993 PyObject * obj1 = 0 ;
9994 PyObject * obj2 = 0 ;
9995
9996 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9997 {
9998 arg1 = wxString_in_helper(obj0);
9999 if (arg1 == NULL) SWIG_fail;
e811c8ce 10000 temp1 = True;
d14a1e28
RD
10001 }
10002 {
10003 arg2 = wxString_in_helper(obj1);
10004 if (arg2 == NULL) SWIG_fail;
e811c8ce 10005 temp2 = True;
d14a1e28 10006 }
15afbcd0
RD
10007 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10008 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10009 {
10010 PyThreadState* __tstate = wxPyBeginAllowThreads();
10011 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10012
10013 wxPyEndAllowThreads(__tstate);
10014 if (PyErr_Occurred()) SWIG_fail;
10015 }
10016 {
10017#if wxUSE_UNICODE
10018 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10019#else
10020 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10021#endif
10022 }
10023 {
10024 if (temp1)
10025 delete arg1;
10026 }
10027 {
10028 if (temp2)
10029 delete arg2;
10030 }
10031 return resultobj;
10032 fail:
10033 {
10034 if (temp1)
10035 delete arg1;
10036 }
10037 {
10038 if (temp2)
10039 delete arg2;
10040 }
10041 return NULL;
10042}
10043
10044
10045static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10046 int argc;
10047 PyObject *argv[4];
10048 int ii;
10049
10050 argc = PyObject_Length(args);
10051 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10052 argv[ii] = PyTuple_GetItem(args,ii);
10053 }
10054 if (argc == 1) {
10055 int _v;
10056 {
4d5c3d91 10057 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
d14a1e28
RD
10058 }
10059 if (_v) {
10060 return _wrap_GetTranslation__SWIG_0(self,args);
10061 }
10062 }
10063 if (argc == 3) {
10064 int _v;
10065 {
4d5c3d91 10066 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
d14a1e28
RD
10067 }
10068 if (_v) {
10069 {
4d5c3d91 10070 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
d14a1e28
RD
10071 }
10072 if (_v) {
15afbcd0 10073 _v = SWIG_CheckUnsignedLong(argv[2]);
d14a1e28
RD
10074 if (_v) {
10075 return _wrap_GetTranslation__SWIG_1(self,args);
10076 }
10077 }
10078 }
10079 }
10080
10081 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10082 return NULL;
10083}
10084
10085
10086static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10087 PyObject *resultobj;
10088 wxEncodingConverter *result;
10089 char *kwnames[] = {
10090 NULL
10091 };
10092
10093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10094 {
10095 PyThreadState* __tstate = wxPyBeginAllowThreads();
10096 result = (wxEncodingConverter *)new wxEncodingConverter();
10097
10098 wxPyEndAllowThreads(__tstate);
10099 if (PyErr_Occurred()) SWIG_fail;
10100 }
15afbcd0 10101 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
d14a1e28
RD
10102 return resultobj;
10103 fail:
10104 return NULL;
10105}
10106
10107
10108static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10109 PyObject *resultobj;
10110 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10111 PyObject * obj0 = 0 ;
10112 char *kwnames[] = {
10113 (char *) "self", NULL
10114 };
10115
10116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
15afbcd0
RD
10117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10119 {
10120 PyThreadState* __tstate = wxPyBeginAllowThreads();
10121 delete arg1;
10122
10123 wxPyEndAllowThreads(__tstate);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 }
10126 Py_INCREF(Py_None); resultobj = Py_None;
10127 return resultobj;
10128 fail:
10129 return NULL;
10130}
10131
10132
10133static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10134 PyObject *resultobj;
10135 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10136 int arg2 ;
10137 int arg3 ;
10138 int arg4 = (int) wxCONVERT_STRICT ;
10139 bool result;
10140 PyObject * obj0 = 0 ;
994141e6
RD
10141 PyObject * obj1 = 0 ;
10142 PyObject * obj2 = 0 ;
10143 PyObject * obj3 = 0 ;
d14a1e28
RD
10144 char *kwnames[] = {
10145 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10146 };
10147
994141e6 10148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
10149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10151 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10152 if (PyErr_Occurred()) SWIG_fail;
10153 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10154 if (PyErr_Occurred()) SWIG_fail;
994141e6 10155 if (obj3) {
15afbcd0
RD
10156 arg4 = (int) SWIG_AsInt(obj3);
10157 if (PyErr_Occurred()) SWIG_fail;
994141e6 10158 }
d14a1e28
RD
10159 {
10160 PyThreadState* __tstate = wxPyBeginAllowThreads();
10161 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10162
10163 wxPyEndAllowThreads(__tstate);
10164 if (PyErr_Occurred()) SWIG_fail;
10165 }
4f89f6a3
RD
10166 {
10167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10168 }
d14a1e28
RD
10169 return resultobj;
10170 fail:
10171 return NULL;
10172}
10173
10174
10175static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10176 PyObject *resultobj;
10177 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10178 wxString *arg2 = 0 ;
10179 wxString result;
e811c8ce 10180 bool temp2 = False ;
d14a1e28
RD
10181 PyObject * obj0 = 0 ;
10182 PyObject * obj1 = 0 ;
10183 char *kwnames[] = {
10184 (char *) "self",(char *) "input", NULL
10185 };
10186
10187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10190 {
10191 arg2 = wxString_in_helper(obj1);
10192 if (arg2 == NULL) SWIG_fail;
e811c8ce 10193 temp2 = True;
d14a1e28
RD
10194 }
10195 {
10196 PyThreadState* __tstate = wxPyBeginAllowThreads();
10197 result = (arg1)->Convert((wxString const &)*arg2);
10198
10199 wxPyEndAllowThreads(__tstate);
10200 if (PyErr_Occurred()) SWIG_fail;
10201 }
10202 {
10203#if wxUSE_UNICODE
10204 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10205#else
10206 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10207#endif
10208 }
10209 {
10210 if (temp2)
10211 delete arg2;
10212 }
10213 return resultobj;
10214 fail:
10215 {
10216 if (temp2)
10217 delete arg2;
10218 }
10219 return NULL;
10220}
10221
10222
10223static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10224 PyObject *resultobj;
10225 int arg1 ;
10226 int arg2 = (int) wxPLATFORM_CURRENT ;
10227 wxFontEncodingArray result;
994141e6
RD
10228 PyObject * obj0 = 0 ;
10229 PyObject * obj1 = 0 ;
d14a1e28
RD
10230 char *kwnames[] = {
10231 (char *) "enc",(char *) "platform", NULL
10232 };
10233
994141e6 10234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10235 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10236 if (PyErr_Occurred()) SWIG_fail;
994141e6 10237 if (obj1) {
15afbcd0
RD
10238 arg2 = (int) SWIG_AsInt(obj1);
10239 if (PyErr_Occurred()) SWIG_fail;
994141e6 10240 }
d14a1e28
RD
10241 {
10242 PyThreadState* __tstate = wxPyBeginAllowThreads();
10243 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10244
10245 wxPyEndAllowThreads(__tstate);
10246 if (PyErr_Occurred()) SWIG_fail;
10247 }
10248 {
10249 resultobj = PyList_New(0);
10250 for (size_t i=0; i < (&result)->GetCount(); i++) {
10251 PyObject* number = PyInt_FromLong((&result)->Item(i));
10252 PyList_Append(resultobj, number);
10253 Py_DECREF(number);
10254 }
10255 }
10256 return resultobj;
10257 fail:
10258 return NULL;
10259}
10260
10261
10262static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10263 PyObject *resultobj;
10264 int arg1 ;
10265 wxFontEncodingArray result;
994141e6 10266 PyObject * obj0 = 0 ;
d14a1e28
RD
10267 char *kwnames[] = {
10268 (char *) "enc", NULL
10269 };
10270
994141e6 10271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
15afbcd0
RD
10272 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10273 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10274 {
10275 PyThreadState* __tstate = wxPyBeginAllowThreads();
10276 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10277
10278 wxPyEndAllowThreads(__tstate);
10279 if (PyErr_Occurred()) SWIG_fail;
10280 }
10281 {
10282 resultobj = PyList_New(0);
10283 for (size_t i=0; i < (&result)->GetCount(); i++) {
10284 PyObject* number = PyInt_FromLong((&result)->Item(i));
10285 PyList_Append(resultobj, number);
10286 Py_DECREF(number);
10287 }
10288 }
10289 return resultobj;
10290 fail:
10291 return NULL;
10292}
10293
10294
10295static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj;
10297 int arg1 ;
10298 int arg2 ;
10299 bool result;
994141e6
RD
10300 PyObject * obj0 = 0 ;
10301 PyObject * obj1 = 0 ;
d14a1e28
RD
10302 char *kwnames[] = {
10303 (char *) "encIn",(char *) "encOut", NULL
10304 };
10305
994141e6 10306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10307 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10308 if (PyErr_Occurred()) SWIG_fail;
10309 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10310 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10311 {
10312 PyThreadState* __tstate = wxPyBeginAllowThreads();
10313 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10314
10315 wxPyEndAllowThreads(__tstate);
10316 if (PyErr_Occurred()) SWIG_fail;
10317 }
4f89f6a3
RD
10318 {
10319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10320 }
d14a1e28
RD
10321 return resultobj;
10322 fail:
10323 return NULL;
10324}
10325
10326
10327static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10328 PyObject *obj;
10329 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10330 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10331 Py_INCREF(obj);
10332 return Py_BuildValue((char *)"");
10333}
10334static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10335 PyObject *resultobj;
10336 wxDC *arg1 = (wxDC *) 0 ;
10337 PyObject * obj0 = 0 ;
10338 char *kwnames[] = {
10339 (char *) "self", NULL
10340 };
10341
10342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
15afbcd0
RD
10343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10345 {
10346 PyThreadState* __tstate = wxPyBeginAllowThreads();
10347 delete arg1;
10348
10349 wxPyEndAllowThreads(__tstate);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 }
10352 Py_INCREF(Py_None); resultobj = Py_None;
10353 return resultobj;
10354 fail:
10355 return NULL;
10356}
10357
10358
10359static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10360 PyObject *resultobj;
10361 wxDC *arg1 = (wxDC *) 0 ;
10362 PyObject * obj0 = 0 ;
10363 char *kwnames[] = {
10364 (char *) "self", NULL
10365 };
10366
10367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
15afbcd0
RD
10368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10370 {
10371 PyThreadState* __tstate = wxPyBeginAllowThreads();
10372 (arg1)->BeginDrawing();
10373
10374 wxPyEndAllowThreads(__tstate);
10375 if (PyErr_Occurred()) SWIG_fail;
10376 }
10377 Py_INCREF(Py_None); resultobj = Py_None;
10378 return resultobj;
10379 fail:
10380 return NULL;
10381}
10382
10383
10384static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10385 PyObject *resultobj;
10386 wxDC *arg1 = (wxDC *) 0 ;
10387 PyObject * obj0 = 0 ;
10388 char *kwnames[] = {
10389 (char *) "self", NULL
10390 };
10391
10392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
15afbcd0
RD
10393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10395 {
10396 PyThreadState* __tstate = wxPyBeginAllowThreads();
10397 (arg1)->EndDrawing();
10398
10399 wxPyEndAllowThreads(__tstate);
10400 if (PyErr_Occurred()) SWIG_fail;
10401 }
10402 Py_INCREF(Py_None); resultobj = Py_None;
10403 return resultobj;
10404 fail:
10405 return NULL;
10406}
10407
10408
03e37cd5 10409static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10410 PyObject *resultobj;
10411 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10412 int arg2 ;
10413 int arg3 ;
d14a1e28
RD
10414 wxColour *arg4 = 0 ;
10415 int arg5 = (int) wxFLOOD_SURFACE ;
10416 bool result;
10417 wxColour temp4 ;
10418 PyObject * obj0 = 0 ;
994141e6
RD
10419 PyObject * obj1 = 0 ;
10420 PyObject * obj2 = 0 ;
d14a1e28 10421 PyObject * obj3 = 0 ;
994141e6 10422 PyObject * obj4 = 0 ;
d14a1e28
RD
10423 char *kwnames[] = {
10424 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10425 };
10426
03e37cd5 10427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
10428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10430 arg2 = (int) SWIG_AsInt(obj1);
10431 if (PyErr_Occurred()) SWIG_fail;
10432 arg3 = (int) SWIG_AsInt(obj2);
10433 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10434 {
10435 arg4 = &temp4;
10436 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10437 }
994141e6 10438 if (obj4) {
15afbcd0
RD
10439 arg5 = (int) SWIG_AsInt(obj4);
10440 if (PyErr_Occurred()) SWIG_fail;
994141e6 10441 }
d14a1e28
RD
10442 {
10443 PyThreadState* __tstate = wxPyBeginAllowThreads();
10444 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10445
10446 wxPyEndAllowThreads(__tstate);
10447 if (PyErr_Occurred()) SWIG_fail;
10448 }
4f89f6a3
RD
10449 {
10450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10451 }
d14a1e28
RD
10452 return resultobj;
10453 fail:
10454 return NULL;
10455}
10456
10457
03e37cd5 10458static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10459 PyObject *resultobj;
10460 wxDC *arg1 = (wxDC *) 0 ;
10461 wxPoint *arg2 = 0 ;
10462 wxColour *arg3 = 0 ;
10463 int arg4 = (int) wxFLOOD_SURFACE ;
10464 bool result;
10465 wxPoint temp2 ;
10466 wxColour temp3 ;
10467 PyObject * obj0 = 0 ;
10468 PyObject * obj1 = 0 ;
10469 PyObject * obj2 = 0 ;
994141e6 10470 PyObject * obj3 = 0 ;
d14a1e28
RD
10471 char *kwnames[] = {
10472 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10473 };
10474
03e37cd5 10475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
10476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10478 {
10479 arg2 = &temp2;
10480 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10481 }
10482 {
10483 arg3 = &temp3;
10484 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10485 }
994141e6 10486 if (obj3) {
15afbcd0
RD
10487 arg4 = (int) SWIG_AsInt(obj3);
10488 if (PyErr_Occurred()) SWIG_fail;
994141e6 10489 }
d14a1e28
RD
10490 {
10491 PyThreadState* __tstate = wxPyBeginAllowThreads();
10492 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10493
10494 wxPyEndAllowThreads(__tstate);
10495 if (PyErr_Occurred()) SWIG_fail;
10496 }
4f89f6a3
RD
10497 {
10498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10499 }
d14a1e28
RD
10500 return resultobj;
10501 fail:
10502 return NULL;
10503}
10504
10505
03e37cd5 10506static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10507 PyObject *resultobj;
10508 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10509 int arg2 ;
10510 int arg3 ;
d14a1e28
RD
10511 wxColour result;
10512 PyObject * obj0 = 0 ;
994141e6
RD
10513 PyObject * obj1 = 0 ;
10514 PyObject * obj2 = 0 ;
d14a1e28
RD
10515 char *kwnames[] = {
10516 (char *) "self",(char *) "x",(char *) "y", NULL
10517 };
10518
03e37cd5 10519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
10520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10522 arg2 = (int) SWIG_AsInt(obj1);
10523 if (PyErr_Occurred()) SWIG_fail;
10524 arg3 = (int) SWIG_AsInt(obj2);
10525 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10526 {
10527 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 10528 result = wxDC_GetPixel(arg1,arg2,arg3);
d14a1e28
RD
10529
10530 wxPyEndAllowThreads(__tstate);
10531 if (PyErr_Occurred()) SWIG_fail;
10532 }
10533 {
10534 wxColour * resultptr;
10535 resultptr = new wxColour((wxColour &) result);
15afbcd0 10536 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
10537 }
10538 return resultobj;
10539 fail:
10540 return NULL;
10541}
10542
10543
03e37cd5 10544static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10545 PyObject *resultobj;
10546 wxDC *arg1 = (wxDC *) 0 ;
10547 wxPoint *arg2 = 0 ;
10548 wxColour result;
10549 wxPoint temp2 ;
10550 PyObject * obj0 = 0 ;
10551 PyObject * obj1 = 0 ;
10552 char *kwnames[] = {
10553 (char *) "self",(char *) "pt", NULL
10554 };
10555
03e37cd5 10556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10559 {
10560 arg2 = &temp2;
10561 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10562 }
10563 {
10564 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 10565 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
d14a1e28
RD
10566
10567 wxPyEndAllowThreads(__tstate);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 }
10570 {
10571 wxColour * resultptr;
10572 resultptr = new wxColour((wxColour &) result);
15afbcd0 10573 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
10574 }
10575 return resultobj;
10576 fail:
10577 return NULL;
10578}
10579
10580
03e37cd5 10581static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10582 PyObject *resultobj;
10583 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10584 int arg2 ;
10585 int arg3 ;
10586 int arg4 ;
10587 int arg5 ;
d14a1e28 10588 PyObject * obj0 = 0 ;
994141e6
RD
10589 PyObject * obj1 = 0 ;
10590 PyObject * obj2 = 0 ;
10591 PyObject * obj3 = 0 ;
10592 PyObject * obj4 = 0 ;
d14a1e28
RD
10593 char *kwnames[] = {
10594 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10595 };
10596
03e37cd5 10597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
10598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10600 arg2 = (int) SWIG_AsInt(obj1);
10601 if (PyErr_Occurred()) SWIG_fail;
10602 arg3 = (int) SWIG_AsInt(obj2);
10603 if (PyErr_Occurred()) SWIG_fail;
10604 arg4 = (int) SWIG_AsInt(obj3);
10605 if (PyErr_Occurred()) SWIG_fail;
10606 arg5 = (int) SWIG_AsInt(obj4);
10607 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10608 {
10609 PyThreadState* __tstate = wxPyBeginAllowThreads();
10610 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10611
10612 wxPyEndAllowThreads(__tstate);
10613 if (PyErr_Occurred()) SWIG_fail;
10614 }
10615 Py_INCREF(Py_None); resultobj = Py_None;
10616 return resultobj;
10617 fail:
10618 return NULL;
10619}
10620
10621
03e37cd5 10622static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10623 PyObject *resultobj;
10624 wxDC *arg1 = (wxDC *) 0 ;
10625 wxPoint *arg2 = 0 ;
10626 wxPoint *arg3 = 0 ;
10627 wxPoint temp2 ;
10628 wxPoint temp3 ;
10629 PyObject * obj0 = 0 ;
10630 PyObject * obj1 = 0 ;
10631 PyObject * obj2 = 0 ;
10632 char *kwnames[] = {
10633 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10634 };
10635
03e37cd5 10636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
10637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10639 {
10640 arg2 = &temp2;
10641 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10642 }
10643 {
10644 arg3 = &temp3;
10645 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10646 }
10647 {
10648 PyThreadState* __tstate = wxPyBeginAllowThreads();
10649 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10650
10651 wxPyEndAllowThreads(__tstate);
10652 if (PyErr_Occurred()) SWIG_fail;
10653 }
10654 Py_INCREF(Py_None); resultobj = Py_None;
10655 return resultobj;
10656 fail:
10657 return NULL;
10658}
10659
10660
03e37cd5 10661static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10662 PyObject *resultobj;
10663 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10664 int arg2 ;
10665 int arg3 ;
d14a1e28 10666 PyObject * obj0 = 0 ;
994141e6
RD
10667 PyObject * obj1 = 0 ;
10668 PyObject * obj2 = 0 ;
d14a1e28
RD
10669 char *kwnames[] = {
10670 (char *) "self",(char *) "x",(char *) "y", NULL
10671 };
10672
03e37cd5 10673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
10674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10676 arg2 = (int) SWIG_AsInt(obj1);
10677 if (PyErr_Occurred()) SWIG_fail;
10678 arg3 = (int) SWIG_AsInt(obj2);
10679 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10680 {
10681 PyThreadState* __tstate = wxPyBeginAllowThreads();
10682 (arg1)->CrossHair(arg2,arg3);
10683
10684 wxPyEndAllowThreads(__tstate);
10685 if (PyErr_Occurred()) SWIG_fail;
10686 }
10687 Py_INCREF(Py_None); resultobj = Py_None;
10688 return resultobj;
10689 fail:
10690 return NULL;
10691}
10692
10693
03e37cd5 10694static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10695 PyObject *resultobj;
10696 wxDC *arg1 = (wxDC *) 0 ;
10697 wxPoint *arg2 = 0 ;
10698 wxPoint temp2 ;
10699 PyObject * obj0 = 0 ;
10700 PyObject * obj1 = 0 ;
10701 char *kwnames[] = {
10702 (char *) "self",(char *) "pt", NULL
10703 };
10704
03e37cd5 10705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10708 {
10709 arg2 = &temp2;
10710 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10711 }
10712 {
10713 PyThreadState* __tstate = wxPyBeginAllowThreads();
10714 (arg1)->CrossHair((wxPoint const &)*arg2);
10715
10716 wxPyEndAllowThreads(__tstate);
10717 if (PyErr_Occurred()) SWIG_fail;
10718 }
10719 Py_INCREF(Py_None); resultobj = Py_None;
10720 return resultobj;
10721 fail:
10722 return NULL;
10723}
10724
10725
03e37cd5 10726static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10727 PyObject *resultobj;
10728 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10729 int arg2 ;
10730 int arg3 ;
10731 int arg4 ;
10732 int arg5 ;
10733 int arg6 ;
10734 int arg7 ;
d14a1e28 10735 PyObject * obj0 = 0 ;
994141e6
RD
10736 PyObject * obj1 = 0 ;
10737 PyObject * obj2 = 0 ;
10738 PyObject * obj3 = 0 ;
10739 PyObject * obj4 = 0 ;
10740 PyObject * obj5 = 0 ;
10741 PyObject * obj6 = 0 ;
d14a1e28
RD
10742 char *kwnames[] = {
10743 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10744 };
10745
03e37cd5 10746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15afbcd0
RD
10747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10749 arg2 = (int) SWIG_AsInt(obj1);
10750 if (PyErr_Occurred()) SWIG_fail;
10751 arg3 = (int) SWIG_AsInt(obj2);
10752 if (PyErr_Occurred()) SWIG_fail;
10753 arg4 = (int) SWIG_AsInt(obj3);
10754 if (PyErr_Occurred()) SWIG_fail;
10755 arg5 = (int) SWIG_AsInt(obj4);
10756 if (PyErr_Occurred()) SWIG_fail;
10757 arg6 = (int) SWIG_AsInt(obj5);
10758 if (PyErr_Occurred()) SWIG_fail;
10759 arg7 = (int) SWIG_AsInt(obj6);
10760 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10761 {
10762 PyThreadState* __tstate = wxPyBeginAllowThreads();
10763 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10764
10765 wxPyEndAllowThreads(__tstate);
10766 if (PyErr_Occurred()) SWIG_fail;
10767 }
10768 Py_INCREF(Py_None); resultobj = Py_None;
10769 return resultobj;
10770 fail:
10771 return NULL;
10772}
10773
10774
03e37cd5 10775static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10776 PyObject *resultobj;
10777 wxDC *arg1 = (wxDC *) 0 ;
10778 wxPoint *arg2 = 0 ;
10779 wxPoint *arg3 = 0 ;
10780 wxPoint *arg4 = 0 ;
10781 wxPoint temp2 ;
10782 wxPoint temp3 ;
10783 wxPoint temp4 ;
10784 PyObject * obj0 = 0 ;
10785 PyObject * obj1 = 0 ;
10786 PyObject * obj2 = 0 ;
10787 PyObject * obj3 = 0 ;
10788 char *kwnames[] = {
10789 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10790 };
10791
03e37cd5 10792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
10793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10795 {
10796 arg2 = &temp2;
10797 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10798 }
10799 {
10800 arg3 = &temp3;
10801 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10802 }
10803 {
10804 arg4 = &temp4;
10805 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10806 }
10807 {
10808 PyThreadState* __tstate = wxPyBeginAllowThreads();
10809 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10810
10811 wxPyEndAllowThreads(__tstate);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 }
10814 Py_INCREF(Py_None); resultobj = Py_None;
10815 return resultobj;
10816 fail:
10817 return NULL;
10818}
10819
10820
03e37cd5 10821static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10822 PyObject *resultobj;
10823 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10824 int arg2 ;
10825 int arg3 ;
10826 int arg4 ;
10827 int arg5 ;
d14a1e28 10828 PyObject * obj0 = 0 ;
994141e6
RD
10829 PyObject * obj1 = 0 ;
10830 PyObject * obj2 = 0 ;
10831 PyObject * obj3 = 0 ;
10832 PyObject * obj4 = 0 ;
d14a1e28
RD
10833 char *kwnames[] = {
10834 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10835 };
10836
03e37cd5 10837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
10838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10840 arg2 = (int) SWIG_AsInt(obj1);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 arg3 = (int) SWIG_AsInt(obj2);
10843 if (PyErr_Occurred()) SWIG_fail;
10844 arg4 = (int) SWIG_AsInt(obj3);
10845 if (PyErr_Occurred()) SWIG_fail;
10846 arg5 = (int) SWIG_AsInt(obj4);
10847 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
10848 {
10849 PyThreadState* __tstate = wxPyBeginAllowThreads();
10850 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10851
10852 wxPyEndAllowThreads(__tstate);
10853 if (PyErr_Occurred()) SWIG_fail;
10854 }
10855 Py_INCREF(Py_None); resultobj = Py_None;
10856 return resultobj;
10857 fail:
10858 return NULL;
10859}
10860
10861
03e37cd5 10862static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10863 PyObject *resultobj;
10864 wxDC *arg1 = (wxDC *) 0 ;
10865 wxRect *arg2 = 0 ;
10866 wxRect temp2 ;
10867 PyObject * obj0 = 0 ;
10868 PyObject * obj1 = 0 ;
10869 char *kwnames[] = {
10870 (char *) "self",(char *) "rect", NULL
10871 };
10872
03e37cd5 10873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10876 {
10877 arg2 = &temp2;
10878 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10879 }
10880 {
10881 PyThreadState* __tstate = wxPyBeginAllowThreads();
10882 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10883
10884 wxPyEndAllowThreads(__tstate);
10885 if (PyErr_Occurred()) SWIG_fail;
10886 }
10887 Py_INCREF(Py_None); resultobj = Py_None;
10888 return resultobj;
10889 fail:
10890 return NULL;
10891}
10892
10893
03e37cd5 10894static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10895 PyObject *resultobj;
10896 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10897 int arg2 ;
10898 int arg3 ;
10899 int arg4 ;
10900 int arg5 ;
d14a1e28
RD
10901 double arg6 ;
10902 double arg7 ;
10903 PyObject * obj0 = 0 ;
994141e6
RD
10904 PyObject * obj1 = 0 ;
10905 PyObject * obj2 = 0 ;
10906 PyObject * obj3 = 0 ;
10907 PyObject * obj4 = 0 ;
10908 PyObject * obj5 = 0 ;
10909 PyObject * obj6 = 0 ;
d14a1e28
RD
10910 char *kwnames[] = {
10911 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10912 };
10913
03e37cd5 10914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15afbcd0
RD
10915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10917 arg2 = (int) SWIG_AsInt(obj1);
10918 if (PyErr_Occurred()) SWIG_fail;
10919 arg3 = (int) SWIG_AsInt(obj2);
10920 if (PyErr_Occurred()) SWIG_fail;
10921 arg4 = (int) SWIG_AsInt(obj3);
10922 if (PyErr_Occurred()) SWIG_fail;
10923 arg5 = (int) SWIG_AsInt(obj4);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 arg6 = (double) SWIG_AsDouble(obj5);
10926 if (PyErr_Occurred()) SWIG_fail;
10927 arg7 = (double) SWIG_AsDouble(obj6);
10928 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10929 {
10930 PyThreadState* __tstate = wxPyBeginAllowThreads();
10931 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10932
10933 wxPyEndAllowThreads(__tstate);
10934 if (PyErr_Occurred()) SWIG_fail;
10935 }
10936 Py_INCREF(Py_None); resultobj = Py_None;
10937 return resultobj;
10938 fail:
10939 return NULL;
10940}
10941
10942
03e37cd5 10943static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10944 PyObject *resultobj;
10945 wxDC *arg1 = (wxDC *) 0 ;
10946 wxPoint *arg2 = 0 ;
10947 wxSize *arg3 = 0 ;
10948 double arg4 ;
10949 double arg5 ;
10950 wxPoint temp2 ;
10951 wxSize temp3 ;
10952 PyObject * obj0 = 0 ;
10953 PyObject * obj1 = 0 ;
10954 PyObject * obj2 = 0 ;
994141e6
RD
10955 PyObject * obj3 = 0 ;
10956 PyObject * obj4 = 0 ;
d14a1e28
RD
10957 char *kwnames[] = {
10958 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10959 };
10960
03e37cd5 10961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
10962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10964 {
10965 arg2 = &temp2;
10966 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10967 }
10968 {
10969 arg3 = &temp3;
10970 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10971 }
15afbcd0
RD
10972 arg4 = (double) SWIG_AsDouble(obj3);
10973 if (PyErr_Occurred()) SWIG_fail;
10974 arg5 = (double) SWIG_AsDouble(obj4);
10975 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10976 {
10977 PyThreadState* __tstate = wxPyBeginAllowThreads();
10978 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10979
10980 wxPyEndAllowThreads(__tstate);
10981 if (PyErr_Occurred()) SWIG_fail;
10982 }
10983 Py_INCREF(Py_None); resultobj = Py_None;
10984 return resultobj;
10985 fail:
10986 return NULL;
10987}
10988
10989
03e37cd5 10990static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10991 PyObject *resultobj;
10992 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10993 int arg2 ;
10994 int arg3 ;
d14a1e28 10995 PyObject * obj0 = 0 ;
994141e6
RD
10996 PyObject * obj1 = 0 ;
10997 PyObject * obj2 = 0 ;
d14a1e28
RD
10998 char *kwnames[] = {
10999 (char *) "self",(char *) "x",(char *) "y", NULL
11000 };
11001
03e37cd5 11002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11005 arg2 = (int) SWIG_AsInt(obj1);
11006 if (PyErr_Occurred()) SWIG_fail;
11007 arg3 = (int) SWIG_AsInt(obj2);
11008 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11009 {
11010 PyThreadState* __tstate = wxPyBeginAllowThreads();
11011 (arg1)->DrawPoint(arg2,arg3);
11012
11013 wxPyEndAllowThreads(__tstate);
11014 if (PyErr_Occurred()) SWIG_fail;
11015 }
11016 Py_INCREF(Py_None); resultobj = Py_None;
11017 return resultobj;
11018 fail:
11019 return NULL;
11020}
11021
11022
03e37cd5 11023static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11024 PyObject *resultobj;
11025 wxDC *arg1 = (wxDC *) 0 ;
11026 wxPoint *arg2 = 0 ;
11027 wxPoint temp2 ;
11028 PyObject * obj0 = 0 ;
11029 PyObject * obj1 = 0 ;
11030 char *kwnames[] = {
11031 (char *) "self",(char *) "pt", NULL
11032 };
11033
03e37cd5 11034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
11035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11037 {
11038 arg2 = &temp2;
11039 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11040 }
11041 {
11042 PyThreadState* __tstate = wxPyBeginAllowThreads();
11043 (arg1)->DrawPoint((wxPoint const &)*arg2);
11044
11045 wxPyEndAllowThreads(__tstate);
11046 if (PyErr_Occurred()) SWIG_fail;
11047 }
11048 Py_INCREF(Py_None); resultobj = Py_None;
11049 return resultobj;
11050 fail:
11051 return NULL;
11052}
11053
11054
03e37cd5 11055static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11056 PyObject *resultobj;
11057 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11058 int arg2 ;
11059 int arg3 ;
11060 int arg4 ;
11061 int arg5 ;
d14a1e28 11062 PyObject * obj0 = 0 ;
994141e6
RD
11063 PyObject * obj1 = 0 ;
11064 PyObject * obj2 = 0 ;
11065 PyObject * obj3 = 0 ;
11066 PyObject * obj4 = 0 ;
d14a1e28
RD
11067 char *kwnames[] = {
11068 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11069 };
11070
03e37cd5 11071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
11072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11074 arg2 = (int) SWIG_AsInt(obj1);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 arg3 = (int) SWIG_AsInt(obj2);
11077 if (PyErr_Occurred()) SWIG_fail;
11078 arg4 = (int) SWIG_AsInt(obj3);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 arg5 = (int) SWIG_AsInt(obj4);
11081 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11082 {
11083 PyThreadState* __tstate = wxPyBeginAllowThreads();
11084 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11085
11086 wxPyEndAllowThreads(__tstate);
11087 if (PyErr_Occurred()) SWIG_fail;
11088 }
11089 Py_INCREF(Py_None); resultobj = Py_None;
11090 return resultobj;
11091 fail:
11092 return NULL;
11093}
11094
11095
03e37cd5 11096static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11097 PyObject *resultobj;
11098 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5
RD
11099 wxRect *arg2 = 0 ;
11100 wxRect temp2 ;
d14a1e28
RD
11101 PyObject * obj0 = 0 ;
11102 PyObject * obj1 = 0 ;
d14a1e28 11103 char *kwnames[] = {
03e37cd5 11104 (char *) "self",(char *) "rect", NULL
d14a1e28
RD
11105 };
11106
03e37cd5 11107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
11108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11110 {
11111 arg2 = &temp2;
03e37cd5 11112 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d14a1e28
RD
11113 }
11114 {
11115 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 11116 (arg1)->DrawRectangle((wxRect const &)*arg2);
d14a1e28
RD
11117
11118 wxPyEndAllowThreads(__tstate);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 }
11121 Py_INCREF(Py_None); resultobj = Py_None;
11122 return resultobj;
11123 fail:
11124 return NULL;
11125}
11126
11127
03e37cd5 11128static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11129 PyObject *resultobj;
11130 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5
RD
11131 wxPoint *arg2 = 0 ;
11132 wxSize *arg3 = 0 ;
11133 wxPoint temp2 ;
11134 wxSize temp3 ;
d14a1e28
RD
11135 PyObject * obj0 = 0 ;
11136 PyObject * obj1 = 0 ;
03e37cd5 11137 PyObject * obj2 = 0 ;
d14a1e28 11138 char *kwnames[] = {
03e37cd5 11139 (char *) "self",(char *) "pt",(char *) "sz", NULL
d14a1e28
RD
11140 };
11141
03e37cd5 11142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11145 {
11146 arg2 = &temp2;
03e37cd5
RD
11147 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11148 }
11149 {
11150 arg3 = &temp3;
11151 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d14a1e28
RD
11152 }
11153 {
11154 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 11155 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
d14a1e28
RD
11156
11157 wxPyEndAllowThreads(__tstate);
11158 if (PyErr_Occurred()) SWIG_fail;
11159 }
11160 Py_INCREF(Py_None); resultobj = Py_None;
11161 return resultobj;
11162 fail:
11163 return NULL;
11164}
11165
11166
03e37cd5 11167static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11168 PyObject *resultobj;
11169 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11170 int arg2 ;
11171 int arg3 ;
11172 int arg4 ;
11173 int arg5 ;
d14a1e28
RD
11174 double arg6 ;
11175 PyObject * obj0 = 0 ;
994141e6
RD
11176 PyObject * obj1 = 0 ;
11177 PyObject * obj2 = 0 ;
11178 PyObject * obj3 = 0 ;
11179 PyObject * obj4 = 0 ;
11180 PyObject * obj5 = 0 ;
d14a1e28
RD
11181 char *kwnames[] = {
11182 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11183 };
11184
03e37cd5 11185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15afbcd0
RD
11186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11188 arg2 = (int) SWIG_AsInt(obj1);
11189 if (PyErr_Occurred()) SWIG_fail;
11190 arg3 = (int) SWIG_AsInt(obj2);
11191 if (PyErr_Occurred()) SWIG_fail;
11192 arg4 = (int) SWIG_AsInt(obj3);
11193 if (PyErr_Occurred()) SWIG_fail;
11194 arg5 = (int) SWIG_AsInt(obj4);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 arg6 = (double) SWIG_AsDouble(obj5);
11197 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11198 {
11199 PyThreadState* __tstate = wxPyBeginAllowThreads();
11200 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11201
11202 wxPyEndAllowThreads(__tstate);
11203 if (PyErr_Occurred()) SWIG_fail;
11204 }
11205 Py_INCREF(Py_None); resultobj = Py_None;
11206 return resultobj;
11207 fail:
11208 return NULL;
11209}
11210
11211
03e37cd5 11212static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11213 PyObject *resultobj;
11214 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5
RD
11215 wxRect *arg2 = 0 ;
11216 double arg3 ;
11217 wxRect temp2 ;
d14a1e28
RD
11218 PyObject * obj0 = 0 ;
11219 PyObject * obj1 = 0 ;
11220 PyObject * obj2 = 0 ;
11221 char *kwnames[] = {
03e37cd5 11222 (char *) "self",(char *) "r",(char *) "radius", NULL
d14a1e28
RD
11223 };
11224
03e37cd5 11225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11228 {
11229 arg2 = &temp2;
03e37cd5 11230 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 11231 }
03e37cd5 11232 arg3 = (double) SWIG_AsDouble(obj2);
15afbcd0 11233 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11234 {
11235 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 11236 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
d14a1e28
RD
11237
11238 wxPyEndAllowThreads(__tstate);
11239 if (PyErr_Occurred()) SWIG_fail;
11240 }
11241 Py_INCREF(Py_None); resultobj = Py_None;
11242 return resultobj;
11243 fail:
11244 return NULL;
11245}
11246
11247
03e37cd5 11248static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11249 PyObject *resultobj;
11250 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5
RD
11251 wxPoint *arg2 = 0 ;
11252 wxSize *arg3 = 0 ;
11253 double arg4 ;
11254 wxPoint temp2 ;
11255 wxSize temp3 ;
d14a1e28
RD
11256 PyObject * obj0 = 0 ;
11257 PyObject * obj1 = 0 ;
994141e6 11258 PyObject * obj2 = 0 ;
03e37cd5 11259 PyObject * obj3 = 0 ;
d14a1e28 11260 char *kwnames[] = {
03e37cd5 11261 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
d14a1e28
RD
11262 };
11263
03e37cd5 11264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11267 {
11268 arg2 = &temp2;
03e37cd5 11269 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 11270 }
03e37cd5
RD
11271 {
11272 arg3 = &temp3;
11273 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11274 }
11275 arg4 = (double) SWIG_AsDouble(obj3);
15afbcd0 11276 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11277 {
11278 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 11279 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
d14a1e28
RD
11280
11281 wxPyEndAllowThreads(__tstate);
11282 if (PyErr_Occurred()) SWIG_fail;
11283 }
11284 Py_INCREF(Py_None); resultobj = Py_None;
11285 return resultobj;
11286 fail:
11287 return NULL;
11288}
11289
11290
03e37cd5 11291static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11292 PyObject *resultobj;
11293 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11294 int arg2 ;
11295 int arg3 ;
11296 int arg4 ;
d14a1e28 11297 PyObject * obj0 = 0 ;
994141e6
RD
11298 PyObject * obj1 = 0 ;
11299 PyObject * obj2 = 0 ;
11300 PyObject * obj3 = 0 ;
d14a1e28
RD
11301 char *kwnames[] = {
11302 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11303 };
11304
03e37cd5 11305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11308 arg2 = (int) SWIG_AsInt(obj1);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 arg3 = (int) SWIG_AsInt(obj2);
11311 if (PyErr_Occurred()) SWIG_fail;
11312 arg4 = (int) SWIG_AsInt(obj3);
11313 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11314 {
11315 PyThreadState* __tstate = wxPyBeginAllowThreads();
11316 (arg1)->DrawCircle(arg2,arg3,arg4);
11317
11318 wxPyEndAllowThreads(__tstate);
11319 if (PyErr_Occurred()) SWIG_fail;
11320 }
11321 Py_INCREF(Py_None); resultobj = Py_None;
11322 return resultobj;
11323 fail:
11324 return NULL;
11325}
11326
11327
03e37cd5 11328static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11329 PyObject *resultobj;
11330 wxDC *arg1 = (wxDC *) 0 ;
11331 wxPoint *arg2 = 0 ;
e811c8ce 11332 int arg3 ;
d14a1e28
RD
11333 wxPoint temp2 ;
11334 PyObject * obj0 = 0 ;
11335 PyObject * obj1 = 0 ;
994141e6 11336 PyObject * obj2 = 0 ;
d14a1e28
RD
11337 char *kwnames[] = {
11338 (char *) "self",(char *) "pt",(char *) "radius", NULL
11339 };
11340
03e37cd5 11341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11344 {
11345 arg2 = &temp2;
11346 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11347 }
15afbcd0
RD
11348 arg3 = (int) SWIG_AsInt(obj2);
11349 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11350 {
11351 PyThreadState* __tstate = wxPyBeginAllowThreads();
11352 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11353
11354 wxPyEndAllowThreads(__tstate);
11355 if (PyErr_Occurred()) SWIG_fail;
11356 }
11357 Py_INCREF(Py_None); resultobj = Py_None;
11358 return resultobj;
11359 fail:
11360 return NULL;
11361}
11362
11363
03e37cd5 11364static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11365 PyObject *resultobj;
11366 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11367 int arg2 ;
11368 int arg3 ;
11369 int arg4 ;
11370 int arg5 ;
d14a1e28 11371 PyObject * obj0 = 0 ;
994141e6
RD
11372 PyObject * obj1 = 0 ;
11373 PyObject * obj2 = 0 ;
11374 PyObject * obj3 = 0 ;
11375 PyObject * obj4 = 0 ;
d14a1e28
RD
11376 char *kwnames[] = {
11377 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11378 };
11379
03e37cd5 11380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
11381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11383 arg2 = (int) SWIG_AsInt(obj1);
11384 if (PyErr_Occurred()) SWIG_fail;
11385 arg3 = (int) SWIG_AsInt(obj2);
11386 if (PyErr_Occurred()) SWIG_fail;
11387 arg4 = (int) SWIG_AsInt(obj3);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 arg5 = (int) SWIG_AsInt(obj4);
11390 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11391 {
11392 PyThreadState* __tstate = wxPyBeginAllowThreads();
11393 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11394
11395 wxPyEndAllowThreads(__tstate);
11396 if (PyErr_Occurred()) SWIG_fail;
11397 }
11398 Py_INCREF(Py_None); resultobj = Py_None;
11399 return resultobj;
11400 fail:
11401 return NULL;
11402}
11403
11404
03e37cd5 11405static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11406 PyObject *resultobj;
11407 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5
RD
11408 wxRect *arg2 = 0 ;
11409 wxRect temp2 ;
d14a1e28
RD
11410 PyObject * obj0 = 0 ;
11411 PyObject * obj1 = 0 ;
d14a1e28 11412 char *kwnames[] = {
03e37cd5 11413 (char *) "self",(char *) "rect", NULL
d14a1e28
RD
11414 };
11415
03e37cd5 11416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
11417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11419 {
11420 arg2 = &temp2;
03e37cd5 11421 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d14a1e28
RD
11422 }
11423 {
11424 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 11425 (arg1)->DrawEllipse((wxRect const &)*arg2);
d14a1e28
RD
11426
11427 wxPyEndAllowThreads(__tstate);
11428 if (PyErr_Occurred()) SWIG_fail;
11429 }
11430 Py_INCREF(Py_None); resultobj = Py_None;
11431 return resultobj;
11432 fail:
11433 return NULL;
11434}
11435
11436
03e37cd5 11437static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11438 PyObject *resultobj;
11439 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5
RD
11440 wxPoint *arg2 = 0 ;
11441 wxSize *arg3 = 0 ;
11442 wxPoint temp2 ;
11443 wxSize temp3 ;
d14a1e28
RD
11444 PyObject * obj0 = 0 ;
11445 PyObject * obj1 = 0 ;
03e37cd5 11446 PyObject * obj2 = 0 ;
d14a1e28 11447 char *kwnames[] = {
03e37cd5 11448 (char *) "self",(char *) "pt",(char *) "sz", NULL
d14a1e28
RD
11449 };
11450
03e37cd5 11451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11454 {
11455 arg2 = &temp2;
03e37cd5
RD
11456 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11457 }
11458 {
11459 arg3 = &temp3;
11460 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d14a1e28
RD
11461 }
11462 {
11463 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 11464 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
d14a1e28
RD
11465
11466 wxPyEndAllowThreads(__tstate);
11467 if (PyErr_Occurred()) SWIG_fail;
11468 }
11469 Py_INCREF(Py_None); resultobj = Py_None;
11470 return resultobj;
11471 fail:
11472 return NULL;
11473}
11474
11475
03e37cd5 11476static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11477 PyObject *resultobj;
11478 wxDC *arg1 = (wxDC *) 0 ;
11479 wxIcon *arg2 = 0 ;
e811c8ce
RD
11480 int arg3 ;
11481 int arg4 ;
d14a1e28
RD
11482 PyObject * obj0 = 0 ;
11483 PyObject * obj1 = 0 ;
994141e6
RD
11484 PyObject * obj2 = 0 ;
11485 PyObject * obj3 = 0 ;
d14a1e28
RD
11486 char *kwnames[] = {
11487 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11488 };
11489
03e37cd5 11490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11493 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11494 SWIG_POINTER_EXCEPTION | 0)) == -1)
11495 SWIG_fail;
d14a1e28 11496 if (arg2 == NULL) {
15afbcd0
RD
11497 PyErr_SetString(PyExc_TypeError,"null reference");
11498 SWIG_fail;
994141e6 11499 }
15afbcd0
RD
11500 arg3 = (int) SWIG_AsInt(obj2);
11501 if (PyErr_Occurred()) SWIG_fail;
11502 arg4 = (int) SWIG_AsInt(obj3);
11503 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11504 {
11505 PyThreadState* __tstate = wxPyBeginAllowThreads();
11506 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11507
11508 wxPyEndAllowThreads(__tstate);
11509 if (PyErr_Occurred()) SWIG_fail;
11510 }
11511 Py_INCREF(Py_None); resultobj = Py_None;
11512 return resultobj;
11513 fail:
11514 return NULL;
11515}
11516
11517
03e37cd5 11518static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11519 PyObject *resultobj;
11520 wxDC *arg1 = (wxDC *) 0 ;
11521 wxIcon *arg2 = 0 ;
11522 wxPoint *arg3 = 0 ;
11523 wxPoint temp3 ;
11524 PyObject * obj0 = 0 ;
11525 PyObject * obj1 = 0 ;
11526 PyObject * obj2 = 0 ;
11527 char *kwnames[] = {
11528 (char *) "self",(char *) "icon",(char *) "pt", NULL
11529 };
11530
03e37cd5 11531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11534 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11535 SWIG_POINTER_EXCEPTION | 0)) == -1)
11536 SWIG_fail;
d14a1e28 11537 if (arg2 == NULL) {
15afbcd0
RD
11538 PyErr_SetString(PyExc_TypeError,"null reference");
11539 SWIG_fail;
d14a1e28
RD
11540 }
11541 {
11542 arg3 = &temp3;
11543 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11544 }
11545 {
11546 PyThreadState* __tstate = wxPyBeginAllowThreads();
11547 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11548
11549 wxPyEndAllowThreads(__tstate);
11550 if (PyErr_Occurred()) SWIG_fail;
11551 }
11552 Py_INCREF(Py_None); resultobj = Py_None;
11553 return resultobj;
11554 fail:
11555 return NULL;
11556}
11557
11558
03e37cd5 11559static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11560 PyObject *resultobj;
11561 wxDC *arg1 = (wxDC *) 0 ;
11562 wxBitmap *arg2 = 0 ;
e811c8ce
RD
11563 int arg3 ;
11564 int arg4 ;
11565 bool arg5 = (bool) False ;
d14a1e28
RD
11566 PyObject * obj0 = 0 ;
11567 PyObject * obj1 = 0 ;
994141e6
RD
11568 PyObject * obj2 = 0 ;
11569 PyObject * obj3 = 0 ;
d14a1e28
RD
11570 PyObject * obj4 = 0 ;
11571 char *kwnames[] = {
11572 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11573 };
11574
03e37cd5 11575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
11576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11578 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11579 SWIG_POINTER_EXCEPTION | 0)) == -1)
11580 SWIG_fail;
d14a1e28 11581 if (arg2 == NULL) {
15afbcd0
RD
11582 PyErr_SetString(PyExc_TypeError,"null reference");
11583 SWIG_fail;
994141e6 11584 }
15afbcd0
RD
11585 arg3 = (int) SWIG_AsInt(obj2);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 arg4 = (int) SWIG_AsInt(obj3);
11588 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 11589 if (obj4) {
15afbcd0
RD
11590 arg5 = (bool) SWIG_AsBool(obj4);
11591 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11592 }
11593 {
11594 PyThreadState* __tstate = wxPyBeginAllowThreads();
11595 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11596
11597 wxPyEndAllowThreads(__tstate);
11598 if (PyErr_Occurred()) SWIG_fail;
11599 }
11600 Py_INCREF(Py_None); resultobj = Py_None;
11601 return resultobj;
11602 fail:
11603 return NULL;
11604}
11605
11606
03e37cd5 11607static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11608 PyObject *resultobj;
11609 wxDC *arg1 = (wxDC *) 0 ;
11610 wxBitmap *arg2 = 0 ;
11611 wxPoint *arg3 = 0 ;
e811c8ce 11612 bool arg4 = (bool) False ;
d14a1e28
RD
11613 wxPoint temp3 ;
11614 PyObject * obj0 = 0 ;
11615 PyObject * obj1 = 0 ;
11616 PyObject * obj2 = 0 ;
11617 PyObject * obj3 = 0 ;
11618 char *kwnames[] = {
11619 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11620 };
11621
03e37cd5 11622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11625 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11626 SWIG_POINTER_EXCEPTION | 0)) == -1)
11627 SWIG_fail;
d14a1e28 11628 if (arg2 == NULL) {
15afbcd0
RD
11629 PyErr_SetString(PyExc_TypeError,"null reference");
11630 SWIG_fail;
d14a1e28
RD
11631 }
11632 {
11633 arg3 = &temp3;
11634 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11635 }
11636 if (obj3) {
15afbcd0
RD
11637 arg4 = (bool) SWIG_AsBool(obj3);
11638 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11639 }
11640 {
11641 PyThreadState* __tstate = wxPyBeginAllowThreads();
11642 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11643
11644 wxPyEndAllowThreads(__tstate);
11645 if (PyErr_Occurred()) SWIG_fail;
11646 }
11647 Py_INCREF(Py_None); resultobj = Py_None;
11648 return resultobj;
11649 fail:
11650 return NULL;
11651}
11652
11653
03e37cd5 11654static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11655 PyObject *resultobj;
11656 wxDC *arg1 = (wxDC *) 0 ;
11657 wxString *arg2 = 0 ;
e811c8ce
RD
11658 int arg3 ;
11659 int arg4 ;
11660 bool temp2 = False ;
d14a1e28
RD
11661 PyObject * obj0 = 0 ;
11662 PyObject * obj1 = 0 ;
994141e6
RD
11663 PyObject * obj2 = 0 ;
11664 PyObject * obj3 = 0 ;
d14a1e28
RD
11665 char *kwnames[] = {
11666 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11667 };
11668
03e37cd5 11669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11672 {
11673 arg2 = wxString_in_helper(obj1);
11674 if (arg2 == NULL) SWIG_fail;
e811c8ce 11675 temp2 = True;
d14a1e28 11676 }
15afbcd0
RD
11677 arg3 = (int) SWIG_AsInt(obj2);
11678 if (PyErr_Occurred()) SWIG_fail;
11679 arg4 = (int) SWIG_AsInt(obj3);
11680 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11681 {
11682 PyThreadState* __tstate = wxPyBeginAllowThreads();
11683 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11684
11685 wxPyEndAllowThreads(__tstate);
11686 if (PyErr_Occurred()) SWIG_fail;
11687 }
11688 Py_INCREF(Py_None); resultobj = Py_None;
11689 {
11690 if (temp2)
11691 delete arg2;
11692 }
11693 return resultobj;
11694 fail:
11695 {
11696 if (temp2)
11697 delete arg2;
11698 }
11699 return NULL;
11700}
11701
11702
03e37cd5 11703static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11704 PyObject *resultobj;
11705 wxDC *arg1 = (wxDC *) 0 ;
11706 wxString *arg2 = 0 ;
11707 wxPoint *arg3 = 0 ;
e811c8ce 11708 bool temp2 = False ;
d14a1e28
RD
11709 wxPoint temp3 ;
11710 PyObject * obj0 = 0 ;
11711 PyObject * obj1 = 0 ;
11712 PyObject * obj2 = 0 ;
11713 char *kwnames[] = {
11714 (char *) "self",(char *) "text",(char *) "pt", NULL
11715 };
11716
03e37cd5 11717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11720 {
11721 arg2 = wxString_in_helper(obj1);
11722 if (arg2 == NULL) SWIG_fail;
e811c8ce 11723 temp2 = True;
d14a1e28
RD
11724 }
11725 {
11726 arg3 = &temp3;
11727 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11728 }
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11732
11733 wxPyEndAllowThreads(__tstate);
11734 if (PyErr_Occurred()) SWIG_fail;
11735 }
11736 Py_INCREF(Py_None); resultobj = Py_None;
11737 {
11738 if (temp2)
11739 delete arg2;
11740 }
11741 return resultobj;
11742 fail:
11743 {
11744 if (temp2)
11745 delete arg2;
11746 }
11747 return NULL;
11748}
11749
11750
03e37cd5 11751static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11752 PyObject *resultobj;
11753 wxDC *arg1 = (wxDC *) 0 ;
11754 wxString *arg2 = 0 ;
e811c8ce
RD
11755 int arg3 ;
11756 int arg4 ;
d14a1e28 11757 double arg5 ;
e811c8ce 11758 bool temp2 = False ;
d14a1e28
RD
11759 PyObject * obj0 = 0 ;
11760 PyObject * obj1 = 0 ;
994141e6
RD
11761 PyObject * obj2 = 0 ;
11762 PyObject * obj3 = 0 ;
11763 PyObject * obj4 = 0 ;
d14a1e28
RD
11764 char *kwnames[] = {
11765 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11766 };
11767
03e37cd5 11768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
11769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11771 {
11772 arg2 = wxString_in_helper(obj1);
11773 if (arg2 == NULL) SWIG_fail;
e811c8ce 11774 temp2 = True;
d14a1e28 11775 }
15afbcd0
RD
11776 arg3 = (int) SWIG_AsInt(obj2);
11777 if (PyErr_Occurred()) SWIG_fail;
11778 arg4 = (int) SWIG_AsInt(obj3);
11779 if (PyErr_Occurred()) SWIG_fail;
11780 arg5 = (double) SWIG_AsDouble(obj4);
11781 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11782 {
11783 PyThreadState* __tstate = wxPyBeginAllowThreads();
11784 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11785
11786 wxPyEndAllowThreads(__tstate);
11787 if (PyErr_Occurred()) SWIG_fail;
11788 }
11789 Py_INCREF(Py_None); resultobj = Py_None;
11790 {
11791 if (temp2)
11792 delete arg2;
11793 }
11794 return resultobj;
11795 fail:
11796 {
11797 if (temp2)
11798 delete arg2;
11799 }
11800 return NULL;
11801}
11802
11803
03e37cd5 11804static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11805 PyObject *resultobj;
11806 wxDC *arg1 = (wxDC *) 0 ;
11807 wxString *arg2 = 0 ;
11808 wxPoint *arg3 = 0 ;
11809 double arg4 ;
e811c8ce 11810 bool temp2 = False ;
d14a1e28
RD
11811 wxPoint temp3 ;
11812 PyObject * obj0 = 0 ;
11813 PyObject * obj1 = 0 ;
11814 PyObject * obj2 = 0 ;
994141e6 11815 PyObject * obj3 = 0 ;
d14a1e28
RD
11816 char *kwnames[] = {
11817 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11818 };
11819
03e37cd5 11820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
11821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11823 {
11824 arg2 = wxString_in_helper(obj1);
11825 if (arg2 == NULL) SWIG_fail;
e811c8ce 11826 temp2 = True;
d14a1e28
RD
11827 }
11828 {
11829 arg3 = &temp3;
11830 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11831 }
15afbcd0
RD
11832 arg4 = (double) SWIG_AsDouble(obj3);
11833 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11834 {
11835 PyThreadState* __tstate = wxPyBeginAllowThreads();
11836 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11837
11838 wxPyEndAllowThreads(__tstate);
11839 if (PyErr_Occurred()) SWIG_fail;
11840 }
11841 Py_INCREF(Py_None); resultobj = Py_None;
11842 {
11843 if (temp2)
11844 delete arg2;
11845 }
11846 return resultobj;
11847 fail:
11848 {
11849 if (temp2)
11850 delete arg2;
11851 }
11852 return NULL;
11853}
11854
11855
03e37cd5 11856static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11857 PyObject *resultobj;
11858 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11859 int arg2 ;
11860 int arg3 ;
11861 int arg4 ;
11862 int arg5 ;
d14a1e28 11863 wxDC *arg6 = (wxDC *) 0 ;
e811c8ce
RD
11864 int arg7 ;
11865 int arg8 ;
d14a1e28 11866 int arg9 = (int) wxCOPY ;
e811c8ce
RD
11867 bool arg10 = (bool) False ;
11868 int arg11 = (int) -1 ;
11869 int arg12 = (int) -1 ;
d14a1e28
RD
11870 bool result;
11871 PyObject * obj0 = 0 ;
994141e6
RD
11872 PyObject * obj1 = 0 ;
11873 PyObject * obj2 = 0 ;
11874 PyObject * obj3 = 0 ;
11875 PyObject * obj4 = 0 ;
d14a1e28 11876 PyObject * obj5 = 0 ;
994141e6
RD
11877 PyObject * obj6 = 0 ;
11878 PyObject * obj7 = 0 ;
11879 PyObject * obj8 = 0 ;
d14a1e28 11880 PyObject * obj9 = 0 ;
994141e6
RD
11881 PyObject * obj10 = 0 ;
11882 PyObject * obj11 = 0 ;
d14a1e28
RD
11883 char *kwnames[] = {
11884 (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
11885 };
11886
03e37cd5 11887 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
11888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11890 arg2 = (int) SWIG_AsInt(obj1);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 arg3 = (int) SWIG_AsInt(obj2);
11893 if (PyErr_Occurred()) SWIG_fail;
11894 arg4 = (int) SWIG_AsInt(obj3);
11895 if (PyErr_Occurred()) SWIG_fail;
11896 arg5 = (int) SWIG_AsInt(obj4);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11900 arg7 = (int) SWIG_AsInt(obj6);
11901 if (PyErr_Occurred()) SWIG_fail;
11902 arg8 = (int) SWIG_AsInt(obj7);
11903 if (PyErr_Occurred()) SWIG_fail;
994141e6 11904 if (obj8) {
15afbcd0
RD
11905 arg9 = (int) SWIG_AsInt(obj8);
11906 if (PyErr_Occurred()) SWIG_fail;
994141e6 11907 }
d14a1e28 11908 if (obj9) {
15afbcd0
RD
11909 arg10 = (bool) SWIG_AsBool(obj9);
11910 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
11911 }
11912 if (obj10) {
15afbcd0
RD
11913 arg11 = (int) SWIG_AsInt(obj10);
11914 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
11915 }
11916 if (obj11) {
15afbcd0
RD
11917 arg12 = (int) SWIG_AsInt(obj11);
11918 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11919 }
11920 {
11921 PyThreadState* __tstate = wxPyBeginAllowThreads();
11922 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11923
11924 wxPyEndAllowThreads(__tstate);
11925 if (PyErr_Occurred()) SWIG_fail;
11926 }
4f89f6a3
RD
11927 {
11928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11929 }
d14a1e28
RD
11930 return resultobj;
11931 fail:
11932 return NULL;
11933}
11934
11935
03e37cd5 11936static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11937 PyObject *resultobj;
11938 wxDC *arg1 = (wxDC *) 0 ;
11939 wxPoint *arg2 = 0 ;
11940 wxSize *arg3 = 0 ;
11941 wxDC *arg4 = (wxDC *) 0 ;
11942 wxPoint *arg5 = 0 ;
11943 int arg6 = (int) wxCOPY ;
e811c8ce 11944 bool arg7 = (bool) False ;
d14a1e28
RD
11945 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11946 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11947 bool result;
11948 wxPoint temp2 ;
11949 wxSize temp3 ;
11950 wxPoint temp5 ;
11951 wxPoint temp8 ;
11952 PyObject * obj0 = 0 ;
11953 PyObject * obj1 = 0 ;
11954 PyObject * obj2 = 0 ;
11955 PyObject * obj3 = 0 ;
11956 PyObject * obj4 = 0 ;
994141e6 11957 PyObject * obj5 = 0 ;
d14a1e28
RD
11958 PyObject * obj6 = 0 ;
11959 PyObject * obj7 = 0 ;
11960 char *kwnames[] = {
11961 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11962 };
11963
03e37cd5 11964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
15afbcd0
RD
11965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11967 {
11968 arg2 = &temp2;
11969 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11970 }
11971 {
11972 arg3 = &temp3;
11973 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11974 }
15afbcd0
RD
11975 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11977 {
11978 arg5 = &temp5;
11979 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11980 }
994141e6 11981 if (obj5) {
15afbcd0
RD
11982 arg6 = (int) SWIG_AsInt(obj5);
11983 if (PyErr_Occurred()) SWIG_fail;
994141e6 11984 }
d14a1e28 11985 if (obj6) {
15afbcd0
RD
11986 arg7 = (bool) SWIG_AsBool(obj6);
11987 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11988 }
11989 if (obj7) {
11990 {
11991 arg8 = &temp8;
11992 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11993 }
11994 }
11995 {
11996 PyThreadState* __tstate = wxPyBeginAllowThreads();
11997 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11998
11999 wxPyEndAllowThreads(__tstate);
12000 if (PyErr_Occurred()) SWIG_fail;
12001 }
4f89f6a3
RD
12002 {
12003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12004 }
d14a1e28
RD
12005 return resultobj;
12006 fail:
12007 return NULL;
12008}
12009
12010
03e37cd5 12011static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12012 PyObject *resultobj;
12013 wxDC *arg1 = (wxDC *) 0 ;
12014 int arg2 ;
03e37cd5
RD
12015 int arg3 ;
12016 int arg4 ;
12017 int arg5 ;
d14a1e28
RD
12018 PyObject * obj0 = 0 ;
12019 PyObject * obj1 = 0 ;
994141e6
RD
12020 PyObject * obj2 = 0 ;
12021 PyObject * obj3 = 0 ;
03e37cd5 12022 PyObject * obj4 = 0 ;
d14a1e28 12023 char *kwnames[] = {
03e37cd5 12024 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d14a1e28
RD
12025 };
12026
03e37cd5 12027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
12028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
03e37cd5
RD
12030 arg2 = (int) SWIG_AsInt(obj1);
12031 if (PyErr_Occurred()) SWIG_fail;
12032 arg3 = (int) SWIG_AsInt(obj2);
12033 if (PyErr_Occurred()) SWIG_fail;
12034 arg4 = (int) SWIG_AsInt(obj3);
12035 if (PyErr_Occurred()) SWIG_fail;
12036 arg5 = (int) SWIG_AsInt(obj4);
12037 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12038 {
12039 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 12040 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
d14a1e28
RD
12041
12042 wxPyEndAllowThreads(__tstate);
12043 if (PyErr_Occurred()) SWIG_fail;
12044 }
12045 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
12046 return resultobj;
12047 fail:
d14a1e28
RD
12048 return NULL;
12049}
12050
12051
03e37cd5 12052static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12053 PyObject *resultobj;
12054 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5
RD
12055 wxPoint *arg2 = 0 ;
12056 wxSize *arg3 = 0 ;
12057 wxPoint temp2 ;
12058 wxSize temp3 ;
d14a1e28
RD
12059 PyObject * obj0 = 0 ;
12060 PyObject * obj1 = 0 ;
994141e6 12061 PyObject * obj2 = 0 ;
d14a1e28 12062 char *kwnames[] = {
03e37cd5 12063 (char *) "self",(char *) "pt",(char *) "sz", NULL
d14a1e28
RD
12064 };
12065
03e37cd5 12066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
12067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 12069 {
03e37cd5
RD
12070 arg2 = &temp2;
12071 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
994141e6 12072 }
03e37cd5
RD
12073 {
12074 arg3 = &temp3;
12075 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
994141e6 12076 }
d14a1e28
RD
12077 {
12078 PyThreadState* __tstate = wxPyBeginAllowThreads();
03e37cd5 12079 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
d14a1e28
RD
12080
12081 wxPyEndAllowThreads(__tstate);
12082 if (PyErr_Occurred()) SWIG_fail;
12083 }
12084 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
12085 return resultobj;
12086 fail:
d14a1e28
RD
12087 return NULL;
12088}
12089
12090
03e37cd5 12091static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12092 PyObject *resultobj;
12093 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5 12094 wxRegion *arg2 = 0 ;
d14a1e28
RD
12095 PyObject * obj0 = 0 ;
12096 PyObject * obj1 = 0 ;
d14a1e28 12097 char *kwnames[] = {
03e37cd5 12098 (char *) "self",(char *) "region", NULL
d14a1e28
RD
12099 };
12100
03e37cd5
RD
12101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12104 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12105 SWIG_POINTER_EXCEPTION | 0)) == -1)
12106 SWIG_fail;
12107 if (arg2 == NULL) {
12108 PyErr_SetString(PyExc_TypeError,"null reference");
12109 SWIG_fail;
12110 }
12111 {
12112 PyThreadState* __tstate = wxPyBeginAllowThreads();
12113 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12114
12115 wxPyEndAllowThreads(__tstate);
12116 if (PyErr_Occurred()) SWIG_fail;
12117 }
12118 Py_INCREF(Py_None); resultobj = Py_None;
12119 return resultobj;
12120 fail:
12121 return NULL;
12122}
12123
12124
12125static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12126 PyObject *resultobj;
12127 wxDC *arg1 = (wxDC *) 0 ;
12128 wxRect *arg2 = 0 ;
12129 wxRect temp2 ;
12130 PyObject * obj0 = 0 ;
12131 PyObject * obj1 = 0 ;
12132 char *kwnames[] = {
12133 (char *) "self",(char *) "rect", NULL
12134 };
12135
12136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12139 {
12140 arg2 = &temp2;
12141 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12142 }
12143 {
12144 PyThreadState* __tstate = wxPyBeginAllowThreads();
12145 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12146
12147 wxPyEndAllowThreads(__tstate);
12148 if (PyErr_Occurred()) SWIG_fail;
12149 }
12150 Py_INCREF(Py_None); resultobj = Py_None;
12151 return resultobj;
12152 fail:
12153 return NULL;
12154}
12155
12156
12157static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12158 PyObject *resultobj;
12159 wxDC *arg1 = (wxDC *) 0 ;
12160 int arg2 ;
12161 wxPoint *arg3 = (wxPoint *) 0 ;
12162 int arg4 = (int) 0 ;
12163 int arg5 = (int) 0 ;
12164 PyObject * obj0 = 0 ;
12165 PyObject * obj1 = 0 ;
12166 PyObject * obj2 = 0 ;
12167 PyObject * obj3 = 0 ;
12168 char *kwnames[] = {
12169 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12170 };
12171
12172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12175 {
12176 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12177 if (arg3 == NULL) SWIG_fail;
12178 }
12179 if (obj2) {
12180 arg4 = (int) SWIG_AsInt(obj2);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 }
12183 if (obj3) {
12184 arg5 = (int) SWIG_AsInt(obj3);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 }
12187 {
12188 PyThreadState* __tstate = wxPyBeginAllowThreads();
12189 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12190
12191 wxPyEndAllowThreads(__tstate);
12192 if (PyErr_Occurred()) SWIG_fail;
12193 }
12194 Py_INCREF(Py_None); resultobj = Py_None;
12195 {
12196 if (arg3) delete [] arg3;
12197 }
12198 return resultobj;
12199 fail:
12200 {
12201 if (arg3) delete [] arg3;
12202 }
12203 return NULL;
12204}
12205
12206
12207static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12208 PyObject *resultobj;
12209 wxDC *arg1 = (wxDC *) 0 ;
12210 int arg2 ;
12211 wxPoint *arg3 = (wxPoint *) 0 ;
12212 int arg4 = (int) 0 ;
12213 int arg5 = (int) 0 ;
12214 int arg6 = (int) wxODDEVEN_RULE ;
12215 PyObject * obj0 = 0 ;
12216 PyObject * obj1 = 0 ;
12217 PyObject * obj2 = 0 ;
12218 PyObject * obj3 = 0 ;
12219 PyObject * obj4 = 0 ;
12220 char *kwnames[] = {
12221 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12222 };
12223
12224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12227 {
12228 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12229 if (arg3 == NULL) SWIG_fail;
12230 }
12231 if (obj2) {
12232 arg4 = (int) SWIG_AsInt(obj2);
12233 if (PyErr_Occurred()) SWIG_fail;
12234 }
12235 if (obj3) {
12236 arg5 = (int) SWIG_AsInt(obj3);
12237 if (PyErr_Occurred()) SWIG_fail;
12238 }
12239 if (obj4) {
12240 arg6 = (int) SWIG_AsInt(obj4);
12241 if (PyErr_Occurred()) SWIG_fail;
12242 }
12243 {
12244 PyThreadState* __tstate = wxPyBeginAllowThreads();
12245 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12246
12247 wxPyEndAllowThreads(__tstate);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 Py_INCREF(Py_None); resultobj = Py_None;
12251 {
12252 if (arg3) delete [] arg3;
12253 }
12254 return resultobj;
12255 fail:
12256 {
12257 if (arg3) delete [] arg3;
12258 }
12259 return NULL;
12260}
12261
12262
12263static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12264 PyObject *resultobj;
12265 wxDC *arg1 = (wxDC *) 0 ;
12266 wxString *arg2 = 0 ;
12267 wxRect *arg3 = 0 ;
12268 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12269 int arg5 = (int) -1 ;
12270 bool temp2 = False ;
12271 wxRect temp3 ;
12272 PyObject * obj0 = 0 ;
12273 PyObject * obj1 = 0 ;
12274 PyObject * obj2 = 0 ;
12275 PyObject * obj3 = 0 ;
12276 PyObject * obj4 = 0 ;
12277 char *kwnames[] = {
12278 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12279 };
12280
12281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
12282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12284 {
12285 arg2 = wxString_in_helper(obj1);
12286 if (arg2 == NULL) SWIG_fail;
e811c8ce 12287 temp2 = True;
d14a1e28
RD
12288 }
12289 {
12290 arg3 = &temp3;
12291 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12292 }
994141e6 12293 if (obj3) {
15afbcd0
RD
12294 arg4 = (int) SWIG_AsInt(obj3);
12295 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
12296 }
12297 if (obj4) {
15afbcd0
RD
12298 arg5 = (int) SWIG_AsInt(obj4);
12299 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
12300 }
12301 {
12302 PyThreadState* __tstate = wxPyBeginAllowThreads();
12303 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
d14a1e28
RD
12304
12305 wxPyEndAllowThreads(__tstate);
12306 if (PyErr_Occurred()) SWIG_fail;
12307 }
12308 Py_INCREF(Py_None); resultobj = Py_None;
12309 {
12310 if (temp2)
12311 delete arg2;
12312 }
12313 return resultobj;
12314 fail:
12315 {
12316 if (temp2)
12317 delete arg2;
12318 }
12319 return NULL;
12320}
12321
12322
12323static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12324 PyObject *resultobj;
12325 wxDC *arg1 = (wxDC *) 0 ;
12326 wxString *arg2 = 0 ;
12327 wxBitmap *arg3 = 0 ;
12328 wxRect *arg4 = 0 ;
12329 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12330 int arg6 = (int) -1 ;
12331 wxRect result;
e811c8ce 12332 bool temp2 = False ;
d14a1e28
RD
12333 wxRect temp4 ;
12334 PyObject * obj0 = 0 ;
12335 PyObject * obj1 = 0 ;
12336 PyObject * obj2 = 0 ;
12337 PyObject * obj3 = 0 ;
994141e6
RD
12338 PyObject * obj4 = 0 ;
12339 PyObject * obj5 = 0 ;
d14a1e28
RD
12340 char *kwnames[] = {
12341 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12342 };
12343
994141e6 12344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15afbcd0
RD
12345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12347 {
12348 arg2 = wxString_in_helper(obj1);
12349 if (arg2 == NULL) SWIG_fail;
e811c8ce 12350 temp2 = True;
d14a1e28 12351 }
15afbcd0
RD
12352 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12353 SWIG_POINTER_EXCEPTION | 0)) == -1)
12354 SWIG_fail;
d14a1e28 12355 if (arg3 == NULL) {
15afbcd0
RD
12356 PyErr_SetString(PyExc_TypeError,"null reference");
12357 SWIG_fail;
d14a1e28
RD
12358 }
12359 {
12360 arg4 = &temp4;
12361 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12362 }
994141e6 12363 if (obj4) {
15afbcd0
RD
12364 arg5 = (int) SWIG_AsInt(obj4);
12365 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
12366 }
12367 if (obj5) {
15afbcd0
RD
12368 arg6 = (int) SWIG_AsInt(obj5);
12369 if (PyErr_Occurred()) SWIG_fail;
994141e6 12370 }
d14a1e28
RD
12371 {
12372 PyThreadState* __tstate = wxPyBeginAllowThreads();
12373 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12374
12375 wxPyEndAllowThreads(__tstate);
12376 if (PyErr_Occurred()) SWIG_fail;
12377 }
12378 {
12379 wxRect * resultptr;
12380 resultptr = new wxRect((wxRect &) result);
15afbcd0 12381 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
12382 }
12383 {
12384 if (temp2)
12385 delete arg2;
12386 }
12387 return resultobj;
12388 fail:
12389 {
12390 if (temp2)
12391 delete arg2;
12392 }
12393 return NULL;
12394}
12395
12396
12397static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12398 PyObject *resultobj;
12399 wxDC *arg1 = (wxDC *) 0 ;
12400 int arg2 ;
12401 wxPoint *arg3 = (wxPoint *) 0 ;
12402 PyObject * obj0 = 0 ;
12403 PyObject * obj1 = 0 ;
12404 char *kwnames[] = {
12405 (char *) "self",(char *) "points", NULL
12406 };
12407
12408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12411 {
12412 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12413 if (arg3 == NULL) SWIG_fail;
12414 }
12415 {
12416 PyThreadState* __tstate = wxPyBeginAllowThreads();
12417 (arg1)->DrawSpline(arg2,arg3);
12418
12419 wxPyEndAllowThreads(__tstate);
12420 if (PyErr_Occurred()) SWIG_fail;
12421 }
12422 Py_INCREF(Py_None); resultobj = Py_None;
12423 {
12424 if (arg3) delete [] arg3;
12425 }
12426 return resultobj;
12427 fail:
12428 {
12429 if (arg3) delete [] arg3;
12430 }
12431 return NULL;
12432}
12433
12434
12435static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12436 PyObject *resultobj;
12437 wxDC *arg1 = (wxDC *) 0 ;
12438 PyObject * obj0 = 0 ;
12439 char *kwnames[] = {
12440 (char *) "self", NULL
12441 };
12442
12443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
15afbcd0
RD
12444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12446 {
12447 PyThreadState* __tstate = wxPyBeginAllowThreads();
12448 (arg1)->Clear();
12449
12450 wxPyEndAllowThreads(__tstate);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 }
12453 Py_INCREF(Py_None); resultobj = Py_None;
12454 return resultobj;
12455 fail:
12456 return NULL;
12457}
12458
12459
12460static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12461 PyObject *resultobj;
12462 wxDC *arg1 = (wxDC *) 0 ;
12463 wxString *arg2 = 0 ;
12464 bool result;
e811c8ce 12465 bool temp2 = False ;
d14a1e28
RD
12466 PyObject * obj0 = 0 ;
12467 PyObject * obj1 = 0 ;
12468 char *kwnames[] = {
12469 (char *) "self",(char *) "message", NULL
12470 };
12471
12472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12475 {
12476 arg2 = wxString_in_helper(obj1);
12477 if (arg2 == NULL) SWIG_fail;
e811c8ce 12478 temp2 = True;
d14a1e28
RD
12479 }
12480 {
12481 PyThreadState* __tstate = wxPyBeginAllowThreads();
12482 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12483
12484 wxPyEndAllowThreads(__tstate);
12485 if (PyErr_Occurred()) SWIG_fail;
12486 }
4f89f6a3
RD
12487 {
12488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12489 }
d14a1e28
RD
12490 {
12491 if (temp2)
12492 delete arg2;
12493 }
12494 return resultobj;
12495 fail:
12496 {
12497 if (temp2)
12498 delete arg2;
12499 }
12500 return NULL;
12501}
12502
12503
12504static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12505 PyObject *resultobj;
12506 wxDC *arg1 = (wxDC *) 0 ;
12507 PyObject * obj0 = 0 ;
12508 char *kwnames[] = {
12509 (char *) "self", NULL
12510 };
12511
12512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
15afbcd0
RD
12513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12515 {
12516 PyThreadState* __tstate = wxPyBeginAllowThreads();
12517 (arg1)->EndDoc();
12518
12519 wxPyEndAllowThreads(__tstate);
12520 if (PyErr_Occurred()) SWIG_fail;
12521 }
12522 Py_INCREF(Py_None); resultobj = Py_None;
12523 return resultobj;
12524 fail:
12525 return NULL;
12526}
12527
12528
12529static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12530 PyObject *resultobj;
12531 wxDC *arg1 = (wxDC *) 0 ;
12532 PyObject * obj0 = 0 ;
12533 char *kwnames[] = {
12534 (char *) "self", NULL
12535 };
12536
12537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
15afbcd0
RD
12538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12540 {
12541 PyThreadState* __tstate = wxPyBeginAllowThreads();
12542 (arg1)->StartPage();
12543
12544 wxPyEndAllowThreads(__tstate);
12545 if (PyErr_Occurred()) SWIG_fail;
12546 }
12547 Py_INCREF(Py_None); resultobj = Py_None;
12548 return resultobj;
12549 fail:
12550 return NULL;
12551}
12552
12553
12554static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12555 PyObject *resultobj;
12556 wxDC *arg1 = (wxDC *) 0 ;
12557 PyObject * obj0 = 0 ;
12558 char *kwnames[] = {
12559 (char *) "self", NULL
12560 };
12561
12562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
15afbcd0
RD
12563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12565 {
12566 PyThreadState* __tstate = wxPyBeginAllowThreads();
12567 (arg1)->EndPage();
12568
12569 wxPyEndAllowThreads(__tstate);
12570 if (PyErr_Occurred()) SWIG_fail;
12571 }
12572 Py_INCREF(Py_None); resultobj = Py_None;
12573 return resultobj;
12574 fail:
12575 return NULL;
12576}
12577
12578
12579static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12580 PyObject *resultobj;
12581 wxDC *arg1 = (wxDC *) 0 ;
12582 wxFont *arg2 = 0 ;
12583 PyObject * obj0 = 0 ;
12584 PyObject * obj1 = 0 ;
12585 char *kwnames[] = {
12586 (char *) "self",(char *) "font", NULL
12587 };
12588
12589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12592 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12593 SWIG_POINTER_EXCEPTION | 0)) == -1)
12594 SWIG_fail;
d14a1e28 12595 if (arg2 == NULL) {
15afbcd0
RD
12596 PyErr_SetString(PyExc_TypeError,"null reference");
12597 SWIG_fail;
d14a1e28
RD
12598 }
12599 {
12600 PyThreadState* __tstate = wxPyBeginAllowThreads();
12601 (arg1)->SetFont((wxFont const &)*arg2);
12602
12603 wxPyEndAllowThreads(__tstate);
12604 if (PyErr_Occurred()) SWIG_fail;
12605 }
12606 Py_INCREF(Py_None); resultobj = Py_None;
12607 return resultobj;
12608 fail:
12609 return NULL;
12610}
12611
12612
12613static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12614 PyObject *resultobj;
12615 wxDC *arg1 = (wxDC *) 0 ;
12616 wxPen *arg2 = 0 ;
12617 PyObject * obj0 = 0 ;
12618 PyObject * obj1 = 0 ;
12619 char *kwnames[] = {
12620 (char *) "self",(char *) "pen", NULL
12621 };
12622
12623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12626 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12627 SWIG_POINTER_EXCEPTION | 0)) == -1)
12628 SWIG_fail;
d14a1e28 12629 if (arg2 == NULL) {
15afbcd0
RD
12630 PyErr_SetString(PyExc_TypeError,"null reference");
12631 SWIG_fail;
d14a1e28
RD
12632 }
12633 {
12634 PyThreadState* __tstate = wxPyBeginAllowThreads();
12635 (arg1)->SetPen((wxPen const &)*arg2);
12636
12637 wxPyEndAllowThreads(__tstate);
12638 if (PyErr_Occurred()) SWIG_fail;
12639 }
12640 Py_INCREF(Py_None); resultobj = Py_None;
12641 return resultobj;
12642 fail:
12643 return NULL;
12644}
12645
12646
12647static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12648 PyObject *resultobj;
12649 wxDC *arg1 = (wxDC *) 0 ;
12650 wxBrush *arg2 = 0 ;
12651 PyObject * obj0 = 0 ;
12652 PyObject * obj1 = 0 ;
12653 char *kwnames[] = {
12654 (char *) "self",(char *) "brush", NULL
12655 };
12656
12657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12660 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12661 SWIG_POINTER_EXCEPTION | 0)) == -1)
12662 SWIG_fail;
d14a1e28 12663 if (arg2 == NULL) {
15afbcd0
RD
12664 PyErr_SetString(PyExc_TypeError,"null reference");
12665 SWIG_fail;
d14a1e28
RD
12666 }
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 (arg1)->SetBrush((wxBrush const &)*arg2);
12670
12671 wxPyEndAllowThreads(__tstate);
12672 if (PyErr_Occurred()) SWIG_fail;
12673 }
12674 Py_INCREF(Py_None); resultobj = Py_None;
12675 return resultobj;
12676 fail:
12677 return NULL;
12678}
12679
12680
12681static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12682 PyObject *resultobj;
12683 wxDC *arg1 = (wxDC *) 0 ;
12684 wxBrush *arg2 = 0 ;
12685 PyObject * obj0 = 0 ;
12686 PyObject * obj1 = 0 ;
12687 char *kwnames[] = {
12688 (char *) "self",(char *) "brush", NULL
12689 };
12690
12691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12694 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12695 SWIG_POINTER_EXCEPTION | 0)) == -1)
12696 SWIG_fail;
d14a1e28 12697 if (arg2 == NULL) {
15afbcd0
RD
12698 PyErr_SetString(PyExc_TypeError,"null reference");
12699 SWIG_fail;
d14a1e28
RD
12700 }
12701 {
12702 PyThreadState* __tstate = wxPyBeginAllowThreads();
12703 (arg1)->SetBackground((wxBrush const &)*arg2);
12704
12705 wxPyEndAllowThreads(__tstate);
12706 if (PyErr_Occurred()) SWIG_fail;
12707 }
12708 Py_INCREF(Py_None); resultobj = Py_None;
12709 return resultobj;
12710 fail:
12711 return NULL;
12712}
12713
12714
12715static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12716 PyObject *resultobj;
12717 wxDC *arg1 = (wxDC *) 0 ;
12718 int arg2 ;
12719 PyObject * obj0 = 0 ;
994141e6 12720 PyObject * obj1 = 0 ;
d14a1e28
RD
12721 char *kwnames[] = {
12722 (char *) "self",(char *) "mode", NULL
12723 };
12724
994141e6 12725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12728 arg2 = (int) SWIG_AsInt(obj1);
12729 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12730 {
12731 PyThreadState* __tstate = wxPyBeginAllowThreads();
12732 (arg1)->SetBackgroundMode(arg2);
12733
12734 wxPyEndAllowThreads(__tstate);
12735 if (PyErr_Occurred()) SWIG_fail;
12736 }
12737 Py_INCREF(Py_None); resultobj = Py_None;
12738 return resultobj;
12739 fail:
12740 return NULL;
12741}
12742
12743
12744static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12745 PyObject *resultobj;
12746 wxDC *arg1 = (wxDC *) 0 ;
12747 wxPalette *arg2 = 0 ;
12748 PyObject * obj0 = 0 ;
12749 PyObject * obj1 = 0 ;
12750 char *kwnames[] = {
12751 (char *) "self",(char *) "palette", NULL
12752 };
12753
12754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12757 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12758 SWIG_POINTER_EXCEPTION | 0)) == -1)
12759 SWIG_fail;
d14a1e28 12760 if (arg2 == NULL) {
15afbcd0
RD
12761 PyErr_SetString(PyExc_TypeError,"null reference");
12762 SWIG_fail;
d14a1e28
RD
12763 }
12764 {
12765 PyThreadState* __tstate = wxPyBeginAllowThreads();
12766 (arg1)->SetPalette((wxPalette const &)*arg2);
12767
12768 wxPyEndAllowThreads(__tstate);
12769 if (PyErr_Occurred()) SWIG_fail;
12770 }
12771 Py_INCREF(Py_None); resultobj = Py_None;
12772 return resultobj;
12773 fail:
12774 return NULL;
12775}
12776
12777
d14a1e28
RD
12778static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12779 PyObject *resultobj;
12780 wxDC *arg1 = (wxDC *) 0 ;
12781 PyObject * obj0 = 0 ;
12782 char *kwnames[] = {
12783 (char *) "self", NULL
12784 };
12785
12786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
15afbcd0
RD
12787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12789 {
12790 PyThreadState* __tstate = wxPyBeginAllowThreads();
12791 (arg1)->DestroyClippingRegion();
12792
12793 wxPyEndAllowThreads(__tstate);
12794 if (PyErr_Occurred()) SWIG_fail;
12795 }
12796 Py_INCREF(Py_None); resultobj = Py_None;
12797 return resultobj;
12798 fail:
12799 return NULL;
12800}
12801
12802
12803static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12804 PyObject *resultobj;
12805 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
12806 int *arg2 = (int *) 0 ;
12807 int *arg3 = (int *) 0 ;
12808 int *arg4 = (int *) 0 ;
12809 int *arg5 = (int *) 0 ;
12810 int temp2 ;
12811 int temp3 ;
12812 int temp4 ;
12813 int temp5 ;
d14a1e28
RD
12814 PyObject * obj0 = 0 ;
12815 char *kwnames[] = {
12816 (char *) "self", NULL
12817 };
12818
12819 arg2 = &temp2;
12820 arg3 = &temp3;
12821 arg4 = &temp4;
12822 arg5 = &temp5;
12823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
15afbcd0
RD
12824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12826 {
12827 PyThreadState* __tstate = wxPyBeginAllowThreads();
12828 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12829
12830 wxPyEndAllowThreads(__tstate);
12831 if (PyErr_Occurred()) SWIG_fail;
12832 }
12833 Py_INCREF(Py_None); resultobj = Py_None;
12834 {
12835 PyObject *o = PyInt_FromLong((long) (*arg2));
12836 resultobj = t_output_helper(resultobj,o);
12837 }
12838 {
12839 PyObject *o = PyInt_FromLong((long) (*arg3));
12840 resultobj = t_output_helper(resultobj,o);
12841 }
12842 {
12843 PyObject *o = PyInt_FromLong((long) (*arg4));
12844 resultobj = t_output_helper(resultobj,o);
12845 }
12846 {
12847 PyObject *o = PyInt_FromLong((long) (*arg5));
12848 resultobj = t_output_helper(resultobj,o);
12849 }
12850 return resultobj;
12851 fail:
12852 return NULL;
12853}
12854
12855
12856static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12857 PyObject *resultobj;
12858 wxDC *arg1 = (wxDC *) 0 ;
12859 wxRect result;
12860 PyObject * obj0 = 0 ;
12861 char *kwnames[] = {
12862 (char *) "self", NULL
12863 };
12864
12865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
15afbcd0
RD
12866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12868 {
12869 PyThreadState* __tstate = wxPyBeginAllowThreads();
12870 result = wxDC_GetClippingRect(arg1);
12871
12872 wxPyEndAllowThreads(__tstate);
12873 if (PyErr_Occurred()) SWIG_fail;
12874 }
12875 {
12876 wxRect * resultptr;
12877 resultptr = new wxRect((wxRect &) result);
15afbcd0 12878 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
12879 }
12880 return resultobj;
12881 fail:
12882 return NULL;
12883}
12884
12885
12886static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12887 PyObject *resultobj;
12888 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 12889 int result;
d14a1e28
RD
12890 PyObject * obj0 = 0 ;
12891 char *kwnames[] = {
12892 (char *) "self", NULL
12893 };
12894
12895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
15afbcd0
RD
12896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12898 {
12899 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 12900 result = (int)((wxDC const *)arg1)->GetCharHeight();
d14a1e28
RD
12901
12902 wxPyEndAllowThreads(__tstate);
12903 if (PyErr_Occurred()) SWIG_fail;
12904 }
15afbcd0 12905 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
12906 return resultobj;
12907 fail:
12908 return NULL;
12909}
12910
12911
12912static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12913 PyObject *resultobj;
12914 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 12915 int result;
d14a1e28
RD
12916 PyObject * obj0 = 0 ;
12917 char *kwnames[] = {
12918 (char *) "self", NULL
12919 };
12920
12921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
15afbcd0
RD
12922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12924 {
12925 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 12926 result = (int)((wxDC const *)arg1)->GetCharWidth();
d14a1e28
RD
12927
12928 wxPyEndAllowThreads(__tstate);
12929 if (PyErr_Occurred()) SWIG_fail;
12930 }
15afbcd0 12931 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
12932 return resultobj;
12933 fail:
12934 return NULL;
12935}
12936
12937
12938static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12939 PyObject *resultobj;
12940 wxDC *arg1 = (wxDC *) 0 ;
12941 wxString *arg2 = 0 ;
e811c8ce
RD
12942 int *arg3 = (int *) 0 ;
12943 int *arg4 = (int *) 0 ;
12944 bool temp2 = False ;
12945 int temp3 ;
12946 int temp4 ;
d14a1e28
RD
12947 PyObject * obj0 = 0 ;
12948 PyObject * obj1 = 0 ;
12949 char *kwnames[] = {
12950 (char *) "self",(char *) "string", NULL
12951 };
12952
12953 arg3 = &temp3;
12954 arg4 = &temp4;
12955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
12956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12958 {
12959 arg2 = wxString_in_helper(obj1);
12960 if (arg2 == NULL) SWIG_fail;
e811c8ce 12961 temp2 = True;
d14a1e28
RD
12962 }
12963 {
12964 PyThreadState* __tstate = wxPyBeginAllowThreads();
12965 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12966
12967 wxPyEndAllowThreads(__tstate);
12968 if (PyErr_Occurred()) SWIG_fail;
12969 }
12970 Py_INCREF(Py_None); resultobj = Py_None;
12971 {
12972 PyObject *o = PyInt_FromLong((long) (*arg3));
12973 resultobj = t_output_helper(resultobj,o);
12974 }
12975 {
12976 PyObject *o = PyInt_FromLong((long) (*arg4));
12977 resultobj = t_output_helper(resultobj,o);
12978 }
12979 {
12980 if (temp2)
12981 delete arg2;
12982 }
12983 return resultobj;
12984 fail:
12985 {
12986 if (temp2)
12987 delete arg2;
12988 }
12989 return NULL;
12990}
12991
12992
12993static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12994 PyObject *resultobj;
12995 wxDC *arg1 = (wxDC *) 0 ;
12996 wxString *arg2 = 0 ;
e811c8ce
RD
12997 int *arg3 = (int *) 0 ;
12998 int *arg4 = (int *) 0 ;
12999 int *arg5 = (int *) 0 ;
13000 int *arg6 = (int *) 0 ;
d14a1e28 13001 wxFont *arg7 = (wxFont *) NULL ;
e811c8ce
RD
13002 bool temp2 = False ;
13003 int temp3 ;
13004 int temp4 ;
13005 int temp5 ;
13006 int temp6 ;
d14a1e28
RD
13007 PyObject * obj0 = 0 ;
13008 PyObject * obj1 = 0 ;
13009 PyObject * obj2 = 0 ;
13010 char *kwnames[] = {
13011 (char *) "self",(char *) "string",(char *) "font", NULL
13012 };
13013
13014 arg3 = &temp3;
13015 arg4 = &temp4;
13016 arg5 = &temp5;
13017 arg6 = &temp6;
13018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
13019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13021 {
13022 arg2 = wxString_in_helper(obj1);
13023 if (arg2 == NULL) SWIG_fail;
e811c8ce 13024 temp2 = True;
d14a1e28
RD
13025 }
13026 if (obj2) {
15afbcd0
RD
13027 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13029 }
13030 {
13031 PyThreadState* __tstate = wxPyBeginAllowThreads();
13032 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13033
13034 wxPyEndAllowThreads(__tstate);
13035 if (PyErr_Occurred()) SWIG_fail;
13036 }
13037 Py_INCREF(Py_None); resultobj = Py_None;
13038 {
13039 PyObject *o = PyInt_FromLong((long) (*arg3));
13040 resultobj = t_output_helper(resultobj,o);
13041 }
13042 {
13043 PyObject *o = PyInt_FromLong((long) (*arg4));
13044 resultobj = t_output_helper(resultobj,o);
13045 }
13046 {
13047 PyObject *o = PyInt_FromLong((long) (*arg5));
13048 resultobj = t_output_helper(resultobj,o);
13049 }
13050 {
13051 PyObject *o = PyInt_FromLong((long) (*arg6));
13052 resultobj = t_output_helper(resultobj,o);
13053 }
13054 {
13055 if (temp2)
13056 delete arg2;
13057 }
13058 return resultobj;
13059 fail:
13060 {
13061 if (temp2)
13062 delete arg2;
13063 }
13064 return NULL;
13065}
13066
13067
13068static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13069 PyObject *resultobj;
13070 wxDC *arg1 = (wxDC *) 0 ;
13071 wxString *arg2 = 0 ;
e811c8ce
RD
13072 int *arg3 = (int *) 0 ;
13073 int *arg4 = (int *) 0 ;
13074 int *arg5 = (int *) 0 ;
d14a1e28 13075 wxFont *arg6 = (wxFont *) NULL ;
e811c8ce
RD
13076 bool temp2 = False ;
13077 int temp3 ;
13078 int temp4 ;
13079 int temp5 ;
d14a1e28
RD
13080 PyObject * obj0 = 0 ;
13081 PyObject * obj1 = 0 ;
13082 PyObject * obj2 = 0 ;
13083 char *kwnames[] = {
13084 (char *) "self",(char *) "text",(char *) "font", NULL
13085 };
13086
13087 arg3 = &temp3;
13088 arg4 = &temp4;
13089 arg5 = &temp5;
13090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
13091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13093 {
13094 arg2 = wxString_in_helper(obj1);
13095 if (arg2 == NULL) SWIG_fail;
e811c8ce 13096 temp2 = True;
d14a1e28
RD
13097 }
13098 if (obj2) {
15afbcd0
RD
13099 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13101 }
13102 {
13103 PyThreadState* __tstate = wxPyBeginAllowThreads();
13104 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13105
13106 wxPyEndAllowThreads(__tstate);
13107 if (PyErr_Occurred()) SWIG_fail;
13108 }
13109 Py_INCREF(Py_None); resultobj = Py_None;
13110 {
13111 PyObject *o = PyInt_FromLong((long) (*arg3));
13112 resultobj = t_output_helper(resultobj,o);
13113 }
13114 {
13115 PyObject *o = PyInt_FromLong((long) (*arg4));
13116 resultobj = t_output_helper(resultobj,o);
13117 }
13118 {
13119 PyObject *o = PyInt_FromLong((long) (*arg5));
13120 resultobj = t_output_helper(resultobj,o);
13121 }
13122 {
13123 if (temp2)
13124 delete arg2;
13125 }
13126 return resultobj;
13127 fail:
13128 {
13129 if (temp2)
13130 delete arg2;
13131 }
13132 return NULL;
13133}
13134
13135
db914595
RD
13136static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13137 PyObject *resultobj;
13138 wxDC *arg1 = (wxDC *) 0 ;
13139 wxString *arg2 = 0 ;
13140 wxArrayInt result;
13141 bool temp2 = False ;
13142 PyObject * obj0 = 0 ;
13143 PyObject * obj1 = 0 ;
13144 char *kwnames[] = {
13145 (char *) "self",(char *) "text", NULL
13146 };
13147
13148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
db914595
RD
13151 {
13152 arg2 = wxString_in_helper(obj1);
13153 if (arg2 == NULL) SWIG_fail;
13154 temp2 = True;
13155 }
13156 {
13157 PyThreadState* __tstate = wxPyBeginAllowThreads();
13158 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13159
13160 wxPyEndAllowThreads(__tstate);
13161 if (PyErr_Occurred()) SWIG_fail;
13162 }
13163 {
13164 resultobj = PyList_New(0);
13165 size_t idx;
13166 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13167 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13168 PyList_Append(resultobj, val);
13169 Py_DECREF(val);
13170 }
13171 }
13172 {
13173 if (temp2)
13174 delete arg2;
13175 }
13176 return resultobj;
13177 fail:
13178 {
13179 if (temp2)
13180 delete arg2;
13181 }
13182 return NULL;
13183}
13184
13185
322913ce
RD
13186static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13187 PyObject *resultobj;
13188 wxDC *arg1 = (wxDC *) 0 ;
13189 wxSize result;
13190 PyObject * obj0 = 0 ;
13191 char *kwnames[] = {
13192 (char *) "self", NULL
13193 };
13194
13195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
15afbcd0
RD
13196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
322913ce
RD
13198 {
13199 PyThreadState* __tstate = wxPyBeginAllowThreads();
13200 result = (arg1)->GetSize();
13201
13202 wxPyEndAllowThreads(__tstate);
13203 if (PyErr_Occurred()) SWIG_fail;
13204 }
13205 {
13206 wxSize * resultptr;
13207 resultptr = new wxSize((wxSize &) result);
15afbcd0 13208 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
322913ce
RD
13209 }
13210 return resultobj;
13211 fail:
13212 return NULL;
13213}
13214
13215
d14a1e28
RD
13216static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13217 PyObject *resultobj;
13218 wxDC *arg1 = (wxDC *) 0 ;
13219 int *arg2 = (int *) 0 ;
13220 int *arg3 = (int *) 0 ;
13221 int temp2 ;
13222 int temp3 ;
13223 PyObject * obj0 = 0 ;
13224 char *kwnames[] = {
13225 (char *) "self", NULL
13226 };
13227
13228 arg2 = &temp2;
13229 arg3 = &temp3;
13230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
15afbcd0
RD
13231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13233 {
13234 PyThreadState* __tstate = wxPyBeginAllowThreads();
13235 (arg1)->GetSize(arg2,arg3);
13236
13237 wxPyEndAllowThreads(__tstate);
13238 if (PyErr_Occurred()) SWIG_fail;
13239 }
13240 Py_INCREF(Py_None); resultobj = Py_None;
13241 {
13242 PyObject *o = PyInt_FromLong((long) (*arg2));
13243 resultobj = t_output_helper(resultobj,o);
13244 }
13245 {
13246 PyObject *o = PyInt_FromLong((long) (*arg3));
13247 resultobj = t_output_helper(resultobj,o);
13248 }
13249 return resultobj;
13250 fail:
13251 return NULL;
13252}
13253
13254
322913ce 13255static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13256 PyObject *resultobj;
13257 wxDC *arg1 = (wxDC *) 0 ;
13258 wxSize result;
13259 PyObject * obj0 = 0 ;
13260 char *kwnames[] = {
13261 (char *) "self", NULL
13262 };
13263
322913ce 13264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
15afbcd0
RD
13265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13267 {
13268 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 13269 result = ((wxDC const *)arg1)->GetSizeMM();
d14a1e28
RD
13270
13271 wxPyEndAllowThreads(__tstate);
13272 if (PyErr_Occurred()) SWIG_fail;
13273 }
13274 {
13275 wxSize * resultptr;
13276 resultptr = new wxSize((wxSize &) result);
15afbcd0 13277 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
13278 }
13279 return resultobj;
13280 fail:
13281 return NULL;
13282}
13283
13284
322913ce 13285static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13286 PyObject *resultobj;
13287 wxDC *arg1 = (wxDC *) 0 ;
13288 int *arg2 = (int *) 0 ;
13289 int *arg3 = (int *) 0 ;
13290 int temp2 ;
13291 int temp3 ;
13292 PyObject * obj0 = 0 ;
13293 char *kwnames[] = {
13294 (char *) "self", NULL
13295 };
13296
13297 arg2 = &temp2;
13298 arg3 = &temp3;
322913ce 13299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
15afbcd0
RD
13300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13302 {
13303 PyThreadState* __tstate = wxPyBeginAllowThreads();
13304 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13305
13306 wxPyEndAllowThreads(__tstate);
13307 if (PyErr_Occurred()) SWIG_fail;
13308 }
13309 Py_INCREF(Py_None); resultobj = Py_None;
13310 {
13311 PyObject *o = PyInt_FromLong((long) (*arg2));
13312 resultobj = t_output_helper(resultobj,o);
13313 }
13314 {
13315 PyObject *o = PyInt_FromLong((long) (*arg3));
13316 resultobj = t_output_helper(resultobj,o);
13317 }
13318 return resultobj;
13319 fail:
13320 return NULL;
13321}
13322
13323
d14a1e28
RD
13324static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13325 PyObject *resultobj;
13326 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13327 int arg2 ;
13328 int result;
d14a1e28 13329 PyObject * obj0 = 0 ;
994141e6 13330 PyObject * obj1 = 0 ;
d14a1e28
RD
13331 char *kwnames[] = {
13332 (char *) "self",(char *) "x", NULL
13333 };
13334
994141e6 13335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13338 arg2 = (int) SWIG_AsInt(obj1);
13339 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13340 {
13341 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13342 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
d14a1e28
RD
13343
13344 wxPyEndAllowThreads(__tstate);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 }
15afbcd0 13347 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13348 return resultobj;
13349 fail:
13350 return NULL;
13351}
13352
13353
13354static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13355 PyObject *resultobj;
13356 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13357 int arg2 ;
13358 int result;
d14a1e28 13359 PyObject * obj0 = 0 ;
994141e6 13360 PyObject * obj1 = 0 ;
d14a1e28
RD
13361 char *kwnames[] = {
13362 (char *) "self",(char *) "y", NULL
13363 };
13364
994141e6 13365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13368 arg2 = (int) SWIG_AsInt(obj1);
13369 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13370 {
13371 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13372 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
d14a1e28
RD
13373
13374 wxPyEndAllowThreads(__tstate);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 }
15afbcd0 13377 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13378 return resultobj;
13379 fail:
13380 return NULL;
13381}
13382
13383
13384static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13385 PyObject *resultobj;
13386 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13387 int arg2 ;
13388 int result;
d14a1e28 13389 PyObject * obj0 = 0 ;
994141e6 13390 PyObject * obj1 = 0 ;
d14a1e28
RD
13391 char *kwnames[] = {
13392 (char *) "self",(char *) "x", NULL
13393 };
13394
994141e6 13395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13398 arg2 = (int) SWIG_AsInt(obj1);
13399 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13400 {
13401 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13402 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
d14a1e28
RD
13403
13404 wxPyEndAllowThreads(__tstate);
13405 if (PyErr_Occurred()) SWIG_fail;
13406 }
15afbcd0 13407 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13408 return resultobj;
13409 fail:
13410 return NULL;
13411}
13412
13413
13414static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13415 PyObject *resultobj;
13416 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13417 int arg2 ;
13418 int result;
d14a1e28 13419 PyObject * obj0 = 0 ;
994141e6 13420 PyObject * obj1 = 0 ;
d14a1e28
RD
13421 char *kwnames[] = {
13422 (char *) "self",(char *) "y", NULL
13423 };
13424
994141e6 13425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13428 arg2 = (int) SWIG_AsInt(obj1);
13429 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13430 {
13431 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13432 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
d14a1e28
RD
13433
13434 wxPyEndAllowThreads(__tstate);
13435 if (PyErr_Occurred()) SWIG_fail;
13436 }
15afbcd0 13437 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13438 return resultobj;
13439 fail:
13440 return NULL;
13441}
13442
13443
13444static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13445 PyObject *resultobj;
13446 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13447 int arg2 ;
13448 int result;
d14a1e28 13449 PyObject * obj0 = 0 ;
994141e6 13450 PyObject * obj1 = 0 ;
d14a1e28
RD
13451 char *kwnames[] = {
13452 (char *) "self",(char *) "x", NULL
13453 };
13454
994141e6 13455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13458 arg2 = (int) SWIG_AsInt(obj1);
13459 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13460 {
13461 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13462 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
d14a1e28
RD
13463
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
15afbcd0 13467 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13468 return resultobj;
13469 fail:
13470 return NULL;
13471}
13472
13473
13474static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13475 PyObject *resultobj;
13476 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13477 int arg2 ;
13478 int result;
d14a1e28 13479 PyObject * obj0 = 0 ;
994141e6 13480 PyObject * obj1 = 0 ;
d14a1e28
RD
13481 char *kwnames[] = {
13482 (char *) "self",(char *) "y", NULL
13483 };
13484
994141e6 13485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13488 arg2 = (int) SWIG_AsInt(obj1);
13489 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13490 {
13491 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13492 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
d14a1e28
RD
13493
13494 wxPyEndAllowThreads(__tstate);
13495 if (PyErr_Occurred()) SWIG_fail;
13496 }
15afbcd0 13497 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13498 return resultobj;
13499 fail:
13500 return NULL;
13501}
13502
13503
13504static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13505 PyObject *resultobj;
13506 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13507 int arg2 ;
13508 int result;
d14a1e28 13509 PyObject * obj0 = 0 ;
994141e6 13510 PyObject * obj1 = 0 ;
d14a1e28
RD
13511 char *kwnames[] = {
13512 (char *) "self",(char *) "x", NULL
13513 };
13514
994141e6 13515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13518 arg2 = (int) SWIG_AsInt(obj1);
13519 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13520 {
13521 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13522 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
d14a1e28
RD
13523
13524 wxPyEndAllowThreads(__tstate);
13525 if (PyErr_Occurred()) SWIG_fail;
13526 }
15afbcd0 13527 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13528 return resultobj;
13529 fail:
13530 return NULL;
13531}
13532
13533
13534static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13535 PyObject *resultobj;
13536 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
13537 int arg2 ;
13538 int result;
d14a1e28 13539 PyObject * obj0 = 0 ;
994141e6 13540 PyObject * obj1 = 0 ;
d14a1e28
RD
13541 char *kwnames[] = {
13542 (char *) "self",(char *) "y", NULL
13543 };
13544
994141e6 13545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13548 arg2 = (int) SWIG_AsInt(obj1);
13549 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13550 {
13551 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 13552 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
d14a1e28
RD
13553
13554 wxPyEndAllowThreads(__tstate);
13555 if (PyErr_Occurred()) SWIG_fail;
13556 }
15afbcd0 13557 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13558 return resultobj;
13559 fail:
13560 return NULL;
13561}
13562
13563
13564static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13565 PyObject *resultobj;
13566 wxDC *arg1 = (wxDC *) 0 ;
13567 bool result;
13568 PyObject * obj0 = 0 ;
13569 char *kwnames[] = {
13570 (char *) "self", NULL
13571 };
13572
13573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
15afbcd0
RD
13574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13576 {
13577 PyThreadState* __tstate = wxPyBeginAllowThreads();
13578 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13579
13580 wxPyEndAllowThreads(__tstate);
13581 if (PyErr_Occurred()) SWIG_fail;
13582 }
4f89f6a3
RD
13583 {
13584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13585 }
d14a1e28
RD
13586 return resultobj;
13587 fail:
13588 return NULL;
13589}
13590
13591
13592static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13593 PyObject *resultobj;
13594 wxDC *arg1 = (wxDC *) 0 ;
13595 bool result;
13596 PyObject * obj0 = 0 ;
13597 char *kwnames[] = {
13598 (char *) "self", NULL
13599 };
13600
13601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
15afbcd0
RD
13602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13604 {
13605 PyThreadState* __tstate = wxPyBeginAllowThreads();
13606 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13607
13608 wxPyEndAllowThreads(__tstate);
13609 if (PyErr_Occurred()) SWIG_fail;
13610 }
4f89f6a3
RD
13611 {
13612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13613 }
d14a1e28
RD
13614 return resultobj;
13615 fail:
13616 return NULL;
13617}
13618
13619
13620static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13621 PyObject *resultobj;
13622 wxDC *arg1 = (wxDC *) 0 ;
13623 int result;
13624 PyObject * obj0 = 0 ;
13625 char *kwnames[] = {
13626 (char *) "self", NULL
13627 };
13628
13629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
15afbcd0
RD
13630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13632 {
13633 PyThreadState* __tstate = wxPyBeginAllowThreads();
13634 result = (int)((wxDC const *)arg1)->GetDepth();
13635
13636 wxPyEndAllowThreads(__tstate);
13637 if (PyErr_Occurred()) SWIG_fail;
13638 }
15afbcd0 13639 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13640 return resultobj;
13641 fail:
13642 return NULL;
13643}
13644
13645
13646static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13647 PyObject *resultobj;
13648 wxDC *arg1 = (wxDC *) 0 ;
13649 wxSize result;
13650 PyObject * obj0 = 0 ;
13651 char *kwnames[] = {
13652 (char *) "self", NULL
13653 };
13654
13655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
15afbcd0
RD
13656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13658 {
13659 PyThreadState* __tstate = wxPyBeginAllowThreads();
13660 result = ((wxDC const *)arg1)->GetPPI();
13661
13662 wxPyEndAllowThreads(__tstate);
13663 if (PyErr_Occurred()) SWIG_fail;
13664 }
13665 {
13666 wxSize * resultptr;
13667 resultptr = new wxSize((wxSize &) result);
15afbcd0 13668 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
13669 }
13670 return resultobj;
13671 fail:
13672 return NULL;
13673}
13674
13675
13676static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13677 PyObject *resultobj;
13678 wxDC *arg1 = (wxDC *) 0 ;
13679 bool result;
13680 PyObject * obj0 = 0 ;
13681 char *kwnames[] = {
13682 (char *) "self", NULL
13683 };
13684
13685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
15afbcd0
RD
13686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13688 {
13689 PyThreadState* __tstate = wxPyBeginAllowThreads();
13690 result = (bool)((wxDC const *)arg1)->Ok();
13691
13692 wxPyEndAllowThreads(__tstate);
13693 if (PyErr_Occurred()) SWIG_fail;
13694 }
4f89f6a3
RD
13695 {
13696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13697 }
d14a1e28
RD
13698 return resultobj;
13699 fail:
13700 return NULL;
13701}
13702
13703
13704static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13705 PyObject *resultobj;
13706 wxDC *arg1 = (wxDC *) 0 ;
13707 int result;
13708 PyObject * obj0 = 0 ;
13709 char *kwnames[] = {
13710 (char *) "self", NULL
13711 };
13712
13713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
15afbcd0
RD
13714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13716 {
13717 PyThreadState* __tstate = wxPyBeginAllowThreads();
13718 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13719
13720 wxPyEndAllowThreads(__tstate);
13721 if (PyErr_Occurred()) SWIG_fail;
13722 }
15afbcd0 13723 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
13724 return resultobj;
13725 fail:
13726 return NULL;
13727}
13728
13729
13730static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13731 PyObject *resultobj;
13732 wxDC *arg1 = (wxDC *) 0 ;
13733 wxBrush *result;
13734 PyObject * obj0 = 0 ;
13735 char *kwnames[] = {
13736 (char *) "self", NULL
13737 };
13738
13739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
15afbcd0
RD
13740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13742 {
13743 PyThreadState* __tstate = wxPyBeginAllowThreads();
13744 {
13745 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13746 result = (wxBrush *) &_result_ref;
13747 }
13748
13749 wxPyEndAllowThreads(__tstate);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 }
4276dc52
RD
13752 {
13753 wxBrush* resultptr = new wxBrush(*result);
13754 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13755 }
d14a1e28
RD
13756 return resultobj;
13757 fail:
13758 return NULL;
13759}
13760
13761
13762static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13763 PyObject *resultobj;
13764 wxDC *arg1 = (wxDC *) 0 ;
13765 wxBrush *result;
13766 PyObject * obj0 = 0 ;
13767 char *kwnames[] = {
13768 (char *) "self", NULL
13769 };
13770
13771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
15afbcd0
RD
13772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13774 {
13775 PyThreadState* __tstate = wxPyBeginAllowThreads();
13776 {
13777 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13778 result = (wxBrush *) &_result_ref;
13779 }
13780
13781 wxPyEndAllowThreads(__tstate);
13782 if (PyErr_Occurred()) SWIG_fail;
13783 }
4276dc52
RD
13784 {
13785 wxBrush* resultptr = new wxBrush(*result);
13786 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13787 }
d14a1e28
RD
13788 return resultobj;
13789 fail:
13790 return NULL;
13791}
13792
13793
13794static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13795 PyObject *resultobj;
13796 wxDC *arg1 = (wxDC *) 0 ;
13797 wxFont *result;
13798 PyObject * obj0 = 0 ;
13799 char *kwnames[] = {
13800 (char *) "self", NULL
13801 };
13802
13803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
15afbcd0
RD
13804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13806 {
13807 PyThreadState* __tstate = wxPyBeginAllowThreads();
13808 {
13809 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13810 result = (wxFont *) &_result_ref;
13811 }
13812
13813 wxPyEndAllowThreads(__tstate);
13814 if (PyErr_Occurred()) SWIG_fail;
13815 }
4276dc52
RD
13816 {
13817 wxFont* resultptr = new wxFont(*result);
13818 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13819 }
d14a1e28
RD
13820 return resultobj;
13821 fail:
13822 return NULL;
13823}
13824
13825
13826static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13827 PyObject *resultobj;
13828 wxDC *arg1 = (wxDC *) 0 ;
13829 wxPen *result;
13830 PyObject * obj0 = 0 ;
13831 char *kwnames[] = {
13832 (char *) "self", NULL
13833 };
13834
13835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
15afbcd0
RD
13836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13838 {
13839 PyThreadState* __tstate = wxPyBeginAllowThreads();
13840 {
13841 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13842 result = (wxPen *) &_result_ref;
13843 }
13844
13845 wxPyEndAllowThreads(__tstate);
13846 if (PyErr_Occurred()) SWIG_fail;
13847 }
4276dc52
RD
13848 {
13849 wxPen* resultptr = new wxPen(*result);
13850 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13851 }
d14a1e28
RD
13852 return resultobj;
13853 fail:
13854 return NULL;
13855}
13856
13857
13858static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13859 PyObject *resultobj;
13860 wxDC *arg1 = (wxDC *) 0 ;
13861 wxColour *result;
13862 PyObject * obj0 = 0 ;
13863 char *kwnames[] = {
13864 (char *) "self", NULL
13865 };
13866
13867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
15afbcd0
RD
13868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13870 {
13871 PyThreadState* __tstate = wxPyBeginAllowThreads();
13872 {
13873 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13874 result = (wxColour *) &_result_ref;
13875 }
13876
13877 wxPyEndAllowThreads(__tstate);
13878 if (PyErr_Occurred()) SWIG_fail;
13879 }
15afbcd0 13880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
13881 return resultobj;
13882 fail:
13883 return NULL;
13884}
13885
13886
13887static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13888 PyObject *resultobj;
13889 wxDC *arg1 = (wxDC *) 0 ;
13890 wxColour *result;
13891 PyObject * obj0 = 0 ;
13892 char *kwnames[] = {
13893 (char *) "self", NULL
13894 };
13895
13896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
15afbcd0
RD
13897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13899 {
13900 PyThreadState* __tstate = wxPyBeginAllowThreads();
13901 {
13902 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13903 result = (wxColour *) &_result_ref;
13904 }
13905
13906 wxPyEndAllowThreads(__tstate);
13907 if (PyErr_Occurred()) SWIG_fail;
13908 }
15afbcd0 13909 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
13910 return resultobj;
13911 fail:
13912 return NULL;
13913}
13914
13915
13916static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13917 PyObject *resultobj;
13918 wxDC *arg1 = (wxDC *) 0 ;
13919 wxColour *arg2 = 0 ;
13920 wxColour temp2 ;
13921 PyObject * obj0 = 0 ;
13922 PyObject * obj1 = 0 ;
13923 char *kwnames[] = {
13924 (char *) "self",(char *) "colour", NULL
13925 };
13926
13927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13930 {
13931 arg2 = &temp2;
13932 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13933 }
13934 {
13935 PyThreadState* __tstate = wxPyBeginAllowThreads();
13936 (arg1)->SetTextForeground((wxColour const &)*arg2);
13937
13938 wxPyEndAllowThreads(__tstate);
13939 if (PyErr_Occurred()) SWIG_fail;
13940 }
13941 Py_INCREF(Py_None); resultobj = Py_None;
13942 return resultobj;
13943 fail:
13944 return NULL;
13945}
13946
13947
13948static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13949 PyObject *resultobj;
13950 wxDC *arg1 = (wxDC *) 0 ;
13951 wxColour *arg2 = 0 ;
13952 wxColour temp2 ;
13953 PyObject * obj0 = 0 ;
13954 PyObject * obj1 = 0 ;
13955 char *kwnames[] = {
13956 (char *) "self",(char *) "colour", NULL
13957 };
13958
13959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13962 {
13963 arg2 = &temp2;
13964 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13965 }
13966 {
13967 PyThreadState* __tstate = wxPyBeginAllowThreads();
13968 (arg1)->SetTextBackground((wxColour const &)*arg2);
13969
13970 wxPyEndAllowThreads(__tstate);
13971 if (PyErr_Occurred()) SWIG_fail;
13972 }
13973 Py_INCREF(Py_None); resultobj = Py_None;
13974 return resultobj;
13975 fail:
13976 return NULL;
13977}
13978
13979
13980static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13981 PyObject *resultobj;
13982 wxDC *arg1 = (wxDC *) 0 ;
13983 int result;
13984 PyObject * obj0 = 0 ;
13985 char *kwnames[] = {
13986 (char *) "self", NULL
13987 };
13988
13989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
15afbcd0
RD
13990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13992 {
13993 PyThreadState* __tstate = wxPyBeginAllowThreads();
13994 result = (int)((wxDC const *)arg1)->GetMapMode();
13995
13996 wxPyEndAllowThreads(__tstate);
13997 if (PyErr_Occurred()) SWIG_fail;
13998 }
15afbcd0 13999 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14000 return resultobj;
14001 fail:
14002 return NULL;
14003}
14004
14005
14006static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14007 PyObject *resultobj;
14008 wxDC *arg1 = (wxDC *) 0 ;
14009 int arg2 ;
14010 PyObject * obj0 = 0 ;
994141e6 14011 PyObject * obj1 = 0 ;
d14a1e28
RD
14012 char *kwnames[] = {
14013 (char *) "self",(char *) "mode", NULL
14014 };
14015
994141e6 14016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14019 arg2 = (int) SWIG_AsInt(obj1);
14020 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14021 {
14022 PyThreadState* __tstate = wxPyBeginAllowThreads();
14023 (arg1)->SetMapMode(arg2);
14024
14025 wxPyEndAllowThreads(__tstate);
14026 if (PyErr_Occurred()) SWIG_fail;
14027 }
14028 Py_INCREF(Py_None); resultobj = Py_None;
14029 return resultobj;
14030 fail:
14031 return NULL;
14032}
14033
14034
14035static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14036 PyObject *resultobj;
14037 wxDC *arg1 = (wxDC *) 0 ;
14038 double *arg2 = (double *) 0 ;
14039 double *arg3 = (double *) 0 ;
14040 double temp2 ;
14041 double temp3 ;
14042 PyObject * obj0 = 0 ;
14043 char *kwnames[] = {
14044 (char *) "self", NULL
14045 };
14046
14047 arg2 = &temp2;
14048 arg3 = &temp3;
14049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
15afbcd0
RD
14050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14052 {
14053 PyThreadState* __tstate = wxPyBeginAllowThreads();
14054 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14055
14056 wxPyEndAllowThreads(__tstate);
14057 if (PyErr_Occurred()) SWIG_fail;
14058 }
14059 Py_INCREF(Py_None); resultobj = Py_None;
14060 {
14061 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14062 resultobj = t_output_helper(resultobj,o);
14063 }
14064 {
14065 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14066 resultobj = t_output_helper(resultobj,o);
14067 }
14068 return resultobj;
14069 fail:
14070 return NULL;
14071}
14072
14073
14074static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14075 PyObject *resultobj;
14076 wxDC *arg1 = (wxDC *) 0 ;
14077 double arg2 ;
14078 double arg3 ;
14079 PyObject * obj0 = 0 ;
994141e6
RD
14080 PyObject * obj1 = 0 ;
14081 PyObject * obj2 = 0 ;
d14a1e28
RD
14082 char *kwnames[] = {
14083 (char *) "self",(char *) "x",(char *) "y", NULL
14084 };
14085
994141e6 14086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14089 arg2 = (double) SWIG_AsDouble(obj1);
14090 if (PyErr_Occurred()) SWIG_fail;
14091 arg3 = (double) SWIG_AsDouble(obj2);
14092 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14093 {
14094 PyThreadState* __tstate = wxPyBeginAllowThreads();
14095 (arg1)->SetUserScale(arg2,arg3);
14096
14097 wxPyEndAllowThreads(__tstate);
14098 if (PyErr_Occurred()) SWIG_fail;
14099 }
14100 Py_INCREF(Py_None); resultobj = Py_None;
14101 return resultobj;
14102 fail:
14103 return NULL;
14104}
14105
14106
14107static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14108 PyObject *resultobj;
14109 wxDC *arg1 = (wxDC *) 0 ;
14110 double *arg2 = (double *) 0 ;
14111 double *arg3 = (double *) 0 ;
14112 double temp2 ;
14113 double temp3 ;
14114 PyObject * obj0 = 0 ;
14115 char *kwnames[] = {
14116 (char *) "self", NULL
14117 };
14118
14119 arg2 = &temp2;
14120 arg3 = &temp3;
14121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
15afbcd0
RD
14122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14124 {
14125 PyThreadState* __tstate = wxPyBeginAllowThreads();
14126 (arg1)->GetLogicalScale(arg2,arg3);
14127
14128 wxPyEndAllowThreads(__tstate);
14129 if (PyErr_Occurred()) SWIG_fail;
14130 }
14131 Py_INCREF(Py_None); resultobj = Py_None;
14132 {
14133 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14134 resultobj = t_output_helper(resultobj,o);
14135 }
14136 {
14137 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14138 resultobj = t_output_helper(resultobj,o);
14139 }
14140 return resultobj;
14141 fail:
14142 return NULL;
14143}
14144
14145
14146static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14147 PyObject *resultobj;
14148 wxDC *arg1 = (wxDC *) 0 ;
14149 double arg2 ;
14150 double arg3 ;
14151 PyObject * obj0 = 0 ;
994141e6
RD
14152 PyObject * obj1 = 0 ;
14153 PyObject * obj2 = 0 ;
d14a1e28
RD
14154 char *kwnames[] = {
14155 (char *) "self",(char *) "x",(char *) "y", NULL
14156 };
14157
994141e6 14158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14161 arg2 = (double) SWIG_AsDouble(obj1);
14162 if (PyErr_Occurred()) SWIG_fail;
14163 arg3 = (double) SWIG_AsDouble(obj2);
14164 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14165 {
14166 PyThreadState* __tstate = wxPyBeginAllowThreads();
14167 (arg1)->SetLogicalScale(arg2,arg3);
14168
14169 wxPyEndAllowThreads(__tstate);
14170 if (PyErr_Occurred()) SWIG_fail;
14171 }
14172 Py_INCREF(Py_None); resultobj = Py_None;
14173 return resultobj;
14174 fail:
14175 return NULL;
14176}
14177
14178
322913ce 14179static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14180 PyObject *resultobj;
14181 wxDC *arg1 = (wxDC *) 0 ;
322913ce 14182 wxPoint result;
d14a1e28
RD
14183 PyObject * obj0 = 0 ;
14184 char *kwnames[] = {
14185 (char *) "self", NULL
14186 };
14187
322913ce 14188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
15afbcd0
RD
14189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14191 {
14192 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 14193 result = ((wxDC const *)arg1)->GetLogicalOrigin();
d14a1e28
RD
14194
14195 wxPyEndAllowThreads(__tstate);
14196 if (PyErr_Occurred()) SWIG_fail;
14197 }
d14a1e28 14198 {
322913ce
RD
14199 wxPoint * resultptr;
14200 resultptr = new wxPoint((wxPoint &) result);
15afbcd0 14201 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
14202 }
14203 return resultobj;
14204 fail:
14205 return NULL;
14206}
14207
14208
322913ce 14209static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14210 PyObject *resultobj;
14211 wxDC *arg1 = (wxDC *) 0 ;
322913ce
RD
14212 int *arg2 = (int *) 0 ;
14213 int *arg3 = (int *) 0 ;
14214 int temp2 ;
14215 int temp3 ;
d14a1e28
RD
14216 PyObject * obj0 = 0 ;
14217 char *kwnames[] = {
14218 (char *) "self", NULL
14219 };
14220
322913ce
RD
14221 arg2 = &temp2;
14222 arg3 = &temp3;
14223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
15afbcd0
RD
14224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14226 {
14227 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 14228 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
d14a1e28
RD
14229
14230 wxPyEndAllowThreads(__tstate);
14231 if (PyErr_Occurred()) SWIG_fail;
14232 }
322913ce 14233 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 14234 {
322913ce
RD
14235 PyObject *o = PyInt_FromLong((long) (*arg2));
14236 resultobj = t_output_helper(resultobj,o);
14237 }
14238 {
14239 PyObject *o = PyInt_FromLong((long) (*arg3));
14240 resultobj = t_output_helper(resultobj,o);
d14a1e28
RD
14241 }
14242 return resultobj;
14243 fail:
14244 return NULL;
14245}
14246
14247
14248static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14249 PyObject *resultobj;
14250 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
14251 int arg2 ;
14252 int arg3 ;
d14a1e28 14253 PyObject * obj0 = 0 ;
994141e6
RD
14254 PyObject * obj1 = 0 ;
14255 PyObject * obj2 = 0 ;
d14a1e28
RD
14256 char *kwnames[] = {
14257 (char *) "self",(char *) "x",(char *) "y", NULL
14258 };
14259
994141e6 14260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14263 arg2 = (int) SWIG_AsInt(obj1);
14264 if (PyErr_Occurred()) SWIG_fail;
14265 arg3 = (int) SWIG_AsInt(obj2);
14266 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14267 {
14268 PyThreadState* __tstate = wxPyBeginAllowThreads();
14269 (arg1)->SetLogicalOrigin(arg2,arg3);
14270
14271 wxPyEndAllowThreads(__tstate);
14272 if (PyErr_Occurred()) SWIG_fail;
14273 }
14274 Py_INCREF(Py_None); resultobj = Py_None;
14275 return resultobj;
14276 fail:
14277 return NULL;
14278}
14279
14280
03e37cd5
RD
14281static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14282 PyObject *resultobj;
14283 wxDC *arg1 = (wxDC *) 0 ;
14284 wxPoint *arg2 = 0 ;
14285 wxPoint temp2 ;
14286 PyObject * obj0 = 0 ;
14287 PyObject * obj1 = 0 ;
14288 char *kwnames[] = {
14289 (char *) "self",(char *) "point", NULL
14290 };
14291
14292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14295 {
14296 arg2 = &temp2;
14297 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14298 }
14299 {
14300 PyThreadState* __tstate = wxPyBeginAllowThreads();
14301 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14302
14303 wxPyEndAllowThreads(__tstate);
14304 if (PyErr_Occurred()) SWIG_fail;
14305 }
14306 Py_INCREF(Py_None); resultobj = Py_None;
14307 return resultobj;
14308 fail:
14309 return NULL;
14310}
14311
14312
322913ce 14313static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14314 PyObject *resultobj;
14315 wxDC *arg1 = (wxDC *) 0 ;
322913ce 14316 wxPoint result;
d14a1e28
RD
14317 PyObject * obj0 = 0 ;
14318 char *kwnames[] = {
14319 (char *) "self", NULL
14320 };
14321
322913ce 14322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
15afbcd0
RD
14323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14325 {
14326 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 14327 result = ((wxDC const *)arg1)->GetDeviceOrigin();
d14a1e28
RD
14328
14329 wxPyEndAllowThreads(__tstate);
14330 if (PyErr_Occurred()) SWIG_fail;
14331 }
d14a1e28 14332 {
322913ce
RD
14333 wxPoint * resultptr;
14334 resultptr = new wxPoint((wxPoint &) result);
15afbcd0 14335 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
14336 }
14337 return resultobj;
14338 fail:
14339 return NULL;
14340}
14341
14342
322913ce 14343static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14344 PyObject *resultobj;
14345 wxDC *arg1 = (wxDC *) 0 ;
322913ce
RD
14346 int *arg2 = (int *) 0 ;
14347 int *arg3 = (int *) 0 ;
14348 int temp2 ;
14349 int temp3 ;
d14a1e28
RD
14350 PyObject * obj0 = 0 ;
14351 char *kwnames[] = {
14352 (char *) "self", NULL
14353 };
14354
322913ce
RD
14355 arg2 = &temp2;
14356 arg3 = &temp3;
14357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
15afbcd0
RD
14358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14360 {
14361 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 14362 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
d14a1e28
RD
14363
14364 wxPyEndAllowThreads(__tstate);
14365 if (PyErr_Occurred()) SWIG_fail;
14366 }
322913ce 14367 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 14368 {
322913ce
RD
14369 PyObject *o = PyInt_FromLong((long) (*arg2));
14370 resultobj = t_output_helper(resultobj,o);
14371 }
14372 {
14373 PyObject *o = PyInt_FromLong((long) (*arg3));
14374 resultobj = t_output_helper(resultobj,o);
d14a1e28
RD
14375 }
14376 return resultobj;
14377 fail:
14378 return NULL;
14379}
14380
14381
14382static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14383 PyObject *resultobj;
14384 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
14385 int arg2 ;
14386 int arg3 ;
d14a1e28 14387 PyObject * obj0 = 0 ;
994141e6
RD
14388 PyObject * obj1 = 0 ;
14389 PyObject * obj2 = 0 ;
d14a1e28
RD
14390 char *kwnames[] = {
14391 (char *) "self",(char *) "x",(char *) "y", NULL
14392 };
14393
994141e6 14394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14397 arg2 = (int) SWIG_AsInt(obj1);
14398 if (PyErr_Occurred()) SWIG_fail;
14399 arg3 = (int) SWIG_AsInt(obj2);
14400 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14401 {
14402 PyThreadState* __tstate = wxPyBeginAllowThreads();
14403 (arg1)->SetDeviceOrigin(arg2,arg3);
14404
14405 wxPyEndAllowThreads(__tstate);
14406 if (PyErr_Occurred()) SWIG_fail;
14407 }
14408 Py_INCREF(Py_None); resultobj = Py_None;
14409 return resultobj;
14410 fail:
14411 return NULL;
14412}
14413
14414
03e37cd5
RD
14415static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14416 PyObject *resultobj;
14417 wxDC *arg1 = (wxDC *) 0 ;
14418 wxPoint *arg2 = 0 ;
14419 wxPoint temp2 ;
14420 PyObject * obj0 = 0 ;
14421 PyObject * obj1 = 0 ;
14422 char *kwnames[] = {
14423 (char *) "self",(char *) "point", NULL
14424 };
14425
14426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14429 {
14430 arg2 = &temp2;
14431 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14432 }
14433 {
14434 PyThreadState* __tstate = wxPyBeginAllowThreads();
14435 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14436
14437 wxPyEndAllowThreads(__tstate);
14438 if (PyErr_Occurred()) SWIG_fail;
14439 }
14440 Py_INCREF(Py_None); resultobj = Py_None;
14441 return resultobj;
14442 fail:
14443 return NULL;
14444}
14445
14446
d14a1e28
RD
14447static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14448 PyObject *resultobj;
14449 wxDC *arg1 = (wxDC *) 0 ;
14450 bool arg2 ;
14451 bool arg3 ;
14452 PyObject * obj0 = 0 ;
14453 PyObject * obj1 = 0 ;
14454 PyObject * obj2 = 0 ;
14455 char *kwnames[] = {
14456 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14457 };
14458
14459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14462 arg2 = (bool) SWIG_AsBool(obj1);
14463 if (PyErr_Occurred()) SWIG_fail;
14464 arg3 = (bool) SWIG_AsBool(obj2);
14465 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14466 {
14467 PyThreadState* __tstate = wxPyBeginAllowThreads();
14468 (arg1)->SetAxisOrientation(arg2,arg3);
14469
14470 wxPyEndAllowThreads(__tstate);
14471 if (PyErr_Occurred()) SWIG_fail;
14472 }
14473 Py_INCREF(Py_None); resultobj = Py_None;
14474 return resultobj;
14475 fail:
14476 return NULL;
14477}
14478
14479
14480static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14481 PyObject *resultobj;
14482 wxDC *arg1 = (wxDC *) 0 ;
14483 int result;
14484 PyObject * obj0 = 0 ;
14485 char *kwnames[] = {
14486 (char *) "self", NULL
14487 };
14488
14489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
15afbcd0
RD
14490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14492 {
14493 PyThreadState* __tstate = wxPyBeginAllowThreads();
14494 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14495
14496 wxPyEndAllowThreads(__tstate);
14497 if (PyErr_Occurred()) SWIG_fail;
14498 }
15afbcd0 14499 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14500 return resultobj;
14501 fail:
14502 return NULL;
14503}
14504
14505
14506static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14507 PyObject *resultobj;
14508 wxDC *arg1 = (wxDC *) 0 ;
14509 int arg2 ;
14510 PyObject * obj0 = 0 ;
994141e6 14511 PyObject * obj1 = 0 ;
d14a1e28
RD
14512 char *kwnames[] = {
14513 (char *) "self",(char *) "function", NULL
14514 };
14515
994141e6 14516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14519 arg2 = (int) SWIG_AsInt(obj1);
14520 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14521 {
14522 PyThreadState* __tstate = wxPyBeginAllowThreads();
14523 (arg1)->SetLogicalFunction(arg2);
14524
14525 wxPyEndAllowThreads(__tstate);
14526 if (PyErr_Occurred()) SWIG_fail;
14527 }
14528 Py_INCREF(Py_None); resultobj = Py_None;
14529 return resultobj;
14530 fail:
14531 return NULL;
14532}
14533
14534
14535static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14536 PyObject *resultobj;
14537 wxDC *arg1 = (wxDC *) 0 ;
14538 bool arg2 ;
14539 PyObject * obj0 = 0 ;
14540 PyObject * obj1 = 0 ;
14541 char *kwnames[] = {
14542 (char *) "self",(char *) "opt", NULL
14543 };
14544
14545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14548 arg2 = (bool) SWIG_AsBool(obj1);
14549 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14550 {
14551 PyThreadState* __tstate = wxPyBeginAllowThreads();
14552 (arg1)->SetOptimization(arg2);
14553
14554 wxPyEndAllowThreads(__tstate);
14555 if (PyErr_Occurred()) SWIG_fail;
14556 }
14557 Py_INCREF(Py_None); resultobj = Py_None;
14558 return resultobj;
14559 fail:
14560 return NULL;
14561}
14562
14563
14564static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14565 PyObject *resultobj;
14566 wxDC *arg1 = (wxDC *) 0 ;
14567 bool result;
14568 PyObject * obj0 = 0 ;
14569 char *kwnames[] = {
14570 (char *) "self", NULL
14571 };
14572
14573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
15afbcd0
RD
14574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14576 {
14577 PyThreadState* __tstate = wxPyBeginAllowThreads();
14578 result = (bool)(arg1)->GetOptimization();
14579
14580 wxPyEndAllowThreads(__tstate);
14581 if (PyErr_Occurred()) SWIG_fail;
14582 }
4f89f6a3
RD
14583 {
14584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14585 }
d14a1e28
RD
14586 return resultobj;
14587 fail:
14588 return NULL;
14589}
14590
14591
14592static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14593 PyObject *resultobj;
14594 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
14595 int arg2 ;
14596 int arg3 ;
d14a1e28 14597 PyObject * obj0 = 0 ;
994141e6
RD
14598 PyObject * obj1 = 0 ;
14599 PyObject * obj2 = 0 ;
d14a1e28
RD
14600 char *kwnames[] = {
14601 (char *) "self",(char *) "x",(char *) "y", NULL
14602 };
14603
994141e6 14604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14607 arg2 = (int) SWIG_AsInt(obj1);
14608 if (PyErr_Occurred()) SWIG_fail;
14609 arg3 = (int) SWIG_AsInt(obj2);
14610 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14611 {
14612 PyThreadState* __tstate = wxPyBeginAllowThreads();
14613 (arg1)->CalcBoundingBox(arg2,arg3);
14614
14615 wxPyEndAllowThreads(__tstate);
14616 if (PyErr_Occurred()) SWIG_fail;
14617 }
14618 Py_INCREF(Py_None); resultobj = Py_None;
14619 return resultobj;
14620 fail:
14621 return NULL;
14622}
14623
14624
03e37cd5
RD
14625static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14626 PyObject *resultobj;
14627 wxDC *arg1 = (wxDC *) 0 ;
14628 wxPoint *arg2 = 0 ;
14629 wxPoint temp2 ;
14630 PyObject * obj0 = 0 ;
14631 PyObject * obj1 = 0 ;
14632 char *kwnames[] = {
14633 (char *) "self",(char *) "point", NULL
14634 };
14635
14636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14639 {
14640 arg2 = &temp2;
14641 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14642 }
14643 {
14644 PyThreadState* __tstate = wxPyBeginAllowThreads();
14645 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14646
14647 wxPyEndAllowThreads(__tstate);
14648 if (PyErr_Occurred()) SWIG_fail;
14649 }
14650 Py_INCREF(Py_None); resultobj = Py_None;
14651 return resultobj;
14652 fail:
14653 return NULL;
14654}
14655
14656
d14a1e28
RD
14657static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14658 PyObject *resultobj;
14659 wxDC *arg1 = (wxDC *) 0 ;
14660 PyObject * obj0 = 0 ;
14661 char *kwnames[] = {
14662 (char *) "self", NULL
14663 };
14664
14665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15afbcd0
RD
14666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14668 {
14669 PyThreadState* __tstate = wxPyBeginAllowThreads();
14670 (arg1)->ResetBoundingBox();
14671
14672 wxPyEndAllowThreads(__tstate);
14673 if (PyErr_Occurred()) SWIG_fail;
14674 }
14675 Py_INCREF(Py_None); resultobj = Py_None;
14676 return resultobj;
14677 fail:
14678 return NULL;
14679}
14680
14681
14682static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14683 PyObject *resultobj;
14684 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 14685 int result;
d14a1e28
RD
14686 PyObject * obj0 = 0 ;
14687 char *kwnames[] = {
14688 (char *) "self", NULL
14689 };
14690
14691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15afbcd0
RD
14692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14694 {
14695 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 14696 result = (int)((wxDC const *)arg1)->MinX();
d14a1e28
RD
14697
14698 wxPyEndAllowThreads(__tstate);
14699 if (PyErr_Occurred()) SWIG_fail;
14700 }
15afbcd0 14701 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14702 return resultobj;
14703 fail:
14704 return NULL;
14705}
14706
14707
14708static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14709 PyObject *resultobj;
14710 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 14711 int result;
d14a1e28
RD
14712 PyObject * obj0 = 0 ;
14713 char *kwnames[] = {
14714 (char *) "self", NULL
14715 };
14716
14717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15afbcd0
RD
14718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14720 {
14721 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 14722 result = (int)((wxDC const *)arg1)->MaxX();
d14a1e28
RD
14723
14724 wxPyEndAllowThreads(__tstate);
14725 if (PyErr_Occurred()) SWIG_fail;
14726 }
15afbcd0 14727 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14728 return resultobj;
14729 fail:
14730 return NULL;
14731}
14732
14733
14734static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14735 PyObject *resultobj;
14736 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 14737 int result;
d14a1e28
RD
14738 PyObject * obj0 = 0 ;
14739 char *kwnames[] = {
14740 (char *) "self", NULL
14741 };
14742
14743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15afbcd0
RD
14744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14746 {
14747 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 14748 result = (int)((wxDC const *)arg1)->MinY();
d14a1e28
RD
14749
14750 wxPyEndAllowThreads(__tstate);
14751 if (PyErr_Occurred()) SWIG_fail;
14752 }
15afbcd0 14753 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14754 return resultobj;
14755 fail:
14756 return NULL;
14757}
14758
14759
14760static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14761 PyObject *resultobj;
14762 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 14763 int result;
d14a1e28
RD
14764 PyObject * obj0 = 0 ;
14765 char *kwnames[] = {
14766 (char *) "self", NULL
14767 };
14768
14769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15afbcd0
RD
14770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14772 {
14773 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 14774 result = (int)((wxDC const *)arg1)->MaxY();
d14a1e28
RD
14775
14776 wxPyEndAllowThreads(__tstate);
14777 if (PyErr_Occurred()) SWIG_fail;
14778 }
15afbcd0 14779 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14780 return resultobj;
14781 fail:
14782 return NULL;
14783}
14784
14785
14786static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14787 PyObject *resultobj;
14788 wxDC *arg1 = (wxDC *) 0 ;
14789 int *arg2 = (int *) 0 ;
14790 int *arg3 = (int *) 0 ;
14791 int *arg4 = (int *) 0 ;
14792 int *arg5 = (int *) 0 ;
14793 int temp2 ;
14794 int temp3 ;
14795 int temp4 ;
14796 int temp5 ;
14797 PyObject * obj0 = 0 ;
14798 char *kwnames[] = {
14799 (char *) "self", NULL
14800 };
14801
14802 arg2 = &temp2;
14803 arg3 = &temp3;
14804 arg4 = &temp4;
14805 arg5 = &temp5;
14806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15afbcd0
RD
14807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14809 {
14810 PyThreadState* __tstate = wxPyBeginAllowThreads();
14811 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14812
14813 wxPyEndAllowThreads(__tstate);
14814 if (PyErr_Occurred()) SWIG_fail;
14815 }
14816 Py_INCREF(Py_None); resultobj = Py_None;
14817 {
14818 PyObject *o = PyInt_FromLong((long) (*arg2));
14819 resultobj = t_output_helper(resultobj,o);
14820 }
14821 {
14822 PyObject *o = PyInt_FromLong((long) (*arg3));
14823 resultobj = t_output_helper(resultobj,o);
14824 }
14825 {
14826 PyObject *o = PyInt_FromLong((long) (*arg4));
14827 resultobj = t_output_helper(resultobj,o);
14828 }
14829 {
14830 PyObject *o = PyInt_FromLong((long) (*arg5));
14831 resultobj = t_output_helper(resultobj,o);
14832 }
14833 return resultobj;
14834 fail:
14835 return NULL;
14836}
14837
14838
14839static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14840 PyObject *resultobj;
14841 wxDC *arg1 = (wxDC *) 0 ;
14842 PyObject *arg2 = (PyObject *) 0 ;
14843 PyObject *arg3 = (PyObject *) 0 ;
14844 PyObject *arg4 = (PyObject *) 0 ;
14845 PyObject *result;
14846 PyObject * obj0 = 0 ;
14847 PyObject * obj1 = 0 ;
14848 PyObject * obj2 = 0 ;
14849 PyObject * obj3 = 0 ;
14850 char *kwnames[] = {
14851 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14852 };
14853
14854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
14855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14857 arg2 = obj1;
14858 arg3 = obj2;
14859 arg4 = obj3;
14860 {
14861 PyThreadState* __tstate = wxPyBeginAllowThreads();
14862 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14863
14864 wxPyEndAllowThreads(__tstate);
14865 if (PyErr_Occurred()) SWIG_fail;
14866 }
14867 resultobj = result;
14868 return resultobj;
14869 fail:
14870 return NULL;
14871}
14872
14873
14874static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14875 PyObject *resultobj;
14876 wxDC *arg1 = (wxDC *) 0 ;
14877 PyObject *arg2 = (PyObject *) 0 ;
14878 PyObject *arg3 = (PyObject *) 0 ;
14879 PyObject *arg4 = (PyObject *) 0 ;
14880 PyObject *result;
14881 PyObject * obj0 = 0 ;
14882 PyObject * obj1 = 0 ;
14883 PyObject * obj2 = 0 ;
14884 PyObject * obj3 = 0 ;
14885 char *kwnames[] = {
14886 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14887 };
14888
14889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
14890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14892 arg2 = obj1;
14893 arg3 = obj2;
14894 arg4 = obj3;
14895 {
14896 PyThreadState* __tstate = wxPyBeginAllowThreads();
14897 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14898
14899 wxPyEndAllowThreads(__tstate);
14900 if (PyErr_Occurred()) SWIG_fail;
14901 }
14902 resultobj = result;
14903 return resultobj;
14904 fail:
14905 return NULL;
14906}
14907
14908
14909static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14910 PyObject *resultobj;
14911 wxDC *arg1 = (wxDC *) 0 ;
14912 PyObject *arg2 = (PyObject *) 0 ;
14913 PyObject *arg3 = (PyObject *) 0 ;
14914 PyObject *arg4 = (PyObject *) 0 ;
14915 PyObject *result;
14916 PyObject * obj0 = 0 ;
14917 PyObject * obj1 = 0 ;
14918 PyObject * obj2 = 0 ;
14919 PyObject * obj3 = 0 ;
14920 char *kwnames[] = {
14921 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14922 };
14923
14924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
14925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14927 arg2 = obj1;
14928 arg3 = obj2;
14929 arg4 = obj3;
14930 {
14931 PyThreadState* __tstate = wxPyBeginAllowThreads();
14932 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14933
14934 wxPyEndAllowThreads(__tstate);
14935 if (PyErr_Occurred()) SWIG_fail;
14936 }
14937 resultobj = result;
14938 return resultobj;
14939 fail:
14940 return NULL;
14941}
14942
14943
14944static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14945 PyObject *resultobj;
14946 wxDC *arg1 = (wxDC *) 0 ;
14947 PyObject *arg2 = (PyObject *) 0 ;
14948 PyObject *arg3 = (PyObject *) 0 ;
14949 PyObject *arg4 = (PyObject *) 0 ;
14950 PyObject *result;
14951 PyObject * obj0 = 0 ;
14952 PyObject * obj1 = 0 ;
14953 PyObject * obj2 = 0 ;
14954 PyObject * obj3 = 0 ;
14955 char *kwnames[] = {
14956 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14957 };
14958
14959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
14960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14962 arg2 = obj1;
14963 arg3 = obj2;
14964 arg4 = obj3;
14965 {
14966 PyThreadState* __tstate = wxPyBeginAllowThreads();
14967 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14968
14969 wxPyEndAllowThreads(__tstate);
14970 if (PyErr_Occurred()) SWIG_fail;
14971 }
14972 resultobj = result;
14973 return resultobj;
14974 fail:
14975 return NULL;
14976}
14977
14978
14979static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14980 PyObject *resultobj;
14981 wxDC *arg1 = (wxDC *) 0 ;
14982 PyObject *arg2 = (PyObject *) 0 ;
14983 PyObject *arg3 = (PyObject *) 0 ;
14984 PyObject *arg4 = (PyObject *) 0 ;
14985 PyObject *result;
14986 PyObject * obj0 = 0 ;
14987 PyObject * obj1 = 0 ;
14988 PyObject * obj2 = 0 ;
14989 PyObject * obj3 = 0 ;
14990 char *kwnames[] = {
14991 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14992 };
14993
14994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
14995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14997 arg2 = obj1;
14998 arg3 = obj2;
14999 arg4 = obj3;
15000 {
15001 PyThreadState* __tstate = wxPyBeginAllowThreads();
15002 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15003
15004 wxPyEndAllowThreads(__tstate);
15005 if (PyErr_Occurred()) SWIG_fail;
15006 }
15007 resultobj = result;
15008 return resultobj;
15009 fail:
15010 return NULL;
15011}
15012
15013
15014static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15015 PyObject *resultobj;
15016 wxDC *arg1 = (wxDC *) 0 ;
15017 PyObject *arg2 = (PyObject *) 0 ;
15018 PyObject *arg3 = (PyObject *) 0 ;
15019 PyObject *arg4 = (PyObject *) 0 ;
15020 PyObject *arg5 = (PyObject *) 0 ;
15021 PyObject *result;
15022 PyObject * obj0 = 0 ;
15023 PyObject * obj1 = 0 ;
15024 PyObject * obj2 = 0 ;
15025 PyObject * obj3 = 0 ;
15026 PyObject * obj4 = 0 ;
15027 char *kwnames[] = {
15028 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15029 };
15030
15031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
15032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15034 arg2 = obj1;
15035 arg3 = obj2;
15036 arg4 = obj3;
15037 arg5 = obj4;
15038 {
15039 PyThreadState* __tstate = wxPyBeginAllowThreads();
15040 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15041
15042 wxPyEndAllowThreads(__tstate);
15043 if (PyErr_Occurred()) SWIG_fail;
15044 }
15045 resultobj = result;
15046 return resultobj;
15047 fail:
15048 return NULL;
15049}
15050
15051
15052static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15053 PyObject *obj;
15054 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15055 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15056 Py_INCREF(obj);
15057 return Py_BuildValue((char *)"");
15058}
15059static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15060 PyObject *resultobj;
15061 wxMemoryDC *result;
15062 char *kwnames[] = {
15063 NULL
15064 };
15065
15066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15067 {
e3b71cb8 15068 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15069 PyThreadState* __tstate = wxPyBeginAllowThreads();
15070 result = (wxMemoryDC *)new wxMemoryDC();
15071
15072 wxPyEndAllowThreads(__tstate);
110da5b0 15073 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15074 }
15afbcd0 15075 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
d14a1e28
RD
15076 return resultobj;
15077 fail:
15078 return NULL;
15079}
15080
15081
15082static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15083 PyObject *resultobj;
15084 wxDC *arg1 = (wxDC *) 0 ;
15085 wxMemoryDC *result;
15086 PyObject * obj0 = 0 ;
15087 char *kwnames[] = {
15088 (char *) "oldDC", NULL
15089 };
15090
15091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15094 {
e3b71cb8 15095 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15096 PyThreadState* __tstate = wxPyBeginAllowThreads();
15097 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15098
15099 wxPyEndAllowThreads(__tstate);
110da5b0 15100 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15101 }
15afbcd0 15102 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
d14a1e28
RD
15103 return resultobj;
15104 fail:
15105 return NULL;
15106}
15107
15108
15109static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15110 PyObject *resultobj;
15111 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15112 wxBitmap *arg2 = 0 ;
15113 PyObject * obj0 = 0 ;
15114 PyObject * obj1 = 0 ;
15115 char *kwnames[] = {
15116 (char *) "self",(char *) "bitmap", NULL
15117 };
15118
15119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15122 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15123 SWIG_POINTER_EXCEPTION | 0)) == -1)
15124 SWIG_fail;
d14a1e28 15125 if (arg2 == NULL) {
15afbcd0
RD
15126 PyErr_SetString(PyExc_TypeError,"null reference");
15127 SWIG_fail;
d14a1e28
RD
15128 }
15129 {
15130 PyThreadState* __tstate = wxPyBeginAllowThreads();
15131 (arg1)->SelectObject((wxBitmap const &)*arg2);
15132
15133 wxPyEndAllowThreads(__tstate);
15134 if (PyErr_Occurred()) SWIG_fail;
15135 }
15136 Py_INCREF(Py_None); resultobj = Py_None;
15137 return resultobj;
15138 fail:
15139 return NULL;
15140}
15141
15142
15143static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15144 PyObject *obj;
15145 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15146 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15147 Py_INCREF(obj);
15148 return Py_BuildValue((char *)"");
15149}
3adfb63b 15150static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
d14a1e28
RD
15151 PyObject *resultobj;
15152 wxDC *arg1 = (wxDC *) 0 ;
15153 wxBitmap *arg2 = 0 ;
15154 wxBufferedDC *result;
15155 PyObject * obj0 = 0 ;
15156 PyObject * obj1 = 0 ;
d14a1e28 15157
3adfb63b 15158 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15afbcd0
RD
15159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15161 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15162 SWIG_POINTER_EXCEPTION | 0)) == -1)
15163 SWIG_fail;
d14a1e28 15164 if (arg2 == NULL) {
15afbcd0
RD
15165 PyErr_SetString(PyExc_TypeError,"null reference");
15166 SWIG_fail;
d14a1e28
RD
15167 }
15168 {
e3b71cb8 15169 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15170 PyThreadState* __tstate = wxPyBeginAllowThreads();
15171 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15172
15173 wxPyEndAllowThreads(__tstate);
110da5b0 15174 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15175 }
15afbcd0 15176 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
d14a1e28
RD
15177 return resultobj;
15178 fail:
15179 return NULL;
15180}
15181
15182
3adfb63b 15183static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
d14a1e28
RD
15184 PyObject *resultobj;
15185 wxDC *arg1 = (wxDC *) 0 ;
15186 wxSize *arg2 = 0 ;
15187 wxBufferedDC *result;
15188 wxSize temp2 ;
15189 PyObject * obj0 = 0 ;
15190 PyObject * obj1 = 0 ;
3adfb63b 15191
e498079e 15192 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15afbcd0
RD
15193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3adfb63b
RD
15195 {
15196 arg2 = &temp2;
15197 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15198 }
3adfb63b 15199 {
e3b71cb8 15200 if (!wxPyCheckForApp()) SWIG_fail;
3adfb63b 15201 PyThreadState* __tstate = wxPyBeginAllowThreads();
e498079e 15202 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
3adfb63b
RD
15203
15204 wxPyEndAllowThreads(__tstate);
110da5b0 15205 if (PyErr_Occurred()) SWIG_fail;
3adfb63b 15206 }
15afbcd0 15207 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
3adfb63b
RD
15208 return resultobj;
15209 fail:
15210 return NULL;
15211}
15212
15213
15214static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15215 int argc;
e498079e 15216 PyObject *argv[3];
3adfb63b
RD
15217 int ii;
15218
15219 argc = PyObject_Length(args);
e498079e 15220 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
3adfb63b
RD
15221 argv[ii] = PyTuple_GetItem(args,ii);
15222 }
15223 if (argc == 2) {
15224 int _v;
15225 {
15226 void *ptr;
15afbcd0 15227 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
3adfb63b
RD
15228 _v = 0;
15229 PyErr_Clear();
15230 } else {
15231 _v = 1;
15232 }
15233 }
15234 if (_v) {
15235 {
15236 void *ptr;
15afbcd0 15237 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
3adfb63b
RD
15238 _v = 0;
15239 PyErr_Clear();
15240 } else {
15241 _v = 1;
15242 }
15243 }
15244 if (_v) {
15245 return _wrap_new_BufferedDC__SWIG_0(self,args);
15246 }
15247 }
15248 }
e498079e 15249 if (argc == 2) {
3adfb63b
RD
15250 int _v;
15251 {
15252 void *ptr;
15afbcd0 15253 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
3adfb63b
RD
15254 _v = 0;
15255 PyErr_Clear();
15256 } else {
15257 _v = 1;
15258 }
15259 }
15260 if (_v) {
15261 {
15262 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15263 }
15264 if (_v) {
e498079e 15265 return _wrap_new_BufferedDC__SWIG_1(self,args);
3adfb63b
RD
15266 }
15267 }
15268 }
15269
15270 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15271 return NULL;
15272}
15273
15274
15275static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15276 PyObject *resultobj;
15277 wxDC *arg1 = (wxDC *) 0 ;
15278 wxSize *arg2 = 0 ;
3adfb63b
RD
15279 wxBufferedDC *result;
15280 wxSize temp2 ;
15281 PyObject * obj0 = 0 ;
15282 PyObject * obj1 = 0 ;
d14a1e28 15283
e498079e 15284 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15afbcd0
RD
15285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15287 {
15288 arg2 = &temp2;
15289 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15290 }
15291 {
e3b71cb8 15292 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 15293 PyThreadState* __tstate = wxPyBeginAllowThreads();
e498079e 15294 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
d14a1e28
RD
15295
15296 wxPyEndAllowThreads(__tstate);
110da5b0 15297 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15298 }
15afbcd0 15299 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
d14a1e28
RD
15300 return resultobj;
15301 fail:
15302 return NULL;
15303}
15304
15305
e498079e 15306static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15307 PyObject *resultobj;
15308 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15309 PyObject * obj0 = 0 ;
15310 char *kwnames[] = {
15311 (char *) "self", NULL
15312 };
15313
e498079e 15314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15317 {
15318 PyThreadState* __tstate = wxPyBeginAllowThreads();
e498079e 15319 delete arg1;
d14a1e28
RD
15320
15321 wxPyEndAllowThreads(__tstate);
15322 if (PyErr_Occurred()) SWIG_fail;
15323 }
15324 Py_INCREF(Py_None); resultobj = Py_None;
15325 return resultobj;
15326 fail:
15327 return NULL;
15328}
15329
15330
e498079e 15331static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15332 PyObject *resultobj;
e498079e 15333 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
3adfb63b 15334 PyObject * obj0 = 0 ;
e498079e
RD
15335 char *kwnames[] = {
15336 (char *) "self", NULL
15337 };
3adfb63b 15338
e498079e 15339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15afbcd0
RD
15340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3adfb63b
RD
15342 {
15343 PyThreadState* __tstate = wxPyBeginAllowThreads();
e498079e 15344 (arg1)->UnMask();
3adfb63b
RD
15345
15346 wxPyEndAllowThreads(__tstate);
15347 if (PyErr_Occurred()) SWIG_fail;
15348 }
e498079e 15349 Py_INCREF(Py_None); resultobj = Py_None;
3adfb63b
RD
15350 return resultobj;
15351 fail:
15352 return NULL;
15353}
15354
15355
e498079e
RD
15356static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15357 PyObject *obj;
15358 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15359 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15360 Py_INCREF(obj);
15361 return Py_BuildValue((char *)"");
15362}
15363static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
3adfb63b
RD
15364 PyObject *resultobj;
15365 wxWindow *arg1 = (wxWindow *) 0 ;
e498079e
RD
15366 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15367 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
d14a1e28
RD
15368 wxBufferedPaintDC *result;
15369 PyObject * obj0 = 0 ;
15370 PyObject * obj1 = 0 ;
e498079e
RD
15371 char *kwnames[] = {
15372 (char *) "window",(char *) "buffer", NULL
15373 };
d14a1e28 15374
e498079e 15375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15378 if (obj1) {
15afbcd0
RD
15379 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15380 SWIG_POINTER_EXCEPTION | 0)) == -1)
15381 SWIG_fail;
e498079e 15382 if (arg2 == NULL) {
15afbcd0
RD
15383 PyErr_SetString(PyExc_TypeError,"null reference");
15384 SWIG_fail;
d14a1e28
RD
15385 }
15386 }
15387 {
e3b71cb8 15388 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 15389 PyThreadState* __tstate = wxPyBeginAllowThreads();
e498079e 15390 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
d14a1e28
RD
15391
15392 wxPyEndAllowThreads(__tstate);
110da5b0 15393 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15394 }
15afbcd0 15395 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
d14a1e28
RD
15396 return resultobj;
15397 fail:
15398 return NULL;
15399}
15400
15401
15402static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15403 PyObject *obj;
15404 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15405 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15406 Py_INCREF(obj);
15407 return Py_BuildValue((char *)"");
15408}
15409static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15410 PyObject *resultobj;
15411 wxScreenDC *result;
15412 char *kwnames[] = {
15413 NULL
15414 };
15415
15416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15417 {
e3b71cb8 15418 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15419 PyThreadState* __tstate = wxPyBeginAllowThreads();
15420 result = (wxScreenDC *)new wxScreenDC();
15421
15422 wxPyEndAllowThreads(__tstate);
110da5b0 15423 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15424 }
15afbcd0 15425 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
d14a1e28
RD
15426 return resultobj;
15427 fail:
15428 return NULL;
15429}
15430
15431
15432static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15433 PyObject *resultobj;
15434 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15435 wxWindow *arg2 = (wxWindow *) 0 ;
15436 bool result;
15437 PyObject * obj0 = 0 ;
15438 PyObject * obj1 = 0 ;
15439 char *kwnames[] = {
15440 (char *) "self",(char *) "window", NULL
15441 };
15442
15443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15446 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15448 {
15449 PyThreadState* __tstate = wxPyBeginAllowThreads();
15450 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15451
15452 wxPyEndAllowThreads(__tstate);
15453 if (PyErr_Occurred()) SWIG_fail;
15454 }
4f89f6a3
RD
15455 {
15456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15457 }
d14a1e28
RD
15458 return resultobj;
15459 fail:
15460 return NULL;
15461}
15462
15463
15464static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15465 PyObject *resultobj;
15466 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15467 wxRect *arg2 = (wxRect *) NULL ;
15468 bool result;
15469 PyObject * obj0 = 0 ;
15470 PyObject * obj1 = 0 ;
15471 char *kwnames[] = {
15472 (char *) "self",(char *) "rect", NULL
15473 };
15474
15475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15478 if (obj1) {
15afbcd0
RD
15479 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15481 }
15482 {
15483 PyThreadState* __tstate = wxPyBeginAllowThreads();
15484 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15485
15486 wxPyEndAllowThreads(__tstate);
15487 if (PyErr_Occurred()) SWIG_fail;
15488 }
4f89f6a3
RD
15489 {
15490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15491 }
d14a1e28
RD
15492 return resultobj;
15493 fail:
15494 return NULL;
15495}
15496
15497
15498static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15499 PyObject *resultobj;
15500 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15501 bool result;
15502 PyObject * obj0 = 0 ;
15503 char *kwnames[] = {
15504 (char *) "self", NULL
15505 };
15506
15507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15afbcd0
RD
15508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15510 {
15511 PyThreadState* __tstate = wxPyBeginAllowThreads();
15512 result = (bool)(arg1)->EndDrawingOnTop();
15513
15514 wxPyEndAllowThreads(__tstate);
15515 if (PyErr_Occurred()) SWIG_fail;
15516 }
4f89f6a3
RD
15517 {
15518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15519 }
d14a1e28
RD
15520 return resultobj;
15521 fail:
15522 return NULL;
15523}
15524
15525
15526static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15527 PyObject *obj;
15528 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15529 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15530 Py_INCREF(obj);
15531 return Py_BuildValue((char *)"");
15532}
15533static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15534 PyObject *resultobj;
15535 wxWindow *arg1 = (wxWindow *) 0 ;
15536 wxClientDC *result;
15537 PyObject * obj0 = 0 ;
15538 char *kwnames[] = {
15539 (char *) "win", NULL
15540 };
15541
15542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15545 {
e3b71cb8 15546 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15547 PyThreadState* __tstate = wxPyBeginAllowThreads();
15548 result = (wxClientDC *)new wxClientDC(arg1);
15549
15550 wxPyEndAllowThreads(__tstate);
110da5b0 15551 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15552 }
15afbcd0 15553 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
d14a1e28
RD
15554 return resultobj;
15555 fail:
15556 return NULL;
15557}
15558
15559
15560static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15561 PyObject *obj;
15562 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15563 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15564 Py_INCREF(obj);
15565 return Py_BuildValue((char *)"");
15566}
15567static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15568 PyObject *resultobj;
15569 wxWindow *arg1 = (wxWindow *) 0 ;
15570 wxPaintDC *result;
15571 PyObject * obj0 = 0 ;
15572 char *kwnames[] = {
15573 (char *) "win", NULL
15574 };
15575
15576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15579 {
e3b71cb8 15580 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15581 PyThreadState* __tstate = wxPyBeginAllowThreads();
15582 result = (wxPaintDC *)new wxPaintDC(arg1);
15583
15584 wxPyEndAllowThreads(__tstate);
110da5b0 15585 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15586 }
15afbcd0 15587 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
d14a1e28
RD
15588 return resultobj;
15589 fail:
15590 return NULL;
15591}
15592
15593
15594static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15595 PyObject *obj;
15596 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15597 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15598 Py_INCREF(obj);
15599 return Py_BuildValue((char *)"");
15600}
15601static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15602 PyObject *resultobj;
15603 wxWindow *arg1 = (wxWindow *) 0 ;
15604 wxWindowDC *result;
15605 PyObject * obj0 = 0 ;
15606 char *kwnames[] = {
15607 (char *) "win", NULL
15608 };
15609
15610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15613 {
e3b71cb8 15614 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15615 PyThreadState* __tstate = wxPyBeginAllowThreads();
15616 result = (wxWindowDC *)new wxWindowDC(arg1);
15617
15618 wxPyEndAllowThreads(__tstate);
110da5b0 15619 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15620 }
15afbcd0 15621 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
d14a1e28
RD
15622 return resultobj;
15623 fail:
15624 return NULL;
15625}
15626
15627
15628static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15629 PyObject *obj;
15630 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15631 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15632 Py_INCREF(obj);
15633 return Py_BuildValue((char *)"");
15634}
15635static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15636 PyObject *resultobj;
15637 wxDC *arg1 = 0 ;
15638 bool arg2 ;
15639 wxMirrorDC *result;
15640 PyObject * obj0 = 0 ;
15641 PyObject * obj1 = 0 ;
15642 char *kwnames[] = {
15643 (char *) "dc",(char *) "mirror", NULL
15644 };
15645
15646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15648 SWIG_POINTER_EXCEPTION | 0)) == -1)
15649 SWIG_fail;
d14a1e28 15650 if (arg1 == NULL) {
15afbcd0
RD
15651 PyErr_SetString(PyExc_TypeError,"null reference");
15652 SWIG_fail;
a41e16b6 15653 }
15afbcd0
RD
15654 arg2 = (bool) SWIG_AsBool(obj1);
15655 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15656 {
e3b71cb8 15657 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15658 PyThreadState* __tstate = wxPyBeginAllowThreads();
15659 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15660
15661 wxPyEndAllowThreads(__tstate);
110da5b0 15662 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15663 }
15afbcd0 15664 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
d14a1e28
RD
15665 return resultobj;
15666 fail:
15667 return NULL;
15668}
15669
15670
15671static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15672 PyObject *obj;
15673 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15674 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15675 Py_INCREF(obj);
15676 return Py_BuildValue((char *)"");
15677}
15678static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15679 PyObject *resultobj;
15680 wxPrintData *arg1 = 0 ;
15681 wxPostScriptDC *result;
15682 PyObject * obj0 = 0 ;
15683 char *kwnames[] = {
15684 (char *) "printData", NULL
15685 };
15686
15687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15689 SWIG_POINTER_EXCEPTION | 0)) == -1)
15690 SWIG_fail;
d14a1e28 15691 if (arg1 == NULL) {
15afbcd0
RD
15692 PyErr_SetString(PyExc_TypeError,"null reference");
15693 SWIG_fail;
d14a1e28
RD
15694 }
15695 {
e3b71cb8 15696 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15697 PyThreadState* __tstate = wxPyBeginAllowThreads();
15698 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15699
15700 wxPyEndAllowThreads(__tstate);
110da5b0 15701 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15702 }
15afbcd0 15703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
d14a1e28
RD
15704 return resultobj;
15705 fail:
15706 return NULL;
15707}
15708
15709
15710static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15711 PyObject *resultobj;
15712 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15713 wxPrintData *result;
15714 PyObject * obj0 = 0 ;
15715 char *kwnames[] = {
15716 (char *) "self", NULL
15717 };
15718
15719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15afbcd0
RD
15720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15722 {
15723 PyThreadState* __tstate = wxPyBeginAllowThreads();
15724 {
15725 wxPrintData &_result_ref = (arg1)->GetPrintData();
15726 result = (wxPrintData *) &_result_ref;
15727 }
15728
15729 wxPyEndAllowThreads(__tstate);
15730 if (PyErr_Occurred()) SWIG_fail;
15731 }
15afbcd0 15732 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
d14a1e28
RD
15733 return resultobj;
15734 fail:
15735 return NULL;
15736}
15737
15738
15739static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15740 PyObject *resultobj;
15741 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15742 wxPrintData *arg2 = 0 ;
15743 PyObject * obj0 = 0 ;
15744 PyObject * obj1 = 0 ;
15745 char *kwnames[] = {
15746 (char *) "self",(char *) "data", NULL
15747 };
15748
15749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15752 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15753 SWIG_POINTER_EXCEPTION | 0)) == -1)
15754 SWIG_fail;
d14a1e28 15755 if (arg2 == NULL) {
15afbcd0
RD
15756 PyErr_SetString(PyExc_TypeError,"null reference");
15757 SWIG_fail;
d14a1e28
RD
15758 }
15759 {
15760 PyThreadState* __tstate = wxPyBeginAllowThreads();
15761 (arg1)->SetPrintData((wxPrintData const &)*arg2);
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_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15774 PyObject *resultobj;
15775 int arg1 ;
994141e6 15776 PyObject * obj0 = 0 ;
d14a1e28
RD
15777 char *kwnames[] = {
15778 (char *) "ppi", NULL
15779 };
15780
994141e6 15781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15afbcd0
RD
15782 arg1 = (int) SWIG_AsInt(obj0);
15783 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
15784 {
15785 PyThreadState* __tstate = wxPyBeginAllowThreads();
15786 wxPostScriptDC::SetResolution(arg1);
15787
15788 wxPyEndAllowThreads(__tstate);
15789 if (PyErr_Occurred()) SWIG_fail;
15790 }
15791 Py_INCREF(Py_None); resultobj = Py_None;
15792 return resultobj;
15793 fail:
15794 return NULL;
15795}
15796
15797
15798static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15799 PyObject *resultobj;
15800 int result;
15801 char *kwnames[] = {
15802 NULL
15803 };
15804
15805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15806 {
15807 PyThreadState* __tstate = wxPyBeginAllowThreads();
15808 result = (int)wxPostScriptDC::GetResolution();
15809
15810 wxPyEndAllowThreads(__tstate);
15811 if (PyErr_Occurred()) SWIG_fail;
15812 }
15afbcd0 15813 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
15814 return resultobj;
15815 fail:
15816 return NULL;
15817}
15818
15819
15820static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15821 PyObject *obj;
15822 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15823 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15824 Py_INCREF(obj);
15825 return Py_BuildValue((char *)"");
15826}
15827static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15828 PyObject *resultobj;
15829 wxString const &arg1_defvalue = wxPyEmptyString ;
15830 wxString *arg1 = (wxString *) &arg1_defvalue ;
15831 wxMetaFile *result;
e811c8ce 15832 bool temp1 = False ;
d14a1e28
RD
15833 PyObject * obj0 = 0 ;
15834 char *kwnames[] = {
15835 (char *) "filename", NULL
15836 };
15837
15838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15839 if (obj0) {
15840 {
15841 arg1 = wxString_in_helper(obj0);
15842 if (arg1 == NULL) SWIG_fail;
e811c8ce 15843 temp1 = True;
d14a1e28
RD
15844 }
15845 }
15846 {
e3b71cb8 15847 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15848 PyThreadState* __tstate = wxPyBeginAllowThreads();
15849 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15850
15851 wxPyEndAllowThreads(__tstate);
110da5b0 15852 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15853 }
15afbcd0 15854 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
d14a1e28
RD
15855 {
15856 if (temp1)
15857 delete arg1;
15858 }
15859 return resultobj;
15860 fail:
15861 {
15862 if (temp1)
15863 delete arg1;
15864 }
15865 return NULL;
15866}
15867
15868
15869static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15870 PyObject *obj;
15871 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15872 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15873 Py_INCREF(obj);
15874 return Py_BuildValue((char *)"");
15875}
15876static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15877 PyObject *resultobj;
15878 wxString const &arg1_defvalue = wxPyEmptyString ;
15879 wxString *arg1 = (wxString *) &arg1_defvalue ;
15880 int arg2 = (int) 0 ;
15881 int arg3 = (int) 0 ;
15882 wxString const &arg4_defvalue = wxPyEmptyString ;
15883 wxString *arg4 = (wxString *) &arg4_defvalue ;
15884 wxMetaFileDC *result;
e811c8ce
RD
15885 bool temp1 = False ;
15886 bool temp4 = False ;
d14a1e28 15887 PyObject * obj0 = 0 ;
994141e6
RD
15888 PyObject * obj1 = 0 ;
15889 PyObject * obj2 = 0 ;
d14a1e28
RD
15890 PyObject * obj3 = 0 ;
15891 char *kwnames[] = {
15892 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15893 };
15894
994141e6 15895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
15896 if (obj0) {
15897 {
15898 arg1 = wxString_in_helper(obj0);
15899 if (arg1 == NULL) SWIG_fail;
e811c8ce 15900 temp1 = True;
d14a1e28
RD
15901 }
15902 }
994141e6 15903 if (obj1) {
15afbcd0
RD
15904 arg2 = (int) SWIG_AsInt(obj1);
15905 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
15906 }
15907 if (obj2) {
15afbcd0
RD
15908 arg3 = (int) SWIG_AsInt(obj2);
15909 if (PyErr_Occurred()) SWIG_fail;
994141e6 15910 }
d14a1e28
RD
15911 if (obj3) {
15912 {
15913 arg4 = wxString_in_helper(obj3);
15914 if (arg4 == NULL) SWIG_fail;
e811c8ce 15915 temp4 = True;
d14a1e28
RD
15916 }
15917 }
15918 {
e3b71cb8 15919 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15920 PyThreadState* __tstate = wxPyBeginAllowThreads();
15921 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15922
15923 wxPyEndAllowThreads(__tstate);
110da5b0 15924 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15925 }
15afbcd0 15926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
d14a1e28
RD
15927 {
15928 if (temp1)
15929 delete arg1;
15930 }
15931 {
15932 if (temp4)
15933 delete arg4;
15934 }
15935 return resultobj;
15936 fail:
15937 {
15938 if (temp1)
15939 delete arg1;
15940 }
15941 {
15942 if (temp4)
15943 delete arg4;
15944 }
15945 return NULL;
15946}
15947
15948
15949static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15950 PyObject *obj;
15951 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15952 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15953 Py_INCREF(obj);
15954 return Py_BuildValue((char *)"");
15955}
15956static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15957 PyObject *resultobj;
15958 wxPrintData *arg1 = 0 ;
15959 wxPrinterDC *result;
15960 PyObject * obj0 = 0 ;
15961 char *kwnames[] = {
15962 (char *) "printData", NULL
15963 };
15964
15965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15afbcd0
RD
15966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15967 SWIG_POINTER_EXCEPTION | 0)) == -1)
15968 SWIG_fail;
d14a1e28 15969 if (arg1 == NULL) {
15afbcd0
RD
15970 PyErr_SetString(PyExc_TypeError,"null reference");
15971 SWIG_fail;
d14a1e28
RD
15972 }
15973 {
e3b71cb8 15974 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
15975 PyThreadState* __tstate = wxPyBeginAllowThreads();
15976 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15977
15978 wxPyEndAllowThreads(__tstate);
110da5b0 15979 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 15980 }
15afbcd0 15981 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
d14a1e28
RD
15982 return resultobj;
15983 fail:
15984 return NULL;
15985}
15986
15987
15988static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15989 PyObject *obj;
15990 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15991 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15992 Py_INCREF(obj);
15993 return Py_BuildValue((char *)"");
15994}
15995static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15996 PyObject *resultobj;
15997 int arg1 ;
15998 int arg2 ;
e811c8ce 15999 int arg3 = (int) True ;
d14a1e28
RD
16000 int arg4 = (int) 1 ;
16001 wxImageList *result;
994141e6
RD
16002 PyObject * obj0 = 0 ;
16003 PyObject * obj1 = 0 ;
16004 PyObject * obj2 = 0 ;
16005 PyObject * obj3 = 0 ;
d14a1e28
RD
16006 char *kwnames[] = {
16007 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16008 };
16009
994141e6 16010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
16011 arg1 = (int) SWIG_AsInt(obj0);
16012 if (PyErr_Occurred()) SWIG_fail;
16013 arg2 = (int) SWIG_AsInt(obj1);
16014 if (PyErr_Occurred()) SWIG_fail;
994141e6 16015 if (obj2) {
15afbcd0
RD
16016 arg3 = (int) SWIG_AsInt(obj2);
16017 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
16018 }
16019 if (obj3) {
15afbcd0
RD
16020 arg4 = (int) SWIG_AsInt(obj3);
16021 if (PyErr_Occurred()) SWIG_fail;
994141e6 16022 }
d14a1e28 16023 {
e3b71cb8 16024 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
16025 PyThreadState* __tstate = wxPyBeginAllowThreads();
16026 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16027
16028 wxPyEndAllowThreads(__tstate);
110da5b0 16029 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16030 }
16031 {
412d302d 16032 resultobj = wxPyMake_wxObject(result, 1);
d14a1e28
RD
16033 }
16034 return resultobj;
16035 fail:
16036 return NULL;
16037}
16038
16039
16040static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16041 PyObject *resultobj;
16042 wxImageList *arg1 = (wxImageList *) 0 ;
16043 PyObject * obj0 = 0 ;
16044 char *kwnames[] = {
16045 (char *) "self", NULL
16046 };
16047
16048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
15afbcd0
RD
16049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16051 {
16052 PyThreadState* __tstate = wxPyBeginAllowThreads();
16053 delete arg1;
16054
16055 wxPyEndAllowThreads(__tstate);
16056 if (PyErr_Occurred()) SWIG_fail;
16057 }
16058 Py_INCREF(Py_None); resultobj = Py_None;
16059 return resultobj;
16060 fail:
16061 return NULL;
16062}
16063
16064
16065static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16066 PyObject *resultobj;
16067 wxImageList *arg1 = (wxImageList *) 0 ;
16068 wxBitmap *arg2 = 0 ;
16069 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16070 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16071 int result;
16072 PyObject * obj0 = 0 ;
16073 PyObject * obj1 = 0 ;
16074 PyObject * obj2 = 0 ;
16075 char *kwnames[] = {
16076 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16077 };
16078
16079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
16080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16082 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16083 SWIG_POINTER_EXCEPTION | 0)) == -1)
16084 SWIG_fail;
d14a1e28 16085 if (arg2 == NULL) {
15afbcd0
RD
16086 PyErr_SetString(PyExc_TypeError,"null reference");
16087 SWIG_fail;
d14a1e28
RD
16088 }
16089 if (obj2) {
15afbcd0
RD
16090 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16091 SWIG_POINTER_EXCEPTION | 0)) == -1)
16092 SWIG_fail;
d14a1e28 16093 if (arg3 == NULL) {
15afbcd0
RD
16094 PyErr_SetString(PyExc_TypeError,"null reference");
16095 SWIG_fail;
d14a1e28
RD
16096 }
16097 }
16098 {
16099 PyThreadState* __tstate = wxPyBeginAllowThreads();
16100 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16101
16102 wxPyEndAllowThreads(__tstate);
16103 if (PyErr_Occurred()) SWIG_fail;
16104 }
15afbcd0 16105 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16106 return resultobj;
16107 fail:
16108 return NULL;
16109}
16110
16111
16112static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16113 PyObject *resultobj;
16114 wxImageList *arg1 = (wxImageList *) 0 ;
16115 wxBitmap *arg2 = 0 ;
16116 wxColour *arg3 = 0 ;
16117 int result;
16118 wxColour temp3 ;
16119 PyObject * obj0 = 0 ;
16120 PyObject * obj1 = 0 ;
16121 PyObject * obj2 = 0 ;
16122 char *kwnames[] = {
16123 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16124 };
16125
16126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
16127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16129 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16130 SWIG_POINTER_EXCEPTION | 0)) == -1)
16131 SWIG_fail;
d14a1e28 16132 if (arg2 == NULL) {
15afbcd0
RD
16133 PyErr_SetString(PyExc_TypeError,"null reference");
16134 SWIG_fail;
d14a1e28
RD
16135 }
16136 {
16137 arg3 = &temp3;
16138 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16139 }
16140 {
16141 PyThreadState* __tstate = wxPyBeginAllowThreads();
16142 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16143
16144 wxPyEndAllowThreads(__tstate);
16145 if (PyErr_Occurred()) SWIG_fail;
16146 }
15afbcd0 16147 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16148 return resultobj;
16149 fail:
16150 return NULL;
16151}
16152
16153
16154static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16155 PyObject *resultobj;
16156 wxImageList *arg1 = (wxImageList *) 0 ;
16157 wxIcon *arg2 = 0 ;
16158 int result;
16159 PyObject * obj0 = 0 ;
16160 PyObject * obj1 = 0 ;
16161 char *kwnames[] = {
16162 (char *) "self",(char *) "icon", NULL
16163 };
16164
16165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16168 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16169 SWIG_POINTER_EXCEPTION | 0)) == -1)
16170 SWIG_fail;
d14a1e28 16171 if (arg2 == NULL) {
15afbcd0
RD
16172 PyErr_SetString(PyExc_TypeError,"null reference");
16173 SWIG_fail;
d14a1e28
RD
16174 }
16175 {
16176 PyThreadState* __tstate = wxPyBeginAllowThreads();
16177 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16178
16179 wxPyEndAllowThreads(__tstate);
16180 if (PyErr_Occurred()) SWIG_fail;
16181 }
15afbcd0 16182 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16183 return resultobj;
16184 fail:
16185 return NULL;
16186}
16187
16188
16189static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16190 PyObject *resultobj;
16191 wxImageList *arg1 = (wxImageList *) 0 ;
16192 int arg2 ;
16193 wxBitmap *arg3 = 0 ;
16194 bool result;
16195 PyObject * obj0 = 0 ;
994141e6 16196 PyObject * obj1 = 0 ;
d14a1e28
RD
16197 PyObject * obj2 = 0 ;
16198 char *kwnames[] = {
16199 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16200 };
16201
994141e6 16202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
16203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16205 arg2 = (int) SWIG_AsInt(obj1);
16206 if (PyErr_Occurred()) SWIG_fail;
16207 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16208 SWIG_POINTER_EXCEPTION | 0)) == -1)
16209 SWIG_fail;
d14a1e28 16210 if (arg3 == NULL) {
15afbcd0
RD
16211 PyErr_SetString(PyExc_TypeError,"null reference");
16212 SWIG_fail;
d14a1e28
RD
16213 }
16214 {
16215 PyThreadState* __tstate = wxPyBeginAllowThreads();
16216 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16217
16218 wxPyEndAllowThreads(__tstate);
16219 if (PyErr_Occurred()) SWIG_fail;
16220 }
4f89f6a3
RD
16221 {
16222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16223 }
d14a1e28
RD
16224 return resultobj;
16225 fail:
16226 return NULL;
16227}
16228
16229
16230static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16231 PyObject *resultobj;
16232 wxImageList *arg1 = (wxImageList *) 0 ;
16233 int arg2 ;
16234 wxDC *arg3 = 0 ;
16235 int arg4 ;
16236 int arg5 ;
16237 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
e811c8ce 16238 bool arg7 = (bool) (bool)False ;
d14a1e28
RD
16239 bool result;
16240 PyObject * obj0 = 0 ;
994141e6 16241 PyObject * obj1 = 0 ;
d14a1e28 16242 PyObject * obj2 = 0 ;
994141e6
RD
16243 PyObject * obj3 = 0 ;
16244 PyObject * obj4 = 0 ;
16245 PyObject * obj5 = 0 ;
d14a1e28
RD
16246 PyObject * obj6 = 0 ;
16247 char *kwnames[] = {
16248 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16249 };
16250
994141e6 16251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15afbcd0
RD
16252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16254 arg2 = (int) SWIG_AsInt(obj1);
16255 if (PyErr_Occurred()) SWIG_fail;
16256 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16257 SWIG_POINTER_EXCEPTION | 0)) == -1)
16258 SWIG_fail;
d14a1e28 16259 if (arg3 == NULL) {
15afbcd0
RD
16260 PyErr_SetString(PyExc_TypeError,"null reference");
16261 SWIG_fail;
994141e6 16262 }
15afbcd0
RD
16263 arg4 = (int) SWIG_AsInt(obj3);
16264 if (PyErr_Occurred()) SWIG_fail;
16265 arg5 = (int) SWIG_AsInt(obj4);
16266 if (PyErr_Occurred()) SWIG_fail;
994141e6 16267 if (obj5) {
15afbcd0
RD
16268 arg6 = (int) SWIG_AsInt(obj5);
16269 if (PyErr_Occurred()) SWIG_fail;
994141e6 16270 }
d14a1e28 16271 if (obj6) {
15afbcd0
RD
16272 arg7 = (bool const) SWIG_AsBool(obj6);
16273 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16274 }
16275 {
16276 PyThreadState* __tstate = wxPyBeginAllowThreads();
16277 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16278
16279 wxPyEndAllowThreads(__tstate);
16280 if (PyErr_Occurred()) SWIG_fail;
16281 }
4f89f6a3
RD
16282 {
16283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16284 }
d14a1e28
RD
16285 return resultobj;
16286 fail:
16287 return NULL;
16288}
16289
16290
16291static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16292 PyObject *resultobj;
16293 wxImageList *arg1 = (wxImageList *) 0 ;
16294 int result;
16295 PyObject * obj0 = 0 ;
16296 char *kwnames[] = {
16297 (char *) "self", NULL
16298 };
16299
16300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
16301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16303 {
16304 PyThreadState* __tstate = wxPyBeginAllowThreads();
16305 result = (int)(arg1)->GetImageCount();
16306
16307 wxPyEndAllowThreads(__tstate);
16308 if (PyErr_Occurred()) SWIG_fail;
16309 }
15afbcd0 16310 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16311 return resultobj;
16312 fail:
16313 return NULL;
16314}
16315
16316
16317static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16318 PyObject *resultobj;
16319 wxImageList *arg1 = (wxImageList *) 0 ;
16320 int arg2 ;
16321 bool result;
16322 PyObject * obj0 = 0 ;
994141e6 16323 PyObject * obj1 = 0 ;
d14a1e28
RD
16324 char *kwnames[] = {
16325 (char *) "self",(char *) "index", NULL
16326 };
16327
994141e6 16328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16331 arg2 = (int) SWIG_AsInt(obj1);
16332 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16333 {
16334 PyThreadState* __tstate = wxPyBeginAllowThreads();
16335 result = (bool)(arg1)->Remove(arg2);
16336
16337 wxPyEndAllowThreads(__tstate);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 }
4f89f6a3
RD
16340 {
16341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16342 }
d14a1e28
RD
16343 return resultobj;
16344 fail:
16345 return NULL;
16346}
16347
16348
16349static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16350 PyObject *resultobj;
16351 wxImageList *arg1 = (wxImageList *) 0 ;
16352 bool result;
16353 PyObject * obj0 = 0 ;
16354 char *kwnames[] = {
16355 (char *) "self", NULL
16356 };
16357
16358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
15afbcd0
RD
16359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16361 {
16362 PyThreadState* __tstate = wxPyBeginAllowThreads();
16363 result = (bool)(arg1)->RemoveAll();
16364
16365 wxPyEndAllowThreads(__tstate);
16366 if (PyErr_Occurred()) SWIG_fail;
16367 }
4f89f6a3
RD
16368 {
16369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16370 }
d14a1e28
RD
16371 return resultobj;
16372 fail:
16373 return NULL;
16374}
16375
16376
16377static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16378 PyObject *resultobj;
16379 wxImageList *arg1 = (wxImageList *) 0 ;
16380 int arg2 ;
16381 int *arg3 = 0 ;
16382 int *arg4 = 0 ;
16383 int temp3 ;
16384 int temp4 ;
16385 PyObject * obj0 = 0 ;
994141e6 16386 PyObject * obj1 = 0 ;
d14a1e28
RD
16387 char *kwnames[] = {
16388 (char *) "self",(char *) "index", NULL
16389 };
16390
16391 arg3 = &temp3;
16392 arg4 = &temp4;
994141e6 16393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16396 arg2 = (int) SWIG_AsInt(obj1);
16397 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16398 {
16399 PyThreadState* __tstate = wxPyBeginAllowThreads();
16400 (arg1)->GetSize(arg2,*arg3,*arg4);
16401
16402 wxPyEndAllowThreads(__tstate);
16403 if (PyErr_Occurred()) SWIG_fail;
16404 }
16405 Py_INCREF(Py_None); resultobj = Py_None;
16406 {
16407 PyObject *o = PyInt_FromLong((long) (*arg3));
16408 resultobj = t_output_helper(resultobj,o);
16409 }
16410 {
16411 PyObject *o = PyInt_FromLong((long) (*arg4));
16412 resultobj = t_output_helper(resultobj,o);
16413 }
16414 return resultobj;
16415 fail:
16416 return NULL;
16417}
16418
16419
16420static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16421 PyObject *obj;
16422 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16423 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16424 Py_INCREF(obj);
16425 return Py_BuildValue((char *)"");
16426}
994141e6
RD
16427static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16428 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16429 return 1;
d14a1e28
RD
16430}
16431
16432
994141e6
RD
16433static PyObject *_wrap_NORMAL_FONT_get() {
16434 PyObject *pyobj;
d14a1e28 16435
15afbcd0 16436 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
994141e6 16437 return pyobj;
d14a1e28
RD
16438}
16439
16440
994141e6
RD
16441static int _wrap_SMALL_FONT_set(PyObject *_val) {
16442 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16443 return 1;
d14a1e28
RD
16444}
16445
16446
994141e6
RD
16447static PyObject *_wrap_SMALL_FONT_get() {
16448 PyObject *pyobj;
d14a1e28 16449
15afbcd0 16450 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
994141e6 16451 return pyobj;
d14a1e28
RD
16452}
16453
16454
994141e6
RD
16455static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16456 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16457 return 1;
d14a1e28 16458}
994141e6
RD
16459
16460
16461static PyObject *_wrap_ITALIC_FONT_get() {
16462 PyObject *pyobj;
d14a1e28 16463
15afbcd0 16464 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
994141e6 16465 return pyobj;
d14a1e28
RD
16466}
16467
16468
994141e6
RD
16469static int _wrap_SWISS_FONT_set(PyObject *_val) {
16470 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16471 return 1;
d14a1e28
RD
16472}
16473
16474
994141e6
RD
16475static PyObject *_wrap_SWISS_FONT_get() {
16476 PyObject *pyobj;
d14a1e28 16477
15afbcd0 16478 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
994141e6 16479 return pyobj;
d14a1e28
RD
16480}
16481
16482
994141e6
RD
16483static int _wrap_RED_PEN_set(PyObject *_val) {
16484 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16485 return 1;
16486}
16487
16488
16489static PyObject *_wrap_RED_PEN_get() {
16490 PyObject *pyobj;
d14a1e28 16491
15afbcd0 16492 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16493 return pyobj;
d14a1e28
RD
16494}
16495
16496
994141e6
RD
16497static int _wrap_CYAN_PEN_set(PyObject *_val) {
16498 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16499 return 1;
d14a1e28 16500}
994141e6
RD
16501
16502
16503static PyObject *_wrap_CYAN_PEN_get() {
16504 PyObject *pyobj;
d14a1e28 16505
15afbcd0 16506 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16507 return pyobj;
d14a1e28
RD
16508}
16509
16510
994141e6
RD
16511static int _wrap_GREEN_PEN_set(PyObject *_val) {
16512 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16513 return 1;
16514}
16515
16516
16517static PyObject *_wrap_GREEN_PEN_get() {
16518 PyObject *pyobj;
d14a1e28 16519
15afbcd0 16520 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16521 return pyobj;
d14a1e28
RD
16522}
16523
16524
994141e6
RD
16525static int _wrap_BLACK_PEN_set(PyObject *_val) {
16526 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16527 return 1;
16528}
16529
16530
16531static PyObject *_wrap_BLACK_PEN_get() {
16532 PyObject *pyobj;
d14a1e28 16533
15afbcd0 16534 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16535 return pyobj;
d14a1e28
RD
16536}
16537
16538
994141e6
RD
16539static int _wrap_WHITE_PEN_set(PyObject *_val) {
16540 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16541 return 1;
d14a1e28
RD
16542}
16543
16544
994141e6
RD
16545static PyObject *_wrap_WHITE_PEN_get() {
16546 PyObject *pyobj;
d14a1e28 16547
15afbcd0 16548 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16549 return pyobj;
d14a1e28
RD
16550}
16551
16552
994141e6
RD
16553static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16554 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16555 return 1;
d14a1e28
RD
16556}
16557
16558
994141e6
RD
16559static PyObject *_wrap_TRANSPARENT_PEN_get() {
16560 PyObject *pyobj;
d14a1e28 16561
15afbcd0 16562 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16563 return pyobj;
d14a1e28
RD
16564}
16565
16566
994141e6
RD
16567static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16568 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16569 return 1;
d14a1e28
RD
16570}
16571
16572
994141e6
RD
16573static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16574 PyObject *pyobj;
d14a1e28 16575
15afbcd0 16576 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16577 return pyobj;
d14a1e28
RD
16578}
16579
16580
994141e6
RD
16581static int _wrap_GREY_PEN_set(PyObject *_val) {
16582 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16583 return 1;
d14a1e28
RD
16584}
16585
16586
994141e6
RD
16587static PyObject *_wrap_GREY_PEN_get() {
16588 PyObject *pyobj;
16589
15afbcd0 16590 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
994141e6 16591 return pyobj;
d14a1e28 16592}
994141e6
RD
16593
16594
16595static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16596 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
d14a1e28
RD
16597 return 1;
16598}
16599
16600
994141e6 16601static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
d14a1e28
RD
16602 PyObject *pyobj;
16603
15afbcd0 16604 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
16605 return pyobj;
16606}
16607
16608
994141e6
RD
16609static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16610 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
d14a1e28
RD
16611 return 1;
16612}
16613
16614
994141e6 16615static PyObject *_wrap_LIGHT_GREY_PEN_get() {
d14a1e28
RD
16616 PyObject *pyobj;
16617
15afbcd0 16618 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
16619 return pyobj;
16620}
16621
16622
994141e6
RD
16623static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16624 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
d14a1e28
RD
16625 return 1;
16626}
16627
16628
994141e6 16629static PyObject *_wrap_BLUE_BRUSH_get() {
d14a1e28
RD
16630 PyObject *pyobj;
16631
15afbcd0 16632 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16633 return pyobj;
16634}
16635
16636
994141e6
RD
16637static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16638 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
d14a1e28
RD
16639 return 1;
16640}
16641
16642
994141e6 16643static PyObject *_wrap_GREEN_BRUSH_get() {
d14a1e28
RD
16644 PyObject *pyobj;
16645
15afbcd0 16646 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16647 return pyobj;
16648}
16649
16650
994141e6
RD
16651static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16652 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
d14a1e28
RD
16653 return 1;
16654}
16655
16656
994141e6 16657static PyObject *_wrap_WHITE_BRUSH_get() {
d14a1e28
RD
16658 PyObject *pyobj;
16659
15afbcd0 16660 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16661 return pyobj;
16662}
16663
16664
994141e6
RD
16665static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16666 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
d14a1e28
RD
16667 return 1;
16668}
16669
16670
994141e6 16671static PyObject *_wrap_BLACK_BRUSH_get() {
d14a1e28
RD
16672 PyObject *pyobj;
16673
15afbcd0 16674 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16675 return pyobj;
16676}
16677
16678
994141e6
RD
16679static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16680 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
d14a1e28
RD
16681 return 1;
16682}
16683
16684
994141e6 16685static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
d14a1e28
RD
16686 PyObject *pyobj;
16687
15afbcd0 16688 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16689 return pyobj;
16690}
16691
16692
994141e6
RD
16693static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16694 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
d14a1e28
RD
16695 return 1;
16696}
16697
16698
994141e6 16699static PyObject *_wrap_CYAN_BRUSH_get() {
d14a1e28
RD
16700 PyObject *pyobj;
16701
15afbcd0 16702 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16703 return pyobj;
16704}
16705
16706
994141e6
RD
16707static int _wrap_RED_BRUSH_set(PyObject *_val) {
16708 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
d14a1e28
RD
16709 return 1;
16710}
16711
16712
994141e6 16713static PyObject *_wrap_RED_BRUSH_get() {
d14a1e28
RD
16714 PyObject *pyobj;
16715
15afbcd0 16716 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16717 return pyobj;
16718}
16719
16720
994141e6
RD
16721static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16722 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
d14a1e28
RD
16723 return 1;
16724}
16725
16726
994141e6 16727static PyObject *_wrap_GREY_BRUSH_get() {
d14a1e28
RD
16728 PyObject *pyobj;
16729
15afbcd0 16730 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16731 return pyobj;
16732}
16733
16734
994141e6
RD
16735static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16736 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
d14a1e28
RD
16737 return 1;
16738}
16739
16740
994141e6 16741static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
d14a1e28
RD
16742 PyObject *pyobj;
16743
15afbcd0 16744 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16745 return pyobj;
16746}
16747
16748
994141e6
RD
16749static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16750 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
d14a1e28
RD
16751 return 1;
16752}
16753
16754
994141e6 16755static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
d14a1e28
RD
16756 PyObject *pyobj;
16757
15afbcd0 16758 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16759 return pyobj;
16760}
16761
16762
994141e6
RD
16763static int _wrap_BLACK_set(PyObject *_val) {
16764 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
d14a1e28
RD
16765 return 1;
16766}
16767
16768
994141e6 16769static PyObject *_wrap_BLACK_get() {
d14a1e28
RD
16770 PyObject *pyobj;
16771
15afbcd0 16772 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16773 return pyobj;
16774}
16775
16776
994141e6
RD
16777static int _wrap_WHITE_set(PyObject *_val) {
16778 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
d14a1e28
RD
16779 return 1;
16780}
16781
16782
994141e6 16783static PyObject *_wrap_WHITE_get() {
d14a1e28
RD
16784 PyObject *pyobj;
16785
15afbcd0 16786 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16787 return pyobj;
16788}
16789
16790
994141e6
RD
16791static int _wrap_RED_set(PyObject *_val) {
16792 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
d14a1e28
RD
16793 return 1;
16794}
16795
16796
994141e6 16797static PyObject *_wrap_RED_get() {
d14a1e28
RD
16798 PyObject *pyobj;
16799
15afbcd0 16800 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16801 return pyobj;
16802}
16803
16804
994141e6
RD
16805static int _wrap_BLUE_set(PyObject *_val) {
16806 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
d14a1e28
RD
16807 return 1;
16808}
16809
16810
994141e6 16811static PyObject *_wrap_BLUE_get() {
d14a1e28
RD
16812 PyObject *pyobj;
16813
15afbcd0 16814 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16815 return pyobj;
16816}
16817
16818
994141e6
RD
16819static int _wrap_GREEN_set(PyObject *_val) {
16820 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
d14a1e28
RD
16821 return 1;
16822}
16823
16824
994141e6 16825static PyObject *_wrap_GREEN_get() {
d14a1e28
RD
16826 PyObject *pyobj;
16827
15afbcd0 16828 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16829 return pyobj;
16830}
16831
16832
994141e6
RD
16833static int _wrap_CYAN_set(PyObject *_val) {
16834 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
d14a1e28
RD
16835 return 1;
16836}
16837
16838
994141e6 16839static PyObject *_wrap_CYAN_get() {
d14a1e28
RD
16840 PyObject *pyobj;
16841
15afbcd0 16842 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16843 return pyobj;
16844}
16845
16846
994141e6
RD
16847static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16848 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
d14a1e28
RD
16849 return 1;
16850}
16851
16852
994141e6 16853static PyObject *_wrap_LIGHT_GREY_get() {
d14a1e28
RD
16854 PyObject *pyobj;
16855
15afbcd0 16856 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16857 return pyobj;
16858}
16859
16860
994141e6
RD
16861static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16862 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
d14a1e28
RD
16863 return 1;
16864}
16865
16866
994141e6 16867static PyObject *_wrap_STANDARD_CURSOR_get() {
d14a1e28
RD
16868 PyObject *pyobj;
16869
15afbcd0 16870 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
16871 return pyobj;
16872}
16873
16874
994141e6
RD
16875static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16876 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
d14a1e28
RD
16877 return 1;
16878}
16879
16880
994141e6 16881static PyObject *_wrap_HOURGLASS_CURSOR_get() {
d14a1e28
RD
16882 PyObject *pyobj;
16883
15afbcd0 16884 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
16885 return pyobj;
16886}
16887
16888
994141e6
RD
16889static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16890 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
d14a1e28
RD
16891 return 1;
16892}
16893
16894
994141e6 16895static PyObject *_wrap_CROSS_CURSOR_get() {
d14a1e28
RD
16896 PyObject *pyobj;
16897
15afbcd0 16898 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
16899 return pyobj;
16900}
16901
16902
994141e6
RD
16903static int _wrap_NullBitmap_set(PyObject *_val) {
16904 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
d14a1e28
RD
16905 return 1;
16906}
16907
16908
994141e6 16909static PyObject *_wrap_NullBitmap_get() {
d14a1e28
RD
16910 PyObject *pyobj;
16911
15afbcd0 16912 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
d14a1e28
RD
16913 return pyobj;
16914}
16915
16916
994141e6
RD
16917static int _wrap_NullIcon_set(PyObject *_val) {
16918 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
d14a1e28
RD
16919 return 1;
16920}
16921
16922
994141e6 16923static PyObject *_wrap_NullIcon_get() {
d14a1e28
RD
16924 PyObject *pyobj;
16925
15afbcd0 16926 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
d14a1e28
RD
16927 return pyobj;
16928}
16929
16930
994141e6
RD
16931static int _wrap_NullCursor_set(PyObject *_val) {
16932 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
d14a1e28
RD
16933 return 1;
16934}
16935
16936
994141e6 16937static PyObject *_wrap_NullCursor_get() {
d14a1e28
RD
16938 PyObject *pyobj;
16939
15afbcd0 16940 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
16941 return pyobj;
16942}
16943
16944
994141e6
RD
16945static int _wrap_NullPen_set(PyObject *_val) {
16946 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
d14a1e28
RD
16947 return 1;
16948}
16949
16950
994141e6 16951static PyObject *_wrap_NullPen_get() {
d14a1e28
RD
16952 PyObject *pyobj;
16953
15afbcd0 16954 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
16955 return pyobj;
16956}
16957
16958
994141e6
RD
16959static int _wrap_NullBrush_set(PyObject *_val) {
16960 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
d14a1e28
RD
16961 return 1;
16962}
16963
16964
994141e6 16965static PyObject *_wrap_NullBrush_get() {
d14a1e28
RD
16966 PyObject *pyobj;
16967
15afbcd0 16968 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
16969 return pyobj;
16970}
16971
16972
994141e6
RD
16973static int _wrap_NullPalette_set(PyObject *_val) {
16974 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
d14a1e28
RD
16975 return 1;
16976}
16977
16978
994141e6 16979static PyObject *_wrap_NullPalette_get() {
d14a1e28
RD
16980 PyObject *pyobj;
16981
15afbcd0 16982 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
d14a1e28
RD
16983 return pyobj;
16984}
16985
16986
994141e6
RD
16987static int _wrap_NullFont_set(PyObject *_val) {
16988 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
d14a1e28
RD
16989 return 1;
16990}
16991
16992
994141e6 16993static PyObject *_wrap_NullFont_get() {
d14a1e28
RD
16994 PyObject *pyobj;
16995
15afbcd0 16996 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
d14a1e28
RD
16997 return pyobj;
16998}
16999
17000
994141e6
RD
17001static int _wrap_NullColour_set(PyObject *_val) {
17002 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
d14a1e28
RD
17003 return 1;
17004}
17005
17006
994141e6 17007static PyObject *_wrap_NullColour_get() {
d14a1e28
RD
17008 PyObject *pyobj;
17009
15afbcd0 17010 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
17011 return pyobj;
17012}
17013
17014
994141e6
RD
17015static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17016 PyObject *resultobj;
17017 wxPenList *arg1 = (wxPenList *) 0 ;
17018 wxPen *arg2 = (wxPen *) 0 ;
17019 PyObject * obj0 = 0 ;
17020 PyObject * obj1 = 0 ;
17021 char *kwnames[] = {
17022 (char *) "self",(char *) "pen", NULL
17023 };
17024
17025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17028 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17030 {
17031 PyThreadState* __tstate = wxPyBeginAllowThreads();
17032 (arg1)->AddPen(arg2);
17033
17034 wxPyEndAllowThreads(__tstate);
17035 if (PyErr_Occurred()) SWIG_fail;
17036 }
17037 Py_INCREF(Py_None); resultobj = Py_None;
17038 return resultobj;
17039 fail:
17040 return NULL;
d14a1e28
RD
17041}
17042
17043
994141e6
RD
17044static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17045 PyObject *resultobj;
17046 wxPenList *arg1 = (wxPenList *) 0 ;
17047 wxColour *arg2 = 0 ;
17048 int arg3 ;
17049 int arg4 ;
17050 wxPen *result;
17051 wxColour temp2 ;
17052 PyObject * obj0 = 0 ;
17053 PyObject * obj1 = 0 ;
17054 PyObject * obj2 = 0 ;
17055 PyObject * obj3 = 0 ;
17056 char *kwnames[] = {
17057 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17058 };
d14a1e28 17059
994141e6 17060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
17061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17063 {
17064 arg2 = &temp2;
17065 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17066 }
15afbcd0
RD
17067 arg3 = (int) SWIG_AsInt(obj2);
17068 if (PyErr_Occurred()) SWIG_fail;
17069 arg4 = (int) SWIG_AsInt(obj3);
17070 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17071 {
17072 PyThreadState* __tstate = wxPyBeginAllowThreads();
17073 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17074
17075 wxPyEndAllowThreads(__tstate);
17076 if (PyErr_Occurred()) SWIG_fail;
17077 }
15afbcd0 17078 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
994141e6
RD
17079 return resultobj;
17080 fail:
17081 return NULL;
d14a1e28
RD
17082}
17083
17084
994141e6
RD
17085static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17086 PyObject *resultobj;
17087 wxPenList *arg1 = (wxPenList *) 0 ;
17088 wxPen *arg2 = (wxPen *) 0 ;
17089 PyObject * obj0 = 0 ;
17090 PyObject * obj1 = 0 ;
17091 char *kwnames[] = {
17092 (char *) "self",(char *) "pen", NULL
17093 };
17094
17095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17098 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17100 {
17101 PyThreadState* __tstate = wxPyBeginAllowThreads();
17102 (arg1)->RemovePen(arg2);
17103
17104 wxPyEndAllowThreads(__tstate);
17105 if (PyErr_Occurred()) SWIG_fail;
17106 }
17107 Py_INCREF(Py_None); resultobj = Py_None;
17108 return resultobj;
17109 fail:
17110 return NULL;
d14a1e28
RD
17111}
17112
17113
994141e6
RD
17114static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17115 PyObject *resultobj;
17116 wxPenList *arg1 = (wxPenList *) 0 ;
17117 int result;
17118 PyObject * obj0 = 0 ;
17119 char *kwnames[] = {
17120 (char *) "self", NULL
17121 };
d14a1e28 17122
994141e6 17123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
17124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17126 {
17127 PyThreadState* __tstate = wxPyBeginAllowThreads();
17128 result = (int)(arg1)->GetCount();
17129
17130 wxPyEndAllowThreads(__tstate);
17131 if (PyErr_Occurred()) SWIG_fail;
17132 }
15afbcd0 17133 resultobj = SWIG_FromInt((int)result);
994141e6
RD
17134 return resultobj;
17135 fail:
17136 return NULL;
d14a1e28
RD
17137}
17138
17139
994141e6
RD
17140static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17141 PyObject *obj;
17142 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17143 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17144 Py_INCREF(obj);
17145 return Py_BuildValue((char *)"");
17146}
17147static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17148 PyObject *resultobj;
17149 wxBrushList *arg1 = (wxBrushList *) 0 ;
17150 wxBrush *arg2 = (wxBrush *) 0 ;
17151 PyObject * obj0 = 0 ;
17152 PyObject * obj1 = 0 ;
17153 char *kwnames[] = {
17154 (char *) "self",(char *) "brush", NULL
17155 };
17156
17157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17160 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17162 {
17163 PyThreadState* __tstate = wxPyBeginAllowThreads();
17164 (arg1)->AddBrush(arg2);
17165
17166 wxPyEndAllowThreads(__tstate);
17167 if (PyErr_Occurred()) SWIG_fail;
17168 }
17169 Py_INCREF(Py_None); resultobj = Py_None;
17170 return resultobj;
17171 fail:
17172 return NULL;
17173}
17174
17175
17176static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17177 PyObject *resultobj;
17178 wxBrushList *arg1 = (wxBrushList *) 0 ;
17179 wxColour *arg2 = 0 ;
17180 int arg3 ;
17181 wxBrush *result;
17182 wxColour temp2 ;
17183 PyObject * obj0 = 0 ;
17184 PyObject * obj1 = 0 ;
17185 PyObject * obj2 = 0 ;
17186 char *kwnames[] = {
17187 (char *) "self",(char *) "colour",(char *) "style", NULL
17188 };
17189
17190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
17191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17193 {
17194 arg2 = &temp2;
17195 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17196 }
15afbcd0
RD
17197 arg3 = (int) SWIG_AsInt(obj2);
17198 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17199 {
17200 PyThreadState* __tstate = wxPyBeginAllowThreads();
17201 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17202
17203 wxPyEndAllowThreads(__tstate);
17204 if (PyErr_Occurred()) SWIG_fail;
17205 }
15afbcd0 17206 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
994141e6
RD
17207 return resultobj;
17208 fail:
17209 return NULL;
d14a1e28
RD
17210}
17211
17212
994141e6
RD
17213static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17214 PyObject *resultobj;
17215 wxBrushList *arg1 = (wxBrushList *) 0 ;
17216 wxBrush *arg2 = (wxBrush *) 0 ;
17217 PyObject * obj0 = 0 ;
17218 PyObject * obj1 = 0 ;
17219 char *kwnames[] = {
17220 (char *) "self",(char *) "brush", NULL
17221 };
d14a1e28 17222
994141e6 17223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17226 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17228 {
17229 PyThreadState* __tstate = wxPyBeginAllowThreads();
17230 (arg1)->RemoveBrush(arg2);
17231
17232 wxPyEndAllowThreads(__tstate);
17233 if (PyErr_Occurred()) SWIG_fail;
17234 }
17235 Py_INCREF(Py_None); resultobj = Py_None;
17236 return resultobj;
17237 fail:
17238 return NULL;
d14a1e28
RD
17239}
17240
17241
994141e6
RD
17242static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17243 PyObject *resultobj;
17244 wxBrushList *arg1 = (wxBrushList *) 0 ;
17245 int result;
17246 PyObject * obj0 = 0 ;
17247 char *kwnames[] = {
17248 (char *) "self", NULL
17249 };
d14a1e28 17250
994141e6 17251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
17252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17254 {
17255 PyThreadState* __tstate = wxPyBeginAllowThreads();
17256 result = (int)(arg1)->GetCount();
17257
17258 wxPyEndAllowThreads(__tstate);
17259 if (PyErr_Occurred()) SWIG_fail;
17260 }
15afbcd0 17261 resultobj = SWIG_FromInt((int)result);
994141e6
RD
17262 return resultobj;
17263 fail:
17264 return NULL;
d14a1e28
RD
17265}
17266
17267
994141e6
RD
17268static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17269 PyObject *obj;
17270 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17271 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17272 Py_INCREF(obj);
17273 return Py_BuildValue((char *)"");
d14a1e28 17274}
994141e6
RD
17275static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17276 PyObject *resultobj;
17277 wxColourDatabase *result;
17278 char *kwnames[] = {
17279 NULL
17280 };
d14a1e28 17281
994141e6
RD
17282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17283 {
e3b71cb8 17284 if (!wxPyCheckForApp()) SWIG_fail;
994141e6
RD
17285 PyThreadState* __tstate = wxPyBeginAllowThreads();
17286 result = (wxColourDatabase *)new wxColourDatabase();
17287
17288 wxPyEndAllowThreads(__tstate);
110da5b0 17289 if (PyErr_Occurred()) SWIG_fail;
994141e6 17290 }
15afbcd0 17291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
994141e6
RD
17292 return resultobj;
17293 fail:
17294 return NULL;
d14a1e28
RD
17295}
17296
17297
994141e6
RD
17298static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17299 PyObject *resultobj;
17300 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17301 PyObject * obj0 = 0 ;
17302 char *kwnames[] = {
17303 (char *) "self", NULL
17304 };
d14a1e28 17305
994141e6 17306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
15afbcd0
RD
17307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17309 {
17310 PyThreadState* __tstate = wxPyBeginAllowThreads();
17311 delete arg1;
17312
17313 wxPyEndAllowThreads(__tstate);
17314 if (PyErr_Occurred()) SWIG_fail;
17315 }
17316 Py_INCREF(Py_None); resultobj = Py_None;
17317 return resultobj;
17318 fail:
17319 return NULL;
d14a1e28
RD
17320}
17321
17322
994141e6
RD
17323static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17324 PyObject *resultobj;
17325 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17326 wxString *arg2 = 0 ;
17327 wxColour result;
17328 bool temp2 = False ;
17329 PyObject * obj0 = 0 ;
17330 PyObject * obj1 = 0 ;
17331 char *kwnames[] = {
17332 (char *) "self",(char *) "name", NULL
17333 };
17334
17335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17338 {
17339 arg2 = wxString_in_helper(obj1);
17340 if (arg2 == NULL) SWIG_fail;
17341 temp2 = True;
17342 }
17343 {
17344 PyThreadState* __tstate = wxPyBeginAllowThreads();
17345 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17346
17347 wxPyEndAllowThreads(__tstate);
17348 if (PyErr_Occurred()) SWIG_fail;
17349 }
17350 {
17351 wxColour * resultptr;
17352 resultptr = new wxColour((wxColour &) result);
15afbcd0 17353 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
994141e6
RD
17354 }
17355 {
17356 if (temp2)
17357 delete arg2;
17358 }
17359 return resultobj;
17360 fail:
17361 {
17362 if (temp2)
17363 delete arg2;
17364 }
17365 return NULL;
d14a1e28
RD
17366}
17367
17368
994141e6
RD
17369static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17370 PyObject *resultobj;
17371 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17372 wxColour *arg2 = 0 ;
17373 wxString result;
17374 wxColour temp2 ;
17375 PyObject * obj0 = 0 ;
17376 PyObject * obj1 = 0 ;
17377 char *kwnames[] = {
17378 (char *) "self",(char *) "colour", NULL
17379 };
d14a1e28 17380
994141e6 17381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17384 {
17385 arg2 = &temp2;
17386 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17387 }
17388 {
17389 PyThreadState* __tstate = wxPyBeginAllowThreads();
17390 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17391
17392 wxPyEndAllowThreads(__tstate);
17393 if (PyErr_Occurred()) SWIG_fail;
17394 }
17395 {
17396#if wxUSE_UNICODE
17397 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17398#else
17399 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17400#endif
17401 }
17402 return resultobj;
17403 fail:
17404 return NULL;
d14a1e28
RD
17405}
17406
17407
994141e6
RD
17408static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17409 PyObject *resultobj;
17410 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17411 wxString *arg2 = 0 ;
17412 wxColour *arg3 = 0 ;
17413 bool temp2 = False ;
17414 wxColour temp3 ;
17415 PyObject * obj0 = 0 ;
17416 PyObject * obj1 = 0 ;
17417 PyObject * obj2 = 0 ;
17418 char *kwnames[] = {
17419 (char *) "self",(char *) "name",(char *) "colour", NULL
17420 };
17421
17422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
17423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17425 {
17426 arg2 = wxString_in_helper(obj1);
17427 if (arg2 == NULL) SWIG_fail;
17428 temp2 = True;
17429 }
17430 {
17431 arg3 = &temp3;
17432 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17433 }
17434 {
17435 PyThreadState* __tstate = wxPyBeginAllowThreads();
17436 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17437
17438 wxPyEndAllowThreads(__tstate);
17439 if (PyErr_Occurred()) SWIG_fail;
17440 }
17441 Py_INCREF(Py_None); resultobj = Py_None;
17442 {
17443 if (temp2)
17444 delete arg2;
17445 }
17446 return resultobj;
17447 fail:
17448 {
17449 if (temp2)
17450 delete arg2;
17451 }
17452 return NULL;
d14a1e28
RD
17453}
17454
17455
994141e6
RD
17456static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17457 PyObject *resultobj;
17458 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17459 wxString *arg2 = 0 ;
17460 int arg3 ;
17461 int arg4 ;
17462 int arg5 ;
17463 bool temp2 = False ;
17464 PyObject * obj0 = 0 ;
17465 PyObject * obj1 = 0 ;
17466 PyObject * obj2 = 0 ;
17467 PyObject * obj3 = 0 ;
17468 PyObject * obj4 = 0 ;
17469 char *kwnames[] = {
17470 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17471 };
d14a1e28 17472
994141e6 17473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
17474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17476 {
17477 arg2 = wxString_in_helper(obj1);
17478 if (arg2 == NULL) SWIG_fail;
17479 temp2 = True;
17480 }
15afbcd0
RD
17481 arg3 = (int) SWIG_AsInt(obj2);
17482 if (PyErr_Occurred()) SWIG_fail;
17483 arg4 = (int) SWIG_AsInt(obj3);
17484 if (PyErr_Occurred()) SWIG_fail;
17485 arg5 = (int) SWIG_AsInt(obj4);
17486 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17487 {
17488 PyThreadState* __tstate = wxPyBeginAllowThreads();
17489 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17490
17491 wxPyEndAllowThreads(__tstate);
17492 if (PyErr_Occurred()) SWIG_fail;
17493 }
17494 Py_INCREF(Py_None); resultobj = Py_None;
17495 {
17496 if (temp2)
17497 delete arg2;
17498 }
17499 return resultobj;
17500 fail:
17501 {
17502 if (temp2)
17503 delete arg2;
17504 }
17505 return NULL;
d14a1e28
RD
17506}
17507
17508
994141e6
RD
17509static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17510 PyObject *obj;
17511 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17512 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17513 Py_INCREF(obj);
17514 return Py_BuildValue((char *)"");
d14a1e28 17515}
994141e6
RD
17516static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17517 PyObject *resultobj;
17518 wxFontList *arg1 = (wxFontList *) 0 ;
17519 wxFont *arg2 = (wxFont *) 0 ;
17520 PyObject * obj0 = 0 ;
17521 PyObject * obj1 = 0 ;
17522 char *kwnames[] = {
17523 (char *) "self",(char *) "font", NULL
17524 };
d14a1e28 17525
994141e6 17526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17529 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17531 {
17532 PyThreadState* __tstate = wxPyBeginAllowThreads();
17533 (arg1)->AddFont(arg2);
17534
17535 wxPyEndAllowThreads(__tstate);
17536 if (PyErr_Occurred()) SWIG_fail;
17537 }
17538 Py_INCREF(Py_None); resultobj = Py_None;
17539 return resultobj;
17540 fail:
17541 return NULL;
d14a1e28
RD
17542}
17543
17544
994141e6
RD
17545static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17546 PyObject *resultobj;
17547 wxFontList *arg1 = (wxFontList *) 0 ;
17548 int arg2 ;
17549 int arg3 ;
17550 int arg4 ;
17551 int arg5 ;
17552 bool arg6 = (bool) False ;
17553 wxString const &arg7_defvalue = wxPyEmptyString ;
17554 wxString *arg7 = (wxString *) &arg7_defvalue ;
17555 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17556 wxFont *result;
17557 bool temp7 = False ;
17558 PyObject * obj0 = 0 ;
17559 PyObject * obj1 = 0 ;
17560 PyObject * obj2 = 0 ;
17561 PyObject * obj3 = 0 ;
17562 PyObject * obj4 = 0 ;
17563 PyObject * obj5 = 0 ;
17564 PyObject * obj6 = 0 ;
17565 PyObject * obj7 = 0 ;
17566 char *kwnames[] = {
17567 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17568 };
d14a1e28 17569
994141e6 17570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
15afbcd0
RD
17571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17573 arg2 = (int) SWIG_AsInt(obj1);
17574 if (PyErr_Occurred()) SWIG_fail;
17575 arg3 = (int) SWIG_AsInt(obj2);
17576 if (PyErr_Occurred()) SWIG_fail;
17577 arg4 = (int) SWIG_AsInt(obj3);
17578 if (PyErr_Occurred()) SWIG_fail;
17579 arg5 = (int) SWIG_AsInt(obj4);
17580 if (PyErr_Occurred()) SWIG_fail;
994141e6 17581 if (obj5) {
15afbcd0
RD
17582 arg6 = (bool) SWIG_AsBool(obj5);
17583 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17584 }
17585 if (obj6) {
17586 {
17587 arg7 = wxString_in_helper(obj6);
17588 if (arg7 == NULL) SWIG_fail;
17589 temp7 = True;
17590 }
17591 }
17592 if (obj7) {
15afbcd0
RD
17593 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17594 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17595 }
17596 {
17597 PyThreadState* __tstate = wxPyBeginAllowThreads();
17598 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17599
17600 wxPyEndAllowThreads(__tstate);
17601 if (PyErr_Occurred()) SWIG_fail;
17602 }
15afbcd0 17603 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
994141e6
RD
17604 {
17605 if (temp7)
17606 delete arg7;
17607 }
17608 return resultobj;
17609 fail:
17610 {
17611 if (temp7)
17612 delete arg7;
17613 }
17614 return NULL;
d14a1e28
RD
17615}
17616
17617
994141e6
RD
17618static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17619 PyObject *resultobj;
17620 wxFontList *arg1 = (wxFontList *) 0 ;
17621 wxFont *arg2 = (wxFont *) 0 ;
17622 PyObject * obj0 = 0 ;
17623 PyObject * obj1 = 0 ;
17624 char *kwnames[] = {
17625 (char *) "self",(char *) "font", NULL
17626 };
d14a1e28 17627
994141e6 17628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17631 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17633 {
17634 PyThreadState* __tstate = wxPyBeginAllowThreads();
17635 (arg1)->RemoveFont(arg2);
17636
17637 wxPyEndAllowThreads(__tstate);
17638 if (PyErr_Occurred()) SWIG_fail;
17639 }
17640 Py_INCREF(Py_None); resultobj = Py_None;
17641 return resultobj;
17642 fail:
17643 return NULL;
d14a1e28
RD
17644}
17645
17646
994141e6
RD
17647static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17648 PyObject *resultobj;
17649 wxFontList *arg1 = (wxFontList *) 0 ;
17650 int result;
17651 PyObject * obj0 = 0 ;
17652 char *kwnames[] = {
17653 (char *) "self", NULL
17654 };
d14a1e28 17655
994141e6 17656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
17657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6
RD
17659 {
17660 PyThreadState* __tstate = wxPyBeginAllowThreads();
17661 result = (int)(arg1)->GetCount();
17662
17663 wxPyEndAllowThreads(__tstate);
17664 if (PyErr_Occurred()) SWIG_fail;
17665 }
15afbcd0 17666 resultobj = SWIG_FromInt((int)result);
994141e6
RD
17667 return resultobj;
17668 fail:
17669 return NULL;
d14a1e28
RD
17670}
17671
17672
994141e6
RD
17673static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17674 PyObject *obj;
17675 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17676 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17677 Py_INCREF(obj);
17678 return Py_BuildValue((char *)"");
17679}
d14a1e28
RD
17680static int _wrap_TheFontList_set(PyObject *_val) {
17681 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17682 return 1;
17683}
17684
17685
17686static PyObject *_wrap_TheFontList_get() {
17687 PyObject *pyobj;
17688
15afbcd0 17689 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
d14a1e28
RD
17690 return pyobj;
17691}
17692
17693
17694static int _wrap_ThePenList_set(PyObject *_val) {
17695 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17696 return 1;
17697}
17698
17699
17700static PyObject *_wrap_ThePenList_get() {
17701 PyObject *pyobj;
17702
15afbcd0 17703 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
d14a1e28
RD
17704 return pyobj;
17705}
17706
17707
17708static int _wrap_TheBrushList_set(PyObject *_val) {
17709 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17710 return 1;
17711}
17712
17713
17714static PyObject *_wrap_TheBrushList_get() {
17715 PyObject *pyobj;
17716
15afbcd0 17717 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
d14a1e28
RD
17718 return pyobj;
17719}
17720
17721
17722static int _wrap_TheColourDatabase_set(PyObject *_val) {
17723 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17724 return 1;
17725}
17726
17727
17728static PyObject *_wrap_TheColourDatabase_get() {
17729 PyObject *pyobj;
17730
15afbcd0 17731 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
d14a1e28
RD
17732 return pyobj;
17733}
17734
17735
e811c8ce 17736static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17737 PyObject *resultobj;
e811c8ce 17738 wxEffects *result;
d14a1e28 17739 char *kwnames[] = {
e811c8ce 17740 NULL
d14a1e28
RD
17741 };
17742
e811c8ce 17743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
d14a1e28
RD
17744 {
17745 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 17746 result = (wxEffects *)new wxEffects();
d14a1e28
RD
17747
17748 wxPyEndAllowThreads(__tstate);
17749 if (PyErr_Occurred()) SWIG_fail;
17750 }
15afbcd0 17751 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
d14a1e28
RD
17752 return resultobj;
17753 fail:
17754 return NULL;
17755}
17756
17757
e811c8ce 17758static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17759 PyObject *resultobj;
e811c8ce
RD
17760 wxEffects *arg1 = (wxEffects *) 0 ;
17761 wxColour result;
d14a1e28 17762 PyObject * obj0 = 0 ;
d14a1e28 17763 char *kwnames[] = {
e811c8ce 17764 (char *) "self", NULL
d14a1e28
RD
17765 };
17766
e811c8ce 17767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
15afbcd0
RD
17768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17770 {
17771 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 17772 result = ((wxEffects const *)arg1)->GetHighlightColour();
d14a1e28
RD
17773
17774 wxPyEndAllowThreads(__tstate);
17775 if (PyErr_Occurred()) SWIG_fail;
17776 }
e811c8ce
RD
17777 {
17778 wxColour * resultptr;
17779 resultptr = new wxColour((wxColour &) result);
15afbcd0 17780 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
e811c8ce 17781 }
d14a1e28
RD
17782 return resultobj;
17783 fail:
17784 return NULL;
17785}
17786
17787
e811c8ce 17788static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17789 PyObject *resultobj;
e811c8ce
RD
17790 wxEffects *arg1 = (wxEffects *) 0 ;
17791 wxColour result;
d14a1e28 17792 PyObject * obj0 = 0 ;
d14a1e28 17793 char *kwnames[] = {
e811c8ce 17794 (char *) "self", NULL
d14a1e28
RD
17795 };
17796
e811c8ce 17797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
15afbcd0
RD
17798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17800 {
17801 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 17802 result = ((wxEffects const *)arg1)->GetLightShadow();
d14a1e28
RD
17803
17804 wxPyEndAllowThreads(__tstate);
17805 if (PyErr_Occurred()) SWIG_fail;
17806 }
d14a1e28 17807 {
e811c8ce
RD
17808 wxColour * resultptr;
17809 resultptr = new wxColour((wxColour &) result);
15afbcd0 17810 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
17811 }
17812 return resultobj;
17813 fail:
d14a1e28
RD
17814 return NULL;
17815}
17816
17817
e811c8ce 17818static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17819 PyObject *resultobj;
e811c8ce
RD
17820 wxEffects *arg1 = (wxEffects *) 0 ;
17821 wxColour result;
d14a1e28 17822 PyObject * obj0 = 0 ;
d14a1e28 17823 char *kwnames[] = {
e811c8ce 17824 (char *) "self", NULL
d14a1e28
RD
17825 };
17826
e811c8ce 17827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
15afbcd0
RD
17828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17830 {
17831 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 17832 result = ((wxEffects const *)arg1)->GetFaceColour();
d14a1e28
RD
17833
17834 wxPyEndAllowThreads(__tstate);
17835 if (PyErr_Occurred()) SWIG_fail;
17836 }
e811c8ce
RD
17837 {
17838 wxColour * resultptr;
17839 resultptr = new wxColour((wxColour &) result);
15afbcd0 17840 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
e811c8ce 17841 }
d14a1e28
RD
17842 return resultobj;
17843 fail:
17844 return NULL;
17845}
17846
17847
e811c8ce 17848static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 17849 PyObject *resultobj;
e811c8ce
RD
17850 wxEffects *arg1 = (wxEffects *) 0 ;
17851 wxColour result;
d14a1e28
RD
17852 PyObject * obj0 = 0 ;
17853 char *kwnames[] = {
e811c8ce 17854 (char *) "self", NULL
d14a1e28
RD
17855 };
17856
17857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
15afbcd0
RD
17858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17860 {
17861 PyThreadState* __tstate = wxPyBeginAllowThreads();
17862 result = ((wxEffects const *)arg1)->GetMediumShadow();
17863
17864 wxPyEndAllowThreads(__tstate);
17865 if (PyErr_Occurred()) SWIG_fail;
17866 }
17867 {
17868 wxColour * resultptr;
17869 resultptr = new wxColour((wxColour &) result);
15afbcd0 17870 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
17871 }
17872 return resultobj;
17873 fail:
17874 return NULL;
17875}
17876
17877
17878static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17879 PyObject *resultobj;
17880 wxEffects *arg1 = (wxEffects *) 0 ;
17881 wxColour result;
17882 PyObject * obj0 = 0 ;
17883 char *kwnames[] = {
17884 (char *) "self", NULL
17885 };
17886
17887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
15afbcd0
RD
17888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17890 {
17891 PyThreadState* __tstate = wxPyBeginAllowThreads();
17892 result = ((wxEffects const *)arg1)->GetDarkShadow();
17893
17894 wxPyEndAllowThreads(__tstate);
17895 if (PyErr_Occurred()) SWIG_fail;
17896 }
17897 {
17898 wxColour * resultptr;
17899 resultptr = new wxColour((wxColour &) result);
15afbcd0 17900 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
17901 }
17902 return resultobj;
17903 fail:
17904 return NULL;
17905}
17906
17907
17908static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17909 PyObject *resultobj;
17910 wxEffects *arg1 = (wxEffects *) 0 ;
17911 wxColour *arg2 = 0 ;
17912 wxColour temp2 ;
17913 PyObject * obj0 = 0 ;
17914 PyObject * obj1 = 0 ;
17915 char *kwnames[] = {
17916 (char *) "self",(char *) "c", NULL
17917 };
17918
17919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17922 {
17923 arg2 = &temp2;
17924 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17925 }
17926 {
17927 PyThreadState* __tstate = wxPyBeginAllowThreads();
17928 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17929
17930 wxPyEndAllowThreads(__tstate);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
17933 Py_INCREF(Py_None); resultobj = Py_None;
17934 return resultobj;
17935 fail:
17936 return NULL;
17937}
17938
17939
17940static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj;
17942 wxEffects *arg1 = (wxEffects *) 0 ;
17943 wxColour *arg2 = 0 ;
17944 wxColour temp2 ;
17945 PyObject * obj0 = 0 ;
17946 PyObject * obj1 = 0 ;
17947 char *kwnames[] = {
17948 (char *) "self",(char *) "c", NULL
17949 };
17950
17951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17954 {
17955 arg2 = &temp2;
17956 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17957 }
17958 {
17959 PyThreadState* __tstate = wxPyBeginAllowThreads();
17960 (arg1)->SetLightShadow((wxColour const &)*arg2);
17961
17962 wxPyEndAllowThreads(__tstate);
17963 if (PyErr_Occurred()) SWIG_fail;
17964 }
17965 Py_INCREF(Py_None); resultobj = Py_None;
17966 return resultobj;
17967 fail:
17968 return NULL;
17969}
17970
17971
17972static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17973 PyObject *resultobj;
17974 wxEffects *arg1 = (wxEffects *) 0 ;
17975 wxColour *arg2 = 0 ;
17976 wxColour temp2 ;
17977 PyObject * obj0 = 0 ;
17978 PyObject * obj1 = 0 ;
17979 char *kwnames[] = {
17980 (char *) "self",(char *) "c", NULL
17981 };
17982
17983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17986 {
17987 arg2 = &temp2;
17988 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17989 }
17990 {
17991 PyThreadState* __tstate = wxPyBeginAllowThreads();
17992 (arg1)->SetFaceColour((wxColour const &)*arg2);
17993
17994 wxPyEndAllowThreads(__tstate);
17995 if (PyErr_Occurred()) SWIG_fail;
17996 }
17997 Py_INCREF(Py_None); resultobj = Py_None;
17998 return resultobj;
17999 fail:
18000 return NULL;
18001}
18002
18003
18004static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18005 PyObject *resultobj;
18006 wxEffects *arg1 = (wxEffects *) 0 ;
18007 wxColour *arg2 = 0 ;
18008 wxColour temp2 ;
18009 PyObject * obj0 = 0 ;
18010 PyObject * obj1 = 0 ;
18011 char *kwnames[] = {
18012 (char *) "self",(char *) "c", NULL
18013 };
18014
18015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
18016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18018 {
18019 arg2 = &temp2;
18020 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18021 }
18022 {
18023 PyThreadState* __tstate = wxPyBeginAllowThreads();
18024 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18025
18026 wxPyEndAllowThreads(__tstate);
18027 if (PyErr_Occurred()) SWIG_fail;
18028 }
18029 Py_INCREF(Py_None); resultobj = Py_None;
18030 return resultobj;
18031 fail:
18032 return NULL;
18033}
18034
18035
18036static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18037 PyObject *resultobj;
18038 wxEffects *arg1 = (wxEffects *) 0 ;
18039 wxColour *arg2 = 0 ;
18040 wxColour temp2 ;
18041 PyObject * obj0 = 0 ;
18042 PyObject * obj1 = 0 ;
18043 char *kwnames[] = {
18044 (char *) "self",(char *) "c", NULL
18045 };
18046
18047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
18048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18050 {
18051 arg2 = &temp2;
18052 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18053 }
18054 {
18055 PyThreadState* __tstate = wxPyBeginAllowThreads();
18056 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18057
18058 wxPyEndAllowThreads(__tstate);
18059 if (PyErr_Occurred()) SWIG_fail;
18060 }
18061 Py_INCREF(Py_None); resultobj = Py_None;
18062 return resultobj;
18063 fail:
18064 return NULL;
18065}
18066
18067
18068static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18069 PyObject *resultobj;
18070 wxEffects *arg1 = (wxEffects *) 0 ;
18071 wxColour *arg2 = 0 ;
18072 wxColour *arg3 = 0 ;
18073 wxColour *arg4 = 0 ;
18074 wxColour *arg5 = 0 ;
18075 wxColour *arg6 = 0 ;
18076 wxColour temp2 ;
18077 wxColour temp3 ;
18078 wxColour temp4 ;
18079 wxColour temp5 ;
18080 wxColour temp6 ;
18081 PyObject * obj0 = 0 ;
18082 PyObject * obj1 = 0 ;
18083 PyObject * obj2 = 0 ;
18084 PyObject * obj3 = 0 ;
18085 PyObject * obj4 = 0 ;
18086 PyObject * obj5 = 0 ;
18087 char *kwnames[] = {
18088 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18089 };
18090
18091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15afbcd0
RD
18092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18094 {
18095 arg2 = &temp2;
18096 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18097 }
18098 {
18099 arg3 = &temp3;
18100 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18101 }
18102 {
18103 arg4 = &temp4;
18104 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18105 }
18106 {
18107 arg5 = &temp5;
18108 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18109 }
18110 {
18111 arg6 = &temp6;
18112 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18113 }
18114 {
18115 PyThreadState* __tstate = wxPyBeginAllowThreads();
18116 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18117
18118 wxPyEndAllowThreads(__tstate);
18119 if (PyErr_Occurred()) SWIG_fail;
18120 }
18121 Py_INCREF(Py_None); resultobj = Py_None;
18122 return resultobj;
18123 fail:
18124 return NULL;
18125}
18126
18127
18128static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18129 PyObject *resultobj;
18130 wxEffects *arg1 = (wxEffects *) 0 ;
18131 wxDC *arg2 = 0 ;
18132 wxRect *arg3 = 0 ;
18133 int arg4 = (int) 1 ;
18134 wxRect temp3 ;
18135 PyObject * obj0 = 0 ;
18136 PyObject * obj1 = 0 ;
18137 PyObject * obj2 = 0 ;
994141e6 18138 PyObject * obj3 = 0 ;
d14a1e28
RD
18139 char *kwnames[] = {
18140 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18141 };
18142
994141e6 18143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
18144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18146 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18147 SWIG_POINTER_EXCEPTION | 0)) == -1)
18148 SWIG_fail;
d14a1e28 18149 if (arg2 == NULL) {
15afbcd0
RD
18150 PyErr_SetString(PyExc_TypeError,"null reference");
18151 SWIG_fail;
d14a1e28
RD
18152 }
18153 {
18154 arg3 = &temp3;
18155 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18156 }
994141e6 18157 if (obj3) {
15afbcd0
RD
18158 arg4 = (int) SWIG_AsInt(obj3);
18159 if (PyErr_Occurred()) SWIG_fail;
994141e6 18160 }
d14a1e28
RD
18161 {
18162 PyThreadState* __tstate = wxPyBeginAllowThreads();
18163 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18164
18165 wxPyEndAllowThreads(__tstate);
18166 if (PyErr_Occurred()) SWIG_fail;
18167 }
18168 Py_INCREF(Py_None); resultobj = Py_None;
18169 return resultobj;
18170 fail:
18171 return NULL;
18172}
18173
18174
18175static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18176 PyObject *resultobj;
18177 wxEffects *arg1 = (wxEffects *) 0 ;
18178 wxRect *arg2 = 0 ;
18179 wxDC *arg3 = 0 ;
18180 wxBitmap *arg4 = 0 ;
18181 bool result;
18182 wxRect temp2 ;
18183 PyObject * obj0 = 0 ;
18184 PyObject * obj1 = 0 ;
18185 PyObject * obj2 = 0 ;
18186 PyObject * obj3 = 0 ;
18187 char *kwnames[] = {
18188 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18189 };
18190
18191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
18192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18194 {
18195 arg2 = &temp2;
18196 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18197 }
15afbcd0
RD
18198 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18199 SWIG_POINTER_EXCEPTION | 0)) == -1)
18200 SWIG_fail;
d14a1e28 18201 if (arg3 == NULL) {
15afbcd0
RD
18202 PyErr_SetString(PyExc_TypeError,"null reference");
18203 SWIG_fail;
d14a1e28 18204 }
15afbcd0
RD
18205 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18206 SWIG_POINTER_EXCEPTION | 0)) == -1)
18207 SWIG_fail;
d14a1e28 18208 if (arg4 == NULL) {
15afbcd0
RD
18209 PyErr_SetString(PyExc_TypeError,"null reference");
18210 SWIG_fail;
d14a1e28
RD
18211 }
18212 {
18213 PyThreadState* __tstate = wxPyBeginAllowThreads();
18214 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18215
18216 wxPyEndAllowThreads(__tstate);
18217 if (PyErr_Occurred()) SWIG_fail;
18218 }
4f89f6a3
RD
18219 {
18220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18221 }
d14a1e28
RD
18222 return resultobj;
18223 fail:
18224 return NULL;
18225}
18226
18227
18228static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18229 PyObject *obj;
18230 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18231 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18232 Py_INCREF(obj);
18233 return Py_BuildValue((char *)"");
18234}
18235static PyMethodDef SwigMethods[] = {
18236 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18237 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18238 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18239 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18240 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18241 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18242 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18243 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18244 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
b88bce5f 18245 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18246 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18247 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18248 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18249 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18250 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
c9c7117a 18251 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
b88bce5f
RD
18252 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18253 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18254 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18255 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18256 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
b88bce5f 18257 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18258 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18259 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18260 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18261 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18262 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18263 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18264 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18265 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18266 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18267 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18268 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18269 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18270 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18271 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18272 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18273 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18274 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18275 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18276 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18277 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18278 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18279 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
66c033b4
RD
18280 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
18281 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
3adfb63b 18282 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
22faec7d 18283 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18284 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
d14a1e28
RD
18285 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18286 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18287 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18288 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18289 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18290 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18291 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18292 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18293 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18294 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18295 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18296 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
66c033b4 18297 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18298 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18299 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18300 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18301 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18302 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18303 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18304 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18305 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
b2df227b 18306 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18307 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18308 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18309 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18310 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18311 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18312 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18313 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18314 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18315 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18316 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18317 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
b2df227b 18318 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
4276dc52
RD
18319 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18320 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18321 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18322 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18323 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18324 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18327 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18328 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18329 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18335 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18336 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18339 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18340 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18346 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18347 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18348 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18350 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18351 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18352 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18353 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18354 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18355 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18356 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18358 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18360 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18362 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18363 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
e6ffcedd 18364 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18365 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18366 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18371 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18374 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18378 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18380 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18387 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
e6ffcedd 18389 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18390 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18391 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18405 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18429 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18438 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18447 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
b2df227b 18449 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18450 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18458 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18475 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18495 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18503 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18510 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18532 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18534 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18542 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18545 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18546 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18547 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18548 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18549 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18550 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18551 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18552 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18553 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18554 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18555 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18556 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18557 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18558 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18559 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18560 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18561 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18563 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18564 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18566 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18567 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18568 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18569 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18571 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18572 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18573 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18574 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18575 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18576 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18577 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18578 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18579 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18580 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
03e37cd5
RD
18581 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18586 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18602 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
db914595 18610 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18611 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
322913ce 18612 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18613 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
322913ce 18614 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18615 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18643 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
322913ce 18644 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18645 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18646 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18647 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
322913ce 18648 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 18649 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18650 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18651 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
03e37cd5 18657 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18658 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18671 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
3adfb63b
RD
18675 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18676 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
e498079e 18677 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18678 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
e498079e 18680 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
18681 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18682 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18687 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18689 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18690 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18691 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18692 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18693 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18694 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18695 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18696 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18697 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18698 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18699 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18701 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18702 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18703 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18704 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18705 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18706 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18707 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18708 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18709 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18710 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18712 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18713 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18714 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18715 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18717 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18718 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18719 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18721 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18723 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18724 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18728 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18729 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18730 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18732 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18735 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18736 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18737 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18740 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
d14a1e28
RD
18741 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18745 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18751 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18755 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18756 { NULL, NULL }
18757};
18758
18759
18760/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18761
e811c8ce
RD
18762static void *_p_wxControlTo_p_wxWindow(void *x) {
18763 return (void *)((wxWindow *) ((wxControl *) x));
18764}
18765static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18766 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18767}
18768static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18769 return (void *)((wxWindow *) ((wxMenuBar *) x));
18770}
d14a1e28
RD
18771static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18772 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18773}
18774static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18775 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18776}
d14a1e28
RD
18777static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18778 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18779}
18780static void *_p_wxPenTo_p_wxObject(void *x) {
18781 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18782}
18783static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18784 return (void *)((wxObject *) ((wxRegionIterator *) x));
18785}
18786static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18787 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18788}
18789static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18790 return (void *)((wxObject *) ((wxSizerItem *) x));
18791}
18792static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18793 return (void *)((wxObject *) ((wxColourDatabase *) x));
18794}
18795static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18796 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18797}
18798static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18799 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18800}
18801static void *_p_wxIconTo_p_wxObject(void *x) {
18802 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18803}
18804static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18805 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18806}
18807static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18808 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18809}
18810static void *_p_wxSizerTo_p_wxObject(void *x) {
18811 return (void *)((wxObject *) ((wxSizer *) x));
18812}
18813static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18814 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18815}
18816static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18817 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18818}
18819static void *_p_wxPenListTo_p_wxObject(void *x) {
18820 return (void *)((wxObject *) ((wxPenList *) x));
18821}
18822static void *_p_wxEventTo_p_wxObject(void *x) {
18823 return (void *)((wxObject *) ((wxEvent *) x));
18824}
18825static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18826 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18827}
18828static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18829 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18830}
18831static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18832 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18833}
18834static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18835 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18836}
18837static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18838 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18839}
18840static void *_p_wxDCTo_p_wxObject(void *x) {
18841 return (void *)((wxObject *) ((wxDC *) x));
18842}
18843static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18844 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18845}
18846static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18847 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18848}
18849static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18850 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18851}
18852static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18853 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18854}
18855static void *_p_wxControlTo_p_wxObject(void *x) {
18856 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18857}
18858static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18859 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18860}
18861static void *_p_wxClientDCTo_p_wxObject(void *x) {
18862 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18863}
18864static void *_p_wxFSFileTo_p_wxObject(void *x) {
18865 return (void *)((wxObject *) ((wxFSFile *) x));
18866}
18867static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18868 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18869}
18870static void *_p_wxRegionTo_p_wxObject(void *x) {
18871 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18872}
18873static void *_p_wxPySizerTo_p_wxObject(void *x) {
18874 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18875}
18876static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18877 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18878}
18879static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18880 return (void *)((wxObject *) ((wxGDIObject *) x));
18881}
18882static void *_p_wxEffectsTo_p_wxObject(void *x) {
18883 return (void *)((wxObject *) ((wxEffects *) x));
18884}
18885static void *_p_wxPyEventTo_p_wxObject(void *x) {
18886 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18887}
18888static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18889 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18890}
18891static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18892 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18893}
18894static void *_p_wxShowEventTo_p_wxObject(void *x) {
18895 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18896}
18897static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18898 return (void *)((wxObject *) ((wxMenuItem *) x));
18899}
18900static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18901 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18902}
18903static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18904 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18905}
18906static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18907 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18908}
18909static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18910 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18911}
18912static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18913 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18914}
18915static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18916 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18917}
18918static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18919 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18920}
18921static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18922 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18923}
18924static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18925 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18926}
18927static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18928 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18929}
18930static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18931 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18932}
18933static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18934 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18935}
18936static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18937 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18938}
18939static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18940 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18941}
18942static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18943 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18944}
18945static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18946 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18947}
18948static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18949 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18950}
18951static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18952 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18953}
18954static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18955 return (void *)((wxObject *) ((wxImageHandler *) x));
18956}
18957static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18958 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18959}
18960static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18961 return (void *)((wxObject *) ((wxEvtHandler *) x));
18962}
18963static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18964 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18965}
18966static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18967 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18968}
18969static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18970 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18971}
18972static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18973 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18974}
1e0c8722
RD
18975static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18976 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18977}
d14a1e28
RD
18978static void *_p_wxImageTo_p_wxObject(void *x) {
18979 return (void *)((wxObject *) ((wxImage *) x));
18980}
18981static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18982 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18983}
d14a1e28
RD
18984static void *_p_wxPaletteTo_p_wxObject(void *x) {
18985 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18986}
18987static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18988 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18989}
18990static void *_p_wxImageListTo_p_wxObject(void *x) {
18991 return (void *)((wxObject *) ((wxImageList *) x));
18992}
18993static void *_p_wxCursorTo_p_wxObject(void *x) {
18994 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18995}
18996static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18997 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18998}
18999static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19000 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19001}
19002static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19003 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19004}
19005static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19006 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19007}
19008static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19009 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19010}
19011static void *_p_wxWindowTo_p_wxObject(void *x) {
19012 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19013}
19014static void *_p_wxMenuTo_p_wxObject(void *x) {
19015 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19016}
19017static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19018 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19019}
19020static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19021 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19022}
19023static void *_p_wxBrushListTo_p_wxObject(void *x) {
19024 return (void *)((wxObject *) ((wxBrushList *) x));
19025}
d14a1e28
RD
19026static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19027 return (void *)((wxObject *) ((wxFileSystem *) x));
19028}
19029static void *_p_wxBitmapTo_p_wxObject(void *x) {
19030 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19031}
19032static void *_p_wxMaskTo_p_wxObject(void *x) {
19033 return (void *)((wxObject *) ((wxMask *) x));
19034}
19035static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19036 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19037}
19038static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19039 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19040}
19041static void *_p_wxPyAppTo_p_wxObject(void *x) {
19042 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19043}
19044static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19045 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19046}
19047static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19048 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19049}
19050static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19051 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19052}
19053static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19054 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19055}
19056static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19057 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19058}
19059static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19060 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19061}
19062static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19063 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19064}
19065static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19066 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19067}
19068static void *_p_wxFontTo_p_wxObject(void *x) {
19069 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19070}
19071static void *_p_wxBrushTo_p_wxObject(void *x) {
19072 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19073}
19074static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19075 return (void *)((wxObject *) ((wxMetaFile *) x));
19076}
19077static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19078 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19079}
19080static void *_p_wxColourTo_p_wxObject(void *x) {
19081 return (void *)((wxObject *) ((wxColour *) x));
19082}
19083static void *_p_wxFontListTo_p_wxObject(void *x) {
19084 return (void *)((wxObject *) ((wxFontList *) x));
19085}
19086static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19087 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19088}
19089static void *_p_wxValidatorTo_p_wxObject(void *x) {
19090 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19091}
e811c8ce
RD
19092static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19093 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
d14a1e28 19094}
e811c8ce
RD
19095static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19096 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
d14a1e28 19097}
e811c8ce
RD
19098static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19099 return (void *)((wxDC *) ((wxScreenDC *) x));
19100}
19101static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19102 return (void *)((wxDC *) ((wxMirrorDC *) x));
19103}
19104static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19105 return (void *)((wxDC *) ((wxMemoryDC *) x));
19106}
19107static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19108 return (void *)((wxDC *) ((wxWindowDC *) x));
19109}
19110static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19111 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19112}
19113static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19114 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19115}
19116static void *_p_wxClientDCTo_p_wxDC(void *x) {
19117 return (void *)((wxDC *) ((wxClientDC *) x));
19118}
19119static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19120 return (void *)((wxDC *) ((wxPaintDC *) x));
19121}
19122static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19123 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19124}
19125static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19126 return (void *)((wxDC *) ((wxPrinterDC *) x));
19127}
e811c8ce
RD
19128static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19129 return (void *)((wxGDIObject *) ((wxIcon *) x));
19130}
19131static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19132 return (void *)((wxGDIObject *) ((wxPalette *) x));
19133}
19134static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19135 return (void *)((wxGDIObject *) ((wxPen *) x));
19136}
19137static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19138 return (void *)((wxGDIObject *) ((wxFont *) x));
19139}
19140static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19141 return (void *)((wxGDIObject *) ((wxCursor *) x));
19142}
19143static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19144 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19145}
19146static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19147 return (void *)((wxGDIObject *) ((wxRegion *) x));
19148}
19149static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19150 return (void *)((wxGDIObject *) ((wxBrush *) x));
19151}
15afbcd0
RD
19152static 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}};
19153static 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}};
19154static 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}};
19155static 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}};
19156static 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}};
19157static 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}};
19158static 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}};
19159static 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}};
19160static 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}};
19161static 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}};
19162static 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}};
19163static 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 19164static 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
19165static 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}};
19166static 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
19167static 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}};
19168static 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}};
19169static 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}};
19170static 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}};
19171static 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}};
19172static 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}};
19173static 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 19174static 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
19175static 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}};
19176static 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}};
19177static 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}};
19178static 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}};
19179static 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}};
19180static 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}};
19181static 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}};
19182static 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}};
19183static 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}};
19184static 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}};
19185static 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}};
19186static 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}};
19187static 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 19188static 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
19189static 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}};
19190static 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}};
19191static 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 19192static 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 19193static 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
19194static 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}};
19195static 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}};
19196static 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}};
19197static 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 19198static 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
19199static 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}};
19200static 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}};
19201static 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
19202static 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}};
19203static 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}};
19204static 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}};
19205static 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}};
19206static 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
19207
19208static swig_type_info *swig_types_initial[] = {
19209_swigt__p_wxPostScriptDC,
d14a1e28
RD
19210_swigt__p_wxBrush,
19211_swigt__p_wxColour,
d14a1e28
RD
19212_swigt__p_wxDC,
19213_swigt__p_wxMirrorDC,
19214_swigt__p_byte,
19215_swigt__p_wxPyFontEnumerator,
994141e6 19216_swigt__p_char,
d14a1e28
RD
19217_swigt__p_wxIconLocation,
19218_swigt__p_wxImage,
19219_swigt__p_wxMetaFileDC,
19220_swigt__p_wxMask,
b2df227b 19221_swigt__p_wxSize,
d14a1e28
RD
19222_swigt__p_wxFont,
19223_swigt__p_wxWindow,
d14a1e28
RD
19224_swigt__p_double,
19225_swigt__p_wxMemoryDC,
19226_swigt__p_wxFontMapper,
d14a1e28
RD
19227_swigt__p_wxEffects,
19228_swigt__p_wxNativeEncodingInfo,
19229_swigt__p_wxPalette,
19230_swigt__p_wxBitmap,
19231_swigt__p_wxObject,
19232_swigt__p_wxRegionIterator,
19233_swigt__p_wxRect,
19234_swigt__p_wxString,
19235_swigt__p_wxPrinterDC,
19236_swigt__p_wxIconBundle,
19237_swigt__p_wxPoint,
19238_swigt__p_wxDash,
19239_swigt__p_wxScreenDC,
19240_swigt__p_wxCursor,
19241_swigt__p_wxClientDC,
d14a1e28
RD
19242_swigt__p_wxBufferedDC,
19243_swigt__p_wxImageList,
19244_swigt__p_unsigned_char,
19245_swigt__p_wxGDIObject,
d14a1e28 19246_swigt__p_wxIcon,
994141e6 19247_swigt__p_wxLocale,
d14a1e28 19248_swigt__p_wxRegion,
b2df227b 19249_swigt__p_wxLanguageInfo,
66c033b4 19250_swigt__p_wxConfigBase,
d14a1e28
RD
19251_swigt__p_wxWindowDC,
19252_swigt__p_wxPrintData,
19253_swigt__p_wxBrushList,
19254_swigt__p_wxFontList,
19255_swigt__p_wxPen,
19256_swigt__p_wxBufferedPaintDC,
19257_swigt__p_wxPaintDC,
19258_swigt__p_wxPenList,
d14a1e28
RD
19259_swigt__p_int,
19260_swigt__p_wxMetaFile,
19261_swigt__p_wxNativeFontInfo,
19262_swigt__p_wxEncodingConverter,
19263_swigt__p_wxColourDatabase,
192640
19265};
19266
19267
19268/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19269
19270static swig_const_info swig_const_table[] = {
d14a1e28
RD
19271{0}};
19272
19273#ifdef __cplusplus
19274}
19275#endif
19276
19277#ifdef __cplusplus
19278extern "C"
19279#endif
19280SWIGEXPORT(void) SWIG_init(void) {
19281 static PyObject *SWIG_globals = 0;
19282 static int typeinit = 0;
19283 PyObject *m, *d;
19284 int i;
19285 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19286 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19287 d = PyModule_GetDict(m);
19288
19289 if (!typeinit) {
19290 for (i = 0; swig_types_initial[i]; i++) {
19291 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19292 }
19293 typeinit = 1;
19294 }
19295 SWIG_InstallConstants(d,swig_const_table);
19296
15afbcd0
RD
19297 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19298 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19299 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19300 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19301 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19302 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19303 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19304 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19305 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19306 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19307 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19308 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19309 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19310 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19311 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19312 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19313 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19314 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19315 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19316 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19317 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19318 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19319 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19320 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19321 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19322 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19323 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19324 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19325 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19326 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19327 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19328 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19329 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19330 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19331 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19332 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19333 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19334 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19335 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19336 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19337 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19338 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19339 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19340 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19341 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19342 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19343 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19344 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19345 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
b2df227b 19346 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
15afbcd0
RD
19347 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19348 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19349 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19350 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19351 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19352 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19353 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19354 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19355 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19356 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19357 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19358 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19359 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19360 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19361 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19362 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19363 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19364 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19365 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19366 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19367 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19368 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19369 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19370 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19371 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19372 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19373 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19374 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19375 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19376 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19377 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19378 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19379 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19380 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19381 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19382 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19383 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19384 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19385 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19386 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19387 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19388 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19389 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19390 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19391 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19392 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19393 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19394 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19395 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19396 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19397 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19398 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19399 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19400 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19401 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19402 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19403 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19404 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19405 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19406 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19407 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19408 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19409 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19410 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19411 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19412 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19413 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19414 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19415 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19416 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19417 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19418 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19419 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19420 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19421 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19422 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19423 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
d14a1e28
RD
19424
19425 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19426
15afbcd0
RD
19427 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19428 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19429 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19430 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19431 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19432 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19433 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19434 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19435 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19436 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19437 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19438 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19439 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19440 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19441 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19442 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19443 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19444 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19445 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19446 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19447 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19448 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19449 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19450 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19451 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19452 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19453 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19454 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19455 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19456 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19457 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19458 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19459 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19460 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19461 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19462 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19463 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19464 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19465 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19466 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19467 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19468 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19469 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19470 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19471 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19472 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19473 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19474 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19475 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19476 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19477 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19478 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19479 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19480 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19481 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19482 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19483 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19484 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19485 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19486 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19487 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19488 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19489 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19490 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19491 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19492 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19493 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19494 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19495 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19496 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19497 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19498 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19499 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19500 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19501 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19502 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19503 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19504 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19505 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19506 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19507 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19508 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19509 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19510 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19511 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19512 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19513 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19514 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19515 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19516 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19517 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19518 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19519 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19520 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19521 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19522 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19523 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19524 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19525 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19526 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19527 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19528 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19529 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19530 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19531 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19532 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19533 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19534 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19535 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19536 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19537 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19538 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19539 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19540 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19541 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19542 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19543 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19544 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19545 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19546 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19547 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19548 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19549 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19550 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19551 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19552 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19553 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19554 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19555 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19556 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19557 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19558 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19559 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19560 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19561 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19562 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19563 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19564 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19565 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19566 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19567 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19568 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19569 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19570 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19571 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19572 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19573 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19574 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19575 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19576 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19577 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19578 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19579 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19580 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19581 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19582 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19583 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19584 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19585 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19586 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19587 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19588 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19589 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19590 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19591 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19592 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19593 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19594 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19595 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19596 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19597 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19598 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19599 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19600 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19601 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19602 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19603 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19604 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19605 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19606 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19607 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19608 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19609 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19610 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19611 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19612 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19613 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19614 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19615 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19616 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19617 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19618 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19619 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19620 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19621 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19622 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19623 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19624 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19625 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19626 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19627 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19628 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19629 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19630 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19631 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19632 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19633 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19634 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19635 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19636 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19637 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19638 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19639 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19640 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19641 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19642 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19643 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19644 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19645 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19646 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19647 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19648 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19649 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19650 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19651 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19652 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19653 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19654 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19655 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19656 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19657 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19658 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19659 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19660 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19661 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19662 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19663 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19664 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19665 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19666 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19667 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19668 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19669 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19670 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19671 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19672 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19673 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19674 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19675 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19676 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19677 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19678 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19679 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
d14a1e28
RD
19680 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19681 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19682 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19683 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19684 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19685 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19686 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19687 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19688 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19689 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19690 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19691 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19692 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19693 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19694 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19695 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19696 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19697 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19698 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19699 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19700 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19701 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19702 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19703 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19704 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19705 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19706 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19707 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19708 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19709 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19710 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19711 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19712 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19713 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19714 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19715 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19716 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19717 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19718 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19719 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19720 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19721 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19722 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19723 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19724 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19725 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19726 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
7722248d
RD
19727
19728 // Work around a chicken/egg problem in drawlist.cpp
19729 wxPyDrawList_SetAPIPtr();
19730
d14a1e28
RD
19731}
19732