]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
make it easier to do a gtk2 build
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
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
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
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; }
25 private:
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
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
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
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
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
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
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "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 */
157 typedef 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
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)
173
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)
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
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
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]
216 #define SWIGTYPE_p_char swig_types[7]
217 #define SWIGTYPE_p_wxIconLocation swig_types[8]
218 #define SWIGTYPE_p_wxImage swig_types[9]
219 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
220 #define SWIGTYPE_p_wxMask swig_types[11]
221 #define SWIGTYPE_p_wxSize swig_types[12]
222 #define SWIGTYPE_p_wxFont swig_types[13]
223 #define SWIGTYPE_p_wxWindow swig_types[14]
224 #define SWIGTYPE_p_double swig_types[15]
225 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
226 #define SWIGTYPE_p_wxFontMapper swig_types[17]
227 #define SWIGTYPE_p_wxEffects swig_types[18]
228 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
229 #define SWIGTYPE_p_wxPalette swig_types[20]
230 #define SWIGTYPE_p_wxBitmap swig_types[21]
231 #define SWIGTYPE_p_wxObject swig_types[22]
232 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
233 #define SWIGTYPE_p_wxRect swig_types[24]
234 #define SWIGTYPE_p_wxString swig_types[25]
235 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
236 #define SWIGTYPE_p_wxIconBundle swig_types[27]
237 #define SWIGTYPE_p_wxPoint swig_types[28]
238 #define SWIGTYPE_p_wxDash swig_types[29]
239 #define SWIGTYPE_p_wxScreenDC swig_types[30]
240 #define SWIGTYPE_p_wxCursor swig_types[31]
241 #define SWIGTYPE_p_wxClientDC swig_types[32]
242 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
243 #define SWIGTYPE_p_wxImageList swig_types[34]
244 #define SWIGTYPE_p_unsigned_char swig_types[35]
245 #define SWIGTYPE_p_wxGDIObject swig_types[36]
246 #define SWIGTYPE_p_wxIcon swig_types[37]
247 #define SWIGTYPE_p_wxLocale swig_types[38]
248 #define SWIGTYPE_p_wxRegion swig_types[39]
249 #define SWIGTYPE_p_wxConfigBase swig_types[40]
250 #define SWIGTYPE_p_wxLanguageInfo swig_types[41]
251 #define SWIGTYPE_p_wxWindowDC swig_types[42]
252 #define SWIGTYPE_p_wxPrintData swig_types[43]
253 #define SWIGTYPE_p_wxBrushList swig_types[44]
254 #define SWIGTYPE_p_wxFontList swig_types[45]
255 #define SWIGTYPE_p_wxPen swig_types[46]
256 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
257 #define SWIGTYPE_p_wxPaintDC swig_types[48]
258 #define SWIGTYPE_p_wxPenList swig_types[49]
259 #define SWIGTYPE_p_wxPyPen swig_types[50]
260 #define SWIGTYPE_p_int swig_types[51]
261 #define SWIGTYPE_p_wxMetaFile swig_types[52]
262 #define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
263 #define SWIGTYPE_p_wxEncodingConverter swig_types[54]
264 #define SWIGTYPE_p_wxColourDatabase swig_types[55]
265 static swig_type_info *swig_types[57];
266
267 /* -------- TYPES TABLE (END) -------- */
268
269
270 /*-----------------------------------------------
271 @(target):= _gdi_.so
272 ------------------------------------------------*/
273 #define SWIG_init init_gdi_
274
275 #define SWIG_name "_gdi_"
276
277 /* Auxiliar swig macros */
278
279 #ifdef __cplusplus
280 #define SWIGSTATICINLINE(a) static inline a
281 #define SWIGSTATIC(a) static a
282 #define swig_new_array(type, size) (new type[(size)])
283 #define swig_delete_array(cptr) delete[] cptr
284 #define swig_const_cast(type,a) const_cast<type>(a)
285 #define swig_static_cast(type,a) static_cast<type>(a)
286 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
287
288 #ifdef HAVE_NUMERIC_CAST
289 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
290 #else
291 #define swig_numeric_cast(type,a) static_cast<type>(a)
292 #endif
293
294 #else /* C case */
295
296 #define SWIGSTATICINLINE(a) static a
297 #define SWIGSTATIC(a) static a
298 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
299 #define swig_delete_array(cptr) free((char*)cptr)
300 #define swig_const_cast(type,a) (type)(a)
301 #define swig_static_cast(type,a) (type)(a)
302 #define swig_reinterpret_cast(type,a) (type)(a)
303 #define swig_numeric_cast(type,a) (type)(a)
304
305 #endif /* __cplusplus */
306
307
308 #define SWIG_FromSignedChar PyInt_FromLong
309 #define SWIG_FromUnsignedChar PyInt_FromLong
310 #define SWIG_FromShort PyInt_FromLong
311 #define SWIG_FromUnsignedShort PyInt_FromLong
312 #define SWIG_FromInt PyInt_FromLong
313 #define SWIG_FromLong PyInt_FromLong
314 #define SWIG_FromFloat PyFloat_FromDouble
315 #define SWIG_FromDouble PyFloat_FromDouble
316 #define SWIG_FromFloat PyFloat_FromDouble
317 #define SWIG_FromDouble PyFloat_FromDouble
318
319
320 #include "wx/wxPython/wxPython.h"
321 #include "wx/wxPython/pyclasses.h"
322
323
324 static const wxString wxPyEmptyString(wxEmptyString);
325
326 SWIGSTATICINLINE(bool)
327 SWIG_AsBool(PyObject *obj)
328 {
329 return PyObject_IsTrue(obj) ? true : false;
330 }
331
332
333 SWIGSTATICINLINE(int)
334 SWIG_CheckBool(PyObject* obj)
335 {
336 SWIG_AsBool(obj);
337 if (PyErr_Occurred()) {
338 PyErr_Clear();
339 return 0;
340 } else {
341 return 1;
342 }
343 }
344
345
346 #include <limits.h>
347
348
349 SWIGSTATICINLINE(unsigned long)
350 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
351 unsigned long max_value)
352 {
353 if (!PyErr_Occurred()) {
354 if (value > max_value) {
355 PyObject *err =
356 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
357 value, type, max_value);
358 PyErr_SetObject(PyExc_OverflowError, err);
359 Py_DECREF(err);
360 }
361 }
362 return value;
363 }
364
365
366 SWIGSTATICINLINE(long)
367 SWIG_AsLong(PyObject * obj)
368 {
369 if (PyNumber_Check(obj))
370 return PyInt_AsLong(obj);
371 else {
372 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
373 obj->ob_type->tp_name);
374 PyErr_SetObject(PyExc_TypeError, errmsg);
375 Py_DECREF(errmsg);
376 return 0;
377 }
378 }
379
380
381 SWIGSTATICINLINE(unsigned long)
382 SWIG_AsUnsignedLong(PyObject * obj)
383 {
384 if (PyLong_Check(obj)) {
385 return PyLong_AsUnsignedLong(obj);
386 } else {
387 long i = SWIG_AsLong(obj);
388 if ( !PyErr_Occurred() && (i < 0)) {
389 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
390 }
391 return i;
392 }
393 }
394
395
396 SWIGSTATICINLINE(unsigned char)
397 SWIG_AsUnsignedChar(PyObject *obj)
398 {
399 return swig_numeric_cast(unsigned char,
400 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
401 "unsigned char", UCHAR_MAX));
402 }
403
404
405 SWIGSTATICINLINE(int)
406 SWIG_CheckUnsignedChar(PyObject* obj)
407 {
408 SWIG_AsUnsignedChar(obj);
409 if (PyErr_Occurred()) {
410 PyErr_Clear();
411 return 0;
412 } else {
413 return 1;
414 }
415 }
416
417
418 SWIGSTATICINLINE(int)
419 SWIG_CheckUnsignedLong(PyObject* obj)
420 {
421 SWIG_AsUnsignedLong(obj);
422 if (PyErr_Occurred()) {
423 PyErr_Clear();
424 return 0;
425 } else {
426 return 1;
427 }
428 }
429
430 PyObject *wxColour_Get(wxColour *self){
431 PyObject* rv = PyTuple_New(3);
432 int red = -1;
433 int green = -1;
434 int blue = -1;
435 if (self->Ok()) {
436 red = self->Red();
437 green = self->Green();
438 blue = self->Blue();
439 }
440 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
441 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
442 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
443 return rv;
444 }
445 unsigned long wxColour_GetRGB(wxColour *self){
446 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
447 }
448
449 SWIGSTATICINLINE(PyObject* )
450 SWIG_FromUnsignedLong(unsigned long value)
451 {
452 return (value > LONG_MAX) ?
453 PyLong_FromUnsignedLong(value)
454 : PyInt_FromLong(swig_numeric_cast(long,value));
455 }
456
457
458 SWIGSTATICINLINE(long)
459 SWIG_CheckLongInRange(long value, const char* type,
460 long min_value, long max_value)
461 {
462 if (!PyErr_Occurred()) {
463 if (value < min_value) {
464 PyObject *err =
465 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
466 value, type, min_value);
467
468 PyErr_SetObject(PyExc_OverflowError, err);
469 Py_DECREF(err);
470 } else if (value > max_value) {
471 PyObject *err =
472 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
473 value, type, max_value);
474 PyErr_SetObject(PyExc_OverflowError, err);
475 Py_DECREF(err);
476 }
477 }
478 return value;
479 }
480
481
482 #if INT_MAX != LONG_MAX
483 SWIGSTATICINLINE(int)
484 SWIG_AsInt(PyObject *obj)
485 {
486 return swig_numeric_cast(int,
487 SWIG_CheckLongInRange(SWIG_AsLong(obj),
488 "int", INT_MIN, INT_MAX));
489 }
490 #else
491 #define SWIG_AsInt SWIG_AsLong
492 #endif
493
494
495 SWIGSTATICINLINE(int)
496 SWIG_CheckInt(PyObject* obj)
497 {
498 SWIG_AsInt(obj);
499 if (PyErr_Occurred()) {
500 PyErr_Clear();
501 return 0;
502 } else {
503 return 1;
504 }
505 }
506
507
508 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
509 PyObject* o2;
510 PyObject* o3;
511
512 if (!target) {
513 target = o;
514 } else if (target == Py_None) {
515 Py_DECREF(Py_None);
516 target = o;
517 } else {
518 if (!PyTuple_Check(target)) {
519 o2 = target;
520 target = PyTuple_New(1);
521 PyTuple_SetItem(target, 0, o2);
522 }
523 o3 = PyTuple_New(1);
524 PyTuple_SetItem(o3, 0, o);
525
526 o2 = target;
527 target = PySequence_Concat(o2, o3);
528 Py_DECREF(o2);
529 Py_DECREF(o3);
530 }
531 return target;
532 }
533
534 PyObject *wxPen_GetDashes(wxPen *self){
535 wxDash* dashes;
536 int count = self->GetDashes(&dashes);
537 bool blocked = wxPyBeginBlockThreads();
538 PyObject* retval = PyList_New(0);
539 for (int x=0; x<count; x++)
540 PyList_Append(retval, PyInt_FromLong(dashes[x]));
541 wxPyEndBlockThreads(blocked);
542 return retval;
543 }
544 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
545 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
546
547 wxPyPen::~wxPyPen()
548 {
549 if (m_dash)
550 delete [] m_dash;
551 }
552
553 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
554 {
555 if (m_dash)
556 delete [] m_dash;
557 m_dash = new wxDash[nb_dashes];
558 for (int i=0; i<nb_dashes; i++) {
559 m_dash[i] = dash[i];
560 }
561 wxPen::SetDashes(nb_dashes, m_dash);
562 }
563
564
565 SWIGSTATICINLINE(short)
566 SWIG_AsShort(PyObject *obj)
567 {
568 return swig_numeric_cast(short,
569 SWIG_CheckLongInRange(SWIG_AsLong(obj),
570 "short", SHRT_MIN, SHRT_MAX));
571 }
572
573
574 SWIGSTATICINLINE(int)
575 SWIG_CheckShort(PyObject* obj)
576 {
577 SWIG_AsShort(obj);
578 if (PyErr_Occurred()) {
579 PyErr_Clear();
580 return 0;
581 } else {
582 return 1;
583 }
584 }
585
586
587 #include <wx/image.h>
588
589 static char** ConvertListOfStrings(PyObject* listOfStrings) {
590 char** cArray = NULL;
591 int count;
592
593 if (!PyList_Check(listOfStrings)) {
594 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
595 return NULL;
596 }
597 count = PyList_Size(listOfStrings);
598 cArray = new char*[count];
599
600 for(int x=0; x<count; x++) {
601 // TODO: Need some validation and error checking here
602 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
603 }
604 return cArray;
605 }
606
607
608 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
609 char** cArray = NULL;
610 wxBitmap* bmp;
611
612 cArray = ConvertListOfStrings(listOfStrings);
613 if (! cArray)
614 return NULL;
615 bmp = new wxBitmap(cArray);
616 delete [] cArray;
617 return bmp;
618 }
619 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
620 char* buf;
621 int length;
622 PyString_AsStringAndSize(bits, &buf, &length);
623 return new wxBitmap(buf, width, height, depth);
624 }
625 wxBitmap *new_wxBitmap__SWIG_0(int width,int height,int depth){
626 return new wxBitmap(width, height, depth);
627 }
628 wxBitmap *new_wxBitmap__SWIG_1(wxSize const &size,int depth){
629 return new wxBitmap(size.x, size.y, depth);
630 }
631 wxSize wxBitmap_GetSize(wxBitmap *self){
632 wxSize size(self->GetWidth(), self->GetHeight());
633 return size;
634 }
635 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
636 wxMask *mask = new wxMask(*self, colour);
637 self->SetMask(mask);
638 }
639 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
640 self->SetWidth(size.x);
641 self->SetHeight(size.y);
642 }
643 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
644 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
645 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
646 if ( !colour.Ok() )
647 return new wxMask(bitmap, *wxBLACK);
648 else
649 return new wxMask(bitmap, colour);
650 }
651
652 #include <wx/iconbndl.h>
653
654 wxIcon *new_wxIcon(wxBitmap const &bmp){
655 wxIcon* icon = new wxIcon();
656 icon->CopyFromBitmap(bmp);
657 return icon;
658 }
659 wxIcon *new_wxIcon(PyObject *listOfStrings){
660 char** cArray = NULL;
661 wxIcon* icon;
662
663 cArray = ConvertListOfStrings(listOfStrings);
664 if (! cArray)
665 return NULL;
666 icon = new wxIcon(cArray);
667 delete [] cArray;
668 return icon;
669 }
670 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
671
672
673
674 return new wxIconLocation(*filename);
675
676 }
677 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
678
679
680
681 // do nothing
682
683 }
684 int wxIconLocation_GetIndex(wxIconLocation *self){
685
686
687
688 return -1;
689
690 }
691
692 SWIGSTATICINLINE(int)
693 SWIG_CheckLong(PyObject* obj)
694 {
695 SWIG_AsLong(obj);
696 if (PyErr_Occurred()) {
697 PyErr_Clear();
698 return 0;
699 } else {
700 return 1;
701 }
702 }
703
704 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
705 #ifdef __WXGTK__
706 wxCHECK_MSG(False, NULL,
707 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
708 #else
709 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
710 #endif
711 }
712
713
714 wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
715 wxPyRaiseNotImplemented();
716 return NULL;
717 }
718 void wxRegionIterator_Next(wxRegionIterator *self){
719 (*self) ++;
720 }
721 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
722 return self->operator bool();
723 }
724
725 #include <wx/fontutil.h>
726 #include <wx/fontmap.h>
727 #include <wx/fontenum.h>
728
729 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
730 return self->ToString();
731 }
732
733 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
734 static wxNativeEncodingInfo info;
735 if ( wxGetNativeFontEncoding(encoding, &info) )
736 return &info;
737 else
738 return NULL;
739 }
740
741 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
742 wxFontEncoding alt_enc;
743 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
744 return PyInt_FromLong(alt_enc);
745 else {
746 Py_INCREF(Py_None);
747 return Py_None;
748 }
749 }
750 wxFont *new_wxFont(wxString const &info){
751 wxNativeFontInfo nfi;
752 nfi.FromString(info);
753 return new wxFont(nfi);
754 }
755 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
756 return wxFont::New(pointSize, family, flags, face, encoding);
757 }
758 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
759 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
760
761 class wxPyFontEnumerator : public wxFontEnumerator {
762 public:
763 wxPyFontEnumerator() {}
764 ~wxPyFontEnumerator() {}
765
766 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
767 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
768
769 PYPRIVATE;
770 };
771
772 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
773 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
774
775
776 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
777 wxArrayString* arr = self->GetEncodings();
778 return wxArrayString2PyList_helper(*arr);
779 }
780 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
781 wxArrayString* arr = self->GetFacenames();
782 return wxArrayString2PyList_helper(*arr);
783 }
784
785
786
787 #include "wx/wxPython/pydrawxxx.h"
788
789 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
790 wxColour col;
791 self->GetPixel(x, y, &col);
792 return col;
793 }
794 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
795 wxColour col;
796 self->GetPixel(pt, &col);
797 return col;
798 }
799
800 SWIGSTATICINLINE(double)
801 SWIG_AsDouble(PyObject *obj)
802 {
803 if (PyNumber_Check(obj))
804 return PyFloat_AsDouble(obj);
805 else {
806 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
807 obj->ob_type->tp_name);
808 PyErr_SetObject(PyExc_TypeError, errmsg);
809 Py_DECREF(errmsg);
810 return 0;
811 }
812 }
813
814
815 SWIGSTATICINLINE(int)
816 SWIG_CheckDouble(PyObject* obj)
817 {
818 SWIG_AsDouble(obj);
819 if (PyErr_Occurred()) {
820 PyErr_Clear();
821 return 0;
822 } else {
823 return 1;
824 }
825 }
826
827 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
828 wxRect rv;
829 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
830 return rv;
831 }
832 wxRect wxDC_GetClippingRect(wxDC *self){
833 wxRect rect;
834 self->GetClippingBox(rect);
835 return rect;
836 }
837 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
838 wxArrayInt widths;
839 self->GetPartialTextExtents(text, widths);
840 return widths;
841 }
842 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
843 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
844 }
845 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
846 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
847 }
848 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
849 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
850 }
851 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
852 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
853 }
854 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
855 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
856 }
857 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
858 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
859 }
860
861 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
862 *x1 = dc->MinX();
863 *y1 = dc->MinY();
864 *x2 = dc->MaxX();
865 *y2 = dc->MaxY();
866 }
867
868
869 #include <wx/dcbuffer.h>
870
871
872 #include <wx/dcps.h>
873
874
875 #include <wx/metafile.h>
876
877
878
879 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
880 self->AddColour(name, wxColour(red, green, blue));
881 }
882
883 #include <wx/effects.h>
884
885 #ifdef __cplusplus
886 extern "C" {
887 #endif
888 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
889 PyObject *resultobj;
890 wxGDIObject *result;
891 char *kwnames[] = {
892 NULL
893 };
894
895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
896 {
897 PyThreadState* __tstate = wxPyBeginAllowThreads();
898 result = (wxGDIObject *)new wxGDIObject();
899
900 wxPyEndAllowThreads(__tstate);
901 if (PyErr_Occurred()) SWIG_fail;
902 }
903 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
904 return resultobj;
905 fail:
906 return NULL;
907 }
908
909
910 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
911 PyObject *resultobj;
912 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
913 PyObject * obj0 = 0 ;
914 char *kwnames[] = {
915 (char *) "self", NULL
916 };
917
918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
921 {
922 PyThreadState* __tstate = wxPyBeginAllowThreads();
923 delete arg1;
924
925 wxPyEndAllowThreads(__tstate);
926 if (PyErr_Occurred()) SWIG_fail;
927 }
928 Py_INCREF(Py_None); resultobj = Py_None;
929 return resultobj;
930 fail:
931 return NULL;
932 }
933
934
935 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
936 PyObject *resultobj;
937 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
938 bool result;
939 PyObject * obj0 = 0 ;
940 char *kwnames[] = {
941 (char *) "self", NULL
942 };
943
944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
947 {
948 PyThreadState* __tstate = wxPyBeginAllowThreads();
949 result = (bool)(arg1)->GetVisible();
950
951 wxPyEndAllowThreads(__tstate);
952 if (PyErr_Occurred()) SWIG_fail;
953 }
954 {
955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
956 }
957 return resultobj;
958 fail:
959 return NULL;
960 }
961
962
963 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
964 PyObject *resultobj;
965 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
966 bool arg2 ;
967 PyObject * obj0 = 0 ;
968 PyObject * obj1 = 0 ;
969 char *kwnames[] = {
970 (char *) "self",(char *) "visible", NULL
971 };
972
973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
976 arg2 = (bool) SWIG_AsBool(obj1);
977 if (PyErr_Occurred()) SWIG_fail;
978 {
979 PyThreadState* __tstate = wxPyBeginAllowThreads();
980 (arg1)->SetVisible(arg2);
981
982 wxPyEndAllowThreads(__tstate);
983 if (PyErr_Occurred()) SWIG_fail;
984 }
985 Py_INCREF(Py_None); resultobj = Py_None;
986 return resultobj;
987 fail:
988 return NULL;
989 }
990
991
992 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
993 PyObject *resultobj;
994 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
995 bool result;
996 PyObject * obj0 = 0 ;
997 char *kwnames[] = {
998 (char *) "self", NULL
999 };
1000
1001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1004 {
1005 PyThreadState* __tstate = wxPyBeginAllowThreads();
1006 result = (bool)(arg1)->IsNull();
1007
1008 wxPyEndAllowThreads(__tstate);
1009 if (PyErr_Occurred()) SWIG_fail;
1010 }
1011 {
1012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1013 }
1014 return resultobj;
1015 fail:
1016 return NULL;
1017 }
1018
1019
1020 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1021 PyObject *obj;
1022 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1023 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1024 Py_INCREF(obj);
1025 return Py_BuildValue((char *)"");
1026 }
1027 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1028 PyObject *resultobj;
1029 unsigned char arg1 = (unsigned char) 0 ;
1030 unsigned char arg2 = (unsigned char) 0 ;
1031 unsigned char arg3 = (unsigned char) 0 ;
1032 wxColour *result;
1033 PyObject * obj0 = 0 ;
1034 PyObject * obj1 = 0 ;
1035 PyObject * obj2 = 0 ;
1036 char *kwnames[] = {
1037 (char *) "red",(char *) "green",(char *) "blue", NULL
1038 };
1039
1040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1041 if (obj0) {
1042 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1043 if (PyErr_Occurred()) SWIG_fail;
1044 }
1045 if (obj1) {
1046 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1047 if (PyErr_Occurred()) SWIG_fail;
1048 }
1049 if (obj2) {
1050 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1051 if (PyErr_Occurred()) SWIG_fail;
1052 }
1053 {
1054 PyThreadState* __tstate = wxPyBeginAllowThreads();
1055 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1056
1057 wxPyEndAllowThreads(__tstate);
1058 if (PyErr_Occurred()) SWIG_fail;
1059 }
1060 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1061 return resultobj;
1062 fail:
1063 return NULL;
1064 }
1065
1066
1067 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1068 PyObject *resultobj;
1069 wxString *arg1 = 0 ;
1070 wxColour *result;
1071 bool temp1 = False ;
1072 PyObject * obj0 = 0 ;
1073 char *kwnames[] = {
1074 (char *) "colorName", NULL
1075 };
1076
1077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1078 {
1079 arg1 = wxString_in_helper(obj0);
1080 if (arg1 == NULL) SWIG_fail;
1081 temp1 = True;
1082 }
1083 {
1084 PyThreadState* __tstate = wxPyBeginAllowThreads();
1085 result = (wxColour *)new wxColour((wxString const &)*arg1);
1086
1087 wxPyEndAllowThreads(__tstate);
1088 if (PyErr_Occurred()) SWIG_fail;
1089 }
1090 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1091 {
1092 if (temp1)
1093 delete arg1;
1094 }
1095 return resultobj;
1096 fail:
1097 {
1098 if (temp1)
1099 delete arg1;
1100 }
1101 return NULL;
1102 }
1103
1104
1105 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1106 PyObject *resultobj;
1107 unsigned long arg1 ;
1108 wxColour *result;
1109 PyObject * obj0 = 0 ;
1110 char *kwnames[] = {
1111 (char *) "colRGB", NULL
1112 };
1113
1114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1115 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1116 if (PyErr_Occurred()) SWIG_fail;
1117 {
1118 PyThreadState* __tstate = wxPyBeginAllowThreads();
1119 result = (wxColour *)new wxColour(arg1);
1120
1121 wxPyEndAllowThreads(__tstate);
1122 if (PyErr_Occurred()) SWIG_fail;
1123 }
1124 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1125 return resultobj;
1126 fail:
1127 return NULL;
1128 }
1129
1130
1131 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1132 PyObject *resultobj;
1133 wxColour *arg1 = (wxColour *) 0 ;
1134 PyObject * obj0 = 0 ;
1135 char *kwnames[] = {
1136 (char *) "self", NULL
1137 };
1138
1139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1142 {
1143 PyThreadState* __tstate = wxPyBeginAllowThreads();
1144 delete arg1;
1145
1146 wxPyEndAllowThreads(__tstate);
1147 if (PyErr_Occurred()) SWIG_fail;
1148 }
1149 Py_INCREF(Py_None); resultobj = Py_None;
1150 return resultobj;
1151 fail:
1152 return NULL;
1153 }
1154
1155
1156 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1157 PyObject *resultobj;
1158 wxColour *arg1 = (wxColour *) 0 ;
1159 unsigned char result;
1160 PyObject * obj0 = 0 ;
1161 char *kwnames[] = {
1162 (char *) "self", NULL
1163 };
1164
1165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1168 {
1169 PyThreadState* __tstate = wxPyBeginAllowThreads();
1170 result = (unsigned char)(arg1)->Red();
1171
1172 wxPyEndAllowThreads(__tstate);
1173 if (PyErr_Occurred()) SWIG_fail;
1174 }
1175 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1176 return resultobj;
1177 fail:
1178 return NULL;
1179 }
1180
1181
1182 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1183 PyObject *resultobj;
1184 wxColour *arg1 = (wxColour *) 0 ;
1185 unsigned char result;
1186 PyObject * obj0 = 0 ;
1187 char *kwnames[] = {
1188 (char *) "self", NULL
1189 };
1190
1191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1194 {
1195 PyThreadState* __tstate = wxPyBeginAllowThreads();
1196 result = (unsigned char)(arg1)->Green();
1197
1198 wxPyEndAllowThreads(__tstate);
1199 if (PyErr_Occurred()) SWIG_fail;
1200 }
1201 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1202 return resultobj;
1203 fail:
1204 return NULL;
1205 }
1206
1207
1208 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1209 PyObject *resultobj;
1210 wxColour *arg1 = (wxColour *) 0 ;
1211 unsigned char result;
1212 PyObject * obj0 = 0 ;
1213 char *kwnames[] = {
1214 (char *) "self", NULL
1215 };
1216
1217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1220 {
1221 PyThreadState* __tstate = wxPyBeginAllowThreads();
1222 result = (unsigned char)(arg1)->Blue();
1223
1224 wxPyEndAllowThreads(__tstate);
1225 if (PyErr_Occurred()) SWIG_fail;
1226 }
1227 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1228 return resultobj;
1229 fail:
1230 return NULL;
1231 }
1232
1233
1234 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1235 PyObject *resultobj;
1236 wxColour *arg1 = (wxColour *) 0 ;
1237 bool result;
1238 PyObject * obj0 = 0 ;
1239 char *kwnames[] = {
1240 (char *) "self", NULL
1241 };
1242
1243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1246 {
1247 PyThreadState* __tstate = wxPyBeginAllowThreads();
1248 result = (bool)(arg1)->Ok();
1249
1250 wxPyEndAllowThreads(__tstate);
1251 if (PyErr_Occurred()) SWIG_fail;
1252 }
1253 {
1254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1255 }
1256 return resultobj;
1257 fail:
1258 return NULL;
1259 }
1260
1261
1262 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1263 PyObject *resultobj;
1264 wxColour *arg1 = (wxColour *) 0 ;
1265 unsigned char arg2 ;
1266 unsigned char arg3 ;
1267 unsigned char arg4 ;
1268 PyObject * obj0 = 0 ;
1269 PyObject * obj1 = 0 ;
1270 PyObject * obj2 = 0 ;
1271 PyObject * obj3 = 0 ;
1272 char *kwnames[] = {
1273 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1274 };
1275
1276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1279 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1280 if (PyErr_Occurred()) SWIG_fail;
1281 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1282 if (PyErr_Occurred()) SWIG_fail;
1283 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1284 if (PyErr_Occurred()) SWIG_fail;
1285 {
1286 PyThreadState* __tstate = wxPyBeginAllowThreads();
1287 (arg1)->Set(arg2,arg3,arg4);
1288
1289 wxPyEndAllowThreads(__tstate);
1290 if (PyErr_Occurred()) SWIG_fail;
1291 }
1292 Py_INCREF(Py_None); resultobj = Py_None;
1293 return resultobj;
1294 fail:
1295 return NULL;
1296 }
1297
1298
1299 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1300 PyObject *resultobj;
1301 wxColour *arg1 = (wxColour *) 0 ;
1302 unsigned long arg2 ;
1303 PyObject * obj0 = 0 ;
1304 PyObject * obj1 = 0 ;
1305 char *kwnames[] = {
1306 (char *) "self",(char *) "colRGB", NULL
1307 };
1308
1309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1312 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1313 if (PyErr_Occurred()) SWIG_fail;
1314 {
1315 PyThreadState* __tstate = wxPyBeginAllowThreads();
1316 (arg1)->Set(arg2);
1317
1318 wxPyEndAllowThreads(__tstate);
1319 if (PyErr_Occurred()) SWIG_fail;
1320 }
1321 Py_INCREF(Py_None); resultobj = Py_None;
1322 return resultobj;
1323 fail:
1324 return NULL;
1325 }
1326
1327
1328 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1329 PyObject *resultobj;
1330 wxColour *arg1 = (wxColour *) 0 ;
1331 wxString *arg2 = 0 ;
1332 bool temp2 = False ;
1333 PyObject * obj0 = 0 ;
1334 PyObject * obj1 = 0 ;
1335 char *kwnames[] = {
1336 (char *) "self",(char *) "colourName", NULL
1337 };
1338
1339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1342 {
1343 arg2 = wxString_in_helper(obj1);
1344 if (arg2 == NULL) SWIG_fail;
1345 temp2 = True;
1346 }
1347 {
1348 PyThreadState* __tstate = wxPyBeginAllowThreads();
1349 (arg1)->InitFromName((wxString const &)*arg2);
1350
1351 wxPyEndAllowThreads(__tstate);
1352 if (PyErr_Occurred()) SWIG_fail;
1353 }
1354 Py_INCREF(Py_None); resultobj = Py_None;
1355 {
1356 if (temp2)
1357 delete arg2;
1358 }
1359 return resultobj;
1360 fail:
1361 {
1362 if (temp2)
1363 delete arg2;
1364 }
1365 return NULL;
1366 }
1367
1368
1369 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1370 PyObject *resultobj;
1371 wxColour *arg1 = (wxColour *) 0 ;
1372 long result;
1373 PyObject * obj0 = 0 ;
1374 char *kwnames[] = {
1375 (char *) "self", NULL
1376 };
1377
1378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1381 {
1382 PyThreadState* __tstate = wxPyBeginAllowThreads();
1383 result = (long)((wxColour const *)arg1)->GetPixel();
1384
1385 wxPyEndAllowThreads(__tstate);
1386 if (PyErr_Occurred()) SWIG_fail;
1387 }
1388 resultobj = SWIG_FromLong((long)result);
1389 return resultobj;
1390 fail:
1391 return NULL;
1392 }
1393
1394
1395 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1396 PyObject *resultobj;
1397 wxColour *arg1 = (wxColour *) 0 ;
1398 wxColour *arg2 = 0 ;
1399 bool result;
1400 wxColour temp2 ;
1401 PyObject * obj0 = 0 ;
1402 PyObject * obj1 = 0 ;
1403 char *kwnames[] = {
1404 (char *) "self",(char *) "colour", NULL
1405 };
1406
1407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1410 {
1411 arg2 = &temp2;
1412 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1413 }
1414 {
1415 PyThreadState* __tstate = wxPyBeginAllowThreads();
1416 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1417
1418 wxPyEndAllowThreads(__tstate);
1419 if (PyErr_Occurred()) SWIG_fail;
1420 }
1421 {
1422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1423 }
1424 return resultobj;
1425 fail:
1426 return NULL;
1427 }
1428
1429
1430 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1431 PyObject *resultobj;
1432 wxColour *arg1 = (wxColour *) 0 ;
1433 wxColour *arg2 = 0 ;
1434 bool result;
1435 wxColour temp2 ;
1436 PyObject * obj0 = 0 ;
1437 PyObject * obj1 = 0 ;
1438 char *kwnames[] = {
1439 (char *) "self",(char *) "colour", NULL
1440 };
1441
1442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1445 {
1446 arg2 = &temp2;
1447 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1448 }
1449 {
1450 PyThreadState* __tstate = wxPyBeginAllowThreads();
1451 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1452
1453 wxPyEndAllowThreads(__tstate);
1454 if (PyErr_Occurred()) SWIG_fail;
1455 }
1456 {
1457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1458 }
1459 return resultobj;
1460 fail:
1461 return NULL;
1462 }
1463
1464
1465 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1466 PyObject *resultobj;
1467 wxColour *arg1 = (wxColour *) 0 ;
1468 PyObject *result;
1469 PyObject * obj0 = 0 ;
1470 char *kwnames[] = {
1471 (char *) "self", NULL
1472 };
1473
1474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1477 {
1478 PyThreadState* __tstate = wxPyBeginAllowThreads();
1479 result = (PyObject *)wxColour_Get(arg1);
1480
1481 wxPyEndAllowThreads(__tstate);
1482 if (PyErr_Occurred()) SWIG_fail;
1483 }
1484 resultobj = result;
1485 return resultobj;
1486 fail:
1487 return NULL;
1488 }
1489
1490
1491 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1492 PyObject *resultobj;
1493 wxColour *arg1 = (wxColour *) 0 ;
1494 unsigned long result;
1495 PyObject * obj0 = 0 ;
1496 char *kwnames[] = {
1497 (char *) "self", NULL
1498 };
1499
1500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1503 {
1504 PyThreadState* __tstate = wxPyBeginAllowThreads();
1505 result = (unsigned long)wxColour_GetRGB(arg1);
1506
1507 wxPyEndAllowThreads(__tstate);
1508 if (PyErr_Occurred()) SWIG_fail;
1509 }
1510 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1511 return resultobj;
1512 fail:
1513 return NULL;
1514 }
1515
1516
1517 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1518 PyObject *obj;
1519 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1520 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1521 Py_INCREF(obj);
1522 return Py_BuildValue((char *)"");
1523 }
1524 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1525 PyObject *resultobj;
1526 int arg1 ;
1527 unsigned char *arg2 = (unsigned char *) 0 ;
1528 unsigned char *arg3 = (unsigned char *) 0 ;
1529 unsigned char *arg4 = (unsigned char *) 0 ;
1530 wxPalette *result;
1531 PyObject * obj0 = 0 ;
1532 PyObject * obj1 = 0 ;
1533 PyObject * obj2 = 0 ;
1534 PyObject * obj3 = 0 ;
1535 char *kwnames[] = {
1536 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1537 };
1538
1539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1540 arg1 = (int) SWIG_AsInt(obj0);
1541 if (PyErr_Occurred()) SWIG_fail;
1542 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1544 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1546 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1548 {
1549 PyThreadState* __tstate = wxPyBeginAllowThreads();
1550 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1551
1552 wxPyEndAllowThreads(__tstate);
1553 if (PyErr_Occurred()) SWIG_fail;
1554 }
1555 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1556 return resultobj;
1557 fail:
1558 return NULL;
1559 }
1560
1561
1562 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1563 PyObject *resultobj;
1564 wxPalette *arg1 = (wxPalette *) 0 ;
1565 PyObject * obj0 = 0 ;
1566 char *kwnames[] = {
1567 (char *) "self", NULL
1568 };
1569
1570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1573 {
1574 PyThreadState* __tstate = wxPyBeginAllowThreads();
1575 delete arg1;
1576
1577 wxPyEndAllowThreads(__tstate);
1578 if (PyErr_Occurred()) SWIG_fail;
1579 }
1580 Py_INCREF(Py_None); resultobj = Py_None;
1581 return resultobj;
1582 fail:
1583 return NULL;
1584 }
1585
1586
1587 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1588 PyObject *resultobj;
1589 wxPalette *arg1 = (wxPalette *) 0 ;
1590 byte arg2 ;
1591 byte arg3 ;
1592 byte arg4 ;
1593 int result;
1594 PyObject * obj0 = 0 ;
1595 PyObject * obj1 = 0 ;
1596 PyObject * obj2 = 0 ;
1597 PyObject * obj3 = 0 ;
1598 char *kwnames[] = {
1599 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1600 };
1601
1602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1605 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1606 if (PyErr_Occurred()) SWIG_fail;
1607 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1608 if (PyErr_Occurred()) SWIG_fail;
1609 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1610 if (PyErr_Occurred()) SWIG_fail;
1611 {
1612 PyThreadState* __tstate = wxPyBeginAllowThreads();
1613 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1614
1615 wxPyEndAllowThreads(__tstate);
1616 if (PyErr_Occurred()) SWIG_fail;
1617 }
1618 resultobj = SWIG_FromInt((int)result);
1619 return resultobj;
1620 fail:
1621 return NULL;
1622 }
1623
1624
1625 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1626 PyObject *resultobj;
1627 wxPalette *arg1 = (wxPalette *) 0 ;
1628 int arg2 ;
1629 byte *arg3 = (byte *) 0 ;
1630 byte *arg4 = (byte *) 0 ;
1631 byte *arg5 = (byte *) 0 ;
1632 bool result;
1633 byte temp3 ;
1634 byte temp4 ;
1635 byte temp5 ;
1636 PyObject * obj0 = 0 ;
1637 PyObject * obj1 = 0 ;
1638 char *kwnames[] = {
1639 (char *) "self",(char *) "pixel", NULL
1640 };
1641
1642 arg3 = &temp3;
1643 arg4 = &temp4;
1644 arg5 = &temp5;
1645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1648 arg2 = (int) SWIG_AsInt(obj1);
1649 if (PyErr_Occurred()) SWIG_fail;
1650 {
1651 PyThreadState* __tstate = wxPyBeginAllowThreads();
1652 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1653
1654 wxPyEndAllowThreads(__tstate);
1655 if (PyErr_Occurred()) SWIG_fail;
1656 }
1657 {
1658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1659 }
1660 {
1661 PyObject *o = PyInt_FromLong((long) (*arg3));
1662 resultobj = t_output_helper(resultobj,o);
1663 }
1664 {
1665 PyObject *o = PyInt_FromLong((long) (*arg4));
1666 resultobj = t_output_helper(resultobj,o);
1667 }
1668 {
1669 PyObject *o = PyInt_FromLong((long) (*arg5));
1670 resultobj = t_output_helper(resultobj,o);
1671 }
1672 return resultobj;
1673 fail:
1674 return NULL;
1675 }
1676
1677
1678 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1679 PyObject *resultobj;
1680 wxPalette *arg1 = (wxPalette *) 0 ;
1681 bool result;
1682 PyObject * obj0 = 0 ;
1683 char *kwnames[] = {
1684 (char *) "self", NULL
1685 };
1686
1687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1690 {
1691 PyThreadState* __tstate = wxPyBeginAllowThreads();
1692 result = (bool)(arg1)->Ok();
1693
1694 wxPyEndAllowThreads(__tstate);
1695 if (PyErr_Occurred()) SWIG_fail;
1696 }
1697 {
1698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1699 }
1700 return resultobj;
1701 fail:
1702 return NULL;
1703 }
1704
1705
1706 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1707 PyObject *obj;
1708 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1709 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1710 Py_INCREF(obj);
1711 return Py_BuildValue((char *)"");
1712 }
1713 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1714 PyObject *resultobj;
1715 wxColour *arg1 = 0 ;
1716 int arg2 = (int) 1 ;
1717 int arg3 = (int) wxSOLID ;
1718 wxPen *result;
1719 wxColour temp1 ;
1720 PyObject * obj0 = 0 ;
1721 PyObject * obj1 = 0 ;
1722 PyObject * obj2 = 0 ;
1723 char *kwnames[] = {
1724 (char *) "colour",(char *) "width",(char *) "style", NULL
1725 };
1726
1727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1728 {
1729 arg1 = &temp1;
1730 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1731 }
1732 if (obj1) {
1733 arg2 = (int) SWIG_AsInt(obj1);
1734 if (PyErr_Occurred()) SWIG_fail;
1735 }
1736 if (obj2) {
1737 arg3 = (int) SWIG_AsInt(obj2);
1738 if (PyErr_Occurred()) SWIG_fail;
1739 }
1740 {
1741 PyThreadState* __tstate = wxPyBeginAllowThreads();
1742 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1743
1744 wxPyEndAllowThreads(__tstate);
1745 if (PyErr_Occurred()) SWIG_fail;
1746 }
1747 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1748 return resultobj;
1749 fail:
1750 return NULL;
1751 }
1752
1753
1754 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1755 PyObject *resultobj;
1756 wxPen *arg1 = (wxPen *) 0 ;
1757 PyObject * obj0 = 0 ;
1758 char *kwnames[] = {
1759 (char *) "self", NULL
1760 };
1761
1762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1765 {
1766 PyThreadState* __tstate = wxPyBeginAllowThreads();
1767 delete arg1;
1768
1769 wxPyEndAllowThreads(__tstate);
1770 if (PyErr_Occurred()) SWIG_fail;
1771 }
1772 Py_INCREF(Py_None); resultobj = Py_None;
1773 return resultobj;
1774 fail:
1775 return NULL;
1776 }
1777
1778
1779 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1780 PyObject *resultobj;
1781 wxPen *arg1 = (wxPen *) 0 ;
1782 int result;
1783 PyObject * obj0 = 0 ;
1784 char *kwnames[] = {
1785 (char *) "self", NULL
1786 };
1787
1788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1791 {
1792 PyThreadState* __tstate = wxPyBeginAllowThreads();
1793 result = (int)(arg1)->GetCap();
1794
1795 wxPyEndAllowThreads(__tstate);
1796 if (PyErr_Occurred()) SWIG_fail;
1797 }
1798 resultobj = SWIG_FromInt((int)result);
1799 return resultobj;
1800 fail:
1801 return NULL;
1802 }
1803
1804
1805 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1806 PyObject *resultobj;
1807 wxPen *arg1 = (wxPen *) 0 ;
1808 wxColour result;
1809 PyObject * obj0 = 0 ;
1810 char *kwnames[] = {
1811 (char *) "self", NULL
1812 };
1813
1814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1817 {
1818 PyThreadState* __tstate = wxPyBeginAllowThreads();
1819 result = (arg1)->GetColour();
1820
1821 wxPyEndAllowThreads(__tstate);
1822 if (PyErr_Occurred()) SWIG_fail;
1823 }
1824 {
1825 wxColour * resultptr;
1826 resultptr = new wxColour((wxColour &) result);
1827 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1828 }
1829 return resultobj;
1830 fail:
1831 return NULL;
1832 }
1833
1834
1835 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1836 PyObject *resultobj;
1837 wxPen *arg1 = (wxPen *) 0 ;
1838 int result;
1839 PyObject * obj0 = 0 ;
1840 char *kwnames[] = {
1841 (char *) "self", NULL
1842 };
1843
1844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1847 {
1848 PyThreadState* __tstate = wxPyBeginAllowThreads();
1849 result = (int)(arg1)->GetJoin();
1850
1851 wxPyEndAllowThreads(__tstate);
1852 if (PyErr_Occurred()) SWIG_fail;
1853 }
1854 resultobj = SWIG_FromInt((int)result);
1855 return resultobj;
1856 fail:
1857 return NULL;
1858 }
1859
1860
1861 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1862 PyObject *resultobj;
1863 wxPen *arg1 = (wxPen *) 0 ;
1864 int result;
1865 PyObject * obj0 = 0 ;
1866 char *kwnames[] = {
1867 (char *) "self", NULL
1868 };
1869
1870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1873 {
1874 PyThreadState* __tstate = wxPyBeginAllowThreads();
1875 result = (int)(arg1)->GetStyle();
1876
1877 wxPyEndAllowThreads(__tstate);
1878 if (PyErr_Occurred()) SWIG_fail;
1879 }
1880 resultobj = SWIG_FromInt((int)result);
1881 return resultobj;
1882 fail:
1883 return NULL;
1884 }
1885
1886
1887 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1888 PyObject *resultobj;
1889 wxPen *arg1 = (wxPen *) 0 ;
1890 int result;
1891 PyObject * obj0 = 0 ;
1892 char *kwnames[] = {
1893 (char *) "self", NULL
1894 };
1895
1896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1899 {
1900 PyThreadState* __tstate = wxPyBeginAllowThreads();
1901 result = (int)(arg1)->GetWidth();
1902
1903 wxPyEndAllowThreads(__tstate);
1904 if (PyErr_Occurred()) SWIG_fail;
1905 }
1906 resultobj = SWIG_FromInt((int)result);
1907 return resultobj;
1908 fail:
1909 return NULL;
1910 }
1911
1912
1913 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1914 PyObject *resultobj;
1915 wxPen *arg1 = (wxPen *) 0 ;
1916 bool result;
1917 PyObject * obj0 = 0 ;
1918 char *kwnames[] = {
1919 (char *) "self", NULL
1920 };
1921
1922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1925 {
1926 PyThreadState* __tstate = wxPyBeginAllowThreads();
1927 result = (bool)(arg1)->Ok();
1928
1929 wxPyEndAllowThreads(__tstate);
1930 if (PyErr_Occurred()) SWIG_fail;
1931 }
1932 {
1933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1934 }
1935 return resultobj;
1936 fail:
1937 return NULL;
1938 }
1939
1940
1941 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1942 PyObject *resultobj;
1943 wxPen *arg1 = (wxPen *) 0 ;
1944 int arg2 ;
1945 PyObject * obj0 = 0 ;
1946 PyObject * obj1 = 0 ;
1947 char *kwnames[] = {
1948 (char *) "self",(char *) "cap_style", NULL
1949 };
1950
1951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1954 arg2 = (int) SWIG_AsInt(obj1);
1955 if (PyErr_Occurred()) SWIG_fail;
1956 {
1957 PyThreadState* __tstate = wxPyBeginAllowThreads();
1958 (arg1)->SetCap(arg2);
1959
1960 wxPyEndAllowThreads(__tstate);
1961 if (PyErr_Occurred()) SWIG_fail;
1962 }
1963 Py_INCREF(Py_None); resultobj = Py_None;
1964 return resultobj;
1965 fail:
1966 return NULL;
1967 }
1968
1969
1970 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1971 PyObject *resultobj;
1972 wxPen *arg1 = (wxPen *) 0 ;
1973 wxColour *arg2 = 0 ;
1974 wxColour temp2 ;
1975 PyObject * obj0 = 0 ;
1976 PyObject * obj1 = 0 ;
1977 char *kwnames[] = {
1978 (char *) "self",(char *) "colour", NULL
1979 };
1980
1981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1984 {
1985 arg2 = &temp2;
1986 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1987 }
1988 {
1989 PyThreadState* __tstate = wxPyBeginAllowThreads();
1990 (arg1)->SetColour(*arg2);
1991
1992 wxPyEndAllowThreads(__tstate);
1993 if (PyErr_Occurred()) SWIG_fail;
1994 }
1995 Py_INCREF(Py_None); resultobj = Py_None;
1996 return resultobj;
1997 fail:
1998 return NULL;
1999 }
2000
2001
2002 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2003 PyObject *resultobj;
2004 wxPen *arg1 = (wxPen *) 0 ;
2005 int arg2 ;
2006 PyObject * obj0 = 0 ;
2007 PyObject * obj1 = 0 ;
2008 char *kwnames[] = {
2009 (char *) "self",(char *) "join_style", NULL
2010 };
2011
2012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2015 arg2 = (int) SWIG_AsInt(obj1);
2016 if (PyErr_Occurred()) SWIG_fail;
2017 {
2018 PyThreadState* __tstate = wxPyBeginAllowThreads();
2019 (arg1)->SetJoin(arg2);
2020
2021 wxPyEndAllowThreads(__tstate);
2022 if (PyErr_Occurred()) SWIG_fail;
2023 }
2024 Py_INCREF(Py_None); resultobj = Py_None;
2025 return resultobj;
2026 fail:
2027 return NULL;
2028 }
2029
2030
2031 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2032 PyObject *resultobj;
2033 wxPen *arg1 = (wxPen *) 0 ;
2034 int arg2 ;
2035 PyObject * obj0 = 0 ;
2036 PyObject * obj1 = 0 ;
2037 char *kwnames[] = {
2038 (char *) "self",(char *) "style", NULL
2039 };
2040
2041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2044 arg2 = (int) SWIG_AsInt(obj1);
2045 if (PyErr_Occurred()) SWIG_fail;
2046 {
2047 PyThreadState* __tstate = wxPyBeginAllowThreads();
2048 (arg1)->SetStyle(arg2);
2049
2050 wxPyEndAllowThreads(__tstate);
2051 if (PyErr_Occurred()) SWIG_fail;
2052 }
2053 Py_INCREF(Py_None); resultobj = Py_None;
2054 return resultobj;
2055 fail:
2056 return NULL;
2057 }
2058
2059
2060 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2061 PyObject *resultobj;
2062 wxPen *arg1 = (wxPen *) 0 ;
2063 int arg2 ;
2064 PyObject * obj0 = 0 ;
2065 PyObject * obj1 = 0 ;
2066 char *kwnames[] = {
2067 (char *) "self",(char *) "width", NULL
2068 };
2069
2070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2073 arg2 = (int) SWIG_AsInt(obj1);
2074 if (PyErr_Occurred()) SWIG_fail;
2075 {
2076 PyThreadState* __tstate = wxPyBeginAllowThreads();
2077 (arg1)->SetWidth(arg2);
2078
2079 wxPyEndAllowThreads(__tstate);
2080 if (PyErr_Occurred()) SWIG_fail;
2081 }
2082 Py_INCREF(Py_None); resultobj = Py_None;
2083 return resultobj;
2084 fail:
2085 return NULL;
2086 }
2087
2088
2089 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2090 PyObject *resultobj;
2091 wxPen *arg1 = (wxPen *) 0 ;
2092 int arg2 ;
2093 wxDash *arg3 = (wxDash *) 0 ;
2094 PyObject * obj0 = 0 ;
2095 PyObject * obj1 = 0 ;
2096 char *kwnames[] = {
2097 (char *) "self",(char *) "dashes", NULL
2098 };
2099
2100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2103 {
2104 arg2 = PyList_Size(obj1);
2105 arg3 = (wxDash*)byte_LIST_helper(obj1);
2106 if (arg3 == NULL) SWIG_fail;
2107 }
2108 {
2109 PyThreadState* __tstate = wxPyBeginAllowThreads();
2110 (arg1)->SetDashes(arg2,arg3);
2111
2112 wxPyEndAllowThreads(__tstate);
2113 if (PyErr_Occurred()) SWIG_fail;
2114 }
2115 Py_INCREF(Py_None); resultobj = Py_None;
2116 {
2117 if (arg3) delete [] arg3;
2118 }
2119 return resultobj;
2120 fail:
2121 {
2122 if (arg3) delete [] arg3;
2123 }
2124 return NULL;
2125 }
2126
2127
2128 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2129 PyObject *resultobj;
2130 wxPen *arg1 = (wxPen *) 0 ;
2131 PyObject *result;
2132 PyObject * obj0 = 0 ;
2133 char *kwnames[] = {
2134 (char *) "self", NULL
2135 };
2136
2137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2140 {
2141 PyThreadState* __tstate = wxPyBeginAllowThreads();
2142 result = (PyObject *)wxPen_GetDashes(arg1);
2143
2144 wxPyEndAllowThreads(__tstate);
2145 if (PyErr_Occurred()) SWIG_fail;
2146 }
2147 resultobj = result;
2148 return resultobj;
2149 fail:
2150 return NULL;
2151 }
2152
2153
2154 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2155 PyObject *resultobj;
2156 wxPen *arg1 = (wxPen *) 0 ;
2157 wxPen *arg2 = (wxPen *) 0 ;
2158 bool result;
2159 PyObject * obj0 = 0 ;
2160 PyObject * obj1 = 0 ;
2161 char *kwnames[] = {
2162 (char *) "self",(char *) "other", NULL
2163 };
2164
2165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2168 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2170 {
2171 PyThreadState* __tstate = wxPyBeginAllowThreads();
2172 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2173
2174 wxPyEndAllowThreads(__tstate);
2175 if (PyErr_Occurred()) SWIG_fail;
2176 }
2177 {
2178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2179 }
2180 return resultobj;
2181 fail:
2182 return NULL;
2183 }
2184
2185
2186 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2187 PyObject *resultobj;
2188 wxPen *arg1 = (wxPen *) 0 ;
2189 wxPen *arg2 = (wxPen *) 0 ;
2190 bool result;
2191 PyObject * obj0 = 0 ;
2192 PyObject * obj1 = 0 ;
2193 char *kwnames[] = {
2194 (char *) "self",(char *) "other", NULL
2195 };
2196
2197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2200 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2202 {
2203 PyThreadState* __tstate = wxPyBeginAllowThreads();
2204 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2205
2206 wxPyEndAllowThreads(__tstate);
2207 if (PyErr_Occurred()) SWIG_fail;
2208 }
2209 {
2210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2211 }
2212 return resultobj;
2213 fail:
2214 return NULL;
2215 }
2216
2217
2218 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2219 PyObject *obj;
2220 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2221 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2222 Py_INCREF(obj);
2223 return Py_BuildValue((char *)"");
2224 }
2225 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2226 PyObject *resultobj;
2227 wxColour *arg1 = 0 ;
2228 int arg2 = (int) 1 ;
2229 int arg3 = (int) wxSOLID ;
2230 wxPyPen *result;
2231 wxColour temp1 ;
2232 PyObject * obj0 = 0 ;
2233 PyObject * obj1 = 0 ;
2234 PyObject * obj2 = 0 ;
2235 char *kwnames[] = {
2236 (char *) "colour",(char *) "width",(char *) "style", NULL
2237 };
2238
2239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2240 {
2241 arg1 = &temp1;
2242 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2243 }
2244 if (obj1) {
2245 arg2 = (int) SWIG_AsInt(obj1);
2246 if (PyErr_Occurred()) SWIG_fail;
2247 }
2248 if (obj2) {
2249 arg3 = (int) SWIG_AsInt(obj2);
2250 if (PyErr_Occurred()) SWIG_fail;
2251 }
2252 {
2253 PyThreadState* __tstate = wxPyBeginAllowThreads();
2254 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2255
2256 wxPyEndAllowThreads(__tstate);
2257 if (PyErr_Occurred()) SWIG_fail;
2258 }
2259 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
2260 return resultobj;
2261 fail:
2262 return NULL;
2263 }
2264
2265
2266 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2267 PyObject *resultobj;
2268 wxPyPen *arg1 = (wxPyPen *) 0 ;
2269 PyObject * obj0 = 0 ;
2270 char *kwnames[] = {
2271 (char *) "self", NULL
2272 };
2273
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2277 {
2278 PyThreadState* __tstate = wxPyBeginAllowThreads();
2279 delete arg1;
2280
2281 wxPyEndAllowThreads(__tstate);
2282 if (PyErr_Occurred()) SWIG_fail;
2283 }
2284 Py_INCREF(Py_None); resultobj = Py_None;
2285 return resultobj;
2286 fail:
2287 return NULL;
2288 }
2289
2290
2291 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2292 PyObject *resultobj;
2293 wxPyPen *arg1 = (wxPyPen *) 0 ;
2294 int arg2 ;
2295 wxDash *arg3 = (wxDash *) 0 ;
2296 PyObject * obj0 = 0 ;
2297 PyObject * obj1 = 0 ;
2298 char *kwnames[] = {
2299 (char *) "self",(char *) "dashes", NULL
2300 };
2301
2302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2305 {
2306 arg2 = PyList_Size(obj1);
2307 arg3 = (wxDash*)byte_LIST_helper(obj1);
2308 if (arg3 == NULL) SWIG_fail;
2309 }
2310 {
2311 PyThreadState* __tstate = wxPyBeginAllowThreads();
2312 (arg1)->SetDashes(arg2,arg3);
2313
2314 wxPyEndAllowThreads(__tstate);
2315 if (PyErr_Occurred()) SWIG_fail;
2316 }
2317 Py_INCREF(Py_None); resultobj = Py_None;
2318 {
2319 if (arg3) delete [] arg3;
2320 }
2321 return resultobj;
2322 fail:
2323 {
2324 if (arg3) delete [] arg3;
2325 }
2326 return NULL;
2327 }
2328
2329
2330 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2331 PyObject *obj;
2332 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2333 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2334 Py_INCREF(obj);
2335 return Py_BuildValue((char *)"");
2336 }
2337 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2338 PyObject *resultobj;
2339 wxColour *arg1 = 0 ;
2340 int arg2 = (int) wxSOLID ;
2341 wxBrush *result;
2342 wxColour temp1 ;
2343 PyObject * obj0 = 0 ;
2344 PyObject * obj1 = 0 ;
2345 char *kwnames[] = {
2346 (char *) "colour",(char *) "style", NULL
2347 };
2348
2349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2350 {
2351 arg1 = &temp1;
2352 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2353 }
2354 if (obj1) {
2355 arg2 = (int) SWIG_AsInt(obj1);
2356 if (PyErr_Occurred()) SWIG_fail;
2357 }
2358 {
2359 PyThreadState* __tstate = wxPyBeginAllowThreads();
2360 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2361
2362 wxPyEndAllowThreads(__tstate);
2363 if (PyErr_Occurred()) SWIG_fail;
2364 }
2365 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2366 return resultobj;
2367 fail:
2368 return NULL;
2369 }
2370
2371
2372 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2373 PyObject *resultobj;
2374 wxBrush *arg1 = (wxBrush *) 0 ;
2375 PyObject * obj0 = 0 ;
2376 char *kwnames[] = {
2377 (char *) "self", NULL
2378 };
2379
2380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2383 {
2384 PyThreadState* __tstate = wxPyBeginAllowThreads();
2385 delete arg1;
2386
2387 wxPyEndAllowThreads(__tstate);
2388 if (PyErr_Occurred()) SWIG_fail;
2389 }
2390 Py_INCREF(Py_None); resultobj = Py_None;
2391 return resultobj;
2392 fail:
2393 return NULL;
2394 }
2395
2396
2397 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2398 PyObject *resultobj;
2399 wxBrush *arg1 = (wxBrush *) 0 ;
2400 wxColour *arg2 = 0 ;
2401 wxColour temp2 ;
2402 PyObject * obj0 = 0 ;
2403 PyObject * obj1 = 0 ;
2404 char *kwnames[] = {
2405 (char *) "self",(char *) "col", NULL
2406 };
2407
2408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2411 {
2412 arg2 = &temp2;
2413 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2414 }
2415 {
2416 PyThreadState* __tstate = wxPyBeginAllowThreads();
2417 (arg1)->SetColour((wxColour const &)*arg2);
2418
2419 wxPyEndAllowThreads(__tstate);
2420 if (PyErr_Occurred()) SWIG_fail;
2421 }
2422 Py_INCREF(Py_None); resultobj = Py_None;
2423 return resultobj;
2424 fail:
2425 return NULL;
2426 }
2427
2428
2429 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2430 PyObject *resultobj;
2431 wxBrush *arg1 = (wxBrush *) 0 ;
2432 int arg2 ;
2433 PyObject * obj0 = 0 ;
2434 PyObject * obj1 = 0 ;
2435 char *kwnames[] = {
2436 (char *) "self",(char *) "style", NULL
2437 };
2438
2439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2442 arg2 = (int) SWIG_AsInt(obj1);
2443 if (PyErr_Occurred()) SWIG_fail;
2444 {
2445 PyThreadState* __tstate = wxPyBeginAllowThreads();
2446 (arg1)->SetStyle(arg2);
2447
2448 wxPyEndAllowThreads(__tstate);
2449 if (PyErr_Occurred()) SWIG_fail;
2450 }
2451 Py_INCREF(Py_None); resultobj = Py_None;
2452 return resultobj;
2453 fail:
2454 return NULL;
2455 }
2456
2457
2458 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2459 PyObject *resultobj;
2460 wxBrush *arg1 = (wxBrush *) 0 ;
2461 wxBitmap *arg2 = 0 ;
2462 PyObject * obj0 = 0 ;
2463 PyObject * obj1 = 0 ;
2464 char *kwnames[] = {
2465 (char *) "self",(char *) "stipple", NULL
2466 };
2467
2468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2471 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2472 SWIG_POINTER_EXCEPTION | 0)) == -1)
2473 SWIG_fail;
2474 if (arg2 == NULL) {
2475 PyErr_SetString(PyExc_TypeError,"null reference");
2476 SWIG_fail;
2477 }
2478 {
2479 PyThreadState* __tstate = wxPyBeginAllowThreads();
2480 (arg1)->SetStipple((wxBitmap const &)*arg2);
2481
2482 wxPyEndAllowThreads(__tstate);
2483 if (PyErr_Occurred()) SWIG_fail;
2484 }
2485 Py_INCREF(Py_None); resultobj = Py_None;
2486 return resultobj;
2487 fail:
2488 return NULL;
2489 }
2490
2491
2492 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2493 PyObject *resultobj;
2494 wxBrush *arg1 = (wxBrush *) 0 ;
2495 wxColour result;
2496 PyObject * obj0 = 0 ;
2497 char *kwnames[] = {
2498 (char *) "self", NULL
2499 };
2500
2501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2504 {
2505 PyThreadState* __tstate = wxPyBeginAllowThreads();
2506 result = ((wxBrush const *)arg1)->GetColour();
2507
2508 wxPyEndAllowThreads(__tstate);
2509 if (PyErr_Occurred()) SWIG_fail;
2510 }
2511 {
2512 wxColour * resultptr;
2513 resultptr = new wxColour((wxColour &) result);
2514 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2515 }
2516 return resultobj;
2517 fail:
2518 return NULL;
2519 }
2520
2521
2522 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2523 PyObject *resultobj;
2524 wxBrush *arg1 = (wxBrush *) 0 ;
2525 int result;
2526 PyObject * obj0 = 0 ;
2527 char *kwnames[] = {
2528 (char *) "self", NULL
2529 };
2530
2531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2534 {
2535 PyThreadState* __tstate = wxPyBeginAllowThreads();
2536 result = (int)((wxBrush const *)arg1)->GetStyle();
2537
2538 wxPyEndAllowThreads(__tstate);
2539 if (PyErr_Occurred()) SWIG_fail;
2540 }
2541 resultobj = SWIG_FromInt((int)result);
2542 return resultobj;
2543 fail:
2544 return NULL;
2545 }
2546
2547
2548 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2549 PyObject *resultobj;
2550 wxBrush *arg1 = (wxBrush *) 0 ;
2551 wxBitmap *result;
2552 PyObject * obj0 = 0 ;
2553 char *kwnames[] = {
2554 (char *) "self", NULL
2555 };
2556
2557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2560 {
2561 PyThreadState* __tstate = wxPyBeginAllowThreads();
2562 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2563
2564 wxPyEndAllowThreads(__tstate);
2565 if (PyErr_Occurred()) SWIG_fail;
2566 }
2567 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2568 return resultobj;
2569 fail:
2570 return NULL;
2571 }
2572
2573
2574 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2575 PyObject *resultobj;
2576 wxBrush *arg1 = (wxBrush *) 0 ;
2577 bool result;
2578 PyObject * obj0 = 0 ;
2579 char *kwnames[] = {
2580 (char *) "self", NULL
2581 };
2582
2583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2586 {
2587 PyThreadState* __tstate = wxPyBeginAllowThreads();
2588 result = (bool)(arg1)->Ok();
2589
2590 wxPyEndAllowThreads(__tstate);
2591 if (PyErr_Occurred()) SWIG_fail;
2592 }
2593 {
2594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2595 }
2596 return resultobj;
2597 fail:
2598 return NULL;
2599 }
2600
2601
2602 static PyObject *_wrap_Brush_MacGetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2603 PyObject *resultobj;
2604 wxBrush *arg1 = (wxBrush *) 0 ;
2605 short result;
2606 PyObject * obj0 = 0 ;
2607 char *kwnames[] = {
2608 (char *) "self", NULL
2609 };
2610
2611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
2612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2614 {
2615 PyThreadState* __tstate = wxPyBeginAllowThreads();
2616 result = (short)(arg1)->MacGetTheme();
2617
2618 wxPyEndAllowThreads(__tstate);
2619 if (PyErr_Occurred()) SWIG_fail;
2620 }
2621 resultobj = SWIG_FromShort((short)result);
2622 return resultobj;
2623 fail:
2624 return NULL;
2625 }
2626
2627
2628 static PyObject *_wrap_Brush_MacSetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2629 PyObject *resultobj;
2630 wxBrush *arg1 = (wxBrush *) 0 ;
2631 short arg2 ;
2632 PyObject * obj0 = 0 ;
2633 PyObject * obj1 = 0 ;
2634 char *kwnames[] = {
2635 (char *) "self",(char *) "macThemeBrush", NULL
2636 };
2637
2638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
2639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2641 arg2 = (short) SWIG_AsShort(obj1);
2642 if (PyErr_Occurred()) SWIG_fail;
2643 {
2644 PyThreadState* __tstate = wxPyBeginAllowThreads();
2645 (arg1)->MacSetTheme(arg2);
2646
2647 wxPyEndAllowThreads(__tstate);
2648 if (PyErr_Occurred()) SWIG_fail;
2649 }
2650 Py_INCREF(Py_None); resultobj = Py_None;
2651 return resultobj;
2652 fail:
2653 return NULL;
2654 }
2655
2656
2657 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2658 PyObject *obj;
2659 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2660 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2661 Py_INCREF(obj);
2662 return Py_BuildValue((char *)"");
2663 }
2664 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2665 PyObject *resultobj;
2666 wxString *arg1 = 0 ;
2667 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2668 wxBitmap *result;
2669 bool temp1 = False ;
2670 PyObject * obj0 = 0 ;
2671 PyObject * obj1 = 0 ;
2672 char *kwnames[] = {
2673 (char *) "name",(char *) "type", NULL
2674 };
2675
2676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2677 {
2678 arg1 = wxString_in_helper(obj0);
2679 if (arg1 == NULL) SWIG_fail;
2680 temp1 = True;
2681 }
2682 if (obj1) {
2683 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2684 if (PyErr_Occurred()) SWIG_fail;
2685 }
2686 {
2687 PyThreadState* __tstate = wxPyBeginAllowThreads();
2688 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2689
2690 wxPyEndAllowThreads(__tstate);
2691 if (PyErr_Occurred()) SWIG_fail;
2692 }
2693 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2694 {
2695 if (temp1)
2696 delete arg1;
2697 }
2698 return resultobj;
2699 fail:
2700 {
2701 if (temp1)
2702 delete arg1;
2703 }
2704 return NULL;
2705 }
2706
2707
2708 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2709 PyObject *resultobj;
2710 wxBitmap *arg1 = (wxBitmap *) 0 ;
2711 PyObject * obj0 = 0 ;
2712 char *kwnames[] = {
2713 (char *) "self", NULL
2714 };
2715
2716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2719 {
2720 PyThreadState* __tstate = wxPyBeginAllowThreads();
2721 delete arg1;
2722
2723 wxPyEndAllowThreads(__tstate);
2724 if (PyErr_Occurred()) SWIG_fail;
2725 }
2726 Py_INCREF(Py_None); resultobj = Py_None;
2727 return resultobj;
2728 fail:
2729 return NULL;
2730 }
2731
2732
2733 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2734 PyObject *resultobj;
2735 wxIcon *arg1 = 0 ;
2736 wxBitmap *result;
2737 PyObject * obj0 = 0 ;
2738 char *kwnames[] = {
2739 (char *) "icon", NULL
2740 };
2741
2742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2744 SWIG_POINTER_EXCEPTION | 0)) == -1)
2745 SWIG_fail;
2746 if (arg1 == NULL) {
2747 PyErr_SetString(PyExc_TypeError,"null reference");
2748 SWIG_fail;
2749 }
2750 {
2751 PyThreadState* __tstate = wxPyBeginAllowThreads();
2752 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2753
2754 wxPyEndAllowThreads(__tstate);
2755 if (PyErr_Occurred()) SWIG_fail;
2756 }
2757 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2758 return resultobj;
2759 fail:
2760 return NULL;
2761 }
2762
2763
2764 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2765 PyObject *resultobj;
2766 wxImage *arg1 = 0 ;
2767 int arg2 = (int) -1 ;
2768 wxBitmap *result;
2769 PyObject * obj0 = 0 ;
2770 PyObject * obj1 = 0 ;
2771 char *kwnames[] = {
2772 (char *) "image",(char *) "depth", NULL
2773 };
2774
2775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2777 SWIG_POINTER_EXCEPTION | 0)) == -1)
2778 SWIG_fail;
2779 if (arg1 == NULL) {
2780 PyErr_SetString(PyExc_TypeError,"null reference");
2781 SWIG_fail;
2782 }
2783 if (obj1) {
2784 arg2 = (int) SWIG_AsInt(obj1);
2785 if (PyErr_Occurred()) SWIG_fail;
2786 }
2787 {
2788 PyThreadState* __tstate = wxPyBeginAllowThreads();
2789 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2790
2791 wxPyEndAllowThreads(__tstate);
2792 if (PyErr_Occurred()) SWIG_fail;
2793 }
2794 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2795 return resultobj;
2796 fail:
2797 return NULL;
2798 }
2799
2800
2801 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2802 PyObject *resultobj;
2803 PyObject *arg1 = (PyObject *) 0 ;
2804 wxBitmap *result;
2805 PyObject * obj0 = 0 ;
2806 char *kwnames[] = {
2807 (char *) "listOfStrings", NULL
2808 };
2809
2810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2811 arg1 = obj0;
2812 {
2813 PyThreadState* __tstate = wxPyBeginAllowThreads();
2814 result = (wxBitmap *)new_wxBitmap(arg1);
2815
2816 wxPyEndAllowThreads(__tstate);
2817 if (PyErr_Occurred()) SWIG_fail;
2818 }
2819 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2820 return resultobj;
2821 fail:
2822 return NULL;
2823 }
2824
2825
2826 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2827 PyObject *resultobj;
2828 PyObject *arg1 = (PyObject *) 0 ;
2829 int arg2 ;
2830 int arg3 ;
2831 int arg4 = (int) 1 ;
2832 wxBitmap *result;
2833 PyObject * obj0 = 0 ;
2834 PyObject * obj1 = 0 ;
2835 PyObject * obj2 = 0 ;
2836 PyObject * obj3 = 0 ;
2837 char *kwnames[] = {
2838 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2839 };
2840
2841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2842 arg1 = obj0;
2843 arg2 = (int) SWIG_AsInt(obj1);
2844 if (PyErr_Occurred()) SWIG_fail;
2845 arg3 = (int) SWIG_AsInt(obj2);
2846 if (PyErr_Occurred()) SWIG_fail;
2847 if (obj3) {
2848 arg4 = (int) SWIG_AsInt(obj3);
2849 if (PyErr_Occurred()) SWIG_fail;
2850 }
2851 {
2852 PyThreadState* __tstate = wxPyBeginAllowThreads();
2853 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2854
2855 wxPyEndAllowThreads(__tstate);
2856 if (PyErr_Occurred()) SWIG_fail;
2857 }
2858 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2859 return resultobj;
2860 fail:
2861 return NULL;
2862 }
2863
2864
2865 static PyObject *_wrap_new_EmptyBitmap__SWIG_0(PyObject *self, PyObject *args) {
2866 PyObject *resultobj;
2867 int arg1 ;
2868 int arg2 ;
2869 int arg3 = (int) -1 ;
2870 wxBitmap *result;
2871 PyObject * obj0 = 0 ;
2872 PyObject * obj1 = 0 ;
2873 PyObject * obj2 = 0 ;
2874
2875 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_EmptyBitmap",&obj0,&obj1,&obj2)) goto fail;
2876 arg1 = (int) SWIG_AsInt(obj0);
2877 if (PyErr_Occurred()) SWIG_fail;
2878 arg2 = (int) SWIG_AsInt(obj1);
2879 if (PyErr_Occurred()) SWIG_fail;
2880 if (obj2) {
2881 arg3 = (int) SWIG_AsInt(obj2);
2882 if (PyErr_Occurred()) SWIG_fail;
2883 }
2884 {
2885 PyThreadState* __tstate = wxPyBeginAllowThreads();
2886 result = (wxBitmap *)new_wxBitmap__SWIG_0(arg1,arg2,arg3);
2887
2888 wxPyEndAllowThreads(__tstate);
2889 if (PyErr_Occurred()) SWIG_fail;
2890 }
2891 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2892 return resultobj;
2893 fail:
2894 return NULL;
2895 }
2896
2897
2898 static PyObject *_wrap_new_EmptyBitmap__SWIG_1(PyObject *self, PyObject *args) {
2899 PyObject *resultobj;
2900 wxSize *arg1 = 0 ;
2901 int arg2 = (int) -1 ;
2902 wxBitmap *result;
2903 wxSize temp1 ;
2904 PyObject * obj0 = 0 ;
2905 PyObject * obj1 = 0 ;
2906
2907 if(!PyArg_ParseTuple(args,(char *)"O|O:new_EmptyBitmap",&obj0,&obj1)) goto fail;
2908 {
2909 arg1 = &temp1;
2910 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
2911 }
2912 if (obj1) {
2913 arg2 = (int) SWIG_AsInt(obj1);
2914 if (PyErr_Occurred()) SWIG_fail;
2915 }
2916 {
2917 PyThreadState* __tstate = wxPyBeginAllowThreads();
2918 result = (wxBitmap *)new_wxBitmap__SWIG_1((wxSize const &)*arg1,arg2);
2919
2920 wxPyEndAllowThreads(__tstate);
2921 if (PyErr_Occurred()) SWIG_fail;
2922 }
2923 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2924 return resultobj;
2925 fail:
2926 return NULL;
2927 }
2928
2929
2930 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args) {
2931 int argc;
2932 PyObject *argv[4];
2933 int ii;
2934
2935 argc = PyObject_Length(args);
2936 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
2937 argv[ii] = PyTuple_GetItem(args,ii);
2938 }
2939 if ((argc >= 1) && (argc <= 2)) {
2940 int _v;
2941 {
2942 _v = wxPySimple_typecheck(argv[0], wxT("wxSize"), 2);
2943 }
2944 if (_v) {
2945 if (argc <= 1) {
2946 return _wrap_new_EmptyBitmap__SWIG_1(self,args);
2947 }
2948 _v = SWIG_CheckInt(argv[1]);
2949 if (_v) {
2950 return _wrap_new_EmptyBitmap__SWIG_1(self,args);
2951 }
2952 }
2953 }
2954 if ((argc >= 2) && (argc <= 3)) {
2955 int _v;
2956 _v = SWIG_CheckInt(argv[0]);
2957 if (_v) {
2958 _v = SWIG_CheckInt(argv[1]);
2959 if (_v) {
2960 if (argc <= 2) {
2961 return _wrap_new_EmptyBitmap__SWIG_0(self,args);
2962 }
2963 _v = SWIG_CheckInt(argv[2]);
2964 if (_v) {
2965 return _wrap_new_EmptyBitmap__SWIG_0(self,args);
2966 }
2967 }
2968 }
2969 }
2970
2971 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_EmptyBitmap'");
2972 return NULL;
2973 }
2974
2975
2976 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2977 PyObject *resultobj;
2978 wxBitmap *arg1 = (wxBitmap *) 0 ;
2979 bool result;
2980 PyObject * obj0 = 0 ;
2981 char *kwnames[] = {
2982 (char *) "self", NULL
2983 };
2984
2985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2988 {
2989 PyThreadState* __tstate = wxPyBeginAllowThreads();
2990 result = (bool)(arg1)->Ok();
2991
2992 wxPyEndAllowThreads(__tstate);
2993 if (PyErr_Occurred()) SWIG_fail;
2994 }
2995 {
2996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2997 }
2998 return resultobj;
2999 fail:
3000 return NULL;
3001 }
3002
3003
3004 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3005 PyObject *resultobj;
3006 wxBitmap *arg1 = (wxBitmap *) 0 ;
3007 int result;
3008 PyObject * obj0 = 0 ;
3009 char *kwnames[] = {
3010 (char *) "self", NULL
3011 };
3012
3013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3016 {
3017 PyThreadState* __tstate = wxPyBeginAllowThreads();
3018 result = (int)(arg1)->GetWidth();
3019
3020 wxPyEndAllowThreads(__tstate);
3021 if (PyErr_Occurred()) SWIG_fail;
3022 }
3023 resultobj = SWIG_FromInt((int)result);
3024 return resultobj;
3025 fail:
3026 return NULL;
3027 }
3028
3029
3030 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3031 PyObject *resultobj;
3032 wxBitmap *arg1 = (wxBitmap *) 0 ;
3033 int result;
3034 PyObject * obj0 = 0 ;
3035 char *kwnames[] = {
3036 (char *) "self", NULL
3037 };
3038
3039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3042 {
3043 PyThreadState* __tstate = wxPyBeginAllowThreads();
3044 result = (int)(arg1)->GetHeight();
3045
3046 wxPyEndAllowThreads(__tstate);
3047 if (PyErr_Occurred()) SWIG_fail;
3048 }
3049 resultobj = SWIG_FromInt((int)result);
3050 return resultobj;
3051 fail:
3052 return NULL;
3053 }
3054
3055
3056 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3057 PyObject *resultobj;
3058 wxBitmap *arg1 = (wxBitmap *) 0 ;
3059 int result;
3060 PyObject * obj0 = 0 ;
3061 char *kwnames[] = {
3062 (char *) "self", NULL
3063 };
3064
3065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3068 {
3069 PyThreadState* __tstate = wxPyBeginAllowThreads();
3070 result = (int)(arg1)->GetDepth();
3071
3072 wxPyEndAllowThreads(__tstate);
3073 if (PyErr_Occurred()) SWIG_fail;
3074 }
3075 resultobj = SWIG_FromInt((int)result);
3076 return resultobj;
3077 fail:
3078 return NULL;
3079 }
3080
3081
3082 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3083 PyObject *resultobj;
3084 wxBitmap *arg1 = (wxBitmap *) 0 ;
3085 wxSize result;
3086 PyObject * obj0 = 0 ;
3087 char *kwnames[] = {
3088 (char *) "self", NULL
3089 };
3090
3091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3094 {
3095 PyThreadState* __tstate = wxPyBeginAllowThreads();
3096 result = wxBitmap_GetSize(arg1);
3097
3098 wxPyEndAllowThreads(__tstate);
3099 if (PyErr_Occurred()) SWIG_fail;
3100 }
3101 {
3102 wxSize * resultptr;
3103 resultptr = new wxSize((wxSize &) result);
3104 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3105 }
3106 return resultobj;
3107 fail:
3108 return NULL;
3109 }
3110
3111
3112 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3113 PyObject *resultobj;
3114 wxBitmap *arg1 = (wxBitmap *) 0 ;
3115 SwigValueWrapper< wxImage > result;
3116 PyObject * obj0 = 0 ;
3117 char *kwnames[] = {
3118 (char *) "self", NULL
3119 };
3120
3121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3124 {
3125 PyThreadState* __tstate = wxPyBeginAllowThreads();
3126 result = ((wxBitmap const *)arg1)->ConvertToImage();
3127
3128 wxPyEndAllowThreads(__tstate);
3129 if (PyErr_Occurred()) SWIG_fail;
3130 }
3131 {
3132 wxImage * resultptr;
3133 resultptr = new wxImage((wxImage &) result);
3134 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3135 }
3136 return resultobj;
3137 fail:
3138 return NULL;
3139 }
3140
3141
3142 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3143 PyObject *resultobj;
3144 wxBitmap *arg1 = (wxBitmap *) 0 ;
3145 wxMask *result;
3146 PyObject * obj0 = 0 ;
3147 char *kwnames[] = {
3148 (char *) "self", NULL
3149 };
3150
3151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3154 {
3155 PyThreadState* __tstate = wxPyBeginAllowThreads();
3156 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3157
3158 wxPyEndAllowThreads(__tstate);
3159 if (PyErr_Occurred()) SWIG_fail;
3160 }
3161 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3162 return resultobj;
3163 fail:
3164 return NULL;
3165 }
3166
3167
3168 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3169 PyObject *resultobj;
3170 wxBitmap *arg1 = (wxBitmap *) 0 ;
3171 wxMask *arg2 = (wxMask *) 0 ;
3172 PyObject * obj0 = 0 ;
3173 PyObject * obj1 = 0 ;
3174 char *kwnames[] = {
3175 (char *) "self",(char *) "mask", NULL
3176 };
3177
3178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3181 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3183 {
3184 PyThreadState* __tstate = wxPyBeginAllowThreads();
3185 (arg1)->SetMask(arg2);
3186
3187 wxPyEndAllowThreads(__tstate);
3188 if (PyErr_Occurred()) SWIG_fail;
3189 }
3190 Py_INCREF(Py_None); resultobj = Py_None;
3191 return resultobj;
3192 fail:
3193 return NULL;
3194 }
3195
3196
3197 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3198 PyObject *resultobj;
3199 wxBitmap *arg1 = (wxBitmap *) 0 ;
3200 wxColour *arg2 = 0 ;
3201 wxColour temp2 ;
3202 PyObject * obj0 = 0 ;
3203 PyObject * obj1 = 0 ;
3204 char *kwnames[] = {
3205 (char *) "self",(char *) "colour", NULL
3206 };
3207
3208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3211 {
3212 arg2 = &temp2;
3213 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3214 }
3215 {
3216 PyThreadState* __tstate = wxPyBeginAllowThreads();
3217 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3218
3219 wxPyEndAllowThreads(__tstate);
3220 if (PyErr_Occurred()) SWIG_fail;
3221 }
3222 Py_INCREF(Py_None); resultobj = Py_None;
3223 return resultobj;
3224 fail:
3225 return NULL;
3226 }
3227
3228
3229 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3230 PyObject *resultobj;
3231 wxBitmap *arg1 = (wxBitmap *) 0 ;
3232 wxRect *arg2 = 0 ;
3233 SwigValueWrapper< wxBitmap > result;
3234 wxRect temp2 ;
3235 PyObject * obj0 = 0 ;
3236 PyObject * obj1 = 0 ;
3237 char *kwnames[] = {
3238 (char *) "self",(char *) "rect", NULL
3239 };
3240
3241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3244 {
3245 arg2 = &temp2;
3246 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3247 }
3248 {
3249 PyThreadState* __tstate = wxPyBeginAllowThreads();
3250 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3251
3252 wxPyEndAllowThreads(__tstate);
3253 if (PyErr_Occurred()) SWIG_fail;
3254 }
3255 {
3256 wxBitmap * resultptr;
3257 resultptr = new wxBitmap((wxBitmap &) result);
3258 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3259 }
3260 return resultobj;
3261 fail:
3262 return NULL;
3263 }
3264
3265
3266 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3267 PyObject *resultobj;
3268 wxBitmap *arg1 = (wxBitmap *) 0 ;
3269 wxString *arg2 = 0 ;
3270 int arg3 ;
3271 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3272 bool result;
3273 bool temp2 = False ;
3274 PyObject * obj0 = 0 ;
3275 PyObject * obj1 = 0 ;
3276 PyObject * obj2 = 0 ;
3277 PyObject * obj3 = 0 ;
3278 char *kwnames[] = {
3279 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3280 };
3281
3282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3285 {
3286 arg2 = wxString_in_helper(obj1);
3287 if (arg2 == NULL) SWIG_fail;
3288 temp2 = True;
3289 }
3290 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3291 if (PyErr_Occurred()) SWIG_fail;
3292 if (obj3) {
3293 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3295 }
3296 {
3297 PyThreadState* __tstate = wxPyBeginAllowThreads();
3298 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3299
3300 wxPyEndAllowThreads(__tstate);
3301 if (PyErr_Occurred()) SWIG_fail;
3302 }
3303 {
3304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3305 }
3306 {
3307 if (temp2)
3308 delete arg2;
3309 }
3310 return resultobj;
3311 fail:
3312 {
3313 if (temp2)
3314 delete arg2;
3315 }
3316 return NULL;
3317 }
3318
3319
3320 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3321 PyObject *resultobj;
3322 wxBitmap *arg1 = (wxBitmap *) 0 ;
3323 wxString *arg2 = 0 ;
3324 int arg3 ;
3325 bool result;
3326 bool temp2 = False ;
3327 PyObject * obj0 = 0 ;
3328 PyObject * obj1 = 0 ;
3329 PyObject * obj2 = 0 ;
3330 char *kwnames[] = {
3331 (char *) "self",(char *) "name",(char *) "type", NULL
3332 };
3333
3334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3337 {
3338 arg2 = wxString_in_helper(obj1);
3339 if (arg2 == NULL) SWIG_fail;
3340 temp2 = True;
3341 }
3342 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3343 if (PyErr_Occurred()) SWIG_fail;
3344 {
3345 PyThreadState* __tstate = wxPyBeginAllowThreads();
3346 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3347
3348 wxPyEndAllowThreads(__tstate);
3349 if (PyErr_Occurred()) SWIG_fail;
3350 }
3351 {
3352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3353 }
3354 {
3355 if (temp2)
3356 delete arg2;
3357 }
3358 return resultobj;
3359 fail:
3360 {
3361 if (temp2)
3362 delete arg2;
3363 }
3364 return NULL;
3365 }
3366
3367
3368 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3369 PyObject *resultobj;
3370 wxBitmap *arg1 = (wxBitmap *) 0 ;
3371 wxIcon *arg2 = 0 ;
3372 bool result;
3373 PyObject * obj0 = 0 ;
3374 PyObject * obj1 = 0 ;
3375 char *kwnames[] = {
3376 (char *) "self",(char *) "icon", NULL
3377 };
3378
3379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3382 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3383 SWIG_POINTER_EXCEPTION | 0)) == -1)
3384 SWIG_fail;
3385 if (arg2 == NULL) {
3386 PyErr_SetString(PyExc_TypeError,"null reference");
3387 SWIG_fail;
3388 }
3389 {
3390 PyThreadState* __tstate = wxPyBeginAllowThreads();
3391 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3392
3393 wxPyEndAllowThreads(__tstate);
3394 if (PyErr_Occurred()) SWIG_fail;
3395 }
3396 {
3397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3398 }
3399 return resultobj;
3400 fail:
3401 return NULL;
3402 }
3403
3404
3405 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3406 PyObject *resultobj;
3407 wxBitmap *arg1 = (wxBitmap *) 0 ;
3408 int arg2 ;
3409 PyObject * obj0 = 0 ;
3410 PyObject * obj1 = 0 ;
3411 char *kwnames[] = {
3412 (char *) "self",(char *) "height", NULL
3413 };
3414
3415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3418 arg2 = (int) SWIG_AsInt(obj1);
3419 if (PyErr_Occurred()) SWIG_fail;
3420 {
3421 PyThreadState* __tstate = wxPyBeginAllowThreads();
3422 (arg1)->SetHeight(arg2);
3423
3424 wxPyEndAllowThreads(__tstate);
3425 if (PyErr_Occurred()) SWIG_fail;
3426 }
3427 Py_INCREF(Py_None); resultobj = Py_None;
3428 return resultobj;
3429 fail:
3430 return NULL;
3431 }
3432
3433
3434 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3435 PyObject *resultobj;
3436 wxBitmap *arg1 = (wxBitmap *) 0 ;
3437 int arg2 ;
3438 PyObject * obj0 = 0 ;
3439 PyObject * obj1 = 0 ;
3440 char *kwnames[] = {
3441 (char *) "self",(char *) "width", NULL
3442 };
3443
3444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3447 arg2 = (int) SWIG_AsInt(obj1);
3448 if (PyErr_Occurred()) SWIG_fail;
3449 {
3450 PyThreadState* __tstate = wxPyBeginAllowThreads();
3451 (arg1)->SetWidth(arg2);
3452
3453 wxPyEndAllowThreads(__tstate);
3454 if (PyErr_Occurred()) SWIG_fail;
3455 }
3456 Py_INCREF(Py_None); resultobj = Py_None;
3457 return resultobj;
3458 fail:
3459 return NULL;
3460 }
3461
3462
3463 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3464 PyObject *resultobj;
3465 wxBitmap *arg1 = (wxBitmap *) 0 ;
3466 int arg2 ;
3467 PyObject * obj0 = 0 ;
3468 PyObject * obj1 = 0 ;
3469 char *kwnames[] = {
3470 (char *) "self",(char *) "depth", NULL
3471 };
3472
3473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3476 arg2 = (int) SWIG_AsInt(obj1);
3477 if (PyErr_Occurred()) SWIG_fail;
3478 {
3479 PyThreadState* __tstate = wxPyBeginAllowThreads();
3480 (arg1)->SetDepth(arg2);
3481
3482 wxPyEndAllowThreads(__tstate);
3483 if (PyErr_Occurred()) SWIG_fail;
3484 }
3485 Py_INCREF(Py_None); resultobj = Py_None;
3486 return resultobj;
3487 fail:
3488 return NULL;
3489 }
3490
3491
3492 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3493 PyObject *resultobj;
3494 wxBitmap *arg1 = (wxBitmap *) 0 ;
3495 wxSize *arg2 = 0 ;
3496 wxSize temp2 ;
3497 PyObject * obj0 = 0 ;
3498 PyObject * obj1 = 0 ;
3499 char *kwnames[] = {
3500 (char *) "self",(char *) "size", NULL
3501 };
3502
3503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3506 {
3507 arg2 = &temp2;
3508 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3509 }
3510 {
3511 PyThreadState* __tstate = wxPyBeginAllowThreads();
3512 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3513
3514 wxPyEndAllowThreads(__tstate);
3515 if (PyErr_Occurred()) SWIG_fail;
3516 }
3517 Py_INCREF(Py_None); resultobj = Py_None;
3518 return resultobj;
3519 fail:
3520 return NULL;
3521 }
3522
3523
3524 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3525 PyObject *resultobj;
3526 wxBitmap *arg1 = (wxBitmap *) 0 ;
3527 wxBitmap *arg2 = (wxBitmap *) 0 ;
3528 bool result;
3529 PyObject * obj0 = 0 ;
3530 PyObject * obj1 = 0 ;
3531 char *kwnames[] = {
3532 (char *) "self",(char *) "other", NULL
3533 };
3534
3535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3538 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3540 {
3541 PyThreadState* __tstate = wxPyBeginAllowThreads();
3542 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3543
3544 wxPyEndAllowThreads(__tstate);
3545 if (PyErr_Occurred()) SWIG_fail;
3546 }
3547 {
3548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3549 }
3550 return resultobj;
3551 fail:
3552 return NULL;
3553 }
3554
3555
3556 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3557 PyObject *resultobj;
3558 wxBitmap *arg1 = (wxBitmap *) 0 ;
3559 wxBitmap *arg2 = (wxBitmap *) 0 ;
3560 bool result;
3561 PyObject * obj0 = 0 ;
3562 PyObject * obj1 = 0 ;
3563 char *kwnames[] = {
3564 (char *) "self",(char *) "other", NULL
3565 };
3566
3567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3570 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3572 {
3573 PyThreadState* __tstate = wxPyBeginAllowThreads();
3574 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3575
3576 wxPyEndAllowThreads(__tstate);
3577 if (PyErr_Occurred()) SWIG_fail;
3578 }
3579 {
3580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3581 }
3582 return resultobj;
3583 fail:
3584 return NULL;
3585 }
3586
3587
3588 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3589 PyObject *obj;
3590 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3591 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3592 Py_INCREF(obj);
3593 return Py_BuildValue((char *)"");
3594 }
3595 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3596 PyObject *resultobj;
3597 wxBitmap *arg1 = 0 ;
3598 wxColour const &arg2_defvalue = wxNullColour ;
3599 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3600 wxMask *result;
3601 wxColour temp2 ;
3602 PyObject * obj0 = 0 ;
3603 PyObject * obj1 = 0 ;
3604 char *kwnames[] = {
3605 (char *) "bitmap",(char *) "colour", NULL
3606 };
3607
3608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3610 SWIG_POINTER_EXCEPTION | 0)) == -1)
3611 SWIG_fail;
3612 if (arg1 == NULL) {
3613 PyErr_SetString(PyExc_TypeError,"null reference");
3614 SWIG_fail;
3615 }
3616 if (obj1) {
3617 {
3618 arg2 = &temp2;
3619 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3620 }
3621 }
3622 {
3623 PyThreadState* __tstate = wxPyBeginAllowThreads();
3624 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3625
3626 wxPyEndAllowThreads(__tstate);
3627 if (PyErr_Occurred()) SWIG_fail;
3628 }
3629 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3630 return resultobj;
3631 fail:
3632 return NULL;
3633 }
3634
3635
3636 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3637 PyObject *obj;
3638 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3639 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3640 Py_INCREF(obj);
3641 return Py_BuildValue((char *)"");
3642 }
3643 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3644 PyObject *resultobj;
3645 wxString *arg1 = 0 ;
3646 int arg2 ;
3647 int arg3 = (int) -1 ;
3648 int arg4 = (int) -1 ;
3649 wxIcon *result;
3650 bool temp1 = False ;
3651 PyObject * obj0 = 0 ;
3652 PyObject * obj1 = 0 ;
3653 PyObject * obj2 = 0 ;
3654 PyObject * obj3 = 0 ;
3655 char *kwnames[] = {
3656 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3657 };
3658
3659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3660 {
3661 arg1 = wxString_in_helper(obj0);
3662 if (arg1 == NULL) SWIG_fail;
3663 temp1 = True;
3664 }
3665 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3666 if (PyErr_Occurred()) SWIG_fail;
3667 if (obj2) {
3668 arg3 = (int) SWIG_AsInt(obj2);
3669 if (PyErr_Occurred()) SWIG_fail;
3670 }
3671 if (obj3) {
3672 arg4 = (int) SWIG_AsInt(obj3);
3673 if (PyErr_Occurred()) SWIG_fail;
3674 }
3675 {
3676 PyThreadState* __tstate = wxPyBeginAllowThreads();
3677 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3678
3679 wxPyEndAllowThreads(__tstate);
3680 if (PyErr_Occurred()) SWIG_fail;
3681 }
3682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3683 {
3684 if (temp1)
3685 delete arg1;
3686 }
3687 return resultobj;
3688 fail:
3689 {
3690 if (temp1)
3691 delete arg1;
3692 }
3693 return NULL;
3694 }
3695
3696
3697 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3698 PyObject *resultobj;
3699 wxIcon *arg1 = (wxIcon *) 0 ;
3700 PyObject * obj0 = 0 ;
3701 char *kwnames[] = {
3702 (char *) "self", NULL
3703 };
3704
3705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3708 {
3709 PyThreadState* __tstate = wxPyBeginAllowThreads();
3710 delete arg1;
3711
3712 wxPyEndAllowThreads(__tstate);
3713 if (PyErr_Occurred()) SWIG_fail;
3714 }
3715 Py_INCREF(Py_None); resultobj = Py_None;
3716 return resultobj;
3717 fail:
3718 return NULL;
3719 }
3720
3721
3722 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3723 PyObject *resultobj;
3724 wxIcon *result;
3725 char *kwnames[] = {
3726 NULL
3727 };
3728
3729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3730 {
3731 PyThreadState* __tstate = wxPyBeginAllowThreads();
3732 result = (wxIcon *)new wxIcon();
3733
3734 wxPyEndAllowThreads(__tstate);
3735 if (PyErr_Occurred()) SWIG_fail;
3736 }
3737 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3738 return resultobj;
3739 fail:
3740 return NULL;
3741 }
3742
3743
3744 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3745 PyObject *resultobj;
3746 wxIconLocation *arg1 = 0 ;
3747 wxIcon *result;
3748 PyObject * obj0 = 0 ;
3749 char *kwnames[] = {
3750 (char *) "loc", NULL
3751 };
3752
3753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3755 SWIG_POINTER_EXCEPTION | 0)) == -1)
3756 SWIG_fail;
3757 if (arg1 == NULL) {
3758 PyErr_SetString(PyExc_TypeError,"null reference");
3759 SWIG_fail;
3760 }
3761 {
3762 PyThreadState* __tstate = wxPyBeginAllowThreads();
3763 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3764
3765 wxPyEndAllowThreads(__tstate);
3766 if (PyErr_Occurred()) SWIG_fail;
3767 }
3768 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3769 return resultobj;
3770 fail:
3771 return NULL;
3772 }
3773
3774
3775 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3776 PyObject *resultobj;
3777 wxBitmap *arg1 = 0 ;
3778 wxIcon *result;
3779 PyObject * obj0 = 0 ;
3780 char *kwnames[] = {
3781 (char *) "bmp", NULL
3782 };
3783
3784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3786 SWIG_POINTER_EXCEPTION | 0)) == -1)
3787 SWIG_fail;
3788 if (arg1 == NULL) {
3789 PyErr_SetString(PyExc_TypeError,"null reference");
3790 SWIG_fail;
3791 }
3792 {
3793 PyThreadState* __tstate = wxPyBeginAllowThreads();
3794 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3795
3796 wxPyEndAllowThreads(__tstate);
3797 if (PyErr_Occurred()) SWIG_fail;
3798 }
3799 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3800 return resultobj;
3801 fail:
3802 return NULL;
3803 }
3804
3805
3806 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3807 PyObject *resultobj;
3808 PyObject *arg1 = (PyObject *) 0 ;
3809 wxIcon *result;
3810 PyObject * obj0 = 0 ;
3811 char *kwnames[] = {
3812 (char *) "listOfStrings", NULL
3813 };
3814
3815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3816 arg1 = obj0;
3817 {
3818 PyThreadState* __tstate = wxPyBeginAllowThreads();
3819 result = (wxIcon *)new_wxIcon(arg1);
3820
3821 wxPyEndAllowThreads(__tstate);
3822 if (PyErr_Occurred()) SWIG_fail;
3823 }
3824 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3825 return resultobj;
3826 fail:
3827 return NULL;
3828 }
3829
3830
3831 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3832 PyObject *resultobj;
3833 wxIcon *arg1 = (wxIcon *) 0 ;
3834 bool result;
3835 PyObject * obj0 = 0 ;
3836 char *kwnames[] = {
3837 (char *) "self", NULL
3838 };
3839
3840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3843 {
3844 PyThreadState* __tstate = wxPyBeginAllowThreads();
3845 result = (bool)(arg1)->Ok();
3846
3847 wxPyEndAllowThreads(__tstate);
3848 if (PyErr_Occurred()) SWIG_fail;
3849 }
3850 {
3851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3852 }
3853 return resultobj;
3854 fail:
3855 return NULL;
3856 }
3857
3858
3859 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3860 PyObject *resultobj;
3861 wxIcon *arg1 = (wxIcon *) 0 ;
3862 int result;
3863 PyObject * obj0 = 0 ;
3864 char *kwnames[] = {
3865 (char *) "self", NULL
3866 };
3867
3868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3871 {
3872 PyThreadState* __tstate = wxPyBeginAllowThreads();
3873 result = (int)(arg1)->GetWidth();
3874
3875 wxPyEndAllowThreads(__tstate);
3876 if (PyErr_Occurred()) SWIG_fail;
3877 }
3878 resultobj = SWIG_FromInt((int)result);
3879 return resultobj;
3880 fail:
3881 return NULL;
3882 }
3883
3884
3885 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3886 PyObject *resultobj;
3887 wxIcon *arg1 = (wxIcon *) 0 ;
3888 int result;
3889 PyObject * obj0 = 0 ;
3890 char *kwnames[] = {
3891 (char *) "self", NULL
3892 };
3893
3894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3897 {
3898 PyThreadState* __tstate = wxPyBeginAllowThreads();
3899 result = (int)(arg1)->GetHeight();
3900
3901 wxPyEndAllowThreads(__tstate);
3902 if (PyErr_Occurred()) SWIG_fail;
3903 }
3904 resultobj = SWIG_FromInt((int)result);
3905 return resultobj;
3906 fail:
3907 return NULL;
3908 }
3909
3910
3911 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3912 PyObject *resultobj;
3913 wxIcon *arg1 = (wxIcon *) 0 ;
3914 int result;
3915 PyObject * obj0 = 0 ;
3916 char *kwnames[] = {
3917 (char *) "self", NULL
3918 };
3919
3920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3923 {
3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
3925 result = (int)(arg1)->GetDepth();
3926
3927 wxPyEndAllowThreads(__tstate);
3928 if (PyErr_Occurred()) SWIG_fail;
3929 }
3930 resultobj = SWIG_FromInt((int)result);
3931 return resultobj;
3932 fail:
3933 return NULL;
3934 }
3935
3936
3937 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3938 PyObject *resultobj;
3939 wxIcon *arg1 = (wxIcon *) 0 ;
3940 int arg2 ;
3941 PyObject * obj0 = 0 ;
3942 PyObject * obj1 = 0 ;
3943 char *kwnames[] = {
3944 (char *) "self",(char *) "w", NULL
3945 };
3946
3947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3950 arg2 = (int) SWIG_AsInt(obj1);
3951 if (PyErr_Occurred()) SWIG_fail;
3952 {
3953 PyThreadState* __tstate = wxPyBeginAllowThreads();
3954 (arg1)->SetWidth(arg2);
3955
3956 wxPyEndAllowThreads(__tstate);
3957 if (PyErr_Occurred()) SWIG_fail;
3958 }
3959 Py_INCREF(Py_None); resultobj = Py_None;
3960 return resultobj;
3961 fail:
3962 return NULL;
3963 }
3964
3965
3966 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3967 PyObject *resultobj;
3968 wxIcon *arg1 = (wxIcon *) 0 ;
3969 int arg2 ;
3970 PyObject * obj0 = 0 ;
3971 PyObject * obj1 = 0 ;
3972 char *kwnames[] = {
3973 (char *) "self",(char *) "h", NULL
3974 };
3975
3976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3979 arg2 = (int) SWIG_AsInt(obj1);
3980 if (PyErr_Occurred()) SWIG_fail;
3981 {
3982 PyThreadState* __tstate = wxPyBeginAllowThreads();
3983 (arg1)->SetHeight(arg2);
3984
3985 wxPyEndAllowThreads(__tstate);
3986 if (PyErr_Occurred()) SWIG_fail;
3987 }
3988 Py_INCREF(Py_None); resultobj = Py_None;
3989 return resultobj;
3990 fail:
3991 return NULL;
3992 }
3993
3994
3995 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3996 PyObject *resultobj;
3997 wxIcon *arg1 = (wxIcon *) 0 ;
3998 int arg2 ;
3999 PyObject * obj0 = 0 ;
4000 PyObject * obj1 = 0 ;
4001 char *kwnames[] = {
4002 (char *) "self",(char *) "d", NULL
4003 };
4004
4005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4008 arg2 = (int) SWIG_AsInt(obj1);
4009 if (PyErr_Occurred()) SWIG_fail;
4010 {
4011 PyThreadState* __tstate = wxPyBeginAllowThreads();
4012 (arg1)->SetDepth(arg2);
4013
4014 wxPyEndAllowThreads(__tstate);
4015 if (PyErr_Occurred()) SWIG_fail;
4016 }
4017 Py_INCREF(Py_None); resultobj = Py_None;
4018 return resultobj;
4019 fail:
4020 return NULL;
4021 }
4022
4023
4024 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4025 PyObject *resultobj;
4026 wxIcon *arg1 = (wxIcon *) 0 ;
4027 wxBitmap *arg2 = 0 ;
4028 PyObject * obj0 = 0 ;
4029 PyObject * obj1 = 0 ;
4030 char *kwnames[] = {
4031 (char *) "self",(char *) "bmp", NULL
4032 };
4033
4034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4037 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4038 SWIG_POINTER_EXCEPTION | 0)) == -1)
4039 SWIG_fail;
4040 if (arg2 == NULL) {
4041 PyErr_SetString(PyExc_TypeError,"null reference");
4042 SWIG_fail;
4043 }
4044 {
4045 PyThreadState* __tstate = wxPyBeginAllowThreads();
4046 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4047
4048 wxPyEndAllowThreads(__tstate);
4049 if (PyErr_Occurred()) SWIG_fail;
4050 }
4051 Py_INCREF(Py_None); resultobj = Py_None;
4052 return resultobj;
4053 fail:
4054 return NULL;
4055 }
4056
4057
4058 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4059 PyObject *obj;
4060 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4061 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4062 Py_INCREF(obj);
4063 return Py_BuildValue((char *)"");
4064 }
4065 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4066 PyObject *resultobj;
4067 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4068 int arg2 = (int) 0 ;
4069 wxIconLocation *result;
4070 bool temp1 = False ;
4071 PyObject * obj0 = 0 ;
4072 PyObject * obj1 = 0 ;
4073 char *kwnames[] = {
4074 (char *) "filename",(char *) "num", NULL
4075 };
4076
4077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4078 if (obj0) {
4079 {
4080 arg1 = wxString_in_helper(obj0);
4081 if (arg1 == NULL) SWIG_fail;
4082 temp1 = True;
4083 }
4084 }
4085 if (obj1) {
4086 arg2 = (int) SWIG_AsInt(obj1);
4087 if (PyErr_Occurred()) SWIG_fail;
4088 }
4089 {
4090 PyThreadState* __tstate = wxPyBeginAllowThreads();
4091 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4092
4093 wxPyEndAllowThreads(__tstate);
4094 if (PyErr_Occurred()) SWIG_fail;
4095 }
4096 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4097 {
4098 if (temp1)
4099 delete arg1;
4100 }
4101 return resultobj;
4102 fail:
4103 {
4104 if (temp1)
4105 delete arg1;
4106 }
4107 return NULL;
4108 }
4109
4110
4111 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4112 PyObject *resultobj;
4113 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4114 PyObject * obj0 = 0 ;
4115 char *kwnames[] = {
4116 (char *) "self", NULL
4117 };
4118
4119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4122 {
4123 PyThreadState* __tstate = wxPyBeginAllowThreads();
4124 delete arg1;
4125
4126 wxPyEndAllowThreads(__tstate);
4127 if (PyErr_Occurred()) SWIG_fail;
4128 }
4129 Py_INCREF(Py_None); resultobj = Py_None;
4130 return resultobj;
4131 fail:
4132 return NULL;
4133 }
4134
4135
4136 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4137 PyObject *resultobj;
4138 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4139 bool result;
4140 PyObject * obj0 = 0 ;
4141 char *kwnames[] = {
4142 (char *) "self", NULL
4143 };
4144
4145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4148 {
4149 PyThreadState* __tstate = wxPyBeginAllowThreads();
4150 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4151
4152 wxPyEndAllowThreads(__tstate);
4153 if (PyErr_Occurred()) SWIG_fail;
4154 }
4155 {
4156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4157 }
4158 return resultobj;
4159 fail:
4160 return NULL;
4161 }
4162
4163
4164 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4165 PyObject *resultobj;
4166 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4167 wxString *arg2 = 0 ;
4168 bool temp2 = False ;
4169 PyObject * obj0 = 0 ;
4170 PyObject * obj1 = 0 ;
4171 char *kwnames[] = {
4172 (char *) "self",(char *) "filename", NULL
4173 };
4174
4175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4178 {
4179 arg2 = wxString_in_helper(obj1);
4180 if (arg2 == NULL) SWIG_fail;
4181 temp2 = True;
4182 }
4183 {
4184 PyThreadState* __tstate = wxPyBeginAllowThreads();
4185 (arg1)->SetFileName((wxString const &)*arg2);
4186
4187 wxPyEndAllowThreads(__tstate);
4188 if (PyErr_Occurred()) SWIG_fail;
4189 }
4190 Py_INCREF(Py_None); resultobj = Py_None;
4191 {
4192 if (temp2)
4193 delete arg2;
4194 }
4195 return resultobj;
4196 fail:
4197 {
4198 if (temp2)
4199 delete arg2;
4200 }
4201 return NULL;
4202 }
4203
4204
4205 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4206 PyObject *resultobj;
4207 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4208 wxString *result;
4209 PyObject * obj0 = 0 ;
4210 char *kwnames[] = {
4211 (char *) "self", NULL
4212 };
4213
4214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4217 {
4218 PyThreadState* __tstate = wxPyBeginAllowThreads();
4219 {
4220 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4221 result = (wxString *) &_result_ref;
4222 }
4223
4224 wxPyEndAllowThreads(__tstate);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 }
4227 {
4228 #if wxUSE_UNICODE
4229 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4230 #else
4231 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4232 #endif
4233 }
4234 return resultobj;
4235 fail:
4236 return NULL;
4237 }
4238
4239
4240 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4241 PyObject *resultobj;
4242 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4243 int arg2 ;
4244 PyObject * obj0 = 0 ;
4245 PyObject * obj1 = 0 ;
4246 char *kwnames[] = {
4247 (char *) "self",(char *) "num", NULL
4248 };
4249
4250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4253 arg2 = (int) SWIG_AsInt(obj1);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 {
4256 PyThreadState* __tstate = wxPyBeginAllowThreads();
4257 wxIconLocation_SetIndex(arg1,arg2);
4258
4259 wxPyEndAllowThreads(__tstate);
4260 if (PyErr_Occurred()) SWIG_fail;
4261 }
4262 Py_INCREF(Py_None); resultobj = Py_None;
4263 return resultobj;
4264 fail:
4265 return NULL;
4266 }
4267
4268
4269 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4270 PyObject *resultobj;
4271 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4272 int result;
4273 PyObject * obj0 = 0 ;
4274 char *kwnames[] = {
4275 (char *) "self", NULL
4276 };
4277
4278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4281 {
4282 PyThreadState* __tstate = wxPyBeginAllowThreads();
4283 result = (int)wxIconLocation_GetIndex(arg1);
4284
4285 wxPyEndAllowThreads(__tstate);
4286 if (PyErr_Occurred()) SWIG_fail;
4287 }
4288 resultobj = SWIG_FromInt((int)result);
4289 return resultobj;
4290 fail:
4291 return NULL;
4292 }
4293
4294
4295 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4296 PyObject *obj;
4297 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4298 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4299 Py_INCREF(obj);
4300 return Py_BuildValue((char *)"");
4301 }
4302 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4303 PyObject *resultobj;
4304 wxIconBundle *result;
4305 char *kwnames[] = {
4306 NULL
4307 };
4308
4309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4310 {
4311 PyThreadState* __tstate = wxPyBeginAllowThreads();
4312 result = (wxIconBundle *)new wxIconBundle();
4313
4314 wxPyEndAllowThreads(__tstate);
4315 if (PyErr_Occurred()) SWIG_fail;
4316 }
4317 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4318 return resultobj;
4319 fail:
4320 return NULL;
4321 }
4322
4323
4324 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4325 PyObject *resultobj;
4326 wxString *arg1 = 0 ;
4327 long arg2 ;
4328 wxIconBundle *result;
4329 bool temp1 = False ;
4330 PyObject * obj0 = 0 ;
4331 PyObject * obj1 = 0 ;
4332 char *kwnames[] = {
4333 (char *) "file",(char *) "type", NULL
4334 };
4335
4336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4337 {
4338 arg1 = wxString_in_helper(obj0);
4339 if (arg1 == NULL) SWIG_fail;
4340 temp1 = True;
4341 }
4342 arg2 = (long) SWIG_AsLong(obj1);
4343 if (PyErr_Occurred()) SWIG_fail;
4344 {
4345 PyThreadState* __tstate = wxPyBeginAllowThreads();
4346 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4347
4348 wxPyEndAllowThreads(__tstate);
4349 if (PyErr_Occurred()) SWIG_fail;
4350 }
4351 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4352 {
4353 if (temp1)
4354 delete arg1;
4355 }
4356 return resultobj;
4357 fail:
4358 {
4359 if (temp1)
4360 delete arg1;
4361 }
4362 return NULL;
4363 }
4364
4365
4366 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4367 PyObject *resultobj;
4368 wxIcon *arg1 = 0 ;
4369 wxIconBundle *result;
4370 PyObject * obj0 = 0 ;
4371 char *kwnames[] = {
4372 (char *) "icon", NULL
4373 };
4374
4375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4377 SWIG_POINTER_EXCEPTION | 0)) == -1)
4378 SWIG_fail;
4379 if (arg1 == NULL) {
4380 PyErr_SetString(PyExc_TypeError,"null reference");
4381 SWIG_fail;
4382 }
4383 {
4384 PyThreadState* __tstate = wxPyBeginAllowThreads();
4385 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4386
4387 wxPyEndAllowThreads(__tstate);
4388 if (PyErr_Occurred()) SWIG_fail;
4389 }
4390 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4391 return resultobj;
4392 fail:
4393 return NULL;
4394 }
4395
4396
4397 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4398 PyObject *resultobj;
4399 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4400 PyObject * obj0 = 0 ;
4401 char *kwnames[] = {
4402 (char *) "self", NULL
4403 };
4404
4405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4408 {
4409 PyThreadState* __tstate = wxPyBeginAllowThreads();
4410 delete arg1;
4411
4412 wxPyEndAllowThreads(__tstate);
4413 if (PyErr_Occurred()) SWIG_fail;
4414 }
4415 Py_INCREF(Py_None); resultobj = Py_None;
4416 return resultobj;
4417 fail:
4418 return NULL;
4419 }
4420
4421
4422 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4423 PyObject *resultobj;
4424 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4425 wxIcon *arg2 = 0 ;
4426 PyObject * obj0 = 0 ;
4427 PyObject * obj1 = 0 ;
4428 char *kwnames[] = {
4429 (char *) "self",(char *) "icon", NULL
4430 };
4431
4432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4435 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4436 SWIG_POINTER_EXCEPTION | 0)) == -1)
4437 SWIG_fail;
4438 if (arg2 == NULL) {
4439 PyErr_SetString(PyExc_TypeError,"null reference");
4440 SWIG_fail;
4441 }
4442 {
4443 PyThreadState* __tstate = wxPyBeginAllowThreads();
4444 (arg1)->AddIcon((wxIcon const &)*arg2);
4445
4446 wxPyEndAllowThreads(__tstate);
4447 if (PyErr_Occurred()) SWIG_fail;
4448 }
4449 Py_INCREF(Py_None); resultobj = Py_None;
4450 return resultobj;
4451 fail:
4452 return NULL;
4453 }
4454
4455
4456 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4457 PyObject *resultobj;
4458 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4459 wxString *arg2 = 0 ;
4460 long arg3 ;
4461 bool temp2 = False ;
4462 PyObject * obj0 = 0 ;
4463 PyObject * obj1 = 0 ;
4464 PyObject * obj2 = 0 ;
4465 char *kwnames[] = {
4466 (char *) "self",(char *) "file",(char *) "type", NULL
4467 };
4468
4469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4472 {
4473 arg2 = wxString_in_helper(obj1);
4474 if (arg2 == NULL) SWIG_fail;
4475 temp2 = True;
4476 }
4477 arg3 = (long) SWIG_AsLong(obj2);
4478 if (PyErr_Occurred()) SWIG_fail;
4479 {
4480 PyThreadState* __tstate = wxPyBeginAllowThreads();
4481 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4482
4483 wxPyEndAllowThreads(__tstate);
4484 if (PyErr_Occurred()) SWIG_fail;
4485 }
4486 Py_INCREF(Py_None); resultobj = Py_None;
4487 {
4488 if (temp2)
4489 delete arg2;
4490 }
4491 return resultobj;
4492 fail:
4493 {
4494 if (temp2)
4495 delete arg2;
4496 }
4497 return NULL;
4498 }
4499
4500
4501 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4502 PyObject *resultobj;
4503 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4504 wxSize *arg2 = 0 ;
4505 wxIcon *result;
4506 wxSize temp2 ;
4507 PyObject * obj0 = 0 ;
4508 PyObject * obj1 = 0 ;
4509 char *kwnames[] = {
4510 (char *) "self",(char *) "size", NULL
4511 };
4512
4513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4516 {
4517 arg2 = &temp2;
4518 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4519 }
4520 {
4521 PyThreadState* __tstate = wxPyBeginAllowThreads();
4522 {
4523 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4524 result = (wxIcon *) &_result_ref;
4525 }
4526
4527 wxPyEndAllowThreads(__tstate);
4528 if (PyErr_Occurred()) SWIG_fail;
4529 }
4530 {
4531 wxIcon* resultptr = new wxIcon(*result);
4532 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4533 }
4534 return resultobj;
4535 fail:
4536 return NULL;
4537 }
4538
4539
4540 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4541 PyObject *obj;
4542 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4543 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4544 Py_INCREF(obj);
4545 return Py_BuildValue((char *)"");
4546 }
4547 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4548 PyObject *resultobj;
4549 wxString *arg1 = (wxString *) 0 ;
4550 long arg2 ;
4551 int arg3 = (int) 0 ;
4552 int arg4 = (int) 0 ;
4553 wxCursor *result;
4554 bool temp1 = False ;
4555 PyObject * obj0 = 0 ;
4556 PyObject * obj1 = 0 ;
4557 PyObject * obj2 = 0 ;
4558 PyObject * obj3 = 0 ;
4559 char *kwnames[] = {
4560 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4561 };
4562
4563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4564 {
4565 arg1 = wxString_in_helper(obj0);
4566 if (arg1 == NULL) SWIG_fail;
4567 temp1 = True;
4568 }
4569 arg2 = (long) SWIG_AsLong(obj1);
4570 if (PyErr_Occurred()) SWIG_fail;
4571 if (obj2) {
4572 arg3 = (int) SWIG_AsInt(obj2);
4573 if (PyErr_Occurred()) SWIG_fail;
4574 }
4575 if (obj3) {
4576 arg4 = (int) SWIG_AsInt(obj3);
4577 if (PyErr_Occurred()) SWIG_fail;
4578 }
4579 {
4580 PyThreadState* __tstate = wxPyBeginAllowThreads();
4581 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4582
4583 wxPyEndAllowThreads(__tstate);
4584 if (PyErr_Occurred()) SWIG_fail;
4585 }
4586 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4587 {
4588 if (temp1)
4589 delete arg1;
4590 }
4591 return resultobj;
4592 fail:
4593 {
4594 if (temp1)
4595 delete arg1;
4596 }
4597 return NULL;
4598 }
4599
4600
4601 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4602 PyObject *resultobj;
4603 wxCursor *arg1 = (wxCursor *) 0 ;
4604 PyObject * obj0 = 0 ;
4605 char *kwnames[] = {
4606 (char *) "self", NULL
4607 };
4608
4609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4612 {
4613 PyThreadState* __tstate = wxPyBeginAllowThreads();
4614 delete arg1;
4615
4616 wxPyEndAllowThreads(__tstate);
4617 if (PyErr_Occurred()) SWIG_fail;
4618 }
4619 Py_INCREF(Py_None); resultobj = Py_None;
4620 return resultobj;
4621 fail:
4622 return NULL;
4623 }
4624
4625
4626 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4627 PyObject *resultobj;
4628 int arg1 ;
4629 wxCursor *result;
4630 PyObject * obj0 = 0 ;
4631 char *kwnames[] = {
4632 (char *) "id", NULL
4633 };
4634
4635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4636 arg1 = (int) SWIG_AsInt(obj0);
4637 if (PyErr_Occurred()) SWIG_fail;
4638 {
4639 PyThreadState* __tstate = wxPyBeginAllowThreads();
4640 result = (wxCursor *)new wxCursor(arg1);
4641
4642 wxPyEndAllowThreads(__tstate);
4643 if (PyErr_Occurred()) SWIG_fail;
4644 }
4645 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4646 return resultobj;
4647 fail:
4648 return NULL;
4649 }
4650
4651
4652 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4653 PyObject *resultobj;
4654 wxImage *arg1 = 0 ;
4655 wxCursor *result;
4656 PyObject * obj0 = 0 ;
4657 char *kwnames[] = {
4658 (char *) "image", NULL
4659 };
4660
4661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4663 SWIG_POINTER_EXCEPTION | 0)) == -1)
4664 SWIG_fail;
4665 if (arg1 == NULL) {
4666 PyErr_SetString(PyExc_TypeError,"null reference");
4667 SWIG_fail;
4668 }
4669 {
4670 PyThreadState* __tstate = wxPyBeginAllowThreads();
4671 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4672
4673 wxPyEndAllowThreads(__tstate);
4674 if (PyErr_Occurred()) SWIG_fail;
4675 }
4676 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4677 return resultobj;
4678 fail:
4679 return NULL;
4680 }
4681
4682
4683 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4684 PyObject *resultobj;
4685 wxCursor *arg1 = (wxCursor *) 0 ;
4686 bool result;
4687 PyObject * obj0 = 0 ;
4688 char *kwnames[] = {
4689 (char *) "self", NULL
4690 };
4691
4692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4695 {
4696 PyThreadState* __tstate = wxPyBeginAllowThreads();
4697 result = (bool)(arg1)->Ok();
4698
4699 wxPyEndAllowThreads(__tstate);
4700 if (PyErr_Occurred()) SWIG_fail;
4701 }
4702 {
4703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4704 }
4705 return resultobj;
4706 fail:
4707 return NULL;
4708 }
4709
4710
4711 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4712 PyObject *obj;
4713 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4714 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4715 Py_INCREF(obj);
4716 return Py_BuildValue((char *)"");
4717 }
4718 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4719 PyObject *resultobj;
4720 int arg1 = (int) 0 ;
4721 int arg2 = (int) 0 ;
4722 int arg3 = (int) 0 ;
4723 int arg4 = (int) 0 ;
4724 wxRegion *result;
4725 PyObject * obj0 = 0 ;
4726 PyObject * obj1 = 0 ;
4727 PyObject * obj2 = 0 ;
4728 PyObject * obj3 = 0 ;
4729 char *kwnames[] = {
4730 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4731 };
4732
4733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4734 if (obj0) {
4735 arg1 = (int) SWIG_AsInt(obj0);
4736 if (PyErr_Occurred()) SWIG_fail;
4737 }
4738 if (obj1) {
4739 arg2 = (int) SWIG_AsInt(obj1);
4740 if (PyErr_Occurred()) SWIG_fail;
4741 }
4742 if (obj2) {
4743 arg3 = (int) SWIG_AsInt(obj2);
4744 if (PyErr_Occurred()) SWIG_fail;
4745 }
4746 if (obj3) {
4747 arg4 = (int) SWIG_AsInt(obj3);
4748 if (PyErr_Occurred()) SWIG_fail;
4749 }
4750 {
4751 PyThreadState* __tstate = wxPyBeginAllowThreads();
4752 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4753
4754 wxPyEndAllowThreads(__tstate);
4755 if (PyErr_Occurred()) SWIG_fail;
4756 }
4757 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4758 return resultobj;
4759 fail:
4760 return NULL;
4761 }
4762
4763
4764 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4765 PyObject *resultobj;
4766 wxBitmap *arg1 = 0 ;
4767 wxColour const &arg2_defvalue = wxNullColour ;
4768 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4769 int arg3 = (int) 0 ;
4770 wxRegion *result;
4771 wxColour temp2 ;
4772 PyObject * obj0 = 0 ;
4773 PyObject * obj1 = 0 ;
4774 PyObject * obj2 = 0 ;
4775 char *kwnames[] = {
4776 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4777 };
4778
4779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4781 SWIG_POINTER_EXCEPTION | 0)) == -1)
4782 SWIG_fail;
4783 if (arg1 == NULL) {
4784 PyErr_SetString(PyExc_TypeError,"null reference");
4785 SWIG_fail;
4786 }
4787 if (obj1) {
4788 {
4789 arg2 = &temp2;
4790 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4791 }
4792 }
4793 if (obj2) {
4794 arg3 = (int) SWIG_AsInt(obj2);
4795 if (PyErr_Occurred()) SWIG_fail;
4796 }
4797 {
4798 PyThreadState* __tstate = wxPyBeginAllowThreads();
4799 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4800
4801 wxPyEndAllowThreads(__tstate);
4802 if (PyErr_Occurred()) SWIG_fail;
4803 }
4804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4805 return resultobj;
4806 fail:
4807 return NULL;
4808 }
4809
4810
4811 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4812 PyObject *resultobj;
4813 int arg1 ;
4814 wxPoint *arg2 = (wxPoint *) 0 ;
4815 int arg3 = (int) wxWINDING_RULE ;
4816 wxRegion *result;
4817 PyObject * obj0 = 0 ;
4818 PyObject * obj1 = 0 ;
4819 char *kwnames[] = {
4820 (char *) "points",(char *) "fillStyle", NULL
4821 };
4822
4823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4824 {
4825 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4826 if (arg2 == NULL) SWIG_fail;
4827 }
4828 if (obj1) {
4829 arg3 = (int) SWIG_AsInt(obj1);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 {
4833 PyThreadState* __tstate = wxPyBeginAllowThreads();
4834 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
4835
4836 wxPyEndAllowThreads(__tstate);
4837 if (PyErr_Occurred()) SWIG_fail;
4838 }
4839 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4840 {
4841 if (arg2) delete [] arg2;
4842 }
4843 return resultobj;
4844 fail:
4845 {
4846 if (arg2) delete [] arg2;
4847 }
4848 return NULL;
4849 }
4850
4851
4852 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4853 PyObject *resultobj;
4854 wxRegion *arg1 = (wxRegion *) 0 ;
4855 PyObject * obj0 = 0 ;
4856 char *kwnames[] = {
4857 (char *) "self", NULL
4858 };
4859
4860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4863 {
4864 PyThreadState* __tstate = wxPyBeginAllowThreads();
4865 delete arg1;
4866
4867 wxPyEndAllowThreads(__tstate);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 Py_INCREF(Py_None); resultobj = Py_None;
4871 return resultobj;
4872 fail:
4873 return NULL;
4874 }
4875
4876
4877 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4878 PyObject *resultobj;
4879 wxRegion *arg1 = (wxRegion *) 0 ;
4880 PyObject * obj0 = 0 ;
4881 char *kwnames[] = {
4882 (char *) "self", NULL
4883 };
4884
4885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4888 {
4889 PyThreadState* __tstate = wxPyBeginAllowThreads();
4890 (arg1)->Clear();
4891
4892 wxPyEndAllowThreads(__tstate);
4893 if (PyErr_Occurred()) SWIG_fail;
4894 }
4895 Py_INCREF(Py_None); resultobj = Py_None;
4896 return resultobj;
4897 fail:
4898 return NULL;
4899 }
4900
4901
4902 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4903 PyObject *resultobj;
4904 wxRegion *arg1 = (wxRegion *) 0 ;
4905 int arg2 ;
4906 int arg3 ;
4907 int result;
4908 PyObject * obj0 = 0 ;
4909 PyObject * obj1 = 0 ;
4910 PyObject * obj2 = 0 ;
4911 char *kwnames[] = {
4912 (char *) "self",(char *) "x",(char *) "y", NULL
4913 };
4914
4915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4918 arg2 = (int) SWIG_AsInt(obj1);
4919 if (PyErr_Occurred()) SWIG_fail;
4920 arg3 = (int) SWIG_AsInt(obj2);
4921 if (PyErr_Occurred()) SWIG_fail;
4922 {
4923 PyThreadState* __tstate = wxPyBeginAllowThreads();
4924 result = (int)(arg1)->Contains(arg2,arg3);
4925
4926 wxPyEndAllowThreads(__tstate);
4927 if (PyErr_Occurred()) SWIG_fail;
4928 }
4929 resultobj = SWIG_FromInt((int)result);
4930 return resultobj;
4931 fail:
4932 return NULL;
4933 }
4934
4935
4936 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4937 PyObject *resultobj;
4938 wxRegion *arg1 = (wxRegion *) 0 ;
4939 wxPoint *arg2 = 0 ;
4940 int result;
4941 wxPoint temp2 ;
4942 PyObject * obj0 = 0 ;
4943 PyObject * obj1 = 0 ;
4944 char *kwnames[] = {
4945 (char *) "self",(char *) "pt", NULL
4946 };
4947
4948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4951 {
4952 arg2 = &temp2;
4953 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4954 }
4955 {
4956 PyThreadState* __tstate = wxPyBeginAllowThreads();
4957 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4958
4959 wxPyEndAllowThreads(__tstate);
4960 if (PyErr_Occurred()) SWIG_fail;
4961 }
4962 resultobj = SWIG_FromInt((int)result);
4963 return resultobj;
4964 fail:
4965 return NULL;
4966 }
4967
4968
4969 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4970 PyObject *resultobj;
4971 wxRegion *arg1 = (wxRegion *) 0 ;
4972 wxRect *arg2 = 0 ;
4973 int result;
4974 wxRect temp2 ;
4975 PyObject * obj0 = 0 ;
4976 PyObject * obj1 = 0 ;
4977 char *kwnames[] = {
4978 (char *) "self",(char *) "rect", NULL
4979 };
4980
4981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4984 {
4985 arg2 = &temp2;
4986 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4987 }
4988 {
4989 PyThreadState* __tstate = wxPyBeginAllowThreads();
4990 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4991
4992 wxPyEndAllowThreads(__tstate);
4993 if (PyErr_Occurred()) SWIG_fail;
4994 }
4995 resultobj = SWIG_FromInt((int)result);
4996 return resultobj;
4997 fail:
4998 return NULL;
4999 }
5000
5001
5002 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5003 PyObject *resultobj;
5004 wxRegion *arg1 = (wxRegion *) 0 ;
5005 int arg2 ;
5006 int arg3 ;
5007 int arg4 ;
5008 int arg5 ;
5009 int result;
5010 PyObject * obj0 = 0 ;
5011 PyObject * obj1 = 0 ;
5012 PyObject * obj2 = 0 ;
5013 PyObject * obj3 = 0 ;
5014 PyObject * obj4 = 0 ;
5015 char *kwnames[] = {
5016 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5017 };
5018
5019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5022 arg2 = (int) SWIG_AsInt(obj1);
5023 if (PyErr_Occurred()) SWIG_fail;
5024 arg3 = (int) SWIG_AsInt(obj2);
5025 if (PyErr_Occurred()) SWIG_fail;
5026 arg4 = (int) SWIG_AsInt(obj3);
5027 if (PyErr_Occurred()) SWIG_fail;
5028 arg5 = (int) SWIG_AsInt(obj4);
5029 if (PyErr_Occurred()) SWIG_fail;
5030 {
5031 PyThreadState* __tstate = wxPyBeginAllowThreads();
5032 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5033
5034 wxPyEndAllowThreads(__tstate);
5035 if (PyErr_Occurred()) SWIG_fail;
5036 }
5037 resultobj = SWIG_FromInt((int)result);
5038 return resultobj;
5039 fail:
5040 return NULL;
5041 }
5042
5043
5044 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5045 PyObject *resultobj;
5046 wxRegion *arg1 = (wxRegion *) 0 ;
5047 wxRect result;
5048 PyObject * obj0 = 0 ;
5049 char *kwnames[] = {
5050 (char *) "self", NULL
5051 };
5052
5053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5056 {
5057 PyThreadState* __tstate = wxPyBeginAllowThreads();
5058 result = (arg1)->GetBox();
5059
5060 wxPyEndAllowThreads(__tstate);
5061 if (PyErr_Occurred()) SWIG_fail;
5062 }
5063 {
5064 wxRect * resultptr;
5065 resultptr = new wxRect((wxRect &) result);
5066 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5067 }
5068 return resultobj;
5069 fail:
5070 return NULL;
5071 }
5072
5073
5074 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5075 PyObject *resultobj;
5076 wxRegion *arg1 = (wxRegion *) 0 ;
5077 int arg2 ;
5078 int arg3 ;
5079 int arg4 ;
5080 int arg5 ;
5081 bool result;
5082 PyObject * obj0 = 0 ;
5083 PyObject * obj1 = 0 ;
5084 PyObject * obj2 = 0 ;
5085 PyObject * obj3 = 0 ;
5086 PyObject * obj4 = 0 ;
5087 char *kwnames[] = {
5088 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5089 };
5090
5091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5094 arg2 = (int) SWIG_AsInt(obj1);
5095 if (PyErr_Occurred()) SWIG_fail;
5096 arg3 = (int) SWIG_AsInt(obj2);
5097 if (PyErr_Occurred()) SWIG_fail;
5098 arg4 = (int) SWIG_AsInt(obj3);
5099 if (PyErr_Occurred()) SWIG_fail;
5100 arg5 = (int) SWIG_AsInt(obj4);
5101 if (PyErr_Occurred()) SWIG_fail;
5102 {
5103 PyThreadState* __tstate = wxPyBeginAllowThreads();
5104 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5105
5106 wxPyEndAllowThreads(__tstate);
5107 if (PyErr_Occurred()) SWIG_fail;
5108 }
5109 {
5110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5111 }
5112 return resultobj;
5113 fail:
5114 return NULL;
5115 }
5116
5117
5118 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5119 PyObject *resultobj;
5120 wxRegion *arg1 = (wxRegion *) 0 ;
5121 wxRect *arg2 = 0 ;
5122 bool result;
5123 wxRect temp2 ;
5124 PyObject * obj0 = 0 ;
5125 PyObject * obj1 = 0 ;
5126 char *kwnames[] = {
5127 (char *) "self",(char *) "rect", NULL
5128 };
5129
5130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5133 {
5134 arg2 = &temp2;
5135 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5136 }
5137 {
5138 PyThreadState* __tstate = wxPyBeginAllowThreads();
5139 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5140
5141 wxPyEndAllowThreads(__tstate);
5142 if (PyErr_Occurred()) SWIG_fail;
5143 }
5144 {
5145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5146 }
5147 return resultobj;
5148 fail:
5149 return NULL;
5150 }
5151
5152
5153 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5154 PyObject *resultobj;
5155 wxRegion *arg1 = (wxRegion *) 0 ;
5156 wxRegion *arg2 = 0 ;
5157 bool result;
5158 PyObject * obj0 = 0 ;
5159 PyObject * obj1 = 0 ;
5160 char *kwnames[] = {
5161 (char *) "self",(char *) "region", NULL
5162 };
5163
5164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5167 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5168 SWIG_POINTER_EXCEPTION | 0)) == -1)
5169 SWIG_fail;
5170 if (arg2 == NULL) {
5171 PyErr_SetString(PyExc_TypeError,"null reference");
5172 SWIG_fail;
5173 }
5174 {
5175 PyThreadState* __tstate = wxPyBeginAllowThreads();
5176 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5177
5178 wxPyEndAllowThreads(__tstate);
5179 if (PyErr_Occurred()) SWIG_fail;
5180 }
5181 {
5182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5183 }
5184 return resultobj;
5185 fail:
5186 return NULL;
5187 }
5188
5189
5190 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5191 PyObject *resultobj;
5192 wxRegion *arg1 = (wxRegion *) 0 ;
5193 bool result;
5194 PyObject * obj0 = 0 ;
5195 char *kwnames[] = {
5196 (char *) "self", NULL
5197 };
5198
5199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5202 {
5203 PyThreadState* __tstate = wxPyBeginAllowThreads();
5204 result = (bool)(arg1)->IsEmpty();
5205
5206 wxPyEndAllowThreads(__tstate);
5207 if (PyErr_Occurred()) SWIG_fail;
5208 }
5209 {
5210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5211 }
5212 return resultobj;
5213 fail:
5214 return NULL;
5215 }
5216
5217
5218 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5219 PyObject *resultobj;
5220 wxRegion *arg1 = (wxRegion *) 0 ;
5221 int arg2 ;
5222 int arg3 ;
5223 int arg4 ;
5224 int arg5 ;
5225 bool result;
5226 PyObject * obj0 = 0 ;
5227 PyObject * obj1 = 0 ;
5228 PyObject * obj2 = 0 ;
5229 PyObject * obj3 = 0 ;
5230 PyObject * obj4 = 0 ;
5231 char *kwnames[] = {
5232 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5233 };
5234
5235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5238 arg2 = (int) SWIG_AsInt(obj1);
5239 if (PyErr_Occurred()) SWIG_fail;
5240 arg3 = (int) SWIG_AsInt(obj2);
5241 if (PyErr_Occurred()) SWIG_fail;
5242 arg4 = (int) SWIG_AsInt(obj3);
5243 if (PyErr_Occurred()) SWIG_fail;
5244 arg5 = (int) SWIG_AsInt(obj4);
5245 if (PyErr_Occurred()) SWIG_fail;
5246 {
5247 PyThreadState* __tstate = wxPyBeginAllowThreads();
5248 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5249
5250 wxPyEndAllowThreads(__tstate);
5251 if (PyErr_Occurred()) SWIG_fail;
5252 }
5253 {
5254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5255 }
5256 return resultobj;
5257 fail:
5258 return NULL;
5259 }
5260
5261
5262 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5263 PyObject *resultobj;
5264 wxRegion *arg1 = (wxRegion *) 0 ;
5265 wxRect *arg2 = 0 ;
5266 bool result;
5267 wxRect temp2 ;
5268 PyObject * obj0 = 0 ;
5269 PyObject * obj1 = 0 ;
5270 char *kwnames[] = {
5271 (char *) "self",(char *) "rect", NULL
5272 };
5273
5274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5277 {
5278 arg2 = &temp2;
5279 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5280 }
5281 {
5282 PyThreadState* __tstate = wxPyBeginAllowThreads();
5283 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5284
5285 wxPyEndAllowThreads(__tstate);
5286 if (PyErr_Occurred()) SWIG_fail;
5287 }
5288 {
5289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5290 }
5291 return resultobj;
5292 fail:
5293 return NULL;
5294 }
5295
5296
5297 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5298 PyObject *resultobj;
5299 wxRegion *arg1 = (wxRegion *) 0 ;
5300 wxRegion *arg2 = 0 ;
5301 bool result;
5302 PyObject * obj0 = 0 ;
5303 PyObject * obj1 = 0 ;
5304 char *kwnames[] = {
5305 (char *) "self",(char *) "region", NULL
5306 };
5307
5308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5311 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5312 SWIG_POINTER_EXCEPTION | 0)) == -1)
5313 SWIG_fail;
5314 if (arg2 == NULL) {
5315 PyErr_SetString(PyExc_TypeError,"null reference");
5316 SWIG_fail;
5317 }
5318 {
5319 PyThreadState* __tstate = wxPyBeginAllowThreads();
5320 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5321
5322 wxPyEndAllowThreads(__tstate);
5323 if (PyErr_Occurred()) SWIG_fail;
5324 }
5325 {
5326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5327 }
5328 return resultobj;
5329 fail:
5330 return NULL;
5331 }
5332
5333
5334 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5335 PyObject *resultobj;
5336 wxRegion *arg1 = (wxRegion *) 0 ;
5337 int arg2 ;
5338 int arg3 ;
5339 int arg4 ;
5340 int arg5 ;
5341 bool result;
5342 PyObject * obj0 = 0 ;
5343 PyObject * obj1 = 0 ;
5344 PyObject * obj2 = 0 ;
5345 PyObject * obj3 = 0 ;
5346 PyObject * obj4 = 0 ;
5347 char *kwnames[] = {
5348 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5349 };
5350
5351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5354 arg2 = (int) SWIG_AsInt(obj1);
5355 if (PyErr_Occurred()) SWIG_fail;
5356 arg3 = (int) SWIG_AsInt(obj2);
5357 if (PyErr_Occurred()) SWIG_fail;
5358 arg4 = (int) SWIG_AsInt(obj3);
5359 if (PyErr_Occurred()) SWIG_fail;
5360 arg5 = (int) SWIG_AsInt(obj4);
5361 if (PyErr_Occurred()) SWIG_fail;
5362 {
5363 PyThreadState* __tstate = wxPyBeginAllowThreads();
5364 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5365
5366 wxPyEndAllowThreads(__tstate);
5367 if (PyErr_Occurred()) SWIG_fail;
5368 }
5369 {
5370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5371 }
5372 return resultobj;
5373 fail:
5374 return NULL;
5375 }
5376
5377
5378 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5379 PyObject *resultobj;
5380 wxRegion *arg1 = (wxRegion *) 0 ;
5381 wxRect *arg2 = 0 ;
5382 bool result;
5383 wxRect temp2 ;
5384 PyObject * obj0 = 0 ;
5385 PyObject * obj1 = 0 ;
5386 char *kwnames[] = {
5387 (char *) "self",(char *) "rect", NULL
5388 };
5389
5390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5393 {
5394 arg2 = &temp2;
5395 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5396 }
5397 {
5398 PyThreadState* __tstate = wxPyBeginAllowThreads();
5399 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5400
5401 wxPyEndAllowThreads(__tstate);
5402 if (PyErr_Occurred()) SWIG_fail;
5403 }
5404 {
5405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5406 }
5407 return resultobj;
5408 fail:
5409 return NULL;
5410 }
5411
5412
5413 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5414 PyObject *resultobj;
5415 wxRegion *arg1 = (wxRegion *) 0 ;
5416 wxRegion *arg2 = 0 ;
5417 bool result;
5418 PyObject * obj0 = 0 ;
5419 PyObject * obj1 = 0 ;
5420 char *kwnames[] = {
5421 (char *) "self",(char *) "region", NULL
5422 };
5423
5424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5427 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5428 SWIG_POINTER_EXCEPTION | 0)) == -1)
5429 SWIG_fail;
5430 if (arg2 == NULL) {
5431 PyErr_SetString(PyExc_TypeError,"null reference");
5432 SWIG_fail;
5433 }
5434 {
5435 PyThreadState* __tstate = wxPyBeginAllowThreads();
5436 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5437
5438 wxPyEndAllowThreads(__tstate);
5439 if (PyErr_Occurred()) SWIG_fail;
5440 }
5441 {
5442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5443 }
5444 return resultobj;
5445 fail:
5446 return NULL;
5447 }
5448
5449
5450 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5451 PyObject *resultobj;
5452 wxRegion *arg1 = (wxRegion *) 0 ;
5453 int arg2 ;
5454 int arg3 ;
5455 int arg4 ;
5456 int arg5 ;
5457 bool result;
5458 PyObject * obj0 = 0 ;
5459 PyObject * obj1 = 0 ;
5460 PyObject * obj2 = 0 ;
5461 PyObject * obj3 = 0 ;
5462 PyObject * obj4 = 0 ;
5463 char *kwnames[] = {
5464 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5465 };
5466
5467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5470 arg2 = (int) SWIG_AsInt(obj1);
5471 if (PyErr_Occurred()) SWIG_fail;
5472 arg3 = (int) SWIG_AsInt(obj2);
5473 if (PyErr_Occurred()) SWIG_fail;
5474 arg4 = (int) SWIG_AsInt(obj3);
5475 if (PyErr_Occurred()) SWIG_fail;
5476 arg5 = (int) SWIG_AsInt(obj4);
5477 if (PyErr_Occurred()) SWIG_fail;
5478 {
5479 PyThreadState* __tstate = wxPyBeginAllowThreads();
5480 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5481
5482 wxPyEndAllowThreads(__tstate);
5483 if (PyErr_Occurred()) SWIG_fail;
5484 }
5485 {
5486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5487 }
5488 return resultobj;
5489 fail:
5490 return NULL;
5491 }
5492
5493
5494 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5495 PyObject *resultobj;
5496 wxRegion *arg1 = (wxRegion *) 0 ;
5497 wxRect *arg2 = 0 ;
5498 bool result;
5499 wxRect temp2 ;
5500 PyObject * obj0 = 0 ;
5501 PyObject * obj1 = 0 ;
5502 char *kwnames[] = {
5503 (char *) "self",(char *) "rect", NULL
5504 };
5505
5506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5509 {
5510 arg2 = &temp2;
5511 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5512 }
5513 {
5514 PyThreadState* __tstate = wxPyBeginAllowThreads();
5515 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5516
5517 wxPyEndAllowThreads(__tstate);
5518 if (PyErr_Occurred()) SWIG_fail;
5519 }
5520 {
5521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5522 }
5523 return resultobj;
5524 fail:
5525 return NULL;
5526 }
5527
5528
5529 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5530 PyObject *resultobj;
5531 wxRegion *arg1 = (wxRegion *) 0 ;
5532 wxRegion *arg2 = 0 ;
5533 bool result;
5534 PyObject * obj0 = 0 ;
5535 PyObject * obj1 = 0 ;
5536 char *kwnames[] = {
5537 (char *) "self",(char *) "region", NULL
5538 };
5539
5540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5543 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5544 SWIG_POINTER_EXCEPTION | 0)) == -1)
5545 SWIG_fail;
5546 if (arg2 == NULL) {
5547 PyErr_SetString(PyExc_TypeError,"null reference");
5548 SWIG_fail;
5549 }
5550 {
5551 PyThreadState* __tstate = wxPyBeginAllowThreads();
5552 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5553
5554 wxPyEndAllowThreads(__tstate);
5555 if (PyErr_Occurred()) SWIG_fail;
5556 }
5557 {
5558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5559 }
5560 return resultobj;
5561 fail:
5562 return NULL;
5563 }
5564
5565
5566 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5567 PyObject *resultobj;
5568 wxRegion *arg1 = (wxRegion *) 0 ;
5569 SwigValueWrapper< wxBitmap > result;
5570 PyObject * obj0 = 0 ;
5571 char *kwnames[] = {
5572 (char *) "self", NULL
5573 };
5574
5575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5578 {
5579 PyThreadState* __tstate = wxPyBeginAllowThreads();
5580 result = (arg1)->ConvertToBitmap();
5581
5582 wxPyEndAllowThreads(__tstate);
5583 if (PyErr_Occurred()) SWIG_fail;
5584 }
5585 {
5586 wxBitmap * resultptr;
5587 resultptr = new wxBitmap((wxBitmap &) result);
5588 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5589 }
5590 return resultobj;
5591 fail:
5592 return NULL;
5593 }
5594
5595
5596 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5597 PyObject *resultobj;
5598 wxRegion *arg1 = (wxRegion *) 0 ;
5599 wxBitmap *arg2 = 0 ;
5600 wxColour const &arg3_defvalue = wxNullColour ;
5601 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5602 int arg4 = (int) 0 ;
5603 bool result;
5604 wxColour temp3 ;
5605 PyObject * obj0 = 0 ;
5606 PyObject * obj1 = 0 ;
5607 PyObject * obj2 = 0 ;
5608 PyObject * obj3 = 0 ;
5609 char *kwnames[] = {
5610 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5611 };
5612
5613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5616 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5617 SWIG_POINTER_EXCEPTION | 0)) == -1)
5618 SWIG_fail;
5619 if (arg2 == NULL) {
5620 PyErr_SetString(PyExc_TypeError,"null reference");
5621 SWIG_fail;
5622 }
5623 if (obj2) {
5624 {
5625 arg3 = &temp3;
5626 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5627 }
5628 }
5629 if (obj3) {
5630 arg4 = (int) SWIG_AsInt(obj3);
5631 if (PyErr_Occurred()) SWIG_fail;
5632 }
5633 {
5634 PyThreadState* __tstate = wxPyBeginAllowThreads();
5635 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5636
5637 wxPyEndAllowThreads(__tstate);
5638 if (PyErr_Occurred()) SWIG_fail;
5639 }
5640 {
5641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5642 }
5643 return resultobj;
5644 fail:
5645 return NULL;
5646 }
5647
5648
5649 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5650 PyObject *obj;
5651 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5652 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5653 Py_INCREF(obj);
5654 return Py_BuildValue((char *)"");
5655 }
5656 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj;
5658 wxRegion *arg1 = 0 ;
5659 wxRegionIterator *result;
5660 PyObject * obj0 = 0 ;
5661 char *kwnames[] = {
5662 (char *) "region", NULL
5663 };
5664
5665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5667 SWIG_POINTER_EXCEPTION | 0)) == -1)
5668 SWIG_fail;
5669 if (arg1 == NULL) {
5670 PyErr_SetString(PyExc_TypeError,"null reference");
5671 SWIG_fail;
5672 }
5673 {
5674 PyThreadState* __tstate = wxPyBeginAllowThreads();
5675 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5676
5677 wxPyEndAllowThreads(__tstate);
5678 if (PyErr_Occurred()) SWIG_fail;
5679 }
5680 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5681 return resultobj;
5682 fail:
5683 return NULL;
5684 }
5685
5686
5687 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5688 PyObject *resultobj;
5689 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5690 PyObject * obj0 = 0 ;
5691 char *kwnames[] = {
5692 (char *) "self", NULL
5693 };
5694
5695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5698 {
5699 PyThreadState* __tstate = wxPyBeginAllowThreads();
5700 delete arg1;
5701
5702 wxPyEndAllowThreads(__tstate);
5703 if (PyErr_Occurred()) SWIG_fail;
5704 }
5705 Py_INCREF(Py_None); resultobj = Py_None;
5706 return resultobj;
5707 fail:
5708 return NULL;
5709 }
5710
5711
5712 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5713 PyObject *resultobj;
5714 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5715 int result;
5716 PyObject * obj0 = 0 ;
5717 char *kwnames[] = {
5718 (char *) "self", NULL
5719 };
5720
5721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5724 {
5725 PyThreadState* __tstate = wxPyBeginAllowThreads();
5726 result = (int)(arg1)->GetX();
5727
5728 wxPyEndAllowThreads(__tstate);
5729 if (PyErr_Occurred()) SWIG_fail;
5730 }
5731 resultobj = SWIG_FromInt((int)result);
5732 return resultobj;
5733 fail:
5734 return NULL;
5735 }
5736
5737
5738 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5739 PyObject *resultobj;
5740 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5741 int result;
5742 PyObject * obj0 = 0 ;
5743 char *kwnames[] = {
5744 (char *) "self", NULL
5745 };
5746
5747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5750 {
5751 PyThreadState* __tstate = wxPyBeginAllowThreads();
5752 result = (int)(arg1)->GetY();
5753
5754 wxPyEndAllowThreads(__tstate);
5755 if (PyErr_Occurred()) SWIG_fail;
5756 }
5757 resultobj = SWIG_FromInt((int)result);
5758 return resultobj;
5759 fail:
5760 return NULL;
5761 }
5762
5763
5764 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5765 PyObject *resultobj;
5766 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5767 int result;
5768 PyObject * obj0 = 0 ;
5769 char *kwnames[] = {
5770 (char *) "self", NULL
5771 };
5772
5773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5776 {
5777 PyThreadState* __tstate = wxPyBeginAllowThreads();
5778 result = (int)(arg1)->GetW();
5779
5780 wxPyEndAllowThreads(__tstate);
5781 if (PyErr_Occurred()) SWIG_fail;
5782 }
5783 resultobj = SWIG_FromInt((int)result);
5784 return resultobj;
5785 fail:
5786 return NULL;
5787 }
5788
5789
5790 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5791 PyObject *resultobj;
5792 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5793 int result;
5794 PyObject * obj0 = 0 ;
5795 char *kwnames[] = {
5796 (char *) "self", NULL
5797 };
5798
5799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5802 {
5803 PyThreadState* __tstate = wxPyBeginAllowThreads();
5804 result = (int)(arg1)->GetWidth();
5805
5806 wxPyEndAllowThreads(__tstate);
5807 if (PyErr_Occurred()) SWIG_fail;
5808 }
5809 resultobj = SWIG_FromInt((int)result);
5810 return resultobj;
5811 fail:
5812 return NULL;
5813 }
5814
5815
5816 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5817 PyObject *resultobj;
5818 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5819 int result;
5820 PyObject * obj0 = 0 ;
5821 char *kwnames[] = {
5822 (char *) "self", NULL
5823 };
5824
5825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 result = (int)(arg1)->GetH();
5831
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 resultobj = SWIG_FromInt((int)result);
5836 return resultobj;
5837 fail:
5838 return NULL;
5839 }
5840
5841
5842 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5843 PyObject *resultobj;
5844 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5845 int result;
5846 PyObject * obj0 = 0 ;
5847 char *kwnames[] = {
5848 (char *) "self", NULL
5849 };
5850
5851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5854 {
5855 PyThreadState* __tstate = wxPyBeginAllowThreads();
5856 result = (int)(arg1)->GetHeight();
5857
5858 wxPyEndAllowThreads(__tstate);
5859 if (PyErr_Occurred()) SWIG_fail;
5860 }
5861 resultobj = SWIG_FromInt((int)result);
5862 return resultobj;
5863 fail:
5864 return NULL;
5865 }
5866
5867
5868 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5869 PyObject *resultobj;
5870 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5871 wxRect result;
5872 PyObject * obj0 = 0 ;
5873 char *kwnames[] = {
5874 (char *) "self", NULL
5875 };
5876
5877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5880 {
5881 PyThreadState* __tstate = wxPyBeginAllowThreads();
5882 result = (arg1)->GetRect();
5883
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 }
5887 {
5888 wxRect * resultptr;
5889 resultptr = new wxRect((wxRect &) result);
5890 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5891 }
5892 return resultobj;
5893 fail:
5894 return NULL;
5895 }
5896
5897
5898 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5899 PyObject *resultobj;
5900 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5901 bool result;
5902 PyObject * obj0 = 0 ;
5903 char *kwnames[] = {
5904 (char *) "self", NULL
5905 };
5906
5907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 result = (bool)(arg1)->HaveRects();
5913
5914 wxPyEndAllowThreads(__tstate);
5915 if (PyErr_Occurred()) SWIG_fail;
5916 }
5917 {
5918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5919 }
5920 return resultobj;
5921 fail:
5922 return NULL;
5923 }
5924
5925
5926 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5927 PyObject *resultobj;
5928 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5929 PyObject * obj0 = 0 ;
5930 char *kwnames[] = {
5931 (char *) "self", NULL
5932 };
5933
5934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5937 {
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 (arg1)->Reset();
5940
5941 wxPyEndAllowThreads(__tstate);
5942 if (PyErr_Occurred()) SWIG_fail;
5943 }
5944 Py_INCREF(Py_None); resultobj = Py_None;
5945 return resultobj;
5946 fail:
5947 return NULL;
5948 }
5949
5950
5951 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5952 PyObject *resultobj;
5953 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5954 PyObject * obj0 = 0 ;
5955 char *kwnames[] = {
5956 (char *) "self", NULL
5957 };
5958
5959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5962 {
5963 PyThreadState* __tstate = wxPyBeginAllowThreads();
5964 wxRegionIterator_Next(arg1);
5965
5966 wxPyEndAllowThreads(__tstate);
5967 if (PyErr_Occurred()) SWIG_fail;
5968 }
5969 Py_INCREF(Py_None); resultobj = Py_None;
5970 return resultobj;
5971 fail:
5972 return NULL;
5973 }
5974
5975
5976 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5977 PyObject *resultobj;
5978 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5979 bool result;
5980 PyObject * obj0 = 0 ;
5981 char *kwnames[] = {
5982 (char *) "self", NULL
5983 };
5984
5985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5988 {
5989 PyThreadState* __tstate = wxPyBeginAllowThreads();
5990 result = (bool)wxRegionIterator___nonzero__(arg1);
5991
5992 wxPyEndAllowThreads(__tstate);
5993 if (PyErr_Occurred()) SWIG_fail;
5994 }
5995 {
5996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5997 }
5998 return resultobj;
5999 fail:
6000 return NULL;
6001 }
6002
6003
6004 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6005 PyObject *obj;
6006 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6007 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6008 Py_INCREF(obj);
6009 return Py_BuildValue((char *)"");
6010 }
6011 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6012 PyObject *resultobj;
6013 wxNativeFontInfo *result;
6014 char *kwnames[] = {
6015 NULL
6016 };
6017
6018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6019 {
6020 PyThreadState* __tstate = wxPyBeginAllowThreads();
6021 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6022
6023 wxPyEndAllowThreads(__tstate);
6024 if (PyErr_Occurred()) SWIG_fail;
6025 }
6026 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6027 return resultobj;
6028 fail:
6029 return NULL;
6030 }
6031
6032
6033 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6034 PyObject *resultobj;
6035 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6036 PyObject * obj0 = 0 ;
6037 char *kwnames[] = {
6038 (char *) "self", NULL
6039 };
6040
6041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6044 {
6045 PyThreadState* __tstate = wxPyBeginAllowThreads();
6046 delete arg1;
6047
6048 wxPyEndAllowThreads(__tstate);
6049 if (PyErr_Occurred()) SWIG_fail;
6050 }
6051 Py_INCREF(Py_None); resultobj = Py_None;
6052 return resultobj;
6053 fail:
6054 return NULL;
6055 }
6056
6057
6058 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6059 PyObject *resultobj;
6060 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6061 PyObject * obj0 = 0 ;
6062 char *kwnames[] = {
6063 (char *) "self", NULL
6064 };
6065
6066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6069 {
6070 PyThreadState* __tstate = wxPyBeginAllowThreads();
6071 (arg1)->Init();
6072
6073 wxPyEndAllowThreads(__tstate);
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 Py_INCREF(Py_None); resultobj = Py_None;
6077 return resultobj;
6078 fail:
6079 return NULL;
6080 }
6081
6082
6083 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6084 PyObject *resultobj;
6085 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6086 wxFont *arg2 = 0 ;
6087 PyObject * obj0 = 0 ;
6088 PyObject * obj1 = 0 ;
6089 char *kwnames[] = {
6090 (char *) "self",(char *) "font", NULL
6091 };
6092
6093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6096 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6097 SWIG_POINTER_EXCEPTION | 0)) == -1)
6098 SWIG_fail;
6099 if (arg2 == NULL) {
6100 PyErr_SetString(PyExc_TypeError,"null reference");
6101 SWIG_fail;
6102 }
6103 {
6104 PyThreadState* __tstate = wxPyBeginAllowThreads();
6105 (arg1)->InitFromFont((wxFont const &)*arg2);
6106
6107 wxPyEndAllowThreads(__tstate);
6108 if (PyErr_Occurred()) SWIG_fail;
6109 }
6110 Py_INCREF(Py_None); resultobj = Py_None;
6111 return resultobj;
6112 fail:
6113 return NULL;
6114 }
6115
6116
6117 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6118 PyObject *resultobj;
6119 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6120 int result;
6121 PyObject * obj0 = 0 ;
6122 char *kwnames[] = {
6123 (char *) "self", NULL
6124 };
6125
6126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6129 {
6130 PyThreadState* __tstate = wxPyBeginAllowThreads();
6131 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6132
6133 wxPyEndAllowThreads(__tstate);
6134 if (PyErr_Occurred()) SWIG_fail;
6135 }
6136 resultobj = SWIG_FromInt((int)result);
6137 return resultobj;
6138 fail:
6139 return NULL;
6140 }
6141
6142
6143 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6144 PyObject *resultobj;
6145 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6146 int result;
6147 PyObject * obj0 = 0 ;
6148 char *kwnames[] = {
6149 (char *) "self", NULL
6150 };
6151
6152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6155 {
6156 PyThreadState* __tstate = wxPyBeginAllowThreads();
6157 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6158
6159 wxPyEndAllowThreads(__tstate);
6160 if (PyErr_Occurred()) SWIG_fail;
6161 }
6162 resultobj = SWIG_FromInt((int)result);
6163 return resultobj;
6164 fail:
6165 return NULL;
6166 }
6167
6168
6169 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj;
6171 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6172 int result;
6173 PyObject * obj0 = 0 ;
6174 char *kwnames[] = {
6175 (char *) "self", NULL
6176 };
6177
6178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6181 {
6182 PyThreadState* __tstate = wxPyBeginAllowThreads();
6183 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6184
6185 wxPyEndAllowThreads(__tstate);
6186 if (PyErr_Occurred()) SWIG_fail;
6187 }
6188 resultobj = SWIG_FromInt((int)result);
6189 return resultobj;
6190 fail:
6191 return NULL;
6192 }
6193
6194
6195 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6196 PyObject *resultobj;
6197 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6198 bool result;
6199 PyObject * obj0 = 0 ;
6200 char *kwnames[] = {
6201 (char *) "self", NULL
6202 };
6203
6204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6207 {
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6210
6211 wxPyEndAllowThreads(__tstate);
6212 if (PyErr_Occurred()) SWIG_fail;
6213 }
6214 {
6215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6216 }
6217 return resultobj;
6218 fail:
6219 return NULL;
6220 }
6221
6222
6223 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6224 PyObject *resultobj;
6225 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6226 wxString result;
6227 PyObject * obj0 = 0 ;
6228 char *kwnames[] = {
6229 (char *) "self", NULL
6230 };
6231
6232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6235 {
6236 PyThreadState* __tstate = wxPyBeginAllowThreads();
6237 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6238
6239 wxPyEndAllowThreads(__tstate);
6240 if (PyErr_Occurred()) SWIG_fail;
6241 }
6242 {
6243 #if wxUSE_UNICODE
6244 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6245 #else
6246 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6247 #endif
6248 }
6249 return resultobj;
6250 fail:
6251 return NULL;
6252 }
6253
6254
6255 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6256 PyObject *resultobj;
6257 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6258 int result;
6259 PyObject * obj0 = 0 ;
6260 char *kwnames[] = {
6261 (char *) "self", NULL
6262 };
6263
6264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6267 {
6268 PyThreadState* __tstate = wxPyBeginAllowThreads();
6269 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6270
6271 wxPyEndAllowThreads(__tstate);
6272 if (PyErr_Occurred()) SWIG_fail;
6273 }
6274 resultobj = SWIG_FromInt((int)result);
6275 return resultobj;
6276 fail:
6277 return NULL;
6278 }
6279
6280
6281 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6282 PyObject *resultobj;
6283 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6284 int result;
6285 PyObject * obj0 = 0 ;
6286 char *kwnames[] = {
6287 (char *) "self", NULL
6288 };
6289
6290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6293 {
6294 PyThreadState* __tstate = wxPyBeginAllowThreads();
6295 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6296
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 resultobj = SWIG_FromInt((int)result);
6301 return resultobj;
6302 fail:
6303 return NULL;
6304 }
6305
6306
6307 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6308 PyObject *resultobj;
6309 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6310 int arg2 ;
6311 PyObject * obj0 = 0 ;
6312 PyObject * obj1 = 0 ;
6313 char *kwnames[] = {
6314 (char *) "self",(char *) "pointsize", NULL
6315 };
6316
6317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6320 arg2 = (int) SWIG_AsInt(obj1);
6321 if (PyErr_Occurred()) SWIG_fail;
6322 {
6323 PyThreadState* __tstate = wxPyBeginAllowThreads();
6324 (arg1)->SetPointSize(arg2);
6325
6326 wxPyEndAllowThreads(__tstate);
6327 if (PyErr_Occurred()) SWIG_fail;
6328 }
6329 Py_INCREF(Py_None); resultobj = Py_None;
6330 return resultobj;
6331 fail:
6332 return NULL;
6333 }
6334
6335
6336 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6337 PyObject *resultobj;
6338 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6339 int arg2 ;
6340 PyObject * obj0 = 0 ;
6341 PyObject * obj1 = 0 ;
6342 char *kwnames[] = {
6343 (char *) "self",(char *) "style", NULL
6344 };
6345
6346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6349 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6350 if (PyErr_Occurred()) SWIG_fail;
6351 {
6352 PyThreadState* __tstate = wxPyBeginAllowThreads();
6353 (arg1)->SetStyle((wxFontStyle )arg2);
6354
6355 wxPyEndAllowThreads(__tstate);
6356 if (PyErr_Occurred()) SWIG_fail;
6357 }
6358 Py_INCREF(Py_None); resultobj = Py_None;
6359 return resultobj;
6360 fail:
6361 return NULL;
6362 }
6363
6364
6365 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6366 PyObject *resultobj;
6367 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6368 int arg2 ;
6369 PyObject * obj0 = 0 ;
6370 PyObject * obj1 = 0 ;
6371 char *kwnames[] = {
6372 (char *) "self",(char *) "weight", NULL
6373 };
6374
6375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6378 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 {
6381 PyThreadState* __tstate = wxPyBeginAllowThreads();
6382 (arg1)->SetWeight((wxFontWeight )arg2);
6383
6384 wxPyEndAllowThreads(__tstate);
6385 if (PyErr_Occurred()) SWIG_fail;
6386 }
6387 Py_INCREF(Py_None); resultobj = Py_None;
6388 return resultobj;
6389 fail:
6390 return NULL;
6391 }
6392
6393
6394 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6395 PyObject *resultobj;
6396 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6397 bool arg2 ;
6398 PyObject * obj0 = 0 ;
6399 PyObject * obj1 = 0 ;
6400 char *kwnames[] = {
6401 (char *) "self",(char *) "underlined", NULL
6402 };
6403
6404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6407 arg2 = (bool) SWIG_AsBool(obj1);
6408 if (PyErr_Occurred()) SWIG_fail;
6409 {
6410 PyThreadState* __tstate = wxPyBeginAllowThreads();
6411 (arg1)->SetUnderlined(arg2);
6412
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 Py_INCREF(Py_None); resultobj = Py_None;
6417 return resultobj;
6418 fail:
6419 return NULL;
6420 }
6421
6422
6423 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6424 PyObject *resultobj;
6425 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6426 wxString arg2 ;
6427 PyObject * obj0 = 0 ;
6428 PyObject * obj1 = 0 ;
6429 char *kwnames[] = {
6430 (char *) "self",(char *) "facename", NULL
6431 };
6432
6433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6436 {
6437 wxString* sptr = wxString_in_helper(obj1);
6438 if (sptr == NULL) SWIG_fail;
6439 arg2 = *sptr;
6440 delete sptr;
6441 }
6442 {
6443 PyThreadState* __tstate = wxPyBeginAllowThreads();
6444 (arg1)->SetFaceName(arg2);
6445
6446 wxPyEndAllowThreads(__tstate);
6447 if (PyErr_Occurred()) SWIG_fail;
6448 }
6449 Py_INCREF(Py_None); resultobj = Py_None;
6450 return resultobj;
6451 fail:
6452 return NULL;
6453 }
6454
6455
6456 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6457 PyObject *resultobj;
6458 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6459 int arg2 ;
6460 PyObject * obj0 = 0 ;
6461 PyObject * obj1 = 0 ;
6462 char *kwnames[] = {
6463 (char *) "self",(char *) "family", NULL
6464 };
6465
6466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6469 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6470 if (PyErr_Occurred()) SWIG_fail;
6471 {
6472 PyThreadState* __tstate = wxPyBeginAllowThreads();
6473 (arg1)->SetFamily((wxFontFamily )arg2);
6474
6475 wxPyEndAllowThreads(__tstate);
6476 if (PyErr_Occurred()) SWIG_fail;
6477 }
6478 Py_INCREF(Py_None); resultobj = Py_None;
6479 return resultobj;
6480 fail:
6481 return NULL;
6482 }
6483
6484
6485 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6486 PyObject *resultobj;
6487 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6488 int arg2 ;
6489 PyObject * obj0 = 0 ;
6490 PyObject * obj1 = 0 ;
6491 char *kwnames[] = {
6492 (char *) "self",(char *) "encoding", NULL
6493 };
6494
6495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6498 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6499 if (PyErr_Occurred()) SWIG_fail;
6500 {
6501 PyThreadState* __tstate = wxPyBeginAllowThreads();
6502 (arg1)->SetEncoding((wxFontEncoding )arg2);
6503
6504 wxPyEndAllowThreads(__tstate);
6505 if (PyErr_Occurred()) SWIG_fail;
6506 }
6507 Py_INCREF(Py_None); resultobj = Py_None;
6508 return resultobj;
6509 fail:
6510 return NULL;
6511 }
6512
6513
6514 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6515 PyObject *resultobj;
6516 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6517 wxString *arg2 = 0 ;
6518 bool result;
6519 bool temp2 = False ;
6520 PyObject * obj0 = 0 ;
6521 PyObject * obj1 = 0 ;
6522 char *kwnames[] = {
6523 (char *) "self",(char *) "s", NULL
6524 };
6525
6526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6529 {
6530 arg2 = wxString_in_helper(obj1);
6531 if (arg2 == NULL) SWIG_fail;
6532 temp2 = True;
6533 }
6534 {
6535 PyThreadState* __tstate = wxPyBeginAllowThreads();
6536 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6537
6538 wxPyEndAllowThreads(__tstate);
6539 if (PyErr_Occurred()) SWIG_fail;
6540 }
6541 {
6542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6543 }
6544 {
6545 if (temp2)
6546 delete arg2;
6547 }
6548 return resultobj;
6549 fail:
6550 {
6551 if (temp2)
6552 delete arg2;
6553 }
6554 return NULL;
6555 }
6556
6557
6558 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6559 PyObject *resultobj;
6560 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6561 wxString result;
6562 PyObject * obj0 = 0 ;
6563 char *kwnames[] = {
6564 (char *) "self", NULL
6565 };
6566
6567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6570 {
6571 PyThreadState* __tstate = wxPyBeginAllowThreads();
6572 result = ((wxNativeFontInfo const *)arg1)->ToString();
6573
6574 wxPyEndAllowThreads(__tstate);
6575 if (PyErr_Occurred()) SWIG_fail;
6576 }
6577 {
6578 #if wxUSE_UNICODE
6579 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6580 #else
6581 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6582 #endif
6583 }
6584 return resultobj;
6585 fail:
6586 return NULL;
6587 }
6588
6589
6590 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6591 PyObject *resultobj;
6592 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6593 wxString result;
6594 PyObject * obj0 = 0 ;
6595 char *kwnames[] = {
6596 (char *) "self", NULL
6597 };
6598
6599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6602 {
6603 PyThreadState* __tstate = wxPyBeginAllowThreads();
6604 result = wxNativeFontInfo___str__(arg1);
6605
6606 wxPyEndAllowThreads(__tstate);
6607 if (PyErr_Occurred()) SWIG_fail;
6608 }
6609 {
6610 #if wxUSE_UNICODE
6611 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6612 #else
6613 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6614 #endif
6615 }
6616 return resultobj;
6617 fail:
6618 return NULL;
6619 }
6620
6621
6622 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6623 PyObject *resultobj;
6624 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6625 wxString *arg2 = 0 ;
6626 bool result;
6627 bool temp2 = False ;
6628 PyObject * obj0 = 0 ;
6629 PyObject * obj1 = 0 ;
6630 char *kwnames[] = {
6631 (char *) "self",(char *) "s", NULL
6632 };
6633
6634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6637 {
6638 arg2 = wxString_in_helper(obj1);
6639 if (arg2 == NULL) SWIG_fail;
6640 temp2 = True;
6641 }
6642 {
6643 PyThreadState* __tstate = wxPyBeginAllowThreads();
6644 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6645
6646 wxPyEndAllowThreads(__tstate);
6647 if (PyErr_Occurred()) SWIG_fail;
6648 }
6649 {
6650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6651 }
6652 {
6653 if (temp2)
6654 delete arg2;
6655 }
6656 return resultobj;
6657 fail:
6658 {
6659 if (temp2)
6660 delete arg2;
6661 }
6662 return NULL;
6663 }
6664
6665
6666 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6667 PyObject *resultobj;
6668 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6669 wxString result;
6670 PyObject * obj0 = 0 ;
6671 char *kwnames[] = {
6672 (char *) "self", NULL
6673 };
6674
6675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6678 {
6679 PyThreadState* __tstate = wxPyBeginAllowThreads();
6680 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6681
6682 wxPyEndAllowThreads(__tstate);
6683 if (PyErr_Occurred()) SWIG_fail;
6684 }
6685 {
6686 #if wxUSE_UNICODE
6687 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6688 #else
6689 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6690 #endif
6691 }
6692 return resultobj;
6693 fail:
6694 return NULL;
6695 }
6696
6697
6698 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6699 PyObject *obj;
6700 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6701 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6702 Py_INCREF(obj);
6703 return Py_BuildValue((char *)"");
6704 }
6705 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6706 PyObject *resultobj;
6707 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6708 wxString *arg2 = (wxString *) 0 ;
6709 bool temp2 = False ;
6710 PyObject * obj0 = 0 ;
6711 PyObject * obj1 = 0 ;
6712 char *kwnames[] = {
6713 (char *) "self",(char *) "facename", NULL
6714 };
6715
6716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6719 {
6720 arg2 = wxString_in_helper(obj1);
6721 if (arg2 == NULL) SWIG_fail;
6722 temp2 = True;
6723 }
6724 if (arg1) (arg1)->facename = *arg2;
6725
6726 Py_INCREF(Py_None); resultobj = Py_None;
6727 {
6728 if (temp2)
6729 delete arg2;
6730 }
6731 return resultobj;
6732 fail:
6733 {
6734 if (temp2)
6735 delete arg2;
6736 }
6737 return NULL;
6738 }
6739
6740
6741 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6742 PyObject *resultobj;
6743 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6744 wxString *result;
6745 PyObject * obj0 = 0 ;
6746 char *kwnames[] = {
6747 (char *) "self", NULL
6748 };
6749
6750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6753 result = (wxString *)& ((arg1)->facename);
6754
6755 {
6756 #if wxUSE_UNICODE
6757 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6758 #else
6759 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6760 #endif
6761 }
6762 return resultobj;
6763 fail:
6764 return NULL;
6765 }
6766
6767
6768 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6769 PyObject *resultobj;
6770 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6771 int arg2 ;
6772 PyObject * obj0 = 0 ;
6773 PyObject * obj1 = 0 ;
6774 char *kwnames[] = {
6775 (char *) "self",(char *) "encoding", NULL
6776 };
6777
6778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6781 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6782 if (PyErr_Occurred()) SWIG_fail;
6783 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6784
6785 Py_INCREF(Py_None); resultobj = Py_None;
6786 return resultobj;
6787 fail:
6788 return NULL;
6789 }
6790
6791
6792 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6793 PyObject *resultobj;
6794 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6795 int result;
6796 PyObject * obj0 = 0 ;
6797 char *kwnames[] = {
6798 (char *) "self", NULL
6799 };
6800
6801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6804 result = (int) ((arg1)->encoding);
6805
6806 resultobj = SWIG_FromInt((int)result);
6807 return resultobj;
6808 fail:
6809 return NULL;
6810 }
6811
6812
6813 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6814 PyObject *resultobj;
6815 wxNativeEncodingInfo *result;
6816 char *kwnames[] = {
6817 NULL
6818 };
6819
6820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6821 {
6822 PyThreadState* __tstate = wxPyBeginAllowThreads();
6823 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6824
6825 wxPyEndAllowThreads(__tstate);
6826 if (PyErr_Occurred()) SWIG_fail;
6827 }
6828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6829 return resultobj;
6830 fail:
6831 return NULL;
6832 }
6833
6834
6835 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6836 PyObject *resultobj;
6837 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6838 PyObject * obj0 = 0 ;
6839 char *kwnames[] = {
6840 (char *) "self", NULL
6841 };
6842
6843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6846 {
6847 PyThreadState* __tstate = wxPyBeginAllowThreads();
6848 delete arg1;
6849
6850 wxPyEndAllowThreads(__tstate);
6851 if (PyErr_Occurred()) SWIG_fail;
6852 }
6853 Py_INCREF(Py_None); resultobj = Py_None;
6854 return resultobj;
6855 fail:
6856 return NULL;
6857 }
6858
6859
6860 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6861 PyObject *resultobj;
6862 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6863 wxString *arg2 = 0 ;
6864 bool result;
6865 bool temp2 = False ;
6866 PyObject * obj0 = 0 ;
6867 PyObject * obj1 = 0 ;
6868 char *kwnames[] = {
6869 (char *) "self",(char *) "s", NULL
6870 };
6871
6872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6875 {
6876 arg2 = wxString_in_helper(obj1);
6877 if (arg2 == NULL) SWIG_fail;
6878 temp2 = True;
6879 }
6880 {
6881 PyThreadState* __tstate = wxPyBeginAllowThreads();
6882 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6883
6884 wxPyEndAllowThreads(__tstate);
6885 if (PyErr_Occurred()) SWIG_fail;
6886 }
6887 {
6888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6889 }
6890 {
6891 if (temp2)
6892 delete arg2;
6893 }
6894 return resultobj;
6895 fail:
6896 {
6897 if (temp2)
6898 delete arg2;
6899 }
6900 return NULL;
6901 }
6902
6903
6904 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6905 PyObject *resultobj;
6906 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6907 wxString result;
6908 PyObject * obj0 = 0 ;
6909 char *kwnames[] = {
6910 (char *) "self", NULL
6911 };
6912
6913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6916 {
6917 PyThreadState* __tstate = wxPyBeginAllowThreads();
6918 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6919
6920 wxPyEndAllowThreads(__tstate);
6921 if (PyErr_Occurred()) SWIG_fail;
6922 }
6923 {
6924 #if wxUSE_UNICODE
6925 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6926 #else
6927 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6928 #endif
6929 }
6930 return resultobj;
6931 fail:
6932 return NULL;
6933 }
6934
6935
6936 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6937 PyObject *obj;
6938 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6939 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6940 Py_INCREF(obj);
6941 return Py_BuildValue((char *)"");
6942 }
6943 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6944 PyObject *resultobj;
6945 int arg1 ;
6946 wxNativeEncodingInfo *result;
6947 PyObject * obj0 = 0 ;
6948 char *kwnames[] = {
6949 (char *) "encoding", NULL
6950 };
6951
6952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6953 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6954 if (PyErr_Occurred()) SWIG_fail;
6955 {
6956 PyThreadState* __tstate = wxPyBeginAllowThreads();
6957 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6958
6959 wxPyEndAllowThreads(__tstate);
6960 if (PyErr_Occurred()) SWIG_fail;
6961 }
6962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6963 return resultobj;
6964 fail:
6965 return NULL;
6966 }
6967
6968
6969 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6970 PyObject *resultobj;
6971 wxNativeEncodingInfo *arg1 = 0 ;
6972 bool result;
6973 PyObject * obj0 = 0 ;
6974 char *kwnames[] = {
6975 (char *) "info", NULL
6976 };
6977
6978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6980 SWIG_POINTER_EXCEPTION | 0)) == -1)
6981 SWIG_fail;
6982 if (arg1 == NULL) {
6983 PyErr_SetString(PyExc_TypeError,"null reference");
6984 SWIG_fail;
6985 }
6986 {
6987 PyThreadState* __tstate = wxPyBeginAllowThreads();
6988 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6989
6990 wxPyEndAllowThreads(__tstate);
6991 if (PyErr_Occurred()) SWIG_fail;
6992 }
6993 {
6994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6995 }
6996 return resultobj;
6997 fail:
6998 return NULL;
6999 }
7000
7001
7002 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7003 PyObject *resultobj;
7004 wxFontMapper *result;
7005 char *kwnames[] = {
7006 NULL
7007 };
7008
7009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7010 {
7011 PyThreadState* __tstate = wxPyBeginAllowThreads();
7012 result = (wxFontMapper *)new wxFontMapper();
7013
7014 wxPyEndAllowThreads(__tstate);
7015 if (PyErr_Occurred()) SWIG_fail;
7016 }
7017 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7018 return resultobj;
7019 fail:
7020 return NULL;
7021 }
7022
7023
7024 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7025 PyObject *resultobj;
7026 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7027 PyObject * obj0 = 0 ;
7028 char *kwnames[] = {
7029 (char *) "self", NULL
7030 };
7031
7032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7035 {
7036 PyThreadState* __tstate = wxPyBeginAllowThreads();
7037 delete arg1;
7038
7039 wxPyEndAllowThreads(__tstate);
7040 if (PyErr_Occurred()) SWIG_fail;
7041 }
7042 Py_INCREF(Py_None); resultobj = Py_None;
7043 return resultobj;
7044 fail:
7045 return NULL;
7046 }
7047
7048
7049 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7050 PyObject *resultobj;
7051 wxFontMapper *result;
7052 char *kwnames[] = {
7053 NULL
7054 };
7055
7056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7057 {
7058 PyThreadState* __tstate = wxPyBeginAllowThreads();
7059 result = (wxFontMapper *)wxFontMapper::Get();
7060
7061 wxPyEndAllowThreads(__tstate);
7062 if (PyErr_Occurred()) SWIG_fail;
7063 }
7064 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7065 return resultobj;
7066 fail:
7067 return NULL;
7068 }
7069
7070
7071 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7072 PyObject *resultobj;
7073 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7074 wxFontMapper *result;
7075 PyObject * obj0 = 0 ;
7076 char *kwnames[] = {
7077 (char *) "mapper", NULL
7078 };
7079
7080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7083 {
7084 PyThreadState* __tstate = wxPyBeginAllowThreads();
7085 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7086
7087 wxPyEndAllowThreads(__tstate);
7088 if (PyErr_Occurred()) SWIG_fail;
7089 }
7090 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7091 return resultobj;
7092 fail:
7093 return NULL;
7094 }
7095
7096
7097 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7098 PyObject *resultobj;
7099 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7100 wxString *arg2 = 0 ;
7101 bool arg3 = (bool) True ;
7102 int result;
7103 bool temp2 = False ;
7104 PyObject * obj0 = 0 ;
7105 PyObject * obj1 = 0 ;
7106 PyObject * obj2 = 0 ;
7107 char *kwnames[] = {
7108 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7109 };
7110
7111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7114 {
7115 arg2 = wxString_in_helper(obj1);
7116 if (arg2 == NULL) SWIG_fail;
7117 temp2 = True;
7118 }
7119 if (obj2) {
7120 arg3 = (bool) SWIG_AsBool(obj2);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
7123 {
7124 PyThreadState* __tstate = wxPyBeginAllowThreads();
7125 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7126
7127 wxPyEndAllowThreads(__tstate);
7128 if (PyErr_Occurred()) SWIG_fail;
7129 }
7130 resultobj = SWIG_FromInt((int)result);
7131 {
7132 if (temp2)
7133 delete arg2;
7134 }
7135 return resultobj;
7136 fail:
7137 {
7138 if (temp2)
7139 delete arg2;
7140 }
7141 return NULL;
7142 }
7143
7144
7145 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7146 PyObject *resultobj;
7147 size_t result;
7148 char *kwnames[] = {
7149 NULL
7150 };
7151
7152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7153 {
7154 PyThreadState* __tstate = wxPyBeginAllowThreads();
7155 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7156
7157 wxPyEndAllowThreads(__tstate);
7158 if (PyErr_Occurred()) SWIG_fail;
7159 }
7160 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7161 return resultobj;
7162 fail:
7163 return NULL;
7164 }
7165
7166
7167 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7168 PyObject *resultobj;
7169 size_t arg1 ;
7170 int result;
7171 PyObject * obj0 = 0 ;
7172 char *kwnames[] = {
7173 (char *) "n", NULL
7174 };
7175
7176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7177 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7178 if (PyErr_Occurred()) SWIG_fail;
7179 {
7180 PyThreadState* __tstate = wxPyBeginAllowThreads();
7181 result = (int)wxFontMapper::GetEncoding(arg1);
7182
7183 wxPyEndAllowThreads(__tstate);
7184 if (PyErr_Occurred()) SWIG_fail;
7185 }
7186 resultobj = SWIG_FromInt((int)result);
7187 return resultobj;
7188 fail:
7189 return NULL;
7190 }
7191
7192
7193 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7194 PyObject *resultobj;
7195 int arg1 ;
7196 wxString result;
7197 PyObject * obj0 = 0 ;
7198 char *kwnames[] = {
7199 (char *) "encoding", NULL
7200 };
7201
7202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7203 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7204 if (PyErr_Occurred()) SWIG_fail;
7205 {
7206 PyThreadState* __tstate = wxPyBeginAllowThreads();
7207 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7208
7209 wxPyEndAllowThreads(__tstate);
7210 if (PyErr_Occurred()) SWIG_fail;
7211 }
7212 {
7213 #if wxUSE_UNICODE
7214 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7215 #else
7216 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7217 #endif
7218 }
7219 return resultobj;
7220 fail:
7221 return NULL;
7222 }
7223
7224
7225 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7226 PyObject *resultobj;
7227 int arg1 ;
7228 wxString result;
7229 PyObject * obj0 = 0 ;
7230 char *kwnames[] = {
7231 (char *) "encoding", NULL
7232 };
7233
7234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7235 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7236 if (PyErr_Occurred()) SWIG_fail;
7237 {
7238 PyThreadState* __tstate = wxPyBeginAllowThreads();
7239 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7240
7241 wxPyEndAllowThreads(__tstate);
7242 if (PyErr_Occurred()) SWIG_fail;
7243 }
7244 {
7245 #if wxUSE_UNICODE
7246 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7247 #else
7248 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7249 #endif
7250 }
7251 return resultobj;
7252 fail:
7253 return NULL;
7254 }
7255
7256
7257 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7258 PyObject *resultobj;
7259 wxString *arg1 = 0 ;
7260 int result;
7261 bool temp1 = False ;
7262 PyObject * obj0 = 0 ;
7263 char *kwnames[] = {
7264 (char *) "name", NULL
7265 };
7266
7267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7268 {
7269 arg1 = wxString_in_helper(obj0);
7270 if (arg1 == NULL) SWIG_fail;
7271 temp1 = True;
7272 }
7273 {
7274 PyThreadState* __tstate = wxPyBeginAllowThreads();
7275 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7276
7277 wxPyEndAllowThreads(__tstate);
7278 if (PyErr_Occurred()) SWIG_fail;
7279 }
7280 resultobj = SWIG_FromInt((int)result);
7281 {
7282 if (temp1)
7283 delete arg1;
7284 }
7285 return resultobj;
7286 fail:
7287 {
7288 if (temp1)
7289 delete arg1;
7290 }
7291 return NULL;
7292 }
7293
7294
7295 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7296 PyObject *resultobj;
7297 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7298 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7299 PyObject * obj0 = 0 ;
7300 PyObject * obj1 = 0 ;
7301 char *kwnames[] = {
7302 (char *) "self",(char *) "config", NULL
7303 };
7304
7305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7308 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7310 {
7311 PyThreadState* __tstate = wxPyBeginAllowThreads();
7312 (arg1)->SetConfig(arg2);
7313
7314 wxPyEndAllowThreads(__tstate);
7315 if (PyErr_Occurred()) SWIG_fail;
7316 }
7317 Py_INCREF(Py_None); resultobj = Py_None;
7318 return resultobj;
7319 fail:
7320 return NULL;
7321 }
7322
7323
7324 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7325 PyObject *resultobj;
7326 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7327 wxString *arg2 = 0 ;
7328 bool temp2 = False ;
7329 PyObject * obj0 = 0 ;
7330 PyObject * obj1 = 0 ;
7331 char *kwnames[] = {
7332 (char *) "self",(char *) "prefix", NULL
7333 };
7334
7335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7338 {
7339 arg2 = wxString_in_helper(obj1);
7340 if (arg2 == NULL) SWIG_fail;
7341 temp2 = True;
7342 }
7343 {
7344 PyThreadState* __tstate = wxPyBeginAllowThreads();
7345 (arg1)->SetConfigPath((wxString const &)*arg2);
7346
7347 wxPyEndAllowThreads(__tstate);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 }
7350 Py_INCREF(Py_None); resultobj = Py_None;
7351 {
7352 if (temp2)
7353 delete arg2;
7354 }
7355 return resultobj;
7356 fail:
7357 {
7358 if (temp2)
7359 delete arg2;
7360 }
7361 return NULL;
7362 }
7363
7364
7365 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7366 PyObject *resultobj;
7367 wxString result;
7368 char *kwnames[] = {
7369 NULL
7370 };
7371
7372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7373 {
7374 PyThreadState* __tstate = wxPyBeginAllowThreads();
7375 result = wxFontMapper::GetDefaultConfigPath();
7376
7377 wxPyEndAllowThreads(__tstate);
7378 if (PyErr_Occurred()) SWIG_fail;
7379 }
7380 {
7381 #if wxUSE_UNICODE
7382 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7383 #else
7384 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7385 #endif
7386 }
7387 return resultobj;
7388 fail:
7389 return NULL;
7390 }
7391
7392
7393 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7394 PyObject *resultobj;
7395 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7396 int arg2 ;
7397 wxString const &arg3_defvalue = wxPyEmptyString ;
7398 wxString *arg3 = (wxString *) &arg3_defvalue ;
7399 bool arg4 = (bool) True ;
7400 PyObject *result;
7401 bool temp3 = False ;
7402 PyObject * obj0 = 0 ;
7403 PyObject * obj1 = 0 ;
7404 PyObject * obj2 = 0 ;
7405 PyObject * obj3 = 0 ;
7406 char *kwnames[] = {
7407 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7408 };
7409
7410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7413 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7414 if (PyErr_Occurred()) SWIG_fail;
7415 if (obj2) {
7416 {
7417 arg3 = wxString_in_helper(obj2);
7418 if (arg3 == NULL) SWIG_fail;
7419 temp3 = True;
7420 }
7421 }
7422 if (obj3) {
7423 arg4 = (bool) SWIG_AsBool(obj3);
7424 if (PyErr_Occurred()) SWIG_fail;
7425 }
7426 {
7427 PyThreadState* __tstate = wxPyBeginAllowThreads();
7428 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7429
7430 wxPyEndAllowThreads(__tstate);
7431 if (PyErr_Occurred()) SWIG_fail;
7432 }
7433 resultobj = result;
7434 {
7435 if (temp3)
7436 delete arg3;
7437 }
7438 return resultobj;
7439 fail:
7440 {
7441 if (temp3)
7442 delete arg3;
7443 }
7444 return NULL;
7445 }
7446
7447
7448 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7449 PyObject *resultobj;
7450 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7451 int arg2 ;
7452 wxString const &arg3_defvalue = wxPyEmptyString ;
7453 wxString *arg3 = (wxString *) &arg3_defvalue ;
7454 bool result;
7455 bool temp3 = False ;
7456 PyObject * obj0 = 0 ;
7457 PyObject * obj1 = 0 ;
7458 PyObject * obj2 = 0 ;
7459 char *kwnames[] = {
7460 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7461 };
7462
7463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7466 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7467 if (PyErr_Occurred()) SWIG_fail;
7468 if (obj2) {
7469 {
7470 arg3 = wxString_in_helper(obj2);
7471 if (arg3 == NULL) SWIG_fail;
7472 temp3 = True;
7473 }
7474 }
7475 {
7476 PyThreadState* __tstate = wxPyBeginAllowThreads();
7477 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7478
7479 wxPyEndAllowThreads(__tstate);
7480 if (PyErr_Occurred()) SWIG_fail;
7481 }
7482 {
7483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7484 }
7485 {
7486 if (temp3)
7487 delete arg3;
7488 }
7489 return resultobj;
7490 fail:
7491 {
7492 if (temp3)
7493 delete arg3;
7494 }
7495 return NULL;
7496 }
7497
7498
7499 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7500 PyObject *resultobj;
7501 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7502 wxWindow *arg2 = (wxWindow *) 0 ;
7503 PyObject * obj0 = 0 ;
7504 PyObject * obj1 = 0 ;
7505 char *kwnames[] = {
7506 (char *) "self",(char *) "parent", NULL
7507 };
7508
7509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7512 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7514 {
7515 PyThreadState* __tstate = wxPyBeginAllowThreads();
7516 (arg1)->SetDialogParent(arg2);
7517
7518 wxPyEndAllowThreads(__tstate);
7519 if (PyErr_Occurred()) SWIG_fail;
7520 }
7521 Py_INCREF(Py_None); resultobj = Py_None;
7522 return resultobj;
7523 fail:
7524 return NULL;
7525 }
7526
7527
7528 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7529 PyObject *resultobj;
7530 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7531 wxString *arg2 = 0 ;
7532 bool temp2 = False ;
7533 PyObject * obj0 = 0 ;
7534 PyObject * obj1 = 0 ;
7535 char *kwnames[] = {
7536 (char *) "self",(char *) "title", NULL
7537 };
7538
7539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7542 {
7543 arg2 = wxString_in_helper(obj1);
7544 if (arg2 == NULL) SWIG_fail;
7545 temp2 = True;
7546 }
7547 {
7548 PyThreadState* __tstate = wxPyBeginAllowThreads();
7549 (arg1)->SetDialogTitle((wxString const &)*arg2);
7550
7551 wxPyEndAllowThreads(__tstate);
7552 if (PyErr_Occurred()) SWIG_fail;
7553 }
7554 Py_INCREF(Py_None); resultobj = Py_None;
7555 {
7556 if (temp2)
7557 delete arg2;
7558 }
7559 return resultobj;
7560 fail:
7561 {
7562 if (temp2)
7563 delete arg2;
7564 }
7565 return NULL;
7566 }
7567
7568
7569 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7570 PyObject *obj;
7571 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7572 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7573 Py_INCREF(obj);
7574 return Py_BuildValue((char *)"");
7575 }
7576 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7577 PyObject *resultobj;
7578 int arg1 ;
7579 int arg2 ;
7580 int arg3 ;
7581 int arg4 ;
7582 bool arg5 = (bool) False ;
7583 wxString const &arg6_defvalue = wxPyEmptyString ;
7584 wxString *arg6 = (wxString *) &arg6_defvalue ;
7585 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7586 wxFont *result;
7587 bool temp6 = False ;
7588 PyObject * obj0 = 0 ;
7589 PyObject * obj1 = 0 ;
7590 PyObject * obj2 = 0 ;
7591 PyObject * obj3 = 0 ;
7592 PyObject * obj4 = 0 ;
7593 PyObject * obj5 = 0 ;
7594 PyObject * obj6 = 0 ;
7595 char *kwnames[] = {
7596 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7597 };
7598
7599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7600 arg1 = (int) SWIG_AsInt(obj0);
7601 if (PyErr_Occurred()) SWIG_fail;
7602 arg2 = (int) SWIG_AsInt(obj1);
7603 if (PyErr_Occurred()) SWIG_fail;
7604 arg3 = (int) SWIG_AsInt(obj2);
7605 if (PyErr_Occurred()) SWIG_fail;
7606 arg4 = (int) SWIG_AsInt(obj3);
7607 if (PyErr_Occurred()) SWIG_fail;
7608 if (obj4) {
7609 arg5 = (bool) SWIG_AsBool(obj4);
7610 if (PyErr_Occurred()) SWIG_fail;
7611 }
7612 if (obj5) {
7613 {
7614 arg6 = wxString_in_helper(obj5);
7615 if (arg6 == NULL) SWIG_fail;
7616 temp6 = True;
7617 }
7618 }
7619 if (obj6) {
7620 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7621 if (PyErr_Occurred()) SWIG_fail;
7622 }
7623 {
7624 PyThreadState* __tstate = wxPyBeginAllowThreads();
7625 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7626
7627 wxPyEndAllowThreads(__tstate);
7628 if (PyErr_Occurred()) SWIG_fail;
7629 }
7630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7631 {
7632 if (temp6)
7633 delete arg6;
7634 }
7635 return resultobj;
7636 fail:
7637 {
7638 if (temp6)
7639 delete arg6;
7640 }
7641 return NULL;
7642 }
7643
7644
7645 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7646 PyObject *resultobj;
7647 wxFont *arg1 = (wxFont *) 0 ;
7648 PyObject * obj0 = 0 ;
7649 char *kwnames[] = {
7650 (char *) "self", NULL
7651 };
7652
7653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7656 {
7657 PyThreadState* __tstate = wxPyBeginAllowThreads();
7658 delete arg1;
7659
7660 wxPyEndAllowThreads(__tstate);
7661 if (PyErr_Occurred()) SWIG_fail;
7662 }
7663 Py_INCREF(Py_None); resultobj = Py_None;
7664 return resultobj;
7665 fail:
7666 return NULL;
7667 }
7668
7669
7670 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7671 PyObject *resultobj;
7672 wxNativeFontInfo *arg1 = 0 ;
7673 wxFont *result;
7674 PyObject * obj0 = 0 ;
7675 char *kwnames[] = {
7676 (char *) "info", NULL
7677 };
7678
7679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7681 SWIG_POINTER_EXCEPTION | 0)) == -1)
7682 SWIG_fail;
7683 if (arg1 == NULL) {
7684 PyErr_SetString(PyExc_TypeError,"null reference");
7685 SWIG_fail;
7686 }
7687 {
7688 PyThreadState* __tstate = wxPyBeginAllowThreads();
7689 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7690
7691 wxPyEndAllowThreads(__tstate);
7692 if (PyErr_Occurred()) SWIG_fail;
7693 }
7694 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7695 return resultobj;
7696 fail:
7697 return NULL;
7698 }
7699
7700
7701 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7702 PyObject *resultobj;
7703 wxString *arg1 = 0 ;
7704 wxFont *result;
7705 bool temp1 = False ;
7706 PyObject * obj0 = 0 ;
7707 char *kwnames[] = {
7708 (char *) "info", NULL
7709 };
7710
7711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7712 {
7713 arg1 = wxString_in_helper(obj0);
7714 if (arg1 == NULL) SWIG_fail;
7715 temp1 = True;
7716 }
7717 {
7718 PyThreadState* __tstate = wxPyBeginAllowThreads();
7719 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7720
7721 wxPyEndAllowThreads(__tstate);
7722 if (PyErr_Occurred()) SWIG_fail;
7723 }
7724 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7725 {
7726 if (temp1)
7727 delete arg1;
7728 }
7729 return resultobj;
7730 fail:
7731 {
7732 if (temp1)
7733 delete arg1;
7734 }
7735 return NULL;
7736 }
7737
7738
7739 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7740 PyObject *resultobj;
7741 int arg1 ;
7742 int arg2 ;
7743 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7744 wxString const &arg4_defvalue = wxPyEmptyString ;
7745 wxString *arg4 = (wxString *) &arg4_defvalue ;
7746 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7747 wxFont *result;
7748 bool temp4 = False ;
7749 PyObject * obj0 = 0 ;
7750 PyObject * obj1 = 0 ;
7751 PyObject * obj2 = 0 ;
7752 PyObject * obj3 = 0 ;
7753 PyObject * obj4 = 0 ;
7754 char *kwnames[] = {
7755 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7756 };
7757
7758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7759 arg1 = (int) SWIG_AsInt(obj0);
7760 if (PyErr_Occurred()) SWIG_fail;
7761 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7762 if (PyErr_Occurred()) SWIG_fail;
7763 if (obj2) {
7764 arg3 = (int) SWIG_AsInt(obj2);
7765 if (PyErr_Occurred()) SWIG_fail;
7766 }
7767 if (obj3) {
7768 {
7769 arg4 = wxString_in_helper(obj3);
7770 if (arg4 == NULL) SWIG_fail;
7771 temp4 = True;
7772 }
7773 }
7774 if (obj4) {
7775 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7776 if (PyErr_Occurred()) SWIG_fail;
7777 }
7778 {
7779 PyThreadState* __tstate = wxPyBeginAllowThreads();
7780 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7781
7782 wxPyEndAllowThreads(__tstate);
7783 if (PyErr_Occurred()) SWIG_fail;
7784 }
7785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7786 {
7787 if (temp4)
7788 delete arg4;
7789 }
7790 return resultobj;
7791 fail:
7792 {
7793 if (temp4)
7794 delete arg4;
7795 }
7796 return NULL;
7797 }
7798
7799
7800 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7801 PyObject *resultobj;
7802 wxFont *arg1 = (wxFont *) 0 ;
7803 bool result;
7804 PyObject * obj0 = 0 ;
7805 char *kwnames[] = {
7806 (char *) "self", NULL
7807 };
7808
7809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7812 {
7813 PyThreadState* __tstate = wxPyBeginAllowThreads();
7814 result = (bool)((wxFont const *)arg1)->Ok();
7815
7816 wxPyEndAllowThreads(__tstate);
7817 if (PyErr_Occurred()) SWIG_fail;
7818 }
7819 {
7820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7821 }
7822 return resultobj;
7823 fail:
7824 return NULL;
7825 }
7826
7827
7828 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7829 PyObject *resultobj;
7830 wxFont *arg1 = (wxFont *) 0 ;
7831 wxFont *arg2 = (wxFont *) 0 ;
7832 bool result;
7833 PyObject * obj0 = 0 ;
7834 PyObject * obj1 = 0 ;
7835 char *kwnames[] = {
7836 (char *) "self",(char *) "other", NULL
7837 };
7838
7839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7842 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7844 {
7845 PyThreadState* __tstate = wxPyBeginAllowThreads();
7846 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7847
7848 wxPyEndAllowThreads(__tstate);
7849 if (PyErr_Occurred()) SWIG_fail;
7850 }
7851 {
7852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7853 }
7854 return resultobj;
7855 fail:
7856 return NULL;
7857 }
7858
7859
7860 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7861 PyObject *resultobj;
7862 wxFont *arg1 = (wxFont *) 0 ;
7863 wxFont *arg2 = (wxFont *) 0 ;
7864 bool result;
7865 PyObject * obj0 = 0 ;
7866 PyObject * obj1 = 0 ;
7867 char *kwnames[] = {
7868 (char *) "self",(char *) "other", NULL
7869 };
7870
7871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7874 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7876 {
7877 PyThreadState* __tstate = wxPyBeginAllowThreads();
7878 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7879
7880 wxPyEndAllowThreads(__tstate);
7881 if (PyErr_Occurred()) SWIG_fail;
7882 }
7883 {
7884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7885 }
7886 return resultobj;
7887 fail:
7888 return NULL;
7889 }
7890
7891
7892 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7893 PyObject *resultobj;
7894 wxFont *arg1 = (wxFont *) 0 ;
7895 int result;
7896 PyObject * obj0 = 0 ;
7897 char *kwnames[] = {
7898 (char *) "self", NULL
7899 };
7900
7901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7904 {
7905 PyThreadState* __tstate = wxPyBeginAllowThreads();
7906 result = (int)((wxFont const *)arg1)->GetPointSize();
7907
7908 wxPyEndAllowThreads(__tstate);
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
7911 resultobj = SWIG_FromInt((int)result);
7912 return resultobj;
7913 fail:
7914 return NULL;
7915 }
7916
7917
7918 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7919 PyObject *resultobj;
7920 wxFont *arg1 = (wxFont *) 0 ;
7921 int result;
7922 PyObject * obj0 = 0 ;
7923 char *kwnames[] = {
7924 (char *) "self", NULL
7925 };
7926
7927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7930 {
7931 PyThreadState* __tstate = wxPyBeginAllowThreads();
7932 result = (int)((wxFont const *)arg1)->GetFamily();
7933
7934 wxPyEndAllowThreads(__tstate);
7935 if (PyErr_Occurred()) SWIG_fail;
7936 }
7937 resultobj = SWIG_FromInt((int)result);
7938 return resultobj;
7939 fail:
7940 return NULL;
7941 }
7942
7943
7944 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7945 PyObject *resultobj;
7946 wxFont *arg1 = (wxFont *) 0 ;
7947 int result;
7948 PyObject * obj0 = 0 ;
7949 char *kwnames[] = {
7950 (char *) "self", NULL
7951 };
7952
7953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7956 {
7957 PyThreadState* __tstate = wxPyBeginAllowThreads();
7958 result = (int)((wxFont const *)arg1)->GetStyle();
7959
7960 wxPyEndAllowThreads(__tstate);
7961 if (PyErr_Occurred()) SWIG_fail;
7962 }
7963 resultobj = SWIG_FromInt((int)result);
7964 return resultobj;
7965 fail:
7966 return NULL;
7967 }
7968
7969
7970 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7971 PyObject *resultobj;
7972 wxFont *arg1 = (wxFont *) 0 ;
7973 int result;
7974 PyObject * obj0 = 0 ;
7975 char *kwnames[] = {
7976 (char *) "self", NULL
7977 };
7978
7979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7982 {
7983 PyThreadState* __tstate = wxPyBeginAllowThreads();
7984 result = (int)((wxFont const *)arg1)->GetWeight();
7985
7986 wxPyEndAllowThreads(__tstate);
7987 if (PyErr_Occurred()) SWIG_fail;
7988 }
7989 resultobj = SWIG_FromInt((int)result);
7990 return resultobj;
7991 fail:
7992 return NULL;
7993 }
7994
7995
7996 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7997 PyObject *resultobj;
7998 wxFont *arg1 = (wxFont *) 0 ;
7999 bool result;
8000 PyObject * obj0 = 0 ;
8001 char *kwnames[] = {
8002 (char *) "self", NULL
8003 };
8004
8005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8008 {
8009 PyThreadState* __tstate = wxPyBeginAllowThreads();
8010 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8011
8012 wxPyEndAllowThreads(__tstate);
8013 if (PyErr_Occurred()) SWIG_fail;
8014 }
8015 {
8016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8017 }
8018 return resultobj;
8019 fail:
8020 return NULL;
8021 }
8022
8023
8024 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8025 PyObject *resultobj;
8026 wxFont *arg1 = (wxFont *) 0 ;
8027 wxString result;
8028 PyObject * obj0 = 0 ;
8029 char *kwnames[] = {
8030 (char *) "self", NULL
8031 };
8032
8033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8036 {
8037 PyThreadState* __tstate = wxPyBeginAllowThreads();
8038 result = ((wxFont const *)arg1)->GetFaceName();
8039
8040 wxPyEndAllowThreads(__tstate);
8041 if (PyErr_Occurred()) SWIG_fail;
8042 }
8043 {
8044 #if wxUSE_UNICODE
8045 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8046 #else
8047 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8048 #endif
8049 }
8050 return resultobj;
8051 fail:
8052 return NULL;
8053 }
8054
8055
8056 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8057 PyObject *resultobj;
8058 wxFont *arg1 = (wxFont *) 0 ;
8059 int result;
8060 PyObject * obj0 = 0 ;
8061 char *kwnames[] = {
8062 (char *) "self", NULL
8063 };
8064
8065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8068 {
8069 PyThreadState* __tstate = wxPyBeginAllowThreads();
8070 result = (int)((wxFont const *)arg1)->GetEncoding();
8071
8072 wxPyEndAllowThreads(__tstate);
8073 if (PyErr_Occurred()) SWIG_fail;
8074 }
8075 resultobj = SWIG_FromInt((int)result);
8076 return resultobj;
8077 fail:
8078 return NULL;
8079 }
8080
8081
8082 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8083 PyObject *resultobj;
8084 wxFont *arg1 = (wxFont *) 0 ;
8085 wxNativeFontInfo *result;
8086 PyObject * obj0 = 0 ;
8087 char *kwnames[] = {
8088 (char *) "self", NULL
8089 };
8090
8091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8094 {
8095 PyThreadState* __tstate = wxPyBeginAllowThreads();
8096 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8097
8098 wxPyEndAllowThreads(__tstate);
8099 if (PyErr_Occurred()) SWIG_fail;
8100 }
8101 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8102 return resultobj;
8103 fail:
8104 return NULL;
8105 }
8106
8107
8108 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8109 PyObject *resultobj;
8110 wxFont *arg1 = (wxFont *) 0 ;
8111 bool result;
8112 PyObject * obj0 = 0 ;
8113 char *kwnames[] = {
8114 (char *) "self", NULL
8115 };
8116
8117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8120 {
8121 PyThreadState* __tstate = wxPyBeginAllowThreads();
8122 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8123
8124 wxPyEndAllowThreads(__tstate);
8125 if (PyErr_Occurred()) SWIG_fail;
8126 }
8127 {
8128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8129 }
8130 return resultobj;
8131 fail:
8132 return NULL;
8133 }
8134
8135
8136 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8137 PyObject *resultobj;
8138 wxFont *arg1 = (wxFont *) 0 ;
8139 wxString result;
8140 PyObject * obj0 = 0 ;
8141 char *kwnames[] = {
8142 (char *) "self", NULL
8143 };
8144
8145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8148 {
8149 PyThreadState* __tstate = wxPyBeginAllowThreads();
8150 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8151
8152 wxPyEndAllowThreads(__tstate);
8153 if (PyErr_Occurred()) SWIG_fail;
8154 }
8155 {
8156 #if wxUSE_UNICODE
8157 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8158 #else
8159 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8160 #endif
8161 }
8162 return resultobj;
8163 fail:
8164 return NULL;
8165 }
8166
8167
8168 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8169 PyObject *resultobj;
8170 wxFont *arg1 = (wxFont *) 0 ;
8171 wxString result;
8172 PyObject * obj0 = 0 ;
8173 char *kwnames[] = {
8174 (char *) "self", NULL
8175 };
8176
8177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8180 {
8181 PyThreadState* __tstate = wxPyBeginAllowThreads();
8182 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8183
8184 wxPyEndAllowThreads(__tstate);
8185 if (PyErr_Occurred()) SWIG_fail;
8186 }
8187 {
8188 #if wxUSE_UNICODE
8189 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8190 #else
8191 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8192 #endif
8193 }
8194 return resultobj;
8195 fail:
8196 return NULL;
8197 }
8198
8199
8200 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8201 PyObject *resultobj;
8202 wxFont *arg1 = (wxFont *) 0 ;
8203 int arg2 ;
8204 PyObject * obj0 = 0 ;
8205 PyObject * obj1 = 0 ;
8206 char *kwnames[] = {
8207 (char *) "self",(char *) "pointSize", NULL
8208 };
8209
8210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8213 arg2 = (int) SWIG_AsInt(obj1);
8214 if (PyErr_Occurred()) SWIG_fail;
8215 {
8216 PyThreadState* __tstate = wxPyBeginAllowThreads();
8217 (arg1)->SetPointSize(arg2);
8218
8219 wxPyEndAllowThreads(__tstate);
8220 if (PyErr_Occurred()) SWIG_fail;
8221 }
8222 Py_INCREF(Py_None); resultobj = Py_None;
8223 return resultobj;
8224 fail:
8225 return NULL;
8226 }
8227
8228
8229 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8230 PyObject *resultobj;
8231 wxFont *arg1 = (wxFont *) 0 ;
8232 int arg2 ;
8233 PyObject * obj0 = 0 ;
8234 PyObject * obj1 = 0 ;
8235 char *kwnames[] = {
8236 (char *) "self",(char *) "family", NULL
8237 };
8238
8239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8242 arg2 = (int) SWIG_AsInt(obj1);
8243 if (PyErr_Occurred()) SWIG_fail;
8244 {
8245 PyThreadState* __tstate = wxPyBeginAllowThreads();
8246 (arg1)->SetFamily(arg2);
8247
8248 wxPyEndAllowThreads(__tstate);
8249 if (PyErr_Occurred()) SWIG_fail;
8250 }
8251 Py_INCREF(Py_None); resultobj = Py_None;
8252 return resultobj;
8253 fail:
8254 return NULL;
8255 }
8256
8257
8258 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8259 PyObject *resultobj;
8260 wxFont *arg1 = (wxFont *) 0 ;
8261 int arg2 ;
8262 PyObject * obj0 = 0 ;
8263 PyObject * obj1 = 0 ;
8264 char *kwnames[] = {
8265 (char *) "self",(char *) "style", NULL
8266 };
8267
8268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8271 arg2 = (int) SWIG_AsInt(obj1);
8272 if (PyErr_Occurred()) SWIG_fail;
8273 {
8274 PyThreadState* __tstate = wxPyBeginAllowThreads();
8275 (arg1)->SetStyle(arg2);
8276
8277 wxPyEndAllowThreads(__tstate);
8278 if (PyErr_Occurred()) SWIG_fail;
8279 }
8280 Py_INCREF(Py_None); resultobj = Py_None;
8281 return resultobj;
8282 fail:
8283 return NULL;
8284 }
8285
8286
8287 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8288 PyObject *resultobj;
8289 wxFont *arg1 = (wxFont *) 0 ;
8290 int arg2 ;
8291 PyObject * obj0 = 0 ;
8292 PyObject * obj1 = 0 ;
8293 char *kwnames[] = {
8294 (char *) "self",(char *) "weight", NULL
8295 };
8296
8297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8300 arg2 = (int) SWIG_AsInt(obj1);
8301 if (PyErr_Occurred()) SWIG_fail;
8302 {
8303 PyThreadState* __tstate = wxPyBeginAllowThreads();
8304 (arg1)->SetWeight(arg2);
8305
8306 wxPyEndAllowThreads(__tstate);
8307 if (PyErr_Occurred()) SWIG_fail;
8308 }
8309 Py_INCREF(Py_None); resultobj = Py_None;
8310 return resultobj;
8311 fail:
8312 return NULL;
8313 }
8314
8315
8316 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8317 PyObject *resultobj;
8318 wxFont *arg1 = (wxFont *) 0 ;
8319 wxString *arg2 = 0 ;
8320 bool temp2 = False ;
8321 PyObject * obj0 = 0 ;
8322 PyObject * obj1 = 0 ;
8323 char *kwnames[] = {
8324 (char *) "self",(char *) "faceName", NULL
8325 };
8326
8327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8330 {
8331 arg2 = wxString_in_helper(obj1);
8332 if (arg2 == NULL) SWIG_fail;
8333 temp2 = True;
8334 }
8335 {
8336 PyThreadState* __tstate = wxPyBeginAllowThreads();
8337 (arg1)->SetFaceName((wxString const &)*arg2);
8338
8339 wxPyEndAllowThreads(__tstate);
8340 if (PyErr_Occurred()) SWIG_fail;
8341 }
8342 Py_INCREF(Py_None); resultobj = Py_None;
8343 {
8344 if (temp2)
8345 delete arg2;
8346 }
8347 return resultobj;
8348 fail:
8349 {
8350 if (temp2)
8351 delete arg2;
8352 }
8353 return NULL;
8354 }
8355
8356
8357 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8358 PyObject *resultobj;
8359 wxFont *arg1 = (wxFont *) 0 ;
8360 bool arg2 ;
8361 PyObject * obj0 = 0 ;
8362 PyObject * obj1 = 0 ;
8363 char *kwnames[] = {
8364 (char *) "self",(char *) "underlined", NULL
8365 };
8366
8367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8370 arg2 = (bool) SWIG_AsBool(obj1);
8371 if (PyErr_Occurred()) SWIG_fail;
8372 {
8373 PyThreadState* __tstate = wxPyBeginAllowThreads();
8374 (arg1)->SetUnderlined(arg2);
8375
8376 wxPyEndAllowThreads(__tstate);
8377 if (PyErr_Occurred()) SWIG_fail;
8378 }
8379 Py_INCREF(Py_None); resultobj = Py_None;
8380 return resultobj;
8381 fail:
8382 return NULL;
8383 }
8384
8385
8386 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8387 PyObject *resultobj;
8388 wxFont *arg1 = (wxFont *) 0 ;
8389 int arg2 ;
8390 PyObject * obj0 = 0 ;
8391 PyObject * obj1 = 0 ;
8392 char *kwnames[] = {
8393 (char *) "self",(char *) "encoding", NULL
8394 };
8395
8396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8399 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8400 if (PyErr_Occurred()) SWIG_fail;
8401 {
8402 PyThreadState* __tstate = wxPyBeginAllowThreads();
8403 (arg1)->SetEncoding((wxFontEncoding )arg2);
8404
8405 wxPyEndAllowThreads(__tstate);
8406 if (PyErr_Occurred()) SWIG_fail;
8407 }
8408 Py_INCREF(Py_None); resultobj = Py_None;
8409 return resultobj;
8410 fail:
8411 return NULL;
8412 }
8413
8414
8415 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8416 PyObject *resultobj;
8417 wxFont *arg1 = (wxFont *) 0 ;
8418 wxNativeFontInfo *arg2 = 0 ;
8419 PyObject * obj0 = 0 ;
8420 PyObject * obj1 = 0 ;
8421 char *kwnames[] = {
8422 (char *) "self",(char *) "info", NULL
8423 };
8424
8425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8428 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8429 SWIG_POINTER_EXCEPTION | 0)) == -1)
8430 SWIG_fail;
8431 if (arg2 == NULL) {
8432 PyErr_SetString(PyExc_TypeError,"null reference");
8433 SWIG_fail;
8434 }
8435 {
8436 PyThreadState* __tstate = wxPyBeginAllowThreads();
8437 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8438
8439 wxPyEndAllowThreads(__tstate);
8440 if (PyErr_Occurred()) SWIG_fail;
8441 }
8442 Py_INCREF(Py_None); resultobj = Py_None;
8443 return resultobj;
8444 fail:
8445 return NULL;
8446 }
8447
8448
8449 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8450 PyObject *resultobj;
8451 wxFont *arg1 = (wxFont *) 0 ;
8452 wxString *arg2 = 0 ;
8453 bool temp2 = False ;
8454 PyObject * obj0 = 0 ;
8455 PyObject * obj1 = 0 ;
8456 char *kwnames[] = {
8457 (char *) "self",(char *) "info", NULL
8458 };
8459
8460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8463 {
8464 arg2 = wxString_in_helper(obj1);
8465 if (arg2 == NULL) SWIG_fail;
8466 temp2 = True;
8467 }
8468 {
8469 PyThreadState* __tstate = wxPyBeginAllowThreads();
8470 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8471
8472 wxPyEndAllowThreads(__tstate);
8473 if (PyErr_Occurred()) SWIG_fail;
8474 }
8475 Py_INCREF(Py_None); resultobj = Py_None;
8476 {
8477 if (temp2)
8478 delete arg2;
8479 }
8480 return resultobj;
8481 fail:
8482 {
8483 if (temp2)
8484 delete arg2;
8485 }
8486 return NULL;
8487 }
8488
8489
8490 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8491 PyObject *resultobj;
8492 wxFont *arg1 = (wxFont *) 0 ;
8493 wxString *arg2 = 0 ;
8494 bool temp2 = False ;
8495 PyObject * obj0 = 0 ;
8496 PyObject * obj1 = 0 ;
8497 char *kwnames[] = {
8498 (char *) "self",(char *) "info", NULL
8499 };
8500
8501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8504 {
8505 arg2 = wxString_in_helper(obj1);
8506 if (arg2 == NULL) SWIG_fail;
8507 temp2 = True;
8508 }
8509 {
8510 PyThreadState* __tstate = wxPyBeginAllowThreads();
8511 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8512
8513 wxPyEndAllowThreads(__tstate);
8514 if (PyErr_Occurred()) SWIG_fail;
8515 }
8516 Py_INCREF(Py_None); resultobj = Py_None;
8517 {
8518 if (temp2)
8519 delete arg2;
8520 }
8521 return resultobj;
8522 fail:
8523 {
8524 if (temp2)
8525 delete arg2;
8526 }
8527 return NULL;
8528 }
8529
8530
8531 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8532 PyObject *resultobj;
8533 wxFont *arg1 = (wxFont *) 0 ;
8534 wxString result;
8535 PyObject * obj0 = 0 ;
8536 char *kwnames[] = {
8537 (char *) "self", NULL
8538 };
8539
8540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8543 {
8544 PyThreadState* __tstate = wxPyBeginAllowThreads();
8545 result = ((wxFont const *)arg1)->GetFamilyString();
8546
8547 wxPyEndAllowThreads(__tstate);
8548 if (PyErr_Occurred()) SWIG_fail;
8549 }
8550 {
8551 #if wxUSE_UNICODE
8552 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8553 #else
8554 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8555 #endif
8556 }
8557 return resultobj;
8558 fail:
8559 return NULL;
8560 }
8561
8562
8563 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8564 PyObject *resultobj;
8565 wxFont *arg1 = (wxFont *) 0 ;
8566 wxString result;
8567 PyObject * obj0 = 0 ;
8568 char *kwnames[] = {
8569 (char *) "self", NULL
8570 };
8571
8572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8575 {
8576 PyThreadState* __tstate = wxPyBeginAllowThreads();
8577 result = ((wxFont const *)arg1)->GetStyleString();
8578
8579 wxPyEndAllowThreads(__tstate);
8580 if (PyErr_Occurred()) SWIG_fail;
8581 }
8582 {
8583 #if wxUSE_UNICODE
8584 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8585 #else
8586 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8587 #endif
8588 }
8589 return resultobj;
8590 fail:
8591 return NULL;
8592 }
8593
8594
8595 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8596 PyObject *resultobj;
8597 wxFont *arg1 = (wxFont *) 0 ;
8598 wxString result;
8599 PyObject * obj0 = 0 ;
8600 char *kwnames[] = {
8601 (char *) "self", NULL
8602 };
8603
8604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8607 {
8608 PyThreadState* __tstate = wxPyBeginAllowThreads();
8609 result = ((wxFont const *)arg1)->GetWeightString();
8610
8611 wxPyEndAllowThreads(__tstate);
8612 if (PyErr_Occurred()) SWIG_fail;
8613 }
8614 {
8615 #if wxUSE_UNICODE
8616 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8617 #else
8618 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8619 #endif
8620 }
8621 return resultobj;
8622 fail:
8623 return NULL;
8624 }
8625
8626
8627 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8628 PyObject *resultobj;
8629 wxFont *arg1 = (wxFont *) 0 ;
8630 bool arg2 = (bool) True ;
8631 PyObject * obj0 = 0 ;
8632 PyObject * obj1 = 0 ;
8633 char *kwnames[] = {
8634 (char *) "self",(char *) "no", NULL
8635 };
8636
8637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8640 if (obj1) {
8641 arg2 = (bool) SWIG_AsBool(obj1);
8642 if (PyErr_Occurred()) SWIG_fail;
8643 }
8644 {
8645 PyThreadState* __tstate = wxPyBeginAllowThreads();
8646 (arg1)->SetNoAntiAliasing(arg2);
8647
8648 wxPyEndAllowThreads(__tstate);
8649 if (PyErr_Occurred()) SWIG_fail;
8650 }
8651 Py_INCREF(Py_None); resultobj = Py_None;
8652 return resultobj;
8653 fail:
8654 return NULL;
8655 }
8656
8657
8658 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8659 PyObject *resultobj;
8660 wxFont *arg1 = (wxFont *) 0 ;
8661 bool result;
8662 PyObject * obj0 = 0 ;
8663 char *kwnames[] = {
8664 (char *) "self", NULL
8665 };
8666
8667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8670 {
8671 PyThreadState* __tstate = wxPyBeginAllowThreads();
8672 result = (bool)(arg1)->GetNoAntiAliasing();
8673
8674 wxPyEndAllowThreads(__tstate);
8675 if (PyErr_Occurred()) SWIG_fail;
8676 }
8677 {
8678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8679 }
8680 return resultobj;
8681 fail:
8682 return NULL;
8683 }
8684
8685
8686 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8687 PyObject *resultobj;
8688 int result;
8689 char *kwnames[] = {
8690 NULL
8691 };
8692
8693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8694 {
8695 PyThreadState* __tstate = wxPyBeginAllowThreads();
8696 result = (int)wxFont::GetDefaultEncoding();
8697
8698 wxPyEndAllowThreads(__tstate);
8699 if (PyErr_Occurred()) SWIG_fail;
8700 }
8701 resultobj = SWIG_FromInt((int)result);
8702 return resultobj;
8703 fail:
8704 return NULL;
8705 }
8706
8707
8708 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8709 PyObject *resultobj;
8710 int arg1 ;
8711 PyObject * obj0 = 0 ;
8712 char *kwnames[] = {
8713 (char *) "encoding", NULL
8714 };
8715
8716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8717 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8718 if (PyErr_Occurred()) SWIG_fail;
8719 {
8720 PyThreadState* __tstate = wxPyBeginAllowThreads();
8721 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8722
8723 wxPyEndAllowThreads(__tstate);
8724 if (PyErr_Occurred()) SWIG_fail;
8725 }
8726 Py_INCREF(Py_None); resultobj = Py_None;
8727 return resultobj;
8728 fail:
8729 return NULL;
8730 }
8731
8732
8733 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8734 PyObject *obj;
8735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8736 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8737 Py_INCREF(obj);
8738 return Py_BuildValue((char *)"");
8739 }
8740 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8741 PyObject *resultobj;
8742 wxPyFontEnumerator *result;
8743 char *kwnames[] = {
8744 NULL
8745 };
8746
8747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8748 {
8749 PyThreadState* __tstate = wxPyBeginAllowThreads();
8750 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8751
8752 wxPyEndAllowThreads(__tstate);
8753 if (PyErr_Occurred()) SWIG_fail;
8754 }
8755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8756 return resultobj;
8757 fail:
8758 return NULL;
8759 }
8760
8761
8762 static 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;
8771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
8787 static 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;
8802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8804 arg2 = obj1;
8805 arg3 = obj2;
8806 arg4 = (bool) SWIG_AsBool(obj3);
8807 if (PyErr_Occurred()) SWIG_fail;
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
8822 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8823 PyObject *resultobj;
8824 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8825 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8826 bool arg3 = (bool) False ;
8827 bool result;
8828 PyObject * obj0 = 0 ;
8829 PyObject * obj1 = 0 ;
8830 PyObject * obj2 = 0 ;
8831 char *kwnames[] = {
8832 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8833 };
8834
8835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8838 if (obj1) {
8839 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8840 if (PyErr_Occurred()) SWIG_fail;
8841 }
8842 if (obj2) {
8843 arg3 = (bool) SWIG_AsBool(obj2);
8844 if (PyErr_Occurred()) SWIG_fail;
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 }
8853 {
8854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8855 }
8856 return resultobj;
8857 fail:
8858 return NULL;
8859 }
8860
8861
8862 static 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;
8868 bool temp2 = False ;
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;
8876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8878 if (obj1) {
8879 {
8880 arg2 = wxString_in_helper(obj1);
8881 if (arg2 == NULL) SWIG_fail;
8882 temp2 = True;
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 }
8892 {
8893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8894 }
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
8909 static 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;
8919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
8935 static 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;
8945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
8961 static 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 }
8968 static 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 ;
8973 PyObject * obj1 = 0 ;
8974 char *kwnames[] = {
8975 (char *) "self",(char *) "Language", NULL
8976 };
8977
8978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
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;
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
8992 static 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;
9002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9004 result = (int) ((arg1)->Language);
9005
9006 resultobj = SWIG_FromInt((int)result);
9007 return resultobj;
9008 fail:
9009 return NULL;
9010 }
9011
9012
9013 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9014 PyObject *resultobj;
9015 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9016 wxString *arg2 = (wxString *) 0 ;
9017 bool temp2 = False ;
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;
9025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9027 {
9028 arg2 = wxString_in_helper(obj1);
9029 if (arg2 == NULL) SWIG_fail;
9030 temp2 = True;
9031 }
9032 if (arg1) (arg1)->CanonicalName = *arg2;
9033
9034 Py_INCREF(Py_None); resultobj = Py_None;
9035 {
9036 if (temp2)
9037 delete arg2;
9038 }
9039 return resultobj;
9040 fail:
9041 {
9042 if (temp2)
9043 delete arg2;
9044 }
9045 return NULL;
9046 }
9047
9048
9049 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9050 PyObject *resultobj;
9051 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9052 wxString *result;
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;
9059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9061 result = (wxString *)& ((arg1)->CanonicalName);
9062
9063 {
9064 #if wxUSE_UNICODE
9065 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9066 #else
9067 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9068 #endif
9069 }
9070 return resultobj;
9071 fail:
9072 return NULL;
9073 }
9074
9075
9076 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9077 PyObject *resultobj;
9078 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9079 wxString *arg2 = (wxString *) 0 ;
9080 bool temp2 = False ;
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;
9088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9090 {
9091 arg2 = wxString_in_helper(obj1);
9092 if (arg2 == NULL) SWIG_fail;
9093 temp2 = True;
9094 }
9095 if (arg1) (arg1)->Description = *arg2;
9096
9097 Py_INCREF(Py_None); resultobj = Py_None;
9098 {
9099 if (temp2)
9100 delete arg2;
9101 }
9102 return resultobj;
9103 fail:
9104 {
9105 if (temp2)
9106 delete arg2;
9107 }
9108 return NULL;
9109 }
9110
9111
9112 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9113 PyObject *resultobj;
9114 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9115 wxString *result;
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;
9122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9124 result = (wxString *)& ((arg1)->Description);
9125
9126 {
9127 #if wxUSE_UNICODE
9128 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9129 #else
9130 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9131 #endif
9132 }
9133 return resultobj;
9134 fail:
9135 return NULL;
9136 }
9137
9138
9139 static 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 }
9146 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9147 PyObject *resultobj;
9148 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9149 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9150 wxLocale *result;
9151 PyObject * obj0 = 0 ;
9152 PyObject * obj1 = 0 ;
9153 char *kwnames[] = {
9154 (char *) "language",(char *) "flags", NULL
9155 };
9156
9157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9158 if (obj0) {
9159 arg1 = (int) SWIG_AsInt(obj0);
9160 if (PyErr_Occurred()) SWIG_fail;
9161 }
9162 if (obj1) {
9163 arg2 = (int) SWIG_AsInt(obj1);
9164 if (PyErr_Occurred()) SWIG_fail;
9165 }
9166 {
9167 PyThreadState* __tstate = wxPyBeginAllowThreads();
9168 result = (wxLocale *)new wxLocale(arg1,arg2);
9169
9170 wxPyEndAllowThreads(__tstate);
9171 if (PyErr_Occurred()) SWIG_fail;
9172 }
9173 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9174 return resultobj;
9175 fail:
9176 return NULL;
9177 }
9178
9179
9180 static 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;
9189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
9205 static 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 ;
9213 bool arg5 = (bool) True ;
9214 bool arg6 = (bool) False ;
9215 bool result;
9216 bool temp2 = False ;
9217 bool temp3 = False ;
9218 bool temp4 = False ;
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;
9230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9232 {
9233 arg2 = wxString_in_helper(obj1);
9234 if (arg2 == NULL) SWIG_fail;
9235 temp2 = True;
9236 }
9237 if (obj2) {
9238 {
9239 arg3 = wxString_in_helper(obj2);
9240 if (arg3 == NULL) SWIG_fail;
9241 temp3 = True;
9242 }
9243 }
9244 if (obj3) {
9245 {
9246 arg4 = wxString_in_helper(obj3);
9247 if (arg4 == NULL) SWIG_fail;
9248 temp4 = True;
9249 }
9250 }
9251 if (obj4) {
9252 arg5 = (bool) SWIG_AsBool(obj4);
9253 if (PyErr_Occurred()) SWIG_fail;
9254 }
9255 if (obj5) {
9256 arg6 = (bool) SWIG_AsBool(obj5);
9257 if (PyErr_Occurred()) SWIG_fail;
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 }
9266 {
9267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9268 }
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
9299 static 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 ;
9306 PyObject * obj1 = 0 ;
9307 PyObject * obj2 = 0 ;
9308 char *kwnames[] = {
9309 (char *) "self",(char *) "language",(char *) "flags", NULL
9310 };
9311
9312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9315 if (obj1) {
9316 arg2 = (int) SWIG_AsInt(obj1);
9317 if (PyErr_Occurred()) SWIG_fail;
9318 }
9319 if (obj2) {
9320 arg3 = (int) SWIG_AsInt(obj2);
9321 if (PyErr_Occurred()) SWIG_fail;
9322 }
9323 {
9324 PyThreadState* __tstate = wxPyBeginAllowThreads();
9325 result = (bool)(arg1)->Init(arg2,arg3);
9326
9327 wxPyEndAllowThreads(__tstate);
9328 if (PyErr_Occurred()) SWIG_fail;
9329 }
9330 {
9331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9332 }
9333 return resultobj;
9334 fail:
9335 return NULL;
9336 }
9337
9338
9339 static 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 }
9354 resultobj = SWIG_FromInt((int)result);
9355 return resultobj;
9356 fail:
9357 return NULL;
9358 }
9359
9360
9361 static 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 }
9376 resultobj = SWIG_FromInt((int)result);
9377 return resultobj;
9378 fail:
9379 return NULL;
9380 }
9381
9382
9383 static 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
9411 static 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;
9421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9423 {
9424 PyThreadState* __tstate = wxPyBeginAllowThreads();
9425 result = (bool)((wxLocale const *)arg1)->IsOk();
9426
9427 wxPyEndAllowThreads(__tstate);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 }
9430 {
9431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9432 }
9433 return resultobj;
9434 fail:
9435 return NULL;
9436 }
9437
9438
9439 static 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;
9449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
9471 static 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;
9481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9483 {
9484 PyThreadState* __tstate = wxPyBeginAllowThreads();
9485 result = (int)((wxLocale const *)arg1)->GetLanguage();
9486
9487 wxPyEndAllowThreads(__tstate);
9488 if (PyErr_Occurred()) SWIG_fail;
9489 }
9490 resultobj = SWIG_FromInt((int)result);
9491 return resultobj;
9492 fail:
9493 return NULL;
9494 }
9495
9496
9497 static 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;
9507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
9529 static 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;
9539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
9561 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9562 PyObject *resultobj;
9563 wxString *arg1 = 0 ;
9564 bool temp1 = False ;
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;
9574 temp1 = True;
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
9598 static 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;
9603 bool temp2 = False ;
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;
9611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9613 {
9614 arg2 = wxString_in_helper(obj1);
9615 if (arg2 == NULL) SWIG_fail;
9616 temp2 = True;
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 }
9625 {
9626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9627 }
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
9642 static 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;
9647 bool temp2 = False ;
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;
9655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9657 {
9658 arg2 = wxString_in_helper(obj1);
9659 if (arg2 == NULL) SWIG_fail;
9660 temp2 = True;
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 }
9669 {
9670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9671 }
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
9686 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9687 PyObject *resultobj;
9688 int arg1 ;
9689 wxLanguageInfo *result;
9690 PyObject * obj0 = 0 ;
9691 char *kwnames[] = {
9692 (char *) "lang", NULL
9693 };
9694
9695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9696 arg1 = (int) SWIG_AsInt(obj0);
9697 if (PyErr_Occurred()) SWIG_fail;
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9701
9702 wxPyEndAllowThreads(__tstate);
9703 if (PyErr_Occurred()) SWIG_fail;
9704 }
9705 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9706 return resultobj;
9707 fail:
9708 return NULL;
9709 }
9710
9711
9712 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9713 PyObject *resultobj;
9714 int arg1 ;
9715 wxString result;
9716 PyObject * obj0 = 0 ;
9717 char *kwnames[] = {
9718 (char *) "lang", NULL
9719 };
9720
9721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9722 arg1 = (int) SWIG_AsInt(obj0);
9723 if (PyErr_Occurred()) SWIG_fail;
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
9744 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9745 PyObject *resultobj;
9746 wxString *arg1 = 0 ;
9747 wxLanguageInfo *result;
9748 bool temp1 = False ;
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;
9758 temp1 = True;
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 }
9767 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
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
9782 static 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;
9791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9792 SWIG_POINTER_EXCEPTION | 0)) == -1)
9793 SWIG_fail;
9794 if (arg1 == NULL) {
9795 PyErr_SetString(PyExc_TypeError,"null reference");
9796 SWIG_fail;
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
9812 static 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;
9819 bool temp2 = False ;
9820 bool temp3 = False ;
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;
9829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9831 {
9832 arg2 = wxString_in_helper(obj1);
9833 if (arg2 == NULL) SWIG_fail;
9834 temp2 = True;
9835 }
9836 if (obj2) {
9837 {
9838 arg3 = wxString_in_helper(obj2);
9839 if (arg3 == NULL) SWIG_fail;
9840 temp3 = True;
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
9879 static 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;
9889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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 }
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 }
9908 return resultobj;
9909 fail:
9910 return NULL;
9911 }
9912
9913
9914 static 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 }
9921 static 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 }
9936 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9937 return resultobj;
9938 fail:
9939 return NULL;
9940 }
9941
9942
9943 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9944 PyObject *resultobj;
9945 wxString *arg1 = 0 ;
9946 wxString result;
9947 bool temp1 = False ;
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;
9954 temp1 = True;
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
9984 static 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;
9990 bool temp1 = False ;
9991 bool temp2 = False ;
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;
10000 temp1 = True;
10001 }
10002 {
10003 arg2 = wxString_in_helper(obj1);
10004 if (arg2 == NULL) SWIG_fail;
10005 temp2 = True;
10006 }
10007 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10008 if (PyErr_Occurred()) SWIG_fail;
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
10045 static 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 {
10057 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10058 }
10059 if (_v) {
10060 return _wrap_GetTranslation__SWIG_0(self,args);
10061 }
10062 }
10063 if (argc == 3) {
10064 int _v;
10065 {
10066 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10067 }
10068 if (_v) {
10069 {
10070 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10071 }
10072 if (_v) {
10073 _v = SWIG_CheckUnsignedLong(argv[2]);
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
10086 static 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 }
10101 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10102 return resultobj;
10103 fail:
10104 return NULL;
10105 }
10106
10107
10108 static 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;
10117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
10133 static 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 ;
10141 PyObject * obj1 = 0 ;
10142 PyObject * obj2 = 0 ;
10143 PyObject * obj3 = 0 ;
10144 char *kwnames[] = {
10145 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10146 };
10147
10148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
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;
10155 if (obj3) {
10156 arg4 = (int) SWIG_AsInt(obj3);
10157 if (PyErr_Occurred()) SWIG_fail;
10158 }
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 }
10166 {
10167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10168 }
10169 return resultobj;
10170 fail:
10171 return NULL;
10172 }
10173
10174
10175 static 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;
10180 bool temp2 = False ;
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;
10188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10190 {
10191 arg2 = wxString_in_helper(obj1);
10192 if (arg2 == NULL) SWIG_fail;
10193 temp2 = True;
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
10223 static 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;
10228 PyObject * obj0 = 0 ;
10229 PyObject * obj1 = 0 ;
10230 char *kwnames[] = {
10231 (char *) "enc",(char *) "platform", NULL
10232 };
10233
10234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10235 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10236 if (PyErr_Occurred()) SWIG_fail;
10237 if (obj1) {
10238 arg2 = (int) SWIG_AsInt(obj1);
10239 if (PyErr_Occurred()) SWIG_fail;
10240 }
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
10262 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10263 PyObject *resultobj;
10264 int arg1 ;
10265 wxFontEncodingArray result;
10266 PyObject * obj0 = 0 ;
10267 char *kwnames[] = {
10268 (char *) "enc", NULL
10269 };
10270
10271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10272 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10273 if (PyErr_Occurred()) SWIG_fail;
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
10295 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj;
10297 int arg1 ;
10298 int arg2 ;
10299 bool result;
10300 PyObject * obj0 = 0 ;
10301 PyObject * obj1 = 0 ;
10302 char *kwnames[] = {
10303 (char *) "encIn",(char *) "encOut", NULL
10304 };
10305
10306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10307 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10308 if (PyErr_Occurred()) SWIG_fail;
10309 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10310 if (PyErr_Occurred()) SWIG_fail;
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 }
10318 {
10319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10320 }
10321 return resultobj;
10322 fail:
10323 return NULL;
10324 }
10325
10326
10327 static 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 }
10334 static 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;
10343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
10359 static 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;
10368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
10384 static 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;
10393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
10409 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10410 PyObject *resultobj;
10411 wxDC *arg1 = (wxDC *) 0 ;
10412 int arg2 ;
10413 int arg3 ;
10414 wxColour *arg4 = 0 ;
10415 int arg5 = (int) wxFLOOD_SURFACE ;
10416 bool result;
10417 wxColour temp4 ;
10418 PyObject * obj0 = 0 ;
10419 PyObject * obj1 = 0 ;
10420 PyObject * obj2 = 0 ;
10421 PyObject * obj3 = 0 ;
10422 PyObject * obj4 = 0 ;
10423 char *kwnames[] = {
10424 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10425 };
10426
10427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
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;
10434 {
10435 arg4 = &temp4;
10436 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10437 }
10438 if (obj4) {
10439 arg5 = (int) SWIG_AsInt(obj4);
10440 if (PyErr_Occurred()) SWIG_fail;
10441 }
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 }
10449 {
10450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10451 }
10452 return resultobj;
10453 fail:
10454 return NULL;
10455 }
10456
10457
10458 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
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 ;
10470 PyObject * obj3 = 0 ;
10471 char *kwnames[] = {
10472 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10473 };
10474
10475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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 }
10486 if (obj3) {
10487 arg4 = (int) SWIG_AsInt(obj3);
10488 if (PyErr_Occurred()) SWIG_fail;
10489 }
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 }
10497 {
10498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10499 }
10500 return resultobj;
10501 fail:
10502 return NULL;
10503 }
10504
10505
10506 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10507 PyObject *resultobj;
10508 wxDC *arg1 = (wxDC *) 0 ;
10509 int arg2 ;
10510 int arg3 ;
10511 wxColour result;
10512 PyObject * obj0 = 0 ;
10513 PyObject * obj1 = 0 ;
10514 PyObject * obj2 = 0 ;
10515 char *kwnames[] = {
10516 (char *) "self",(char *) "x",(char *) "y", NULL
10517 };
10518
10519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
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;
10526 {
10527 PyThreadState* __tstate = wxPyBeginAllowThreads();
10528 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10529
10530 wxPyEndAllowThreads(__tstate);
10531 if (PyErr_Occurred()) SWIG_fail;
10532 }
10533 {
10534 wxColour * resultptr;
10535 resultptr = new wxColour((wxColour &) result);
10536 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10537 }
10538 return resultobj;
10539 fail:
10540 return NULL;
10541 }
10542
10543
10544 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
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
10556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10559 {
10560 arg2 = &temp2;
10561 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10562 }
10563 {
10564 PyThreadState* __tstate = wxPyBeginAllowThreads();
10565 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10566
10567 wxPyEndAllowThreads(__tstate);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 }
10570 {
10571 wxColour * resultptr;
10572 resultptr = new wxColour((wxColour &) result);
10573 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10574 }
10575 return resultobj;
10576 fail:
10577 return NULL;
10578 }
10579
10580
10581 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10582 PyObject *resultobj;
10583 wxDC *arg1 = (wxDC *) 0 ;
10584 int arg2 ;
10585 int arg3 ;
10586 int arg4 ;
10587 int arg5 ;
10588 PyObject * obj0 = 0 ;
10589 PyObject * obj1 = 0 ;
10590 PyObject * obj2 = 0 ;
10591 PyObject * obj3 = 0 ;
10592 PyObject * obj4 = 0 ;
10593 char *kwnames[] = {
10594 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10595 };
10596
10597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
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;
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
10622 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
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
10636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
10661 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10662 PyObject *resultobj;
10663 wxDC *arg1 = (wxDC *) 0 ;
10664 int arg2 ;
10665 int arg3 ;
10666 PyObject * obj0 = 0 ;
10667 PyObject * obj1 = 0 ;
10668 PyObject * obj2 = 0 ;
10669 char *kwnames[] = {
10670 (char *) "self",(char *) "x",(char *) "y", NULL
10671 };
10672
10673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
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;
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
10694 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
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
10705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
10726 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10727 PyObject *resultobj;
10728 wxDC *arg1 = (wxDC *) 0 ;
10729 int arg2 ;
10730 int arg3 ;
10731 int arg4 ;
10732 int arg5 ;
10733 int arg6 ;
10734 int arg7 ;
10735 PyObject * obj0 = 0 ;
10736 PyObject * obj1 = 0 ;
10737 PyObject * obj2 = 0 ;
10738 PyObject * obj3 = 0 ;
10739 PyObject * obj4 = 0 ;
10740 PyObject * obj5 = 0 ;
10741 PyObject * obj6 = 0 ;
10742 char *kwnames[] = {
10743 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10744 };
10745
10746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
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;
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
10775 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
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
10792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
10821 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10822 PyObject *resultobj;
10823 wxDC *arg1 = (wxDC *) 0 ;
10824 int arg2 ;
10825 int arg3 ;
10826 int arg4 ;
10827 int arg5 ;
10828 PyObject * obj0 = 0 ;
10829 PyObject * obj1 = 0 ;
10830 PyObject * obj2 = 0 ;
10831 PyObject * obj3 = 0 ;
10832 PyObject * obj4 = 0 ;
10833 char *kwnames[] = {
10834 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10835 };
10836
10837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
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;
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
10862 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
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
10873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
10894 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10895 PyObject *resultobj;
10896 wxDC *arg1 = (wxDC *) 0 ;
10897 int arg2 ;
10898 int arg3 ;
10899 int arg4 ;
10900 int arg5 ;
10901 double arg6 ;
10902 double arg7 ;
10903 PyObject * obj0 = 0 ;
10904 PyObject * obj1 = 0 ;
10905 PyObject * obj2 = 0 ;
10906 PyObject * obj3 = 0 ;
10907 PyObject * obj4 = 0 ;
10908 PyObject * obj5 = 0 ;
10909 PyObject * obj6 = 0 ;
10910 char *kwnames[] = {
10911 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10912 };
10913
10914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
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;
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
10943 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
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 ;
10955 PyObject * obj3 = 0 ;
10956 PyObject * obj4 = 0 ;
10957 char *kwnames[] = {
10958 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10959 };
10960
10961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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 }
10972 arg4 = (double) SWIG_AsDouble(obj3);
10973 if (PyErr_Occurred()) SWIG_fail;
10974 arg5 = (double) SWIG_AsDouble(obj4);
10975 if (PyErr_Occurred()) SWIG_fail;
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
10990 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10991 PyObject *resultobj;
10992 wxDC *arg1 = (wxDC *) 0 ;
10993 int arg2 ;
10994 int arg3 ;
10995 PyObject * obj0 = 0 ;
10996 PyObject * obj1 = 0 ;
10997 PyObject * obj2 = 0 ;
10998 char *kwnames[] = {
10999 (char *) "self",(char *) "x",(char *) "y", NULL
11000 };
11001
11002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
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;
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
11023 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
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
11034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
11035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
11055 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11056 PyObject *resultobj;
11057 wxDC *arg1 = (wxDC *) 0 ;
11058 int arg2 ;
11059 int arg3 ;
11060 int arg4 ;
11061 int arg5 ;
11062 PyObject * obj0 = 0 ;
11063 PyObject * obj1 = 0 ;
11064 PyObject * obj2 = 0 ;
11065 PyObject * obj3 = 0 ;
11066 PyObject * obj4 = 0 ;
11067 char *kwnames[] = {
11068 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11069 };
11070
11071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
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;
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
11096 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11097 PyObject *resultobj;
11098 wxDC *arg1 = (wxDC *) 0 ;
11099 wxPoint *arg2 = 0 ;
11100 wxSize *arg3 = 0 ;
11101 wxPoint temp2 ;
11102 wxSize temp3 ;
11103 PyObject * obj0 = 0 ;
11104 PyObject * obj1 = 0 ;
11105 PyObject * obj2 = 0 ;
11106 char *kwnames[] = {
11107 (char *) "self",(char *) "pt",(char *) "sz", NULL
11108 };
11109
11110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11113 {
11114 arg2 = &temp2;
11115 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11116 }
11117 {
11118 arg3 = &temp3;
11119 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11120 }
11121 {
11122 PyThreadState* __tstate = wxPyBeginAllowThreads();
11123 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11124
11125 wxPyEndAllowThreads(__tstate);
11126 if (PyErr_Occurred()) SWIG_fail;
11127 }
11128 Py_INCREF(Py_None); resultobj = Py_None;
11129 return resultobj;
11130 fail:
11131 return NULL;
11132 }
11133
11134
11135 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11136 PyObject *resultobj;
11137 wxDC *arg1 = (wxDC *) 0 ;
11138 wxRect *arg2 = 0 ;
11139 wxRect temp2 ;
11140 PyObject * obj0 = 0 ;
11141 PyObject * obj1 = 0 ;
11142 char *kwnames[] = {
11143 (char *) "self",(char *) "rect", NULL
11144 };
11145
11146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11149 {
11150 arg2 = &temp2;
11151 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11152 }
11153 {
11154 PyThreadState* __tstate = wxPyBeginAllowThreads();
11155 (arg1)->DrawRectangle((wxRect const &)*arg2);
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
11167 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11168 PyObject *resultobj;
11169 wxDC *arg1 = (wxDC *) 0 ;
11170 int arg2 ;
11171 int arg3 ;
11172 int arg4 ;
11173 int arg5 ;
11174 double arg6 ;
11175 PyObject * obj0 = 0 ;
11176 PyObject * obj1 = 0 ;
11177 PyObject * obj2 = 0 ;
11178 PyObject * obj3 = 0 ;
11179 PyObject * obj4 = 0 ;
11180 PyObject * obj5 = 0 ;
11181 char *kwnames[] = {
11182 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11183 };
11184
11185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
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;
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
11212 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11213 PyObject *resultobj;
11214 wxDC *arg1 = (wxDC *) 0 ;
11215 wxPoint *arg2 = 0 ;
11216 wxSize *arg3 = 0 ;
11217 double arg4 ;
11218 wxPoint temp2 ;
11219 wxSize temp3 ;
11220 PyObject * obj0 = 0 ;
11221 PyObject * obj1 = 0 ;
11222 PyObject * obj2 = 0 ;
11223 PyObject * obj3 = 0 ;
11224 char *kwnames[] = {
11225 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11226 };
11227
11228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11231 {
11232 arg2 = &temp2;
11233 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11234 }
11235 {
11236 arg3 = &temp3;
11237 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11238 }
11239 arg4 = (double) SWIG_AsDouble(obj3);
11240 if (PyErr_Occurred()) SWIG_fail;
11241 {
11242 PyThreadState* __tstate = wxPyBeginAllowThreads();
11243 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11244
11245 wxPyEndAllowThreads(__tstate);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 Py_INCREF(Py_None); resultobj = Py_None;
11249 return resultobj;
11250 fail:
11251 return NULL;
11252 }
11253
11254
11255 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11256 PyObject *resultobj;
11257 wxDC *arg1 = (wxDC *) 0 ;
11258 wxRect *arg2 = 0 ;
11259 double arg3 ;
11260 wxRect temp2 ;
11261 PyObject * obj0 = 0 ;
11262 PyObject * obj1 = 0 ;
11263 PyObject * obj2 = 0 ;
11264 char *kwnames[] = {
11265 (char *) "self",(char *) "r",(char *) "radius", NULL
11266 };
11267
11268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11271 {
11272 arg2 = &temp2;
11273 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11274 }
11275 arg3 = (double) SWIG_AsDouble(obj2);
11276 if (PyErr_Occurred()) SWIG_fail;
11277 {
11278 PyThreadState* __tstate = wxPyBeginAllowThreads();
11279 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
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
11291 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11292 PyObject *resultobj;
11293 wxDC *arg1 = (wxDC *) 0 ;
11294 int arg2 ;
11295 int arg3 ;
11296 int arg4 ;
11297 PyObject * obj0 = 0 ;
11298 PyObject * obj1 = 0 ;
11299 PyObject * obj2 = 0 ;
11300 PyObject * obj3 = 0 ;
11301 char *kwnames[] = {
11302 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11303 };
11304
11305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
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;
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
11328 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11329 PyObject *resultobj;
11330 wxDC *arg1 = (wxDC *) 0 ;
11331 wxPoint *arg2 = 0 ;
11332 int arg3 ;
11333 wxPoint temp2 ;
11334 PyObject * obj0 = 0 ;
11335 PyObject * obj1 = 0 ;
11336 PyObject * obj2 = 0 ;
11337 char *kwnames[] = {
11338 (char *) "self",(char *) "pt",(char *) "radius", NULL
11339 };
11340
11341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11344 {
11345 arg2 = &temp2;
11346 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11347 }
11348 arg3 = (int) SWIG_AsInt(obj2);
11349 if (PyErr_Occurred()) SWIG_fail;
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
11364 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11365 PyObject *resultobj;
11366 wxDC *arg1 = (wxDC *) 0 ;
11367 int arg2 ;
11368 int arg3 ;
11369 int arg4 ;
11370 int arg5 ;
11371 PyObject * obj0 = 0 ;
11372 PyObject * obj1 = 0 ;
11373 PyObject * obj2 = 0 ;
11374 PyObject * obj3 = 0 ;
11375 PyObject * obj4 = 0 ;
11376 char *kwnames[] = {
11377 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11378 };
11379
11380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
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;
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
11405 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11406 PyObject *resultobj;
11407 wxDC *arg1 = (wxDC *) 0 ;
11408 wxPoint *arg2 = 0 ;
11409 wxSize *arg3 = 0 ;
11410 wxPoint temp2 ;
11411 wxSize temp3 ;
11412 PyObject * obj0 = 0 ;
11413 PyObject * obj1 = 0 ;
11414 PyObject * obj2 = 0 ;
11415 char *kwnames[] = {
11416 (char *) "self",(char *) "pt",(char *) "sz", NULL
11417 };
11418
11419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11422 {
11423 arg2 = &temp2;
11424 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11425 }
11426 {
11427 arg3 = &temp3;
11428 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11429 }
11430 {
11431 PyThreadState* __tstate = wxPyBeginAllowThreads();
11432 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11433
11434 wxPyEndAllowThreads(__tstate);
11435 if (PyErr_Occurred()) SWIG_fail;
11436 }
11437 Py_INCREF(Py_None); resultobj = Py_None;
11438 return resultobj;
11439 fail:
11440 return NULL;
11441 }
11442
11443
11444 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11445 PyObject *resultobj;
11446 wxDC *arg1 = (wxDC *) 0 ;
11447 wxRect *arg2 = 0 ;
11448 wxRect temp2 ;
11449 PyObject * obj0 = 0 ;
11450 PyObject * obj1 = 0 ;
11451 char *kwnames[] = {
11452 (char *) "self",(char *) "rect", NULL
11453 };
11454
11455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11458 {
11459 arg2 = &temp2;
11460 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11461 }
11462 {
11463 PyThreadState* __tstate = wxPyBeginAllowThreads();
11464 (arg1)->DrawEllipse((wxRect const &)*arg2);
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
11476 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11477 PyObject *resultobj;
11478 wxDC *arg1 = (wxDC *) 0 ;
11479 wxIcon *arg2 = 0 ;
11480 int arg3 ;
11481 int arg4 ;
11482 PyObject * obj0 = 0 ;
11483 PyObject * obj1 = 0 ;
11484 PyObject * obj2 = 0 ;
11485 PyObject * obj3 = 0 ;
11486 char *kwnames[] = {
11487 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11488 };
11489
11490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
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;
11496 if (arg2 == NULL) {
11497 PyErr_SetString(PyExc_TypeError,"null reference");
11498 SWIG_fail;
11499 }
11500 arg3 = (int) SWIG_AsInt(obj2);
11501 if (PyErr_Occurred()) SWIG_fail;
11502 arg4 = (int) SWIG_AsInt(obj3);
11503 if (PyErr_Occurred()) SWIG_fail;
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
11518 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
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
11531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
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;
11537 if (arg2 == NULL) {
11538 PyErr_SetString(PyExc_TypeError,"null reference");
11539 SWIG_fail;
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
11559 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11560 PyObject *resultobj;
11561 wxDC *arg1 = (wxDC *) 0 ;
11562 wxBitmap *arg2 = 0 ;
11563 int arg3 ;
11564 int arg4 ;
11565 bool arg5 = (bool) False ;
11566 PyObject * obj0 = 0 ;
11567 PyObject * obj1 = 0 ;
11568 PyObject * obj2 = 0 ;
11569 PyObject * obj3 = 0 ;
11570 PyObject * obj4 = 0 ;
11571 char *kwnames[] = {
11572 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11573 };
11574
11575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
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;
11581 if (arg2 == NULL) {
11582 PyErr_SetString(PyExc_TypeError,"null reference");
11583 SWIG_fail;
11584 }
11585 arg3 = (int) SWIG_AsInt(obj2);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 arg4 = (int) SWIG_AsInt(obj3);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 if (obj4) {
11590 arg5 = (bool) SWIG_AsBool(obj4);
11591 if (PyErr_Occurred()) SWIG_fail;
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
11607 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11608 PyObject *resultobj;
11609 wxDC *arg1 = (wxDC *) 0 ;
11610 wxBitmap *arg2 = 0 ;
11611 wxPoint *arg3 = 0 ;
11612 bool arg4 = (bool) False ;
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
11622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
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;
11628 if (arg2 == NULL) {
11629 PyErr_SetString(PyExc_TypeError,"null reference");
11630 SWIG_fail;
11631 }
11632 {
11633 arg3 = &temp3;
11634 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11635 }
11636 if (obj3) {
11637 arg4 = (bool) SWIG_AsBool(obj3);
11638 if (PyErr_Occurred()) SWIG_fail;
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
11654 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11655 PyObject *resultobj;
11656 wxDC *arg1 = (wxDC *) 0 ;
11657 wxString *arg2 = 0 ;
11658 int arg3 ;
11659 int arg4 ;
11660 bool temp2 = False ;
11661 PyObject * obj0 = 0 ;
11662 PyObject * obj1 = 0 ;
11663 PyObject * obj2 = 0 ;
11664 PyObject * obj3 = 0 ;
11665 char *kwnames[] = {
11666 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11667 };
11668
11669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11672 {
11673 arg2 = wxString_in_helper(obj1);
11674 if (arg2 == NULL) SWIG_fail;
11675 temp2 = True;
11676 }
11677 arg3 = (int) SWIG_AsInt(obj2);
11678 if (PyErr_Occurred()) SWIG_fail;
11679 arg4 = (int) SWIG_AsInt(obj3);
11680 if (PyErr_Occurred()) SWIG_fail;
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
11703 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11704 PyObject *resultobj;
11705 wxDC *arg1 = (wxDC *) 0 ;
11706 wxString *arg2 = 0 ;
11707 wxPoint *arg3 = 0 ;
11708 bool temp2 = False ;
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
11717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11720 {
11721 arg2 = wxString_in_helper(obj1);
11722 if (arg2 == NULL) SWIG_fail;
11723 temp2 = True;
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
11751 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11752 PyObject *resultobj;
11753 wxDC *arg1 = (wxDC *) 0 ;
11754 wxString *arg2 = 0 ;
11755 int arg3 ;
11756 int arg4 ;
11757 double arg5 ;
11758 bool temp2 = False ;
11759 PyObject * obj0 = 0 ;
11760 PyObject * obj1 = 0 ;
11761 PyObject * obj2 = 0 ;
11762 PyObject * obj3 = 0 ;
11763 PyObject * obj4 = 0 ;
11764 char *kwnames[] = {
11765 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11766 };
11767
11768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11771 {
11772 arg2 = wxString_in_helper(obj1);
11773 if (arg2 == NULL) SWIG_fail;
11774 temp2 = True;
11775 }
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;
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
11804 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11805 PyObject *resultobj;
11806 wxDC *arg1 = (wxDC *) 0 ;
11807 wxString *arg2 = 0 ;
11808 wxPoint *arg3 = 0 ;
11809 double arg4 ;
11810 bool temp2 = False ;
11811 wxPoint temp3 ;
11812 PyObject * obj0 = 0 ;
11813 PyObject * obj1 = 0 ;
11814 PyObject * obj2 = 0 ;
11815 PyObject * obj3 = 0 ;
11816 char *kwnames[] = {
11817 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11818 };
11819
11820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11823 {
11824 arg2 = wxString_in_helper(obj1);
11825 if (arg2 == NULL) SWIG_fail;
11826 temp2 = True;
11827 }
11828 {
11829 arg3 = &temp3;
11830 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11831 }
11832 arg4 = (double) SWIG_AsDouble(obj3);
11833 if (PyErr_Occurred()) SWIG_fail;
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
11856 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11857 PyObject *resultobj;
11858 wxDC *arg1 = (wxDC *) 0 ;
11859 int arg2 ;
11860 int arg3 ;
11861 int arg4 ;
11862 int arg5 ;
11863 wxDC *arg6 = (wxDC *) 0 ;
11864 int arg7 ;
11865 int arg8 ;
11866 int arg9 = (int) wxCOPY ;
11867 bool arg10 = (bool) False ;
11868 int arg11 = (int) -1 ;
11869 int arg12 = (int) -1 ;
11870 bool result;
11871 PyObject * obj0 = 0 ;
11872 PyObject * obj1 = 0 ;
11873 PyObject * obj2 = 0 ;
11874 PyObject * obj3 = 0 ;
11875 PyObject * obj4 = 0 ;
11876 PyObject * obj5 = 0 ;
11877 PyObject * obj6 = 0 ;
11878 PyObject * obj7 = 0 ;
11879 PyObject * obj8 = 0 ;
11880 PyObject * obj9 = 0 ;
11881 PyObject * obj10 = 0 ;
11882 PyObject * obj11 = 0 ;
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
11887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_BlitXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
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;
11904 if (obj8) {
11905 arg9 = (int) SWIG_AsInt(obj8);
11906 if (PyErr_Occurred()) SWIG_fail;
11907 }
11908 if (obj9) {
11909 arg10 = (bool) SWIG_AsBool(obj9);
11910 if (PyErr_Occurred()) SWIG_fail;
11911 }
11912 if (obj10) {
11913 arg11 = (int) SWIG_AsInt(obj10);
11914 if (PyErr_Occurred()) SWIG_fail;
11915 }
11916 if (obj11) {
11917 arg12 = (int) SWIG_AsInt(obj11);
11918 if (PyErr_Occurred()) SWIG_fail;
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 }
11927 {
11928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11929 }
11930 return resultobj;
11931 fail:
11932 return NULL;
11933 }
11934
11935
11936 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
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 ;
11944 bool arg7 = (bool) False ;
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 ;
11957 PyObject * obj5 = 0 ;
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
11964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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 }
11975 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11977 {
11978 arg5 = &temp5;
11979 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11980 }
11981 if (obj5) {
11982 arg6 = (int) SWIG_AsInt(obj5);
11983 if (PyErr_Occurred()) SWIG_fail;
11984 }
11985 if (obj6) {
11986 arg7 = (bool) SWIG_AsBool(obj6);
11987 if (PyErr_Occurred()) SWIG_fail;
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 }
12002 {
12003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12004 }
12005 return resultobj;
12006 fail:
12007 return NULL;
12008 }
12009
12010
12011 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12012 PyObject *resultobj;
12013 wxDC *arg1 = (wxDC *) 0 ;
12014 int arg2 ;
12015 wxPoint *arg3 = (wxPoint *) 0 ;
12016 int arg4 = (int) 0 ;
12017 int arg5 = (int) 0 ;
12018 PyObject * obj0 = 0 ;
12019 PyObject * obj1 = 0 ;
12020 PyObject * obj2 = 0 ;
12021 PyObject * obj3 = 0 ;
12022 char *kwnames[] = {
12023 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12024 };
12025
12026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12029 {
12030 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12031 if (arg3 == NULL) SWIG_fail;
12032 }
12033 if (obj2) {
12034 arg4 = (int) SWIG_AsInt(obj2);
12035 if (PyErr_Occurred()) SWIG_fail;
12036 }
12037 if (obj3) {
12038 arg5 = (int) SWIG_AsInt(obj3);
12039 if (PyErr_Occurred()) SWIG_fail;
12040 }
12041 {
12042 PyThreadState* __tstate = wxPyBeginAllowThreads();
12043 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12044
12045 wxPyEndAllowThreads(__tstate);
12046 if (PyErr_Occurred()) SWIG_fail;
12047 }
12048 Py_INCREF(Py_None); resultobj = Py_None;
12049 {
12050 if (arg3) delete [] arg3;
12051 }
12052 return resultobj;
12053 fail:
12054 {
12055 if (arg3) delete [] arg3;
12056 }
12057 return NULL;
12058 }
12059
12060
12061 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12062 PyObject *resultobj;
12063 wxDC *arg1 = (wxDC *) 0 ;
12064 int arg2 ;
12065 wxPoint *arg3 = (wxPoint *) 0 ;
12066 int arg4 = (int) 0 ;
12067 int arg5 = (int) 0 ;
12068 int arg6 = (int) wxODDEVEN_RULE ;
12069 PyObject * obj0 = 0 ;
12070 PyObject * obj1 = 0 ;
12071 PyObject * obj2 = 0 ;
12072 PyObject * obj3 = 0 ;
12073 PyObject * obj4 = 0 ;
12074 char *kwnames[] = {
12075 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12076 };
12077
12078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12081 {
12082 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12083 if (arg3 == NULL) SWIG_fail;
12084 }
12085 if (obj2) {
12086 arg4 = (int) SWIG_AsInt(obj2);
12087 if (PyErr_Occurred()) SWIG_fail;
12088 }
12089 if (obj3) {
12090 arg5 = (int) SWIG_AsInt(obj3);
12091 if (PyErr_Occurred()) SWIG_fail;
12092 }
12093 if (obj4) {
12094 arg6 = (int) SWIG_AsInt(obj4);
12095 if (PyErr_Occurred()) SWIG_fail;
12096 }
12097 {
12098 PyThreadState* __tstate = wxPyBeginAllowThreads();
12099 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12100
12101 wxPyEndAllowThreads(__tstate);
12102 if (PyErr_Occurred()) SWIG_fail;
12103 }
12104 Py_INCREF(Py_None); resultobj = Py_None;
12105 {
12106 if (arg3) delete [] arg3;
12107 }
12108 return resultobj;
12109 fail:
12110 {
12111 if (arg3) delete [] arg3;
12112 }
12113 return NULL;
12114 }
12115
12116
12117 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12118 PyObject *resultobj;
12119 wxDC *arg1 = (wxDC *) 0 ;
12120 wxString *arg2 = 0 ;
12121 wxRect *arg3 = 0 ;
12122 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12123 int arg5 = (int) -1 ;
12124 bool temp2 = False ;
12125 wxRect temp3 ;
12126 PyObject * obj0 = 0 ;
12127 PyObject * obj1 = 0 ;
12128 PyObject * obj2 = 0 ;
12129 PyObject * obj3 = 0 ;
12130 PyObject * obj4 = 0 ;
12131 char *kwnames[] = {
12132 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12133 };
12134
12135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12138 {
12139 arg2 = wxString_in_helper(obj1);
12140 if (arg2 == NULL) SWIG_fail;
12141 temp2 = True;
12142 }
12143 {
12144 arg3 = &temp3;
12145 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12146 }
12147 if (obj3) {
12148 arg4 = (int) SWIG_AsInt(obj3);
12149 if (PyErr_Occurred()) SWIG_fail;
12150 }
12151 if (obj4) {
12152 arg5 = (int) SWIG_AsInt(obj4);
12153 if (PyErr_Occurred()) SWIG_fail;
12154 }
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12158
12159 wxPyEndAllowThreads(__tstate);
12160 if (PyErr_Occurred()) SWIG_fail;
12161 }
12162 Py_INCREF(Py_None); resultobj = Py_None;
12163 {
12164 if (temp2)
12165 delete arg2;
12166 }
12167 return resultobj;
12168 fail:
12169 {
12170 if (temp2)
12171 delete arg2;
12172 }
12173 return NULL;
12174 }
12175
12176
12177 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12178 PyObject *resultobj;
12179 wxDC *arg1 = (wxDC *) 0 ;
12180 wxString *arg2 = 0 ;
12181 wxBitmap *arg3 = 0 ;
12182 wxRect *arg4 = 0 ;
12183 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12184 int arg6 = (int) -1 ;
12185 wxRect result;
12186 bool temp2 = False ;
12187 wxRect temp4 ;
12188 PyObject * obj0 = 0 ;
12189 PyObject * obj1 = 0 ;
12190 PyObject * obj2 = 0 ;
12191 PyObject * obj3 = 0 ;
12192 PyObject * obj4 = 0 ;
12193 PyObject * obj5 = 0 ;
12194 char *kwnames[] = {
12195 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12196 };
12197
12198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12201 {
12202 arg2 = wxString_in_helper(obj1);
12203 if (arg2 == NULL) SWIG_fail;
12204 temp2 = True;
12205 }
12206 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12207 SWIG_POINTER_EXCEPTION | 0)) == -1)
12208 SWIG_fail;
12209 if (arg3 == NULL) {
12210 PyErr_SetString(PyExc_TypeError,"null reference");
12211 SWIG_fail;
12212 }
12213 {
12214 arg4 = &temp4;
12215 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12216 }
12217 if (obj4) {
12218 arg5 = (int) SWIG_AsInt(obj4);
12219 if (PyErr_Occurred()) SWIG_fail;
12220 }
12221 if (obj5) {
12222 arg6 = (int) SWIG_AsInt(obj5);
12223 if (PyErr_Occurred()) SWIG_fail;
12224 }
12225 {
12226 PyThreadState* __tstate = wxPyBeginAllowThreads();
12227 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12228
12229 wxPyEndAllowThreads(__tstate);
12230 if (PyErr_Occurred()) SWIG_fail;
12231 }
12232 {
12233 wxRect * resultptr;
12234 resultptr = new wxRect((wxRect &) result);
12235 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12236 }
12237 {
12238 if (temp2)
12239 delete arg2;
12240 }
12241 return resultobj;
12242 fail:
12243 {
12244 if (temp2)
12245 delete arg2;
12246 }
12247 return NULL;
12248 }
12249
12250
12251 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12252 PyObject *resultobj;
12253 wxDC *arg1 = (wxDC *) 0 ;
12254 int arg2 ;
12255 wxPoint *arg3 = (wxPoint *) 0 ;
12256 PyObject * obj0 = 0 ;
12257 PyObject * obj1 = 0 ;
12258 char *kwnames[] = {
12259 (char *) "self",(char *) "points", NULL
12260 };
12261
12262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12265 {
12266 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12267 if (arg3 == NULL) SWIG_fail;
12268 }
12269 {
12270 PyThreadState* __tstate = wxPyBeginAllowThreads();
12271 (arg1)->DrawSpline(arg2,arg3);
12272
12273 wxPyEndAllowThreads(__tstate);
12274 if (PyErr_Occurred()) SWIG_fail;
12275 }
12276 Py_INCREF(Py_None); resultobj = Py_None;
12277 {
12278 if (arg3) delete [] arg3;
12279 }
12280 return resultobj;
12281 fail:
12282 {
12283 if (arg3) delete [] arg3;
12284 }
12285 return NULL;
12286 }
12287
12288
12289 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12290 PyObject *resultobj;
12291 wxDC *arg1 = (wxDC *) 0 ;
12292 PyObject * obj0 = 0 ;
12293 char *kwnames[] = {
12294 (char *) "self", NULL
12295 };
12296
12297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12300 {
12301 PyThreadState* __tstate = wxPyBeginAllowThreads();
12302 (arg1)->Clear();
12303
12304 wxPyEndAllowThreads(__tstate);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 Py_INCREF(Py_None); resultobj = Py_None;
12308 return resultobj;
12309 fail:
12310 return NULL;
12311 }
12312
12313
12314 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12315 PyObject *resultobj;
12316 wxDC *arg1 = (wxDC *) 0 ;
12317 wxString *arg2 = 0 ;
12318 bool result;
12319 bool temp2 = False ;
12320 PyObject * obj0 = 0 ;
12321 PyObject * obj1 = 0 ;
12322 char *kwnames[] = {
12323 (char *) "self",(char *) "message", NULL
12324 };
12325
12326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12329 {
12330 arg2 = wxString_in_helper(obj1);
12331 if (arg2 == NULL) SWIG_fail;
12332 temp2 = True;
12333 }
12334 {
12335 PyThreadState* __tstate = wxPyBeginAllowThreads();
12336 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12337
12338 wxPyEndAllowThreads(__tstate);
12339 if (PyErr_Occurred()) SWIG_fail;
12340 }
12341 {
12342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12343 }
12344 {
12345 if (temp2)
12346 delete arg2;
12347 }
12348 return resultobj;
12349 fail:
12350 {
12351 if (temp2)
12352 delete arg2;
12353 }
12354 return NULL;
12355 }
12356
12357
12358 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12359 PyObject *resultobj;
12360 wxDC *arg1 = (wxDC *) 0 ;
12361 PyObject * obj0 = 0 ;
12362 char *kwnames[] = {
12363 (char *) "self", NULL
12364 };
12365
12366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12369 {
12370 PyThreadState* __tstate = wxPyBeginAllowThreads();
12371 (arg1)->EndDoc();
12372
12373 wxPyEndAllowThreads(__tstate);
12374 if (PyErr_Occurred()) SWIG_fail;
12375 }
12376 Py_INCREF(Py_None); resultobj = Py_None;
12377 return resultobj;
12378 fail:
12379 return NULL;
12380 }
12381
12382
12383 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12384 PyObject *resultobj;
12385 wxDC *arg1 = (wxDC *) 0 ;
12386 PyObject * obj0 = 0 ;
12387 char *kwnames[] = {
12388 (char *) "self", NULL
12389 };
12390
12391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 (arg1)->StartPage();
12397
12398 wxPyEndAllowThreads(__tstate);
12399 if (PyErr_Occurred()) SWIG_fail;
12400 }
12401 Py_INCREF(Py_None); resultobj = Py_None;
12402 return resultobj;
12403 fail:
12404 return NULL;
12405 }
12406
12407
12408 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12409 PyObject *resultobj;
12410 wxDC *arg1 = (wxDC *) 0 ;
12411 PyObject * obj0 = 0 ;
12412 char *kwnames[] = {
12413 (char *) "self", NULL
12414 };
12415
12416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12419 {
12420 PyThreadState* __tstate = wxPyBeginAllowThreads();
12421 (arg1)->EndPage();
12422
12423 wxPyEndAllowThreads(__tstate);
12424 if (PyErr_Occurred()) SWIG_fail;
12425 }
12426 Py_INCREF(Py_None); resultobj = Py_None;
12427 return resultobj;
12428 fail:
12429 return NULL;
12430 }
12431
12432
12433 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12434 PyObject *resultobj;
12435 wxDC *arg1 = (wxDC *) 0 ;
12436 wxFont *arg2 = 0 ;
12437 PyObject * obj0 = 0 ;
12438 PyObject * obj1 = 0 ;
12439 char *kwnames[] = {
12440 (char *) "self",(char *) "font", NULL
12441 };
12442
12443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12446 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12447 SWIG_POINTER_EXCEPTION | 0)) == -1)
12448 SWIG_fail;
12449 if (arg2 == NULL) {
12450 PyErr_SetString(PyExc_TypeError,"null reference");
12451 SWIG_fail;
12452 }
12453 {
12454 PyThreadState* __tstate = wxPyBeginAllowThreads();
12455 (arg1)->SetFont((wxFont const &)*arg2);
12456
12457 wxPyEndAllowThreads(__tstate);
12458 if (PyErr_Occurred()) SWIG_fail;
12459 }
12460 Py_INCREF(Py_None); resultobj = Py_None;
12461 return resultobj;
12462 fail:
12463 return NULL;
12464 }
12465
12466
12467 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12468 PyObject *resultobj;
12469 wxDC *arg1 = (wxDC *) 0 ;
12470 wxPen *arg2 = 0 ;
12471 PyObject * obj0 = 0 ;
12472 PyObject * obj1 = 0 ;
12473 char *kwnames[] = {
12474 (char *) "self",(char *) "pen", NULL
12475 };
12476
12477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12480 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12481 SWIG_POINTER_EXCEPTION | 0)) == -1)
12482 SWIG_fail;
12483 if (arg2 == NULL) {
12484 PyErr_SetString(PyExc_TypeError,"null reference");
12485 SWIG_fail;
12486 }
12487 {
12488 PyThreadState* __tstate = wxPyBeginAllowThreads();
12489 (arg1)->SetPen((wxPen const &)*arg2);
12490
12491 wxPyEndAllowThreads(__tstate);
12492 if (PyErr_Occurred()) SWIG_fail;
12493 }
12494 Py_INCREF(Py_None); resultobj = Py_None;
12495 return resultobj;
12496 fail:
12497 return NULL;
12498 }
12499
12500
12501 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12502 PyObject *resultobj;
12503 wxDC *arg1 = (wxDC *) 0 ;
12504 wxBrush *arg2 = 0 ;
12505 PyObject * obj0 = 0 ;
12506 PyObject * obj1 = 0 ;
12507 char *kwnames[] = {
12508 (char *) "self",(char *) "brush", NULL
12509 };
12510
12511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12514 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12515 SWIG_POINTER_EXCEPTION | 0)) == -1)
12516 SWIG_fail;
12517 if (arg2 == NULL) {
12518 PyErr_SetString(PyExc_TypeError,"null reference");
12519 SWIG_fail;
12520 }
12521 {
12522 PyThreadState* __tstate = wxPyBeginAllowThreads();
12523 (arg1)->SetBrush((wxBrush const &)*arg2);
12524
12525 wxPyEndAllowThreads(__tstate);
12526 if (PyErr_Occurred()) SWIG_fail;
12527 }
12528 Py_INCREF(Py_None); resultobj = Py_None;
12529 return resultobj;
12530 fail:
12531 return NULL;
12532 }
12533
12534
12535 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12536 PyObject *resultobj;
12537 wxDC *arg1 = (wxDC *) 0 ;
12538 wxBrush *arg2 = 0 ;
12539 PyObject * obj0 = 0 ;
12540 PyObject * obj1 = 0 ;
12541 char *kwnames[] = {
12542 (char *) "self",(char *) "brush", NULL
12543 };
12544
12545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12548 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12549 SWIG_POINTER_EXCEPTION | 0)) == -1)
12550 SWIG_fail;
12551 if (arg2 == NULL) {
12552 PyErr_SetString(PyExc_TypeError,"null reference");
12553 SWIG_fail;
12554 }
12555 {
12556 PyThreadState* __tstate = wxPyBeginAllowThreads();
12557 (arg1)->SetBackground((wxBrush const &)*arg2);
12558
12559 wxPyEndAllowThreads(__tstate);
12560 if (PyErr_Occurred()) SWIG_fail;
12561 }
12562 Py_INCREF(Py_None); resultobj = Py_None;
12563 return resultobj;
12564 fail:
12565 return NULL;
12566 }
12567
12568
12569 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12570 PyObject *resultobj;
12571 wxDC *arg1 = (wxDC *) 0 ;
12572 int arg2 ;
12573 PyObject * obj0 = 0 ;
12574 PyObject * obj1 = 0 ;
12575 char *kwnames[] = {
12576 (char *) "self",(char *) "mode", NULL
12577 };
12578
12579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12582 arg2 = (int) SWIG_AsInt(obj1);
12583 if (PyErr_Occurred()) SWIG_fail;
12584 {
12585 PyThreadState* __tstate = wxPyBeginAllowThreads();
12586 (arg1)->SetBackgroundMode(arg2);
12587
12588 wxPyEndAllowThreads(__tstate);
12589 if (PyErr_Occurred()) SWIG_fail;
12590 }
12591 Py_INCREF(Py_None); resultobj = Py_None;
12592 return resultobj;
12593 fail:
12594 return NULL;
12595 }
12596
12597
12598 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12599 PyObject *resultobj;
12600 wxDC *arg1 = (wxDC *) 0 ;
12601 wxPalette *arg2 = 0 ;
12602 PyObject * obj0 = 0 ;
12603 PyObject * obj1 = 0 ;
12604 char *kwnames[] = {
12605 (char *) "self",(char *) "palette", NULL
12606 };
12607
12608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12611 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12612 SWIG_POINTER_EXCEPTION | 0)) == -1)
12613 SWIG_fail;
12614 if (arg2 == NULL) {
12615 PyErr_SetString(PyExc_TypeError,"null reference");
12616 SWIG_fail;
12617 }
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 (arg1)->SetPalette((wxPalette const &)*arg2);
12621
12622 wxPyEndAllowThreads(__tstate);
12623 if (PyErr_Occurred()) SWIG_fail;
12624 }
12625 Py_INCREF(Py_None); resultobj = Py_None;
12626 return resultobj;
12627 fail:
12628 return NULL;
12629 }
12630
12631
12632 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12633 PyObject *resultobj;
12634 wxDC *arg1 = (wxDC *) 0 ;
12635 int arg2 ;
12636 int arg3 ;
12637 int arg4 ;
12638 int arg5 ;
12639 PyObject * obj0 = 0 ;
12640 PyObject * obj1 = 0 ;
12641 PyObject * obj2 = 0 ;
12642 PyObject * obj3 = 0 ;
12643 PyObject * obj4 = 0 ;
12644 char *kwnames[] = {
12645 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12646 };
12647
12648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12651 arg2 = (int) SWIG_AsInt(obj1);
12652 if (PyErr_Occurred()) SWIG_fail;
12653 arg3 = (int) SWIG_AsInt(obj2);
12654 if (PyErr_Occurred()) SWIG_fail;
12655 arg4 = (int) SWIG_AsInt(obj3);
12656 if (PyErr_Occurred()) SWIG_fail;
12657 arg5 = (int) SWIG_AsInt(obj4);
12658 if (PyErr_Occurred()) SWIG_fail;
12659 {
12660 PyThreadState* __tstate = wxPyBeginAllowThreads();
12661 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12662
12663 wxPyEndAllowThreads(__tstate);
12664 if (PyErr_Occurred()) SWIG_fail;
12665 }
12666 Py_INCREF(Py_None); resultobj = Py_None;
12667 return resultobj;
12668 fail:
12669 return NULL;
12670 }
12671
12672
12673 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12674 PyObject *resultobj;
12675 wxDC *arg1 = (wxDC *) 0 ;
12676 wxPoint *arg2 = 0 ;
12677 wxSize *arg3 = 0 ;
12678 wxPoint temp2 ;
12679 wxSize temp3 ;
12680 PyObject * obj0 = 0 ;
12681 PyObject * obj1 = 0 ;
12682 PyObject * obj2 = 0 ;
12683 char *kwnames[] = {
12684 (char *) "self",(char *) "pt",(char *) "sz", NULL
12685 };
12686
12687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12690 {
12691 arg2 = &temp2;
12692 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12693 }
12694 {
12695 arg3 = &temp3;
12696 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12697 }
12698 {
12699 PyThreadState* __tstate = wxPyBeginAllowThreads();
12700 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12701
12702 wxPyEndAllowThreads(__tstate);
12703 if (PyErr_Occurred()) SWIG_fail;
12704 }
12705 Py_INCREF(Py_None); resultobj = Py_None;
12706 return resultobj;
12707 fail:
12708 return NULL;
12709 }
12710
12711
12712 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12713 PyObject *resultobj;
12714 wxDC *arg1 = (wxDC *) 0 ;
12715 wxRect *arg2 = 0 ;
12716 wxRect temp2 ;
12717 PyObject * obj0 = 0 ;
12718 PyObject * obj1 = 0 ;
12719 char *kwnames[] = {
12720 (char *) "self",(char *) "rect", NULL
12721 };
12722
12723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12726 {
12727 arg2 = &temp2;
12728 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12729 }
12730 {
12731 PyThreadState* __tstate = wxPyBeginAllowThreads();
12732 (arg1)->SetClippingRegion((wxRect const &)*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
12744 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12745 PyObject *resultobj;
12746 wxDC *arg1 = (wxDC *) 0 ;
12747 wxRegion *arg2 = 0 ;
12748 PyObject * obj0 = 0 ;
12749 PyObject * obj1 = 0 ;
12750 char *kwnames[] = {
12751 (char *) "self",(char *) "region", NULL
12752 };
12753
12754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
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_wxRegion,
12758 SWIG_POINTER_EXCEPTION | 0)) == -1)
12759 SWIG_fail;
12760 if (arg2 == NULL) {
12761 PyErr_SetString(PyExc_TypeError,"null reference");
12762 SWIG_fail;
12763 }
12764 {
12765 PyThreadState* __tstate = wxPyBeginAllowThreads();
12766 (arg1)->SetClippingRegion((wxRegion 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
12778 static 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;
12787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
12803 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12804 PyObject *resultobj;
12805 wxDC *arg1 = (wxDC *) 0 ;
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 ;
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;
12824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
12856 static 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;
12866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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);
12878 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12879 }
12880 return resultobj;
12881 fail:
12882 return NULL;
12883 }
12884
12885
12886 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12887 PyObject *resultobj;
12888 wxDC *arg1 = (wxDC *) 0 ;
12889 int result;
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;
12896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12898 {
12899 PyThreadState* __tstate = wxPyBeginAllowThreads();
12900 result = (int)((wxDC const *)arg1)->GetCharHeight();
12901
12902 wxPyEndAllowThreads(__tstate);
12903 if (PyErr_Occurred()) SWIG_fail;
12904 }
12905 resultobj = SWIG_FromInt((int)result);
12906 return resultobj;
12907 fail:
12908 return NULL;
12909 }
12910
12911
12912 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12913 PyObject *resultobj;
12914 wxDC *arg1 = (wxDC *) 0 ;
12915 int result;
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;
12922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12924 {
12925 PyThreadState* __tstate = wxPyBeginAllowThreads();
12926 result = (int)((wxDC const *)arg1)->GetCharWidth();
12927
12928 wxPyEndAllowThreads(__tstate);
12929 if (PyErr_Occurred()) SWIG_fail;
12930 }
12931 resultobj = SWIG_FromInt((int)result);
12932 return resultobj;
12933 fail:
12934 return NULL;
12935 }
12936
12937
12938 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12939 PyObject *resultobj;
12940 wxDC *arg1 = (wxDC *) 0 ;
12941 wxString *arg2 = 0 ;
12942 int *arg3 = (int *) 0 ;
12943 int *arg4 = (int *) 0 ;
12944 bool temp2 = False ;
12945 int temp3 ;
12946 int temp4 ;
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;
12956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12958 {
12959 arg2 = wxString_in_helper(obj1);
12960 if (arg2 == NULL) SWIG_fail;
12961 temp2 = True;
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
12993 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12994 PyObject *resultobj;
12995 wxDC *arg1 = (wxDC *) 0 ;
12996 wxString *arg2 = 0 ;
12997 int *arg3 = (int *) 0 ;
12998 int *arg4 = (int *) 0 ;
12999 int *arg5 = (int *) 0 ;
13000 int *arg6 = (int *) 0 ;
13001 wxFont *arg7 = (wxFont *) NULL ;
13002 bool temp2 = False ;
13003 int temp3 ;
13004 int temp4 ;
13005 int temp5 ;
13006 int temp6 ;
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;
13019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13021 {
13022 arg2 = wxString_in_helper(obj1);
13023 if (arg2 == NULL) SWIG_fail;
13024 temp2 = True;
13025 }
13026 if (obj2) {
13027 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
13068 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13069 PyObject *resultobj;
13070 wxDC *arg1 = (wxDC *) 0 ;
13071 wxString *arg2 = 0 ;
13072 int *arg3 = (int *) 0 ;
13073 int *arg4 = (int *) 0 ;
13074 int *arg5 = (int *) 0 ;
13075 wxFont *arg6 = (wxFont *) NULL ;
13076 bool temp2 = False ;
13077 int temp3 ;
13078 int temp4 ;
13079 int temp5 ;
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;
13091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13093 {
13094 arg2 = wxString_in_helper(obj1);
13095 if (arg2 == NULL) SWIG_fail;
13096 temp2 = True;
13097 }
13098 if (obj2) {
13099 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
13136 static 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;
13149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
13186 static 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;
13196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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);
13208 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13209 }
13210 return resultobj;
13211 fail:
13212 return NULL;
13213 }
13214
13215
13216 static 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;
13231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
13255 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13256 PyObject *resultobj;
13257 wxDC *arg1 = (wxDC *) 0 ;
13258 wxSize result;
13259 PyObject * obj0 = 0 ;
13260 char *kwnames[] = {
13261 (char *) "self", NULL
13262 };
13263
13264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13267 {
13268 PyThreadState* __tstate = wxPyBeginAllowThreads();
13269 result = ((wxDC const *)arg1)->GetSizeMM();
13270
13271 wxPyEndAllowThreads(__tstate);
13272 if (PyErr_Occurred()) SWIG_fail;
13273 }
13274 {
13275 wxSize * resultptr;
13276 resultptr = new wxSize((wxSize &) result);
13277 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13278 }
13279 return resultobj;
13280 fail:
13281 return NULL;
13282 }
13283
13284
13285 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
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;
13299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
13324 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13325 PyObject *resultobj;
13326 wxDC *arg1 = (wxDC *) 0 ;
13327 int arg2 ;
13328 int result;
13329 PyObject * obj0 = 0 ;
13330 PyObject * obj1 = 0 ;
13331 char *kwnames[] = {
13332 (char *) "self",(char *) "x", NULL
13333 };
13334
13335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
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;
13340 {
13341 PyThreadState* __tstate = wxPyBeginAllowThreads();
13342 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13343
13344 wxPyEndAllowThreads(__tstate);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 }
13347 resultobj = SWIG_FromInt((int)result);
13348 return resultobj;
13349 fail:
13350 return NULL;
13351 }
13352
13353
13354 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13355 PyObject *resultobj;
13356 wxDC *arg1 = (wxDC *) 0 ;
13357 int arg2 ;
13358 int result;
13359 PyObject * obj0 = 0 ;
13360 PyObject * obj1 = 0 ;
13361 char *kwnames[] = {
13362 (char *) "self",(char *) "y", NULL
13363 };
13364
13365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
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;
13370 {
13371 PyThreadState* __tstate = wxPyBeginAllowThreads();
13372 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13373
13374 wxPyEndAllowThreads(__tstate);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 }
13377 resultobj = SWIG_FromInt((int)result);
13378 return resultobj;
13379 fail:
13380 return NULL;
13381 }
13382
13383
13384 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13385 PyObject *resultobj;
13386 wxDC *arg1 = (wxDC *) 0 ;
13387 int arg2 ;
13388 int result;
13389 PyObject * obj0 = 0 ;
13390 PyObject * obj1 = 0 ;
13391 char *kwnames[] = {
13392 (char *) "self",(char *) "x", NULL
13393 };
13394
13395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
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;
13400 {
13401 PyThreadState* __tstate = wxPyBeginAllowThreads();
13402 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13403
13404 wxPyEndAllowThreads(__tstate);
13405 if (PyErr_Occurred()) SWIG_fail;
13406 }
13407 resultobj = SWIG_FromInt((int)result);
13408 return resultobj;
13409 fail:
13410 return NULL;
13411 }
13412
13413
13414 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13415 PyObject *resultobj;
13416 wxDC *arg1 = (wxDC *) 0 ;
13417 int arg2 ;
13418 int result;
13419 PyObject * obj0 = 0 ;
13420 PyObject * obj1 = 0 ;
13421 char *kwnames[] = {
13422 (char *) "self",(char *) "y", NULL
13423 };
13424
13425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
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;
13430 {
13431 PyThreadState* __tstate = wxPyBeginAllowThreads();
13432 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13433
13434 wxPyEndAllowThreads(__tstate);
13435 if (PyErr_Occurred()) SWIG_fail;
13436 }
13437 resultobj = SWIG_FromInt((int)result);
13438 return resultobj;
13439 fail:
13440 return NULL;
13441 }
13442
13443
13444 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13445 PyObject *resultobj;
13446 wxDC *arg1 = (wxDC *) 0 ;
13447 int arg2 ;
13448 int result;
13449 PyObject * obj0 = 0 ;
13450 PyObject * obj1 = 0 ;
13451 char *kwnames[] = {
13452 (char *) "self",(char *) "x", NULL
13453 };
13454
13455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
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;
13460 {
13461 PyThreadState* __tstate = wxPyBeginAllowThreads();
13462 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13463
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 resultobj = SWIG_FromInt((int)result);
13468 return resultobj;
13469 fail:
13470 return NULL;
13471 }
13472
13473
13474 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13475 PyObject *resultobj;
13476 wxDC *arg1 = (wxDC *) 0 ;
13477 int arg2 ;
13478 int result;
13479 PyObject * obj0 = 0 ;
13480 PyObject * obj1 = 0 ;
13481 char *kwnames[] = {
13482 (char *) "self",(char *) "y", NULL
13483 };
13484
13485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
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;
13490 {
13491 PyThreadState* __tstate = wxPyBeginAllowThreads();
13492 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13493
13494 wxPyEndAllowThreads(__tstate);
13495 if (PyErr_Occurred()) SWIG_fail;
13496 }
13497 resultobj = SWIG_FromInt((int)result);
13498 return resultobj;
13499 fail:
13500 return NULL;
13501 }
13502
13503
13504 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13505 PyObject *resultobj;
13506 wxDC *arg1 = (wxDC *) 0 ;
13507 int arg2 ;
13508 int result;
13509 PyObject * obj0 = 0 ;
13510 PyObject * obj1 = 0 ;
13511 char *kwnames[] = {
13512 (char *) "self",(char *) "x", NULL
13513 };
13514
13515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
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;
13520 {
13521 PyThreadState* __tstate = wxPyBeginAllowThreads();
13522 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13523
13524 wxPyEndAllowThreads(__tstate);
13525 if (PyErr_Occurred()) SWIG_fail;
13526 }
13527 resultobj = SWIG_FromInt((int)result);
13528 return resultobj;
13529 fail:
13530 return NULL;
13531 }
13532
13533
13534 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13535 PyObject *resultobj;
13536 wxDC *arg1 = (wxDC *) 0 ;
13537 int arg2 ;
13538 int result;
13539 PyObject * obj0 = 0 ;
13540 PyObject * obj1 = 0 ;
13541 char *kwnames[] = {
13542 (char *) "self",(char *) "y", NULL
13543 };
13544
13545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
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;
13550 {
13551 PyThreadState* __tstate = wxPyBeginAllowThreads();
13552 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13553
13554 wxPyEndAllowThreads(__tstate);
13555 if (PyErr_Occurred()) SWIG_fail;
13556 }
13557 resultobj = SWIG_FromInt((int)result);
13558 return resultobj;
13559 fail:
13560 return NULL;
13561 }
13562
13563
13564 static 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;
13574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13576 {
13577 PyThreadState* __tstate = wxPyBeginAllowThreads();
13578 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13579
13580 wxPyEndAllowThreads(__tstate);
13581 if (PyErr_Occurred()) SWIG_fail;
13582 }
13583 {
13584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13585 }
13586 return resultobj;
13587 fail:
13588 return NULL;
13589 }
13590
13591
13592 static 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;
13602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13604 {
13605 PyThreadState* __tstate = wxPyBeginAllowThreads();
13606 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13607
13608 wxPyEndAllowThreads(__tstate);
13609 if (PyErr_Occurred()) SWIG_fail;
13610 }
13611 {
13612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13613 }
13614 return resultobj;
13615 fail:
13616 return NULL;
13617 }
13618
13619
13620 static 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;
13630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13632 {
13633 PyThreadState* __tstate = wxPyBeginAllowThreads();
13634 result = (int)((wxDC const *)arg1)->GetDepth();
13635
13636 wxPyEndAllowThreads(__tstate);
13637 if (PyErr_Occurred()) SWIG_fail;
13638 }
13639 resultobj = SWIG_FromInt((int)result);
13640 return resultobj;
13641 fail:
13642 return NULL;
13643 }
13644
13645
13646 static 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;
13656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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);
13668 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13669 }
13670 return resultobj;
13671 fail:
13672 return NULL;
13673 }
13674
13675
13676 static 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;
13686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13688 {
13689 PyThreadState* __tstate = wxPyBeginAllowThreads();
13690 result = (bool)((wxDC const *)arg1)->Ok();
13691
13692 wxPyEndAllowThreads(__tstate);
13693 if (PyErr_Occurred()) SWIG_fail;
13694 }
13695 {
13696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13697 }
13698 return resultobj;
13699 fail:
13700 return NULL;
13701 }
13702
13703
13704 static 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;
13714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13716 {
13717 PyThreadState* __tstate = wxPyBeginAllowThreads();
13718 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13719
13720 wxPyEndAllowThreads(__tstate);
13721 if (PyErr_Occurred()) SWIG_fail;
13722 }
13723 resultobj = SWIG_FromInt((int)result);
13724 return resultobj;
13725 fail:
13726 return NULL;
13727 }
13728
13729
13730 static 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;
13740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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 }
13752 {
13753 wxBrush* resultptr = new wxBrush(*result);
13754 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13755 }
13756 return resultobj;
13757 fail:
13758 return NULL;
13759 }
13760
13761
13762 static 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;
13772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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 }
13784 {
13785 wxBrush* resultptr = new wxBrush(*result);
13786 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13787 }
13788 return resultobj;
13789 fail:
13790 return NULL;
13791 }
13792
13793
13794 static 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;
13804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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 }
13816 {
13817 wxFont* resultptr = new wxFont(*result);
13818 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13819 }
13820 return resultobj;
13821 fail:
13822 return NULL;
13823 }
13824
13825
13826 static 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;
13836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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 }
13848 {
13849 wxPen* resultptr = new wxPen(*result);
13850 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13851 }
13852 return resultobj;
13853 fail:
13854 return NULL;
13855 }
13856
13857
13858 static 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;
13868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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 }
13880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13881 return resultobj;
13882 fail:
13883 return NULL;
13884 }
13885
13886
13887 static 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;
13897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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 }
13909 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13910 return resultobj;
13911 fail:
13912 return NULL;
13913 }
13914
13915
13916 static 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;
13928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
13948 static 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;
13960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
13980 static 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;
13990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13992 {
13993 PyThreadState* __tstate = wxPyBeginAllowThreads();
13994 result = (int)((wxDC const *)arg1)->GetMapMode();
13995
13996 wxPyEndAllowThreads(__tstate);
13997 if (PyErr_Occurred()) SWIG_fail;
13998 }
13999 resultobj = SWIG_FromInt((int)result);
14000 return resultobj;
14001 fail:
14002 return NULL;
14003 }
14004
14005
14006 static 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 ;
14011 PyObject * obj1 = 0 ;
14012 char *kwnames[] = {
14013 (char *) "self",(char *) "mode", NULL
14014 };
14015
14016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
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;
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
14035 static 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;
14050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
14074 static 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 ;
14080 PyObject * obj1 = 0 ;
14081 PyObject * obj2 = 0 ;
14082 char *kwnames[] = {
14083 (char *) "self",(char *) "x",(char *) "y", NULL
14084 };
14085
14086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
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;
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
14107 static 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;
14122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
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
14146 static 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 ;
14152 PyObject * obj1 = 0 ;
14153 PyObject * obj2 = 0 ;
14154 char *kwnames[] = {
14155 (char *) "self",(char *) "x",(char *) "y", NULL
14156 };
14157
14158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
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;
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
14179 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14180 PyObject *resultobj;
14181 wxDC *arg1 = (wxDC *) 0 ;
14182 wxPoint result;
14183 PyObject * obj0 = 0 ;
14184 char *kwnames[] = {
14185 (char *) "self", NULL
14186 };
14187
14188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14191 {
14192 PyThreadState* __tstate = wxPyBeginAllowThreads();
14193 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14194
14195 wxPyEndAllowThreads(__tstate);
14196 if (PyErr_Occurred()) SWIG_fail;
14197 }
14198 {
14199 wxPoint * resultptr;
14200 resultptr = new wxPoint((wxPoint &) result);
14201 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14202 }
14203 return resultobj;
14204 fail:
14205 return NULL;
14206 }
14207
14208
14209 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14210 PyObject *resultobj;
14211 wxDC *arg1 = (wxDC *) 0 ;
14212 int *arg2 = (int *) 0 ;
14213 int *arg3 = (int *) 0 ;
14214 int temp2 ;
14215 int temp3 ;
14216 PyObject * obj0 = 0 ;
14217 char *kwnames[] = {
14218 (char *) "self", NULL
14219 };
14220
14221 arg2 = &temp2;
14222 arg3 = &temp3;
14223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14226 {
14227 PyThreadState* __tstate = wxPyBeginAllowThreads();
14228 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14229
14230 wxPyEndAllowThreads(__tstate);
14231 if (PyErr_Occurred()) SWIG_fail;
14232 }
14233 Py_INCREF(Py_None); resultobj = Py_None;
14234 {
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);
14241 }
14242 return resultobj;
14243 fail:
14244 return NULL;
14245 }
14246
14247
14248 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14249 PyObject *resultobj;
14250 wxDC *arg1 = (wxDC *) 0 ;
14251 int arg2 ;
14252 int arg3 ;
14253 PyObject * obj0 = 0 ;
14254 PyObject * obj1 = 0 ;
14255 PyObject * obj2 = 0 ;
14256 char *kwnames[] = {
14257 (char *) "self",(char *) "x",(char *) "y", NULL
14258 };
14259
14260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
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;
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
14281 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14282 PyObject *resultobj;
14283 wxDC *arg1 = (wxDC *) 0 ;
14284 wxPoint result;
14285 PyObject * obj0 = 0 ;
14286 char *kwnames[] = {
14287 (char *) "self", NULL
14288 };
14289
14290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14293 {
14294 PyThreadState* __tstate = wxPyBeginAllowThreads();
14295 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14296
14297 wxPyEndAllowThreads(__tstate);
14298 if (PyErr_Occurred()) SWIG_fail;
14299 }
14300 {
14301 wxPoint * resultptr;
14302 resultptr = new wxPoint((wxPoint &) result);
14303 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14304 }
14305 return resultobj;
14306 fail:
14307 return NULL;
14308 }
14309
14310
14311 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14312 PyObject *resultobj;
14313 wxDC *arg1 = (wxDC *) 0 ;
14314 int *arg2 = (int *) 0 ;
14315 int *arg3 = (int *) 0 ;
14316 int temp2 ;
14317 int temp3 ;
14318 PyObject * obj0 = 0 ;
14319 char *kwnames[] = {
14320 (char *) "self", NULL
14321 };
14322
14323 arg2 = &temp2;
14324 arg3 = &temp3;
14325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14328 {
14329 PyThreadState* __tstate = wxPyBeginAllowThreads();
14330 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14331
14332 wxPyEndAllowThreads(__tstate);
14333 if (PyErr_Occurred()) SWIG_fail;
14334 }
14335 Py_INCREF(Py_None); resultobj = Py_None;
14336 {
14337 PyObject *o = PyInt_FromLong((long) (*arg2));
14338 resultobj = t_output_helper(resultobj,o);
14339 }
14340 {
14341 PyObject *o = PyInt_FromLong((long) (*arg3));
14342 resultobj = t_output_helper(resultobj,o);
14343 }
14344 return resultobj;
14345 fail:
14346 return NULL;
14347 }
14348
14349
14350 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14351 PyObject *resultobj;
14352 wxDC *arg1 = (wxDC *) 0 ;
14353 int arg2 ;
14354 int arg3 ;
14355 PyObject * obj0 = 0 ;
14356 PyObject * obj1 = 0 ;
14357 PyObject * obj2 = 0 ;
14358 char *kwnames[] = {
14359 (char *) "self",(char *) "x",(char *) "y", NULL
14360 };
14361
14362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14365 arg2 = (int) SWIG_AsInt(obj1);
14366 if (PyErr_Occurred()) SWIG_fail;
14367 arg3 = (int) SWIG_AsInt(obj2);
14368 if (PyErr_Occurred()) SWIG_fail;
14369 {
14370 PyThreadState* __tstate = wxPyBeginAllowThreads();
14371 (arg1)->SetDeviceOrigin(arg2,arg3);
14372
14373 wxPyEndAllowThreads(__tstate);
14374 if (PyErr_Occurred()) SWIG_fail;
14375 }
14376 Py_INCREF(Py_None); resultobj = Py_None;
14377 return resultobj;
14378 fail:
14379 return NULL;
14380 }
14381
14382
14383 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14384 PyObject *resultobj;
14385 wxDC *arg1 = (wxDC *) 0 ;
14386 bool arg2 ;
14387 bool arg3 ;
14388 PyObject * obj0 = 0 ;
14389 PyObject * obj1 = 0 ;
14390 PyObject * obj2 = 0 ;
14391 char *kwnames[] = {
14392 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14393 };
14394
14395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14398 arg2 = (bool) SWIG_AsBool(obj1);
14399 if (PyErr_Occurred()) SWIG_fail;
14400 arg3 = (bool) SWIG_AsBool(obj2);
14401 if (PyErr_Occurred()) SWIG_fail;
14402 {
14403 PyThreadState* __tstate = wxPyBeginAllowThreads();
14404 (arg1)->SetAxisOrientation(arg2,arg3);
14405
14406 wxPyEndAllowThreads(__tstate);
14407 if (PyErr_Occurred()) SWIG_fail;
14408 }
14409 Py_INCREF(Py_None); resultobj = Py_None;
14410 return resultobj;
14411 fail:
14412 return NULL;
14413 }
14414
14415
14416 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14417 PyObject *resultobj;
14418 wxDC *arg1 = (wxDC *) 0 ;
14419 int result;
14420 PyObject * obj0 = 0 ;
14421 char *kwnames[] = {
14422 (char *) "self", NULL
14423 };
14424
14425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14428 {
14429 PyThreadState* __tstate = wxPyBeginAllowThreads();
14430 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14431
14432 wxPyEndAllowThreads(__tstate);
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 resultobj = SWIG_FromInt((int)result);
14436 return resultobj;
14437 fail:
14438 return NULL;
14439 }
14440
14441
14442 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14443 PyObject *resultobj;
14444 wxDC *arg1 = (wxDC *) 0 ;
14445 int arg2 ;
14446 PyObject * obj0 = 0 ;
14447 PyObject * obj1 = 0 ;
14448 char *kwnames[] = {
14449 (char *) "self",(char *) "function", NULL
14450 };
14451
14452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14455 arg2 = (int) SWIG_AsInt(obj1);
14456 if (PyErr_Occurred()) SWIG_fail;
14457 {
14458 PyThreadState* __tstate = wxPyBeginAllowThreads();
14459 (arg1)->SetLogicalFunction(arg2);
14460
14461 wxPyEndAllowThreads(__tstate);
14462 if (PyErr_Occurred()) SWIG_fail;
14463 }
14464 Py_INCREF(Py_None); resultobj = Py_None;
14465 return resultobj;
14466 fail:
14467 return NULL;
14468 }
14469
14470
14471 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14472 PyObject *resultobj;
14473 wxDC *arg1 = (wxDC *) 0 ;
14474 bool arg2 ;
14475 PyObject * obj0 = 0 ;
14476 PyObject * obj1 = 0 ;
14477 char *kwnames[] = {
14478 (char *) "self",(char *) "opt", NULL
14479 };
14480
14481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14484 arg2 = (bool) SWIG_AsBool(obj1);
14485 if (PyErr_Occurred()) SWIG_fail;
14486 {
14487 PyThreadState* __tstate = wxPyBeginAllowThreads();
14488 (arg1)->SetOptimization(arg2);
14489
14490 wxPyEndAllowThreads(__tstate);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 }
14493 Py_INCREF(Py_None); resultobj = Py_None;
14494 return resultobj;
14495 fail:
14496 return NULL;
14497 }
14498
14499
14500 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14501 PyObject *resultobj;
14502 wxDC *arg1 = (wxDC *) 0 ;
14503 bool result;
14504 PyObject * obj0 = 0 ;
14505 char *kwnames[] = {
14506 (char *) "self", NULL
14507 };
14508
14509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14512 {
14513 PyThreadState* __tstate = wxPyBeginAllowThreads();
14514 result = (bool)(arg1)->GetOptimization();
14515
14516 wxPyEndAllowThreads(__tstate);
14517 if (PyErr_Occurred()) SWIG_fail;
14518 }
14519 {
14520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14521 }
14522 return resultobj;
14523 fail:
14524 return NULL;
14525 }
14526
14527
14528 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14529 PyObject *resultobj;
14530 wxDC *arg1 = (wxDC *) 0 ;
14531 int arg2 ;
14532 int arg3 ;
14533 PyObject * obj0 = 0 ;
14534 PyObject * obj1 = 0 ;
14535 PyObject * obj2 = 0 ;
14536 char *kwnames[] = {
14537 (char *) "self",(char *) "x",(char *) "y", NULL
14538 };
14539
14540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14543 arg2 = (int) SWIG_AsInt(obj1);
14544 if (PyErr_Occurred()) SWIG_fail;
14545 arg3 = (int) SWIG_AsInt(obj2);
14546 if (PyErr_Occurred()) SWIG_fail;
14547 {
14548 PyThreadState* __tstate = wxPyBeginAllowThreads();
14549 (arg1)->CalcBoundingBox(arg2,arg3);
14550
14551 wxPyEndAllowThreads(__tstate);
14552 if (PyErr_Occurred()) SWIG_fail;
14553 }
14554 Py_INCREF(Py_None); resultobj = Py_None;
14555 return resultobj;
14556 fail:
14557 return NULL;
14558 }
14559
14560
14561 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14562 PyObject *resultobj;
14563 wxDC *arg1 = (wxDC *) 0 ;
14564 PyObject * obj0 = 0 ;
14565 char *kwnames[] = {
14566 (char *) "self", NULL
14567 };
14568
14569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14572 {
14573 PyThreadState* __tstate = wxPyBeginAllowThreads();
14574 (arg1)->ResetBoundingBox();
14575
14576 wxPyEndAllowThreads(__tstate);
14577 if (PyErr_Occurred()) SWIG_fail;
14578 }
14579 Py_INCREF(Py_None); resultobj = Py_None;
14580 return resultobj;
14581 fail:
14582 return NULL;
14583 }
14584
14585
14586 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14587 PyObject *resultobj;
14588 wxDC *arg1 = (wxDC *) 0 ;
14589 int result;
14590 PyObject * obj0 = 0 ;
14591 char *kwnames[] = {
14592 (char *) "self", NULL
14593 };
14594
14595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14598 {
14599 PyThreadState* __tstate = wxPyBeginAllowThreads();
14600 result = (int)((wxDC const *)arg1)->MinX();
14601
14602 wxPyEndAllowThreads(__tstate);
14603 if (PyErr_Occurred()) SWIG_fail;
14604 }
14605 resultobj = SWIG_FromInt((int)result);
14606 return resultobj;
14607 fail:
14608 return NULL;
14609 }
14610
14611
14612 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14613 PyObject *resultobj;
14614 wxDC *arg1 = (wxDC *) 0 ;
14615 int result;
14616 PyObject * obj0 = 0 ;
14617 char *kwnames[] = {
14618 (char *) "self", NULL
14619 };
14620
14621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14624 {
14625 PyThreadState* __tstate = wxPyBeginAllowThreads();
14626 result = (int)((wxDC const *)arg1)->MaxX();
14627
14628 wxPyEndAllowThreads(__tstate);
14629 if (PyErr_Occurred()) SWIG_fail;
14630 }
14631 resultobj = SWIG_FromInt((int)result);
14632 return resultobj;
14633 fail:
14634 return NULL;
14635 }
14636
14637
14638 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14639 PyObject *resultobj;
14640 wxDC *arg1 = (wxDC *) 0 ;
14641 int result;
14642 PyObject * obj0 = 0 ;
14643 char *kwnames[] = {
14644 (char *) "self", NULL
14645 };
14646
14647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14650 {
14651 PyThreadState* __tstate = wxPyBeginAllowThreads();
14652 result = (int)((wxDC const *)arg1)->MinY();
14653
14654 wxPyEndAllowThreads(__tstate);
14655 if (PyErr_Occurred()) SWIG_fail;
14656 }
14657 resultobj = SWIG_FromInt((int)result);
14658 return resultobj;
14659 fail:
14660 return NULL;
14661 }
14662
14663
14664 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14665 PyObject *resultobj;
14666 wxDC *arg1 = (wxDC *) 0 ;
14667 int result;
14668 PyObject * obj0 = 0 ;
14669 char *kwnames[] = {
14670 (char *) "self", NULL
14671 };
14672
14673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14676 {
14677 PyThreadState* __tstate = wxPyBeginAllowThreads();
14678 result = (int)((wxDC const *)arg1)->MaxY();
14679
14680 wxPyEndAllowThreads(__tstate);
14681 if (PyErr_Occurred()) SWIG_fail;
14682 }
14683 resultobj = SWIG_FromInt((int)result);
14684 return resultobj;
14685 fail:
14686 return NULL;
14687 }
14688
14689
14690 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14691 PyObject *resultobj;
14692 wxDC *arg1 = (wxDC *) 0 ;
14693 int *arg2 = (int *) 0 ;
14694 int *arg3 = (int *) 0 ;
14695 int *arg4 = (int *) 0 ;
14696 int *arg5 = (int *) 0 ;
14697 int temp2 ;
14698 int temp3 ;
14699 int temp4 ;
14700 int temp5 ;
14701 PyObject * obj0 = 0 ;
14702 char *kwnames[] = {
14703 (char *) "self", NULL
14704 };
14705
14706 arg2 = &temp2;
14707 arg3 = &temp3;
14708 arg4 = &temp4;
14709 arg5 = &temp5;
14710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14713 {
14714 PyThreadState* __tstate = wxPyBeginAllowThreads();
14715 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14716
14717 wxPyEndAllowThreads(__tstate);
14718 if (PyErr_Occurred()) SWIG_fail;
14719 }
14720 Py_INCREF(Py_None); resultobj = Py_None;
14721 {
14722 PyObject *o = PyInt_FromLong((long) (*arg2));
14723 resultobj = t_output_helper(resultobj,o);
14724 }
14725 {
14726 PyObject *o = PyInt_FromLong((long) (*arg3));
14727 resultobj = t_output_helper(resultobj,o);
14728 }
14729 {
14730 PyObject *o = PyInt_FromLong((long) (*arg4));
14731 resultobj = t_output_helper(resultobj,o);
14732 }
14733 {
14734 PyObject *o = PyInt_FromLong((long) (*arg5));
14735 resultobj = t_output_helper(resultobj,o);
14736 }
14737 return resultobj;
14738 fail:
14739 return NULL;
14740 }
14741
14742
14743 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14744 PyObject *resultobj;
14745 wxDC *arg1 = (wxDC *) 0 ;
14746 PyObject *arg2 = (PyObject *) 0 ;
14747 PyObject *arg3 = (PyObject *) 0 ;
14748 PyObject *arg4 = (PyObject *) 0 ;
14749 PyObject *result;
14750 PyObject * obj0 = 0 ;
14751 PyObject * obj1 = 0 ;
14752 PyObject * obj2 = 0 ;
14753 PyObject * obj3 = 0 ;
14754 char *kwnames[] = {
14755 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14756 };
14757
14758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14761 arg2 = obj1;
14762 arg3 = obj2;
14763 arg4 = obj3;
14764 {
14765 PyThreadState* __tstate = wxPyBeginAllowThreads();
14766 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14767
14768 wxPyEndAllowThreads(__tstate);
14769 if (PyErr_Occurred()) SWIG_fail;
14770 }
14771 resultobj = result;
14772 return resultobj;
14773 fail:
14774 return NULL;
14775 }
14776
14777
14778 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14779 PyObject *resultobj;
14780 wxDC *arg1 = (wxDC *) 0 ;
14781 PyObject *arg2 = (PyObject *) 0 ;
14782 PyObject *arg3 = (PyObject *) 0 ;
14783 PyObject *arg4 = (PyObject *) 0 ;
14784 PyObject *result;
14785 PyObject * obj0 = 0 ;
14786 PyObject * obj1 = 0 ;
14787 PyObject * obj2 = 0 ;
14788 PyObject * obj3 = 0 ;
14789 char *kwnames[] = {
14790 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14791 };
14792
14793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14796 arg2 = obj1;
14797 arg3 = obj2;
14798 arg4 = obj3;
14799 {
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14802
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 resultobj = result;
14807 return resultobj;
14808 fail:
14809 return NULL;
14810 }
14811
14812
14813 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14814 PyObject *resultobj;
14815 wxDC *arg1 = (wxDC *) 0 ;
14816 PyObject *arg2 = (PyObject *) 0 ;
14817 PyObject *arg3 = (PyObject *) 0 ;
14818 PyObject *arg4 = (PyObject *) 0 ;
14819 PyObject *result;
14820 PyObject * obj0 = 0 ;
14821 PyObject * obj1 = 0 ;
14822 PyObject * obj2 = 0 ;
14823 PyObject * obj3 = 0 ;
14824 char *kwnames[] = {
14825 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14826 };
14827
14828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14831 arg2 = obj1;
14832 arg3 = obj2;
14833 arg4 = obj3;
14834 {
14835 PyThreadState* __tstate = wxPyBeginAllowThreads();
14836 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14837
14838 wxPyEndAllowThreads(__tstate);
14839 if (PyErr_Occurred()) SWIG_fail;
14840 }
14841 resultobj = result;
14842 return resultobj;
14843 fail:
14844 return NULL;
14845 }
14846
14847
14848 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14849 PyObject *resultobj;
14850 wxDC *arg1 = (wxDC *) 0 ;
14851 PyObject *arg2 = (PyObject *) 0 ;
14852 PyObject *arg3 = (PyObject *) 0 ;
14853 PyObject *arg4 = (PyObject *) 0 ;
14854 PyObject *result;
14855 PyObject * obj0 = 0 ;
14856 PyObject * obj1 = 0 ;
14857 PyObject * obj2 = 0 ;
14858 PyObject * obj3 = 0 ;
14859 char *kwnames[] = {
14860 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14861 };
14862
14863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14866 arg2 = obj1;
14867 arg3 = obj2;
14868 arg4 = obj3;
14869 {
14870 PyThreadState* __tstate = wxPyBeginAllowThreads();
14871 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14872
14873 wxPyEndAllowThreads(__tstate);
14874 if (PyErr_Occurred()) SWIG_fail;
14875 }
14876 resultobj = result;
14877 return resultobj;
14878 fail:
14879 return NULL;
14880 }
14881
14882
14883 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14884 PyObject *resultobj;
14885 wxDC *arg1 = (wxDC *) 0 ;
14886 PyObject *arg2 = (PyObject *) 0 ;
14887 PyObject *arg3 = (PyObject *) 0 ;
14888 PyObject *arg4 = (PyObject *) 0 ;
14889 PyObject *result;
14890 PyObject * obj0 = 0 ;
14891 PyObject * obj1 = 0 ;
14892 PyObject * obj2 = 0 ;
14893 PyObject * obj3 = 0 ;
14894 char *kwnames[] = {
14895 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14896 };
14897
14898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14901 arg2 = obj1;
14902 arg3 = obj2;
14903 arg4 = obj3;
14904 {
14905 PyThreadState* __tstate = wxPyBeginAllowThreads();
14906 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14907
14908 wxPyEndAllowThreads(__tstate);
14909 if (PyErr_Occurred()) SWIG_fail;
14910 }
14911 resultobj = result;
14912 return resultobj;
14913 fail:
14914 return NULL;
14915 }
14916
14917
14918 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14919 PyObject *resultobj;
14920 wxDC *arg1 = (wxDC *) 0 ;
14921 PyObject *arg2 = (PyObject *) 0 ;
14922 PyObject *arg3 = (PyObject *) 0 ;
14923 PyObject *arg4 = (PyObject *) 0 ;
14924 PyObject *arg5 = (PyObject *) 0 ;
14925 PyObject *result;
14926 PyObject * obj0 = 0 ;
14927 PyObject * obj1 = 0 ;
14928 PyObject * obj2 = 0 ;
14929 PyObject * obj3 = 0 ;
14930 PyObject * obj4 = 0 ;
14931 char *kwnames[] = {
14932 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14933 };
14934
14935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14938 arg2 = obj1;
14939 arg3 = obj2;
14940 arg4 = obj3;
14941 arg5 = obj4;
14942 {
14943 PyThreadState* __tstate = wxPyBeginAllowThreads();
14944 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14945
14946 wxPyEndAllowThreads(__tstate);
14947 if (PyErr_Occurred()) SWIG_fail;
14948 }
14949 resultobj = result;
14950 return resultobj;
14951 fail:
14952 return NULL;
14953 }
14954
14955
14956 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14957 PyObject *obj;
14958 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14959 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14960 Py_INCREF(obj);
14961 return Py_BuildValue((char *)"");
14962 }
14963 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14964 PyObject *resultobj;
14965 wxMemoryDC *result;
14966 char *kwnames[] = {
14967 NULL
14968 };
14969
14970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14971 {
14972 PyThreadState* __tstate = wxPyBeginAllowThreads();
14973 result = (wxMemoryDC *)new wxMemoryDC();
14974
14975 wxPyEndAllowThreads(__tstate);
14976 if (PyErr_Occurred()) SWIG_fail;
14977 }
14978 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14979 return resultobj;
14980 fail:
14981 return NULL;
14982 }
14983
14984
14985 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14986 PyObject *resultobj;
14987 wxDC *arg1 = (wxDC *) 0 ;
14988 wxMemoryDC *result;
14989 PyObject * obj0 = 0 ;
14990 char *kwnames[] = {
14991 (char *) "oldDC", NULL
14992 };
14993
14994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14997 {
14998 PyThreadState* __tstate = wxPyBeginAllowThreads();
14999 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15000
15001 wxPyEndAllowThreads(__tstate);
15002 if (PyErr_Occurred()) SWIG_fail;
15003 }
15004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15005 return resultobj;
15006 fail:
15007 return NULL;
15008 }
15009
15010
15011 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15012 PyObject *resultobj;
15013 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15014 wxBitmap *arg2 = 0 ;
15015 PyObject * obj0 = 0 ;
15016 PyObject * obj1 = 0 ;
15017 char *kwnames[] = {
15018 (char *) "self",(char *) "bitmap", NULL
15019 };
15020
15021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15024 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15025 SWIG_POINTER_EXCEPTION | 0)) == -1)
15026 SWIG_fail;
15027 if (arg2 == NULL) {
15028 PyErr_SetString(PyExc_TypeError,"null reference");
15029 SWIG_fail;
15030 }
15031 {
15032 PyThreadState* __tstate = wxPyBeginAllowThreads();
15033 (arg1)->SelectObject((wxBitmap const &)*arg2);
15034
15035 wxPyEndAllowThreads(__tstate);
15036 if (PyErr_Occurred()) SWIG_fail;
15037 }
15038 Py_INCREF(Py_None); resultobj = Py_None;
15039 return resultobj;
15040 fail:
15041 return NULL;
15042 }
15043
15044
15045 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15046 PyObject *obj;
15047 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15048 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15049 Py_INCREF(obj);
15050 return Py_BuildValue((char *)"");
15051 }
15052 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15053 PyObject *resultobj;
15054 wxDC *arg1 = (wxDC *) 0 ;
15055 wxBitmap *arg2 = 0 ;
15056 wxBufferedDC *result;
15057 PyObject * obj0 = 0 ;
15058 PyObject * obj1 = 0 ;
15059
15060 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15063 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15064 SWIG_POINTER_EXCEPTION | 0)) == -1)
15065 SWIG_fail;
15066 if (arg2 == NULL) {
15067 PyErr_SetString(PyExc_TypeError,"null reference");
15068 SWIG_fail;
15069 }
15070 {
15071 PyThreadState* __tstate = wxPyBeginAllowThreads();
15072 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15073
15074 wxPyEndAllowThreads(__tstate);
15075 if (PyErr_Occurred()) SWIG_fail;
15076 }
15077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15078 return resultobj;
15079 fail:
15080 return NULL;
15081 }
15082
15083
15084 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15085 PyObject *resultobj;
15086 wxDC *arg1 = (wxDC *) 0 ;
15087 wxSize *arg2 = 0 ;
15088 wxBufferedDC *result;
15089 wxSize temp2 ;
15090 PyObject * obj0 = 0 ;
15091 PyObject * obj1 = 0 ;
15092
15093 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15096 {
15097 arg2 = &temp2;
15098 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15099 }
15100 {
15101 PyThreadState* __tstate = wxPyBeginAllowThreads();
15102 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15103
15104 wxPyEndAllowThreads(__tstate);
15105 if (PyErr_Occurred()) SWIG_fail;
15106 }
15107 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15108 return resultobj;
15109 fail:
15110 return NULL;
15111 }
15112
15113
15114 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15115 int argc;
15116 PyObject *argv[3];
15117 int ii;
15118
15119 argc = PyObject_Length(args);
15120 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15121 argv[ii] = PyTuple_GetItem(args,ii);
15122 }
15123 if (argc == 2) {
15124 int _v;
15125 {
15126 void *ptr;
15127 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15128 _v = 0;
15129 PyErr_Clear();
15130 } else {
15131 _v = 1;
15132 }
15133 }
15134 if (_v) {
15135 {
15136 void *ptr;
15137 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15138 _v = 0;
15139 PyErr_Clear();
15140 } else {
15141 _v = 1;
15142 }
15143 }
15144 if (_v) {
15145 return _wrap_new_BufferedDC__SWIG_0(self,args);
15146 }
15147 }
15148 }
15149 if (argc == 2) {
15150 int _v;
15151 {
15152 void *ptr;
15153 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15154 _v = 0;
15155 PyErr_Clear();
15156 } else {
15157 _v = 1;
15158 }
15159 }
15160 if (_v) {
15161 {
15162 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15163 }
15164 if (_v) {
15165 return _wrap_new_BufferedDC__SWIG_1(self,args);
15166 }
15167 }
15168 }
15169
15170 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15171 return NULL;
15172 }
15173
15174
15175 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15176 PyObject *resultobj;
15177 wxDC *arg1 = (wxDC *) 0 ;
15178 wxSize *arg2 = 0 ;
15179 wxBufferedDC *result;
15180 wxSize temp2 ;
15181 PyObject * obj0 = 0 ;
15182 PyObject * obj1 = 0 ;
15183
15184 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15187 {
15188 arg2 = &temp2;
15189 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15190 }
15191 {
15192 PyThreadState* __tstate = wxPyBeginAllowThreads();
15193 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15194
15195 wxPyEndAllowThreads(__tstate);
15196 if (PyErr_Occurred()) SWIG_fail;
15197 }
15198 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15199 return resultobj;
15200 fail:
15201 return NULL;
15202 }
15203
15204
15205 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15206 PyObject *resultobj;
15207 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15208 PyObject * obj0 = 0 ;
15209 char *kwnames[] = {
15210 (char *) "self", NULL
15211 };
15212
15213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15216 {
15217 PyThreadState* __tstate = wxPyBeginAllowThreads();
15218 delete arg1;
15219
15220 wxPyEndAllowThreads(__tstate);
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
15223 Py_INCREF(Py_None); resultobj = Py_None;
15224 return resultobj;
15225 fail:
15226 return NULL;
15227 }
15228
15229
15230 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15231 PyObject *resultobj;
15232 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15233 PyObject * obj0 = 0 ;
15234 char *kwnames[] = {
15235 (char *) "self", NULL
15236 };
15237
15238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15241 {
15242 PyThreadState* __tstate = wxPyBeginAllowThreads();
15243 (arg1)->UnMask();
15244
15245 wxPyEndAllowThreads(__tstate);
15246 if (PyErr_Occurred()) SWIG_fail;
15247 }
15248 Py_INCREF(Py_None); resultobj = Py_None;
15249 return resultobj;
15250 fail:
15251 return NULL;
15252 }
15253
15254
15255 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15256 PyObject *obj;
15257 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15258 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15259 Py_INCREF(obj);
15260 return Py_BuildValue((char *)"");
15261 }
15262 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15263 PyObject *resultobj;
15264 wxWindow *arg1 = (wxWindow *) 0 ;
15265 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15266 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15267 wxBufferedPaintDC *result;
15268 PyObject * obj0 = 0 ;
15269 PyObject * obj1 = 0 ;
15270 char *kwnames[] = {
15271 (char *) "window",(char *) "buffer", NULL
15272 };
15273
15274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15277 if (obj1) {
15278 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15279 SWIG_POINTER_EXCEPTION | 0)) == -1)
15280 SWIG_fail;
15281 if (arg2 == NULL) {
15282 PyErr_SetString(PyExc_TypeError,"null reference");
15283 SWIG_fail;
15284 }
15285 }
15286 {
15287 PyThreadState* __tstate = wxPyBeginAllowThreads();
15288 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15289
15290 wxPyEndAllowThreads(__tstate);
15291 if (PyErr_Occurred()) SWIG_fail;
15292 }
15293 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15294 return resultobj;
15295 fail:
15296 return NULL;
15297 }
15298
15299
15300 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15301 PyObject *obj;
15302 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15303 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15304 Py_INCREF(obj);
15305 return Py_BuildValue((char *)"");
15306 }
15307 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15308 PyObject *resultobj;
15309 wxScreenDC *result;
15310 char *kwnames[] = {
15311 NULL
15312 };
15313
15314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15315 {
15316 PyThreadState* __tstate = wxPyBeginAllowThreads();
15317 result = (wxScreenDC *)new wxScreenDC();
15318
15319 wxPyEndAllowThreads(__tstate);
15320 if (PyErr_Occurred()) SWIG_fail;
15321 }
15322 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15323 return resultobj;
15324 fail:
15325 return NULL;
15326 }
15327
15328
15329 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15330 PyObject *resultobj;
15331 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15332 wxWindow *arg2 = (wxWindow *) 0 ;
15333 bool result;
15334 PyObject * obj0 = 0 ;
15335 PyObject * obj1 = 0 ;
15336 char *kwnames[] = {
15337 (char *) "self",(char *) "window", NULL
15338 };
15339
15340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15343 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15345 {
15346 PyThreadState* __tstate = wxPyBeginAllowThreads();
15347 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15348
15349 wxPyEndAllowThreads(__tstate);
15350 if (PyErr_Occurred()) SWIG_fail;
15351 }
15352 {
15353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15354 }
15355 return resultobj;
15356 fail:
15357 return NULL;
15358 }
15359
15360
15361 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15362 PyObject *resultobj;
15363 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15364 wxRect *arg2 = (wxRect *) NULL ;
15365 bool result;
15366 PyObject * obj0 = 0 ;
15367 PyObject * obj1 = 0 ;
15368 char *kwnames[] = {
15369 (char *) "self",(char *) "rect", NULL
15370 };
15371
15372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15375 if (obj1) {
15376 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15378 }
15379 {
15380 PyThreadState* __tstate = wxPyBeginAllowThreads();
15381 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15382
15383 wxPyEndAllowThreads(__tstate);
15384 if (PyErr_Occurred()) SWIG_fail;
15385 }
15386 {
15387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15388 }
15389 return resultobj;
15390 fail:
15391 return NULL;
15392 }
15393
15394
15395 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15396 PyObject *resultobj;
15397 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15398 bool result;
15399 PyObject * obj0 = 0 ;
15400 char *kwnames[] = {
15401 (char *) "self", NULL
15402 };
15403
15404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15407 {
15408 PyThreadState* __tstate = wxPyBeginAllowThreads();
15409 result = (bool)(arg1)->EndDrawingOnTop();
15410
15411 wxPyEndAllowThreads(__tstate);
15412 if (PyErr_Occurred()) SWIG_fail;
15413 }
15414 {
15415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15416 }
15417 return resultobj;
15418 fail:
15419 return NULL;
15420 }
15421
15422
15423 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15424 PyObject *obj;
15425 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15426 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15427 Py_INCREF(obj);
15428 return Py_BuildValue((char *)"");
15429 }
15430 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15431 PyObject *resultobj;
15432 wxWindow *arg1 = (wxWindow *) 0 ;
15433 wxClientDC *result;
15434 PyObject * obj0 = 0 ;
15435 char *kwnames[] = {
15436 (char *) "win", NULL
15437 };
15438
15439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15442 {
15443 PyThreadState* __tstate = wxPyBeginAllowThreads();
15444 result = (wxClientDC *)new wxClientDC(arg1);
15445
15446 wxPyEndAllowThreads(__tstate);
15447 if (PyErr_Occurred()) SWIG_fail;
15448 }
15449 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15450 return resultobj;
15451 fail:
15452 return NULL;
15453 }
15454
15455
15456 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15457 PyObject *obj;
15458 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15459 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15460 Py_INCREF(obj);
15461 return Py_BuildValue((char *)"");
15462 }
15463 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15464 PyObject *resultobj;
15465 wxWindow *arg1 = (wxWindow *) 0 ;
15466 wxPaintDC *result;
15467 PyObject * obj0 = 0 ;
15468 char *kwnames[] = {
15469 (char *) "win", NULL
15470 };
15471
15472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15475 {
15476 PyThreadState* __tstate = wxPyBeginAllowThreads();
15477 result = (wxPaintDC *)new wxPaintDC(arg1);
15478
15479 wxPyEndAllowThreads(__tstate);
15480 if (PyErr_Occurred()) SWIG_fail;
15481 }
15482 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15483 return resultobj;
15484 fail:
15485 return NULL;
15486 }
15487
15488
15489 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15490 PyObject *obj;
15491 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15492 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15493 Py_INCREF(obj);
15494 return Py_BuildValue((char *)"");
15495 }
15496 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15497 PyObject *resultobj;
15498 wxWindow *arg1 = (wxWindow *) 0 ;
15499 wxWindowDC *result;
15500 PyObject * obj0 = 0 ;
15501 char *kwnames[] = {
15502 (char *) "win", NULL
15503 };
15504
15505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15508 {
15509 PyThreadState* __tstate = wxPyBeginAllowThreads();
15510 result = (wxWindowDC *)new wxWindowDC(arg1);
15511
15512 wxPyEndAllowThreads(__tstate);
15513 if (PyErr_Occurred()) SWIG_fail;
15514 }
15515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15516 return resultobj;
15517 fail:
15518 return NULL;
15519 }
15520
15521
15522 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15523 PyObject *obj;
15524 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15525 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15526 Py_INCREF(obj);
15527 return Py_BuildValue((char *)"");
15528 }
15529 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15530 PyObject *resultobj;
15531 wxDC *arg1 = 0 ;
15532 bool arg2 ;
15533 wxMirrorDC *result;
15534 PyObject * obj0 = 0 ;
15535 PyObject * obj1 = 0 ;
15536 char *kwnames[] = {
15537 (char *) "dc",(char *) "mirror", NULL
15538 };
15539
15540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15542 SWIG_POINTER_EXCEPTION | 0)) == -1)
15543 SWIG_fail;
15544 if (arg1 == NULL) {
15545 PyErr_SetString(PyExc_TypeError,"null reference");
15546 SWIG_fail;
15547 }
15548 arg2 = (bool) SWIG_AsBool(obj1);
15549 if (PyErr_Occurred()) SWIG_fail;
15550 {
15551 PyThreadState* __tstate = wxPyBeginAllowThreads();
15552 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15553
15554 wxPyEndAllowThreads(__tstate);
15555 if (PyErr_Occurred()) SWIG_fail;
15556 }
15557 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15558 return resultobj;
15559 fail:
15560 return NULL;
15561 }
15562
15563
15564 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15565 PyObject *obj;
15566 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15567 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15568 Py_INCREF(obj);
15569 return Py_BuildValue((char *)"");
15570 }
15571 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15572 PyObject *resultobj;
15573 wxPrintData *arg1 = 0 ;
15574 wxPostScriptDC *result;
15575 PyObject * obj0 = 0 ;
15576 char *kwnames[] = {
15577 (char *) "printData", NULL
15578 };
15579
15580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15582 SWIG_POINTER_EXCEPTION | 0)) == -1)
15583 SWIG_fail;
15584 if (arg1 == NULL) {
15585 PyErr_SetString(PyExc_TypeError,"null reference");
15586 SWIG_fail;
15587 }
15588 {
15589 PyThreadState* __tstate = wxPyBeginAllowThreads();
15590 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15591
15592 wxPyEndAllowThreads(__tstate);
15593 if (PyErr_Occurred()) SWIG_fail;
15594 }
15595 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15596 return resultobj;
15597 fail:
15598 return NULL;
15599 }
15600
15601
15602 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15603 PyObject *resultobj;
15604 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15605 wxPrintData *result;
15606 PyObject * obj0 = 0 ;
15607 char *kwnames[] = {
15608 (char *) "self", NULL
15609 };
15610
15611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15614 {
15615 PyThreadState* __tstate = wxPyBeginAllowThreads();
15616 {
15617 wxPrintData &_result_ref = (arg1)->GetPrintData();
15618 result = (wxPrintData *) &_result_ref;
15619 }
15620
15621 wxPyEndAllowThreads(__tstate);
15622 if (PyErr_Occurred()) SWIG_fail;
15623 }
15624 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15625 return resultobj;
15626 fail:
15627 return NULL;
15628 }
15629
15630
15631 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15632 PyObject *resultobj;
15633 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15634 wxPrintData *arg2 = 0 ;
15635 PyObject * obj0 = 0 ;
15636 PyObject * obj1 = 0 ;
15637 char *kwnames[] = {
15638 (char *) "self",(char *) "data", NULL
15639 };
15640
15641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15644 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15645 SWIG_POINTER_EXCEPTION | 0)) == -1)
15646 SWIG_fail;
15647 if (arg2 == NULL) {
15648 PyErr_SetString(PyExc_TypeError,"null reference");
15649 SWIG_fail;
15650 }
15651 {
15652 PyThreadState* __tstate = wxPyBeginAllowThreads();
15653 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15654
15655 wxPyEndAllowThreads(__tstate);
15656 if (PyErr_Occurred()) SWIG_fail;
15657 }
15658 Py_INCREF(Py_None); resultobj = Py_None;
15659 return resultobj;
15660 fail:
15661 return NULL;
15662 }
15663
15664
15665 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15666 PyObject *resultobj;
15667 int arg1 ;
15668 PyObject * obj0 = 0 ;
15669 char *kwnames[] = {
15670 (char *) "ppi", NULL
15671 };
15672
15673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15674 arg1 = (int) SWIG_AsInt(obj0);
15675 if (PyErr_Occurred()) SWIG_fail;
15676 {
15677 PyThreadState* __tstate = wxPyBeginAllowThreads();
15678 wxPostScriptDC::SetResolution(arg1);
15679
15680 wxPyEndAllowThreads(__tstate);
15681 if (PyErr_Occurred()) SWIG_fail;
15682 }
15683 Py_INCREF(Py_None); resultobj = Py_None;
15684 return resultobj;
15685 fail:
15686 return NULL;
15687 }
15688
15689
15690 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15691 PyObject *resultobj;
15692 int result;
15693 char *kwnames[] = {
15694 NULL
15695 };
15696
15697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15698 {
15699 PyThreadState* __tstate = wxPyBeginAllowThreads();
15700 result = (int)wxPostScriptDC::GetResolution();
15701
15702 wxPyEndAllowThreads(__tstate);
15703 if (PyErr_Occurred()) SWIG_fail;
15704 }
15705 resultobj = SWIG_FromInt((int)result);
15706 return resultobj;
15707 fail:
15708 return NULL;
15709 }
15710
15711
15712 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15713 PyObject *obj;
15714 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15715 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15716 Py_INCREF(obj);
15717 return Py_BuildValue((char *)"");
15718 }
15719 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15720 PyObject *resultobj;
15721 wxString const &arg1_defvalue = wxPyEmptyString ;
15722 wxString *arg1 = (wxString *) &arg1_defvalue ;
15723 wxMetaFile *result;
15724 bool temp1 = False ;
15725 PyObject * obj0 = 0 ;
15726 char *kwnames[] = {
15727 (char *) "filename", NULL
15728 };
15729
15730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15731 if (obj0) {
15732 {
15733 arg1 = wxString_in_helper(obj0);
15734 if (arg1 == NULL) SWIG_fail;
15735 temp1 = True;
15736 }
15737 }
15738 {
15739 PyThreadState* __tstate = wxPyBeginAllowThreads();
15740 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15741
15742 wxPyEndAllowThreads(__tstate);
15743 if (PyErr_Occurred()) SWIG_fail;
15744 }
15745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15746 {
15747 if (temp1)
15748 delete arg1;
15749 }
15750 return resultobj;
15751 fail:
15752 {
15753 if (temp1)
15754 delete arg1;
15755 }
15756 return NULL;
15757 }
15758
15759
15760 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15761 PyObject *resultobj;
15762 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15763 PyObject * obj0 = 0 ;
15764 char *kwnames[] = {
15765 (char *) "self", NULL
15766 };
15767
15768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15771 {
15772 PyThreadState* __tstate = wxPyBeginAllowThreads();
15773 delete arg1;
15774
15775 wxPyEndAllowThreads(__tstate);
15776 if (PyErr_Occurred()) SWIG_fail;
15777 }
15778 Py_INCREF(Py_None); resultobj = Py_None;
15779 return resultobj;
15780 fail:
15781 return NULL;
15782 }
15783
15784
15785 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
15786 PyObject *resultobj;
15787 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15788 bool result;
15789 PyObject * obj0 = 0 ;
15790 char *kwnames[] = {
15791 (char *) "self", NULL
15792 };
15793
15794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15797 {
15798 PyThreadState* __tstate = wxPyBeginAllowThreads();
15799 result = (bool)(arg1)->Ok();
15800
15801 wxPyEndAllowThreads(__tstate);
15802 if (PyErr_Occurred()) SWIG_fail;
15803 }
15804 {
15805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15806 }
15807 return resultobj;
15808 fail:
15809 return NULL;
15810 }
15811
15812
15813 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
15814 PyObject *resultobj;
15815 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15816 int arg2 = (int) 0 ;
15817 int arg3 = (int) 0 ;
15818 bool result;
15819 PyObject * obj0 = 0 ;
15820 PyObject * obj1 = 0 ;
15821 PyObject * obj2 = 0 ;
15822 char *kwnames[] = {
15823 (char *) "self",(char *) "width",(char *) "height", NULL
15824 };
15825
15826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15829 if (obj1) {
15830 arg2 = (int) SWIG_AsInt(obj1);
15831 if (PyErr_Occurred()) SWIG_fail;
15832 }
15833 if (obj2) {
15834 arg3 = (int) SWIG_AsInt(obj2);
15835 if (PyErr_Occurred()) SWIG_fail;
15836 }
15837 {
15838 PyThreadState* __tstate = wxPyBeginAllowThreads();
15839 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15840
15841 wxPyEndAllowThreads(__tstate);
15842 if (PyErr_Occurred()) SWIG_fail;
15843 }
15844 {
15845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15846 }
15847 return resultobj;
15848 fail:
15849 return NULL;
15850 }
15851
15852
15853 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15854 PyObject *resultobj;
15855 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15856 wxSize result;
15857 PyObject * obj0 = 0 ;
15858 char *kwnames[] = {
15859 (char *) "self", NULL
15860 };
15861
15862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
15863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15865 {
15866 PyThreadState* __tstate = wxPyBeginAllowThreads();
15867 result = (arg1)->GetSize();
15868
15869 wxPyEndAllowThreads(__tstate);
15870 if (PyErr_Occurred()) SWIG_fail;
15871 }
15872 {
15873 wxSize * resultptr;
15874 resultptr = new wxSize((wxSize &) result);
15875 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15876 }
15877 return resultobj;
15878 fail:
15879 return NULL;
15880 }
15881
15882
15883 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
15884 PyObject *resultobj;
15885 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15886 int result;
15887 PyObject * obj0 = 0 ;
15888 char *kwnames[] = {
15889 (char *) "self", NULL
15890 };
15891
15892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
15893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15895 {
15896 PyThreadState* __tstate = wxPyBeginAllowThreads();
15897 result = (int)(arg1)->GetWidth();
15898
15899 wxPyEndAllowThreads(__tstate);
15900 if (PyErr_Occurred()) SWIG_fail;
15901 }
15902 resultobj = SWIG_FromInt((int)result);
15903 return resultobj;
15904 fail:
15905 return NULL;
15906 }
15907
15908
15909 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
15910 PyObject *resultobj;
15911 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15912 int result;
15913 PyObject * obj0 = 0 ;
15914 char *kwnames[] = {
15915 (char *) "self", NULL
15916 };
15917
15918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
15919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15921 {
15922 PyThreadState* __tstate = wxPyBeginAllowThreads();
15923 result = (int)(arg1)->GetHeight();
15924
15925 wxPyEndAllowThreads(__tstate);
15926 if (PyErr_Occurred()) SWIG_fail;
15927 }
15928 resultobj = SWIG_FromInt((int)result);
15929 return resultobj;
15930 fail:
15931 return NULL;
15932 }
15933
15934
15935 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15936 PyObject *obj;
15937 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15938 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15939 Py_INCREF(obj);
15940 return Py_BuildValue((char *)"");
15941 }
15942 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15943 PyObject *resultobj;
15944 wxString const &arg1_defvalue = wxPyEmptyString ;
15945 wxString *arg1 = (wxString *) &arg1_defvalue ;
15946 int arg2 = (int) 0 ;
15947 int arg3 = (int) 0 ;
15948 wxString const &arg4_defvalue = wxPyEmptyString ;
15949 wxString *arg4 = (wxString *) &arg4_defvalue ;
15950 wxMetaFileDC *result;
15951 bool temp1 = False ;
15952 bool temp4 = False ;
15953 PyObject * obj0 = 0 ;
15954 PyObject * obj1 = 0 ;
15955 PyObject * obj2 = 0 ;
15956 PyObject * obj3 = 0 ;
15957 char *kwnames[] = {
15958 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15959 };
15960
15961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15962 if (obj0) {
15963 {
15964 arg1 = wxString_in_helper(obj0);
15965 if (arg1 == NULL) SWIG_fail;
15966 temp1 = True;
15967 }
15968 }
15969 if (obj1) {
15970 arg2 = (int) SWIG_AsInt(obj1);
15971 if (PyErr_Occurred()) SWIG_fail;
15972 }
15973 if (obj2) {
15974 arg3 = (int) SWIG_AsInt(obj2);
15975 if (PyErr_Occurred()) SWIG_fail;
15976 }
15977 if (obj3) {
15978 {
15979 arg4 = wxString_in_helper(obj3);
15980 if (arg4 == NULL) SWIG_fail;
15981 temp4 = True;
15982 }
15983 }
15984 {
15985 PyThreadState* __tstate = wxPyBeginAllowThreads();
15986 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15987
15988 wxPyEndAllowThreads(__tstate);
15989 if (PyErr_Occurred()) SWIG_fail;
15990 }
15991 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
15992 {
15993 if (temp1)
15994 delete arg1;
15995 }
15996 {
15997 if (temp4)
15998 delete arg4;
15999 }
16000 return resultobj;
16001 fail:
16002 {
16003 if (temp1)
16004 delete arg1;
16005 }
16006 {
16007 if (temp4)
16008 delete arg4;
16009 }
16010 return NULL;
16011 }
16012
16013
16014 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16015 PyObject *resultobj;
16016 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16017 wxMetaFile *result;
16018 PyObject * obj0 = 0 ;
16019 char *kwnames[] = {
16020 (char *) "self", NULL
16021 };
16022
16023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16026 {
16027 PyThreadState* __tstate = wxPyBeginAllowThreads();
16028 result = (wxMetaFile *)(arg1)->Close();
16029
16030 wxPyEndAllowThreads(__tstate);
16031 if (PyErr_Occurred()) SWIG_fail;
16032 }
16033 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16034 return resultobj;
16035 fail:
16036 return NULL;
16037 }
16038
16039
16040 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16041 PyObject *obj;
16042 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16043 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16044 Py_INCREF(obj);
16045 return Py_BuildValue((char *)"");
16046 }
16047 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16048 PyObject *resultobj;
16049 wxPrintData *arg1 = 0 ;
16050 wxPrinterDC *result;
16051 PyObject * obj0 = 0 ;
16052 char *kwnames[] = {
16053 (char *) "printData", NULL
16054 };
16055
16056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16058 SWIG_POINTER_EXCEPTION | 0)) == -1)
16059 SWIG_fail;
16060 if (arg1 == NULL) {
16061 PyErr_SetString(PyExc_TypeError,"null reference");
16062 SWIG_fail;
16063 }
16064 {
16065 PyThreadState* __tstate = wxPyBeginAllowThreads();
16066 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16067
16068 wxPyEndAllowThreads(__tstate);
16069 if (PyErr_Occurred()) SWIG_fail;
16070 }
16071 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16072 return resultobj;
16073 fail:
16074 return NULL;
16075 }
16076
16077
16078 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16079 PyObject *obj;
16080 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16081 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16082 Py_INCREF(obj);
16083 return Py_BuildValue((char *)"");
16084 }
16085 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16086 PyObject *resultobj;
16087 int arg1 ;
16088 int arg2 ;
16089 int arg3 = (int) True ;
16090 int arg4 = (int) 1 ;
16091 wxImageList *result;
16092 PyObject * obj0 = 0 ;
16093 PyObject * obj1 = 0 ;
16094 PyObject * obj2 = 0 ;
16095 PyObject * obj3 = 0 ;
16096 char *kwnames[] = {
16097 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16098 };
16099
16100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16101 arg1 = (int) SWIG_AsInt(obj0);
16102 if (PyErr_Occurred()) SWIG_fail;
16103 arg2 = (int) SWIG_AsInt(obj1);
16104 if (PyErr_Occurred()) SWIG_fail;
16105 if (obj2) {
16106 arg3 = (int) SWIG_AsInt(obj2);
16107 if (PyErr_Occurred()) SWIG_fail;
16108 }
16109 if (obj3) {
16110 arg4 = (int) SWIG_AsInt(obj3);
16111 if (PyErr_Occurred()) SWIG_fail;
16112 }
16113 {
16114 PyThreadState* __tstate = wxPyBeginAllowThreads();
16115 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16116
16117 wxPyEndAllowThreads(__tstate);
16118 if (PyErr_Occurred()) SWIG_fail;
16119 }
16120 {
16121 resultobj = wxPyMake_wxObject(result);
16122 }
16123 return resultobj;
16124 fail:
16125 return NULL;
16126 }
16127
16128
16129 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16130 PyObject *resultobj;
16131 wxImageList *arg1 = (wxImageList *) 0 ;
16132 PyObject * obj0 = 0 ;
16133 char *kwnames[] = {
16134 (char *) "self", NULL
16135 };
16136
16137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16140 {
16141 PyThreadState* __tstate = wxPyBeginAllowThreads();
16142 delete arg1;
16143
16144 wxPyEndAllowThreads(__tstate);
16145 if (PyErr_Occurred()) SWIG_fail;
16146 }
16147 Py_INCREF(Py_None); resultobj = Py_None;
16148 return resultobj;
16149 fail:
16150 return NULL;
16151 }
16152
16153
16154 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16155 PyObject *resultobj;
16156 wxImageList *arg1 = (wxImageList *) 0 ;
16157 wxBitmap *arg2 = 0 ;
16158 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16159 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16160 int result;
16161 PyObject * obj0 = 0 ;
16162 PyObject * obj1 = 0 ;
16163 PyObject * obj2 = 0 ;
16164 char *kwnames[] = {
16165 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16166 };
16167
16168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16171 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16172 SWIG_POINTER_EXCEPTION | 0)) == -1)
16173 SWIG_fail;
16174 if (arg2 == NULL) {
16175 PyErr_SetString(PyExc_TypeError,"null reference");
16176 SWIG_fail;
16177 }
16178 if (obj2) {
16179 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16180 SWIG_POINTER_EXCEPTION | 0)) == -1)
16181 SWIG_fail;
16182 if (arg3 == NULL) {
16183 PyErr_SetString(PyExc_TypeError,"null reference");
16184 SWIG_fail;
16185 }
16186 }
16187 {
16188 PyThreadState* __tstate = wxPyBeginAllowThreads();
16189 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16190
16191 wxPyEndAllowThreads(__tstate);
16192 if (PyErr_Occurred()) SWIG_fail;
16193 }
16194 resultobj = SWIG_FromInt((int)result);
16195 return resultobj;
16196 fail:
16197 return NULL;
16198 }
16199
16200
16201 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16202 PyObject *resultobj;
16203 wxImageList *arg1 = (wxImageList *) 0 ;
16204 wxBitmap *arg2 = 0 ;
16205 wxColour *arg3 = 0 ;
16206 int result;
16207 wxColour temp3 ;
16208 PyObject * obj0 = 0 ;
16209 PyObject * obj1 = 0 ;
16210 PyObject * obj2 = 0 ;
16211 char *kwnames[] = {
16212 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16213 };
16214
16215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16218 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16219 SWIG_POINTER_EXCEPTION | 0)) == -1)
16220 SWIG_fail;
16221 if (arg2 == NULL) {
16222 PyErr_SetString(PyExc_TypeError,"null reference");
16223 SWIG_fail;
16224 }
16225 {
16226 arg3 = &temp3;
16227 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16228 }
16229 {
16230 PyThreadState* __tstate = wxPyBeginAllowThreads();
16231 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16232
16233 wxPyEndAllowThreads(__tstate);
16234 if (PyErr_Occurred()) SWIG_fail;
16235 }
16236 resultobj = SWIG_FromInt((int)result);
16237 return resultobj;
16238 fail:
16239 return NULL;
16240 }
16241
16242
16243 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16244 PyObject *resultobj;
16245 wxImageList *arg1 = (wxImageList *) 0 ;
16246 wxIcon *arg2 = 0 ;
16247 int result;
16248 PyObject * obj0 = 0 ;
16249 PyObject * obj1 = 0 ;
16250 char *kwnames[] = {
16251 (char *) "self",(char *) "icon", NULL
16252 };
16253
16254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16257 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16258 SWIG_POINTER_EXCEPTION | 0)) == -1)
16259 SWIG_fail;
16260 if (arg2 == NULL) {
16261 PyErr_SetString(PyExc_TypeError,"null reference");
16262 SWIG_fail;
16263 }
16264 {
16265 PyThreadState* __tstate = wxPyBeginAllowThreads();
16266 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16267
16268 wxPyEndAllowThreads(__tstate);
16269 if (PyErr_Occurred()) SWIG_fail;
16270 }
16271 resultobj = SWIG_FromInt((int)result);
16272 return resultobj;
16273 fail:
16274 return NULL;
16275 }
16276
16277
16278 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16279 PyObject *resultobj;
16280 wxImageList *arg1 = (wxImageList *) 0 ;
16281 int arg2 ;
16282 wxBitmap *arg3 = 0 ;
16283 bool result;
16284 PyObject * obj0 = 0 ;
16285 PyObject * obj1 = 0 ;
16286 PyObject * obj2 = 0 ;
16287 char *kwnames[] = {
16288 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16289 };
16290
16291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16294 arg2 = (int) SWIG_AsInt(obj1);
16295 if (PyErr_Occurred()) SWIG_fail;
16296 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16297 SWIG_POINTER_EXCEPTION | 0)) == -1)
16298 SWIG_fail;
16299 if (arg3 == NULL) {
16300 PyErr_SetString(PyExc_TypeError,"null reference");
16301 SWIG_fail;
16302 }
16303 {
16304 PyThreadState* __tstate = wxPyBeginAllowThreads();
16305 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16306
16307 wxPyEndAllowThreads(__tstate);
16308 if (PyErr_Occurred()) SWIG_fail;
16309 }
16310 {
16311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16312 }
16313 return resultobj;
16314 fail:
16315 return NULL;
16316 }
16317
16318
16319 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16320 PyObject *resultobj;
16321 wxImageList *arg1 = (wxImageList *) 0 ;
16322 int arg2 ;
16323 wxDC *arg3 = 0 ;
16324 int arg4 ;
16325 int arg5 ;
16326 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16327 bool arg7 = (bool) (bool)False ;
16328 bool result;
16329 PyObject * obj0 = 0 ;
16330 PyObject * obj1 = 0 ;
16331 PyObject * obj2 = 0 ;
16332 PyObject * obj3 = 0 ;
16333 PyObject * obj4 = 0 ;
16334 PyObject * obj5 = 0 ;
16335 PyObject * obj6 = 0 ;
16336 char *kwnames[] = {
16337 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16338 };
16339
16340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16343 arg2 = (int) SWIG_AsInt(obj1);
16344 if (PyErr_Occurred()) SWIG_fail;
16345 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16346 SWIG_POINTER_EXCEPTION | 0)) == -1)
16347 SWIG_fail;
16348 if (arg3 == NULL) {
16349 PyErr_SetString(PyExc_TypeError,"null reference");
16350 SWIG_fail;
16351 }
16352 arg4 = (int) SWIG_AsInt(obj3);
16353 if (PyErr_Occurred()) SWIG_fail;
16354 arg5 = (int) SWIG_AsInt(obj4);
16355 if (PyErr_Occurred()) SWIG_fail;
16356 if (obj5) {
16357 arg6 = (int) SWIG_AsInt(obj5);
16358 if (PyErr_Occurred()) SWIG_fail;
16359 }
16360 if (obj6) {
16361 arg7 = (bool const) SWIG_AsBool(obj6);
16362 if (PyErr_Occurred()) SWIG_fail;
16363 }
16364 {
16365 PyThreadState* __tstate = wxPyBeginAllowThreads();
16366 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16367
16368 wxPyEndAllowThreads(__tstate);
16369 if (PyErr_Occurred()) SWIG_fail;
16370 }
16371 {
16372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16373 }
16374 return resultobj;
16375 fail:
16376 return NULL;
16377 }
16378
16379
16380 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16381 PyObject *resultobj;
16382 wxImageList *arg1 = (wxImageList *) 0 ;
16383 int result;
16384 PyObject * obj0 = 0 ;
16385 char *kwnames[] = {
16386 (char *) "self", NULL
16387 };
16388
16389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16392 {
16393 PyThreadState* __tstate = wxPyBeginAllowThreads();
16394 result = (int)(arg1)->GetImageCount();
16395
16396 wxPyEndAllowThreads(__tstate);
16397 if (PyErr_Occurred()) SWIG_fail;
16398 }
16399 resultobj = SWIG_FromInt((int)result);
16400 return resultobj;
16401 fail:
16402 return NULL;
16403 }
16404
16405
16406 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16407 PyObject *resultobj;
16408 wxImageList *arg1 = (wxImageList *) 0 ;
16409 int arg2 ;
16410 bool result;
16411 PyObject * obj0 = 0 ;
16412 PyObject * obj1 = 0 ;
16413 char *kwnames[] = {
16414 (char *) "self",(char *) "index", NULL
16415 };
16416
16417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16420 arg2 = (int) SWIG_AsInt(obj1);
16421 if (PyErr_Occurred()) SWIG_fail;
16422 {
16423 PyThreadState* __tstate = wxPyBeginAllowThreads();
16424 result = (bool)(arg1)->Remove(arg2);
16425
16426 wxPyEndAllowThreads(__tstate);
16427 if (PyErr_Occurred()) SWIG_fail;
16428 }
16429 {
16430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16431 }
16432 return resultobj;
16433 fail:
16434 return NULL;
16435 }
16436
16437
16438 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16439 PyObject *resultobj;
16440 wxImageList *arg1 = (wxImageList *) 0 ;
16441 bool result;
16442 PyObject * obj0 = 0 ;
16443 char *kwnames[] = {
16444 (char *) "self", NULL
16445 };
16446
16447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16450 {
16451 PyThreadState* __tstate = wxPyBeginAllowThreads();
16452 result = (bool)(arg1)->RemoveAll();
16453
16454 wxPyEndAllowThreads(__tstate);
16455 if (PyErr_Occurred()) SWIG_fail;
16456 }
16457 {
16458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16459 }
16460 return resultobj;
16461 fail:
16462 return NULL;
16463 }
16464
16465
16466 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16467 PyObject *resultobj;
16468 wxImageList *arg1 = (wxImageList *) 0 ;
16469 int arg2 ;
16470 int *arg3 = 0 ;
16471 int *arg4 = 0 ;
16472 int temp3 ;
16473 int temp4 ;
16474 PyObject * obj0 = 0 ;
16475 PyObject * obj1 = 0 ;
16476 char *kwnames[] = {
16477 (char *) "self",(char *) "index", NULL
16478 };
16479
16480 arg3 = &temp3;
16481 arg4 = &temp4;
16482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16485 arg2 = (int) SWIG_AsInt(obj1);
16486 if (PyErr_Occurred()) SWIG_fail;
16487 {
16488 PyThreadState* __tstate = wxPyBeginAllowThreads();
16489 (arg1)->GetSize(arg2,*arg3,*arg4);
16490
16491 wxPyEndAllowThreads(__tstate);
16492 if (PyErr_Occurred()) SWIG_fail;
16493 }
16494 Py_INCREF(Py_None); resultobj = Py_None;
16495 {
16496 PyObject *o = PyInt_FromLong((long) (*arg3));
16497 resultobj = t_output_helper(resultobj,o);
16498 }
16499 {
16500 PyObject *o = PyInt_FromLong((long) (*arg4));
16501 resultobj = t_output_helper(resultobj,o);
16502 }
16503 return resultobj;
16504 fail:
16505 return NULL;
16506 }
16507
16508
16509 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16510 PyObject *obj;
16511 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16512 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16513 Py_INCREF(obj);
16514 return Py_BuildValue((char *)"");
16515 }
16516 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16517 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16518 return 1;
16519 }
16520
16521
16522 static PyObject *_wrap_NORMAL_FONT_get() {
16523 PyObject *pyobj;
16524
16525 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16526 return pyobj;
16527 }
16528
16529
16530 static int _wrap_SMALL_FONT_set(PyObject *_val) {
16531 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16532 return 1;
16533 }
16534
16535
16536 static PyObject *_wrap_SMALL_FONT_get() {
16537 PyObject *pyobj;
16538
16539 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16540 return pyobj;
16541 }
16542
16543
16544 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16545 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16546 return 1;
16547 }
16548
16549
16550 static PyObject *_wrap_ITALIC_FONT_get() {
16551 PyObject *pyobj;
16552
16553 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16554 return pyobj;
16555 }
16556
16557
16558 static int _wrap_SWISS_FONT_set(PyObject *_val) {
16559 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16560 return 1;
16561 }
16562
16563
16564 static PyObject *_wrap_SWISS_FONT_get() {
16565 PyObject *pyobj;
16566
16567 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16568 return pyobj;
16569 }
16570
16571
16572 static int _wrap_RED_PEN_set(PyObject *_val) {
16573 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16574 return 1;
16575 }
16576
16577
16578 static PyObject *_wrap_RED_PEN_get() {
16579 PyObject *pyobj;
16580
16581 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16582 return pyobj;
16583 }
16584
16585
16586 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16587 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16588 return 1;
16589 }
16590
16591
16592 static PyObject *_wrap_CYAN_PEN_get() {
16593 PyObject *pyobj;
16594
16595 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16596 return pyobj;
16597 }
16598
16599
16600 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16601 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16602 return 1;
16603 }
16604
16605
16606 static PyObject *_wrap_GREEN_PEN_get() {
16607 PyObject *pyobj;
16608
16609 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16610 return pyobj;
16611 }
16612
16613
16614 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16615 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16616 return 1;
16617 }
16618
16619
16620 static PyObject *_wrap_BLACK_PEN_get() {
16621 PyObject *pyobj;
16622
16623 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16624 return pyobj;
16625 }
16626
16627
16628 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16629 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16630 return 1;
16631 }
16632
16633
16634 static PyObject *_wrap_WHITE_PEN_get() {
16635 PyObject *pyobj;
16636
16637 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16638 return pyobj;
16639 }
16640
16641
16642 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16643 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16644 return 1;
16645 }
16646
16647
16648 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16649 PyObject *pyobj;
16650
16651 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16652 return pyobj;
16653 }
16654
16655
16656 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16657 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16658 return 1;
16659 }
16660
16661
16662 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16663 PyObject *pyobj;
16664
16665 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16666 return pyobj;
16667 }
16668
16669
16670 static int _wrap_GREY_PEN_set(PyObject *_val) {
16671 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16672 return 1;
16673 }
16674
16675
16676 static PyObject *_wrap_GREY_PEN_get() {
16677 PyObject *pyobj;
16678
16679 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16680 return pyobj;
16681 }
16682
16683
16684 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16685 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16686 return 1;
16687 }
16688
16689
16690 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16691 PyObject *pyobj;
16692
16693 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16694 return pyobj;
16695 }
16696
16697
16698 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16699 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16700 return 1;
16701 }
16702
16703
16704 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16705 PyObject *pyobj;
16706
16707 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16708 return pyobj;
16709 }
16710
16711
16712 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16713 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16714 return 1;
16715 }
16716
16717
16718 static PyObject *_wrap_BLUE_BRUSH_get() {
16719 PyObject *pyobj;
16720
16721 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16722 return pyobj;
16723 }
16724
16725
16726 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16727 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16728 return 1;
16729 }
16730
16731
16732 static PyObject *_wrap_GREEN_BRUSH_get() {
16733 PyObject *pyobj;
16734
16735 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16736 return pyobj;
16737 }
16738
16739
16740 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16741 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16742 return 1;
16743 }
16744
16745
16746 static PyObject *_wrap_WHITE_BRUSH_get() {
16747 PyObject *pyobj;
16748
16749 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16750 return pyobj;
16751 }
16752
16753
16754 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16755 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16756 return 1;
16757 }
16758
16759
16760 static PyObject *_wrap_BLACK_BRUSH_get() {
16761 PyObject *pyobj;
16762
16763 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16764 return pyobj;
16765 }
16766
16767
16768 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16769 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16770 return 1;
16771 }
16772
16773
16774 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16775 PyObject *pyobj;
16776
16777 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16778 return pyobj;
16779 }
16780
16781
16782 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16783 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16784 return 1;
16785 }
16786
16787
16788 static PyObject *_wrap_CYAN_BRUSH_get() {
16789 PyObject *pyobj;
16790
16791 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16792 return pyobj;
16793 }
16794
16795
16796 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16797 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16798 return 1;
16799 }
16800
16801
16802 static PyObject *_wrap_RED_BRUSH_get() {
16803 PyObject *pyobj;
16804
16805 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16806 return pyobj;
16807 }
16808
16809
16810 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16811 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16812 return 1;
16813 }
16814
16815
16816 static PyObject *_wrap_GREY_BRUSH_get() {
16817 PyObject *pyobj;
16818
16819 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16820 return pyobj;
16821 }
16822
16823
16824 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16825 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16826 return 1;
16827 }
16828
16829
16830 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16831 PyObject *pyobj;
16832
16833 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16834 return pyobj;
16835 }
16836
16837
16838 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16839 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16840 return 1;
16841 }
16842
16843
16844 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16845 PyObject *pyobj;
16846
16847 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16848 return pyobj;
16849 }
16850
16851
16852 static int _wrap_BLACK_set(PyObject *_val) {
16853 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16854 return 1;
16855 }
16856
16857
16858 static PyObject *_wrap_BLACK_get() {
16859 PyObject *pyobj;
16860
16861 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16862 return pyobj;
16863 }
16864
16865
16866 static int _wrap_WHITE_set(PyObject *_val) {
16867 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16868 return 1;
16869 }
16870
16871
16872 static PyObject *_wrap_WHITE_get() {
16873 PyObject *pyobj;
16874
16875 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16876 return pyobj;
16877 }
16878
16879
16880 static int _wrap_RED_set(PyObject *_val) {
16881 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16882 return 1;
16883 }
16884
16885
16886 static PyObject *_wrap_RED_get() {
16887 PyObject *pyobj;
16888
16889 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16890 return pyobj;
16891 }
16892
16893
16894 static int _wrap_BLUE_set(PyObject *_val) {
16895 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16896 return 1;
16897 }
16898
16899
16900 static PyObject *_wrap_BLUE_get() {
16901 PyObject *pyobj;
16902
16903 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16904 return pyobj;
16905 }
16906
16907
16908 static int _wrap_GREEN_set(PyObject *_val) {
16909 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16910 return 1;
16911 }
16912
16913
16914 static PyObject *_wrap_GREEN_get() {
16915 PyObject *pyobj;
16916
16917 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16918 return pyobj;
16919 }
16920
16921
16922 static int _wrap_CYAN_set(PyObject *_val) {
16923 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16924 return 1;
16925 }
16926
16927
16928 static PyObject *_wrap_CYAN_get() {
16929 PyObject *pyobj;
16930
16931 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16932 return pyobj;
16933 }
16934
16935
16936 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16937 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16938 return 1;
16939 }
16940
16941
16942 static PyObject *_wrap_LIGHT_GREY_get() {
16943 PyObject *pyobj;
16944
16945 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16946 return pyobj;
16947 }
16948
16949
16950 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16951 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16952 return 1;
16953 }
16954
16955
16956 static PyObject *_wrap_STANDARD_CURSOR_get() {
16957 PyObject *pyobj;
16958
16959 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16960 return pyobj;
16961 }
16962
16963
16964 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16965 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16966 return 1;
16967 }
16968
16969
16970 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16971 PyObject *pyobj;
16972
16973 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16974 return pyobj;
16975 }
16976
16977
16978 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16979 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16980 return 1;
16981 }
16982
16983
16984 static PyObject *_wrap_CROSS_CURSOR_get() {
16985 PyObject *pyobj;
16986
16987 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16988 return pyobj;
16989 }
16990
16991
16992 static int _wrap_NullBitmap_set(PyObject *_val) {
16993 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16994 return 1;
16995 }
16996
16997
16998 static PyObject *_wrap_NullBitmap_get() {
16999 PyObject *pyobj;
17000
17001 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17002 return pyobj;
17003 }
17004
17005
17006 static int _wrap_NullIcon_set(PyObject *_val) {
17007 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17008 return 1;
17009 }
17010
17011
17012 static PyObject *_wrap_NullIcon_get() {
17013 PyObject *pyobj;
17014
17015 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17016 return pyobj;
17017 }
17018
17019
17020 static int _wrap_NullCursor_set(PyObject *_val) {
17021 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17022 return 1;
17023 }
17024
17025
17026 static PyObject *_wrap_NullCursor_get() {
17027 PyObject *pyobj;
17028
17029 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17030 return pyobj;
17031 }
17032
17033
17034 static int _wrap_NullPen_set(PyObject *_val) {
17035 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17036 return 1;
17037 }
17038
17039
17040 static PyObject *_wrap_NullPen_get() {
17041 PyObject *pyobj;
17042
17043 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17044 return pyobj;
17045 }
17046
17047
17048 static int _wrap_NullBrush_set(PyObject *_val) {
17049 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17050 return 1;
17051 }
17052
17053
17054 static PyObject *_wrap_NullBrush_get() {
17055 PyObject *pyobj;
17056
17057 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17058 return pyobj;
17059 }
17060
17061
17062 static int _wrap_NullPalette_set(PyObject *_val) {
17063 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17064 return 1;
17065 }
17066
17067
17068 static PyObject *_wrap_NullPalette_get() {
17069 PyObject *pyobj;
17070
17071 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17072 return pyobj;
17073 }
17074
17075
17076 static int _wrap_NullFont_set(PyObject *_val) {
17077 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17078 return 1;
17079 }
17080
17081
17082 static PyObject *_wrap_NullFont_get() {
17083 PyObject *pyobj;
17084
17085 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17086 return pyobj;
17087 }
17088
17089
17090 static int _wrap_NullColour_set(PyObject *_val) {
17091 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17092 return 1;
17093 }
17094
17095
17096 static PyObject *_wrap_NullColour_get() {
17097 PyObject *pyobj;
17098
17099 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17100 return pyobj;
17101 }
17102
17103
17104 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17105 PyObject *resultobj;
17106 wxPenList *arg1 = (wxPenList *) 0 ;
17107 wxPen *arg2 = (wxPen *) 0 ;
17108 PyObject * obj0 = 0 ;
17109 PyObject * obj1 = 0 ;
17110 char *kwnames[] = {
17111 (char *) "self",(char *) "pen", NULL
17112 };
17113
17114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17119 {
17120 PyThreadState* __tstate = wxPyBeginAllowThreads();
17121 (arg1)->AddPen(arg2);
17122
17123 wxPyEndAllowThreads(__tstate);
17124 if (PyErr_Occurred()) SWIG_fail;
17125 }
17126 Py_INCREF(Py_None); resultobj = Py_None;
17127 return resultobj;
17128 fail:
17129 return NULL;
17130 }
17131
17132
17133 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17134 PyObject *resultobj;
17135 wxPenList *arg1 = (wxPenList *) 0 ;
17136 wxColour *arg2 = 0 ;
17137 int arg3 ;
17138 int arg4 ;
17139 wxPen *result;
17140 wxColour temp2 ;
17141 PyObject * obj0 = 0 ;
17142 PyObject * obj1 = 0 ;
17143 PyObject * obj2 = 0 ;
17144 PyObject * obj3 = 0 ;
17145 char *kwnames[] = {
17146 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17147 };
17148
17149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17152 {
17153 arg2 = &temp2;
17154 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17155 }
17156 arg3 = (int) SWIG_AsInt(obj2);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 arg4 = (int) SWIG_AsInt(obj3);
17159 if (PyErr_Occurred()) SWIG_fail;
17160 {
17161 PyThreadState* __tstate = wxPyBeginAllowThreads();
17162 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17163
17164 wxPyEndAllowThreads(__tstate);
17165 if (PyErr_Occurred()) SWIG_fail;
17166 }
17167 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17168 return resultobj;
17169 fail:
17170 return NULL;
17171 }
17172
17173
17174 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17175 PyObject *resultobj;
17176 wxPenList *arg1 = (wxPenList *) 0 ;
17177 wxPen *arg2 = (wxPen *) 0 ;
17178 PyObject * obj0 = 0 ;
17179 PyObject * obj1 = 0 ;
17180 char *kwnames[] = {
17181 (char *) "self",(char *) "pen", NULL
17182 };
17183
17184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17187 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17189 {
17190 PyThreadState* __tstate = wxPyBeginAllowThreads();
17191 (arg1)->RemovePen(arg2);
17192
17193 wxPyEndAllowThreads(__tstate);
17194 if (PyErr_Occurred()) SWIG_fail;
17195 }
17196 Py_INCREF(Py_None); resultobj = Py_None;
17197 return resultobj;
17198 fail:
17199 return NULL;
17200 }
17201
17202
17203 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17204 PyObject *resultobj;
17205 wxPenList *arg1 = (wxPenList *) 0 ;
17206 int result;
17207 PyObject * obj0 = 0 ;
17208 char *kwnames[] = {
17209 (char *) "self", NULL
17210 };
17211
17212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17215 {
17216 PyThreadState* __tstate = wxPyBeginAllowThreads();
17217 result = (int)(arg1)->GetCount();
17218
17219 wxPyEndAllowThreads(__tstate);
17220 if (PyErr_Occurred()) SWIG_fail;
17221 }
17222 resultobj = SWIG_FromInt((int)result);
17223 return resultobj;
17224 fail:
17225 return NULL;
17226 }
17227
17228
17229 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17230 PyObject *obj;
17231 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17232 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17233 Py_INCREF(obj);
17234 return Py_BuildValue((char *)"");
17235 }
17236 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17237 PyObject *resultobj;
17238 wxBrushList *arg1 = (wxBrushList *) 0 ;
17239 wxBrush *arg2 = (wxBrush *) 0 ;
17240 PyObject * obj0 = 0 ;
17241 PyObject * obj1 = 0 ;
17242 char *kwnames[] = {
17243 (char *) "self",(char *) "brush", NULL
17244 };
17245
17246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17249 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17251 {
17252 PyThreadState* __tstate = wxPyBeginAllowThreads();
17253 (arg1)->AddBrush(arg2);
17254
17255 wxPyEndAllowThreads(__tstate);
17256 if (PyErr_Occurred()) SWIG_fail;
17257 }
17258 Py_INCREF(Py_None); resultobj = Py_None;
17259 return resultobj;
17260 fail:
17261 return NULL;
17262 }
17263
17264
17265 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17266 PyObject *resultobj;
17267 wxBrushList *arg1 = (wxBrushList *) 0 ;
17268 wxColour *arg2 = 0 ;
17269 int arg3 ;
17270 wxBrush *result;
17271 wxColour temp2 ;
17272 PyObject * obj0 = 0 ;
17273 PyObject * obj1 = 0 ;
17274 PyObject * obj2 = 0 ;
17275 char *kwnames[] = {
17276 (char *) "self",(char *) "colour",(char *) "style", NULL
17277 };
17278
17279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17282 {
17283 arg2 = &temp2;
17284 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17285 }
17286 arg3 = (int) SWIG_AsInt(obj2);
17287 if (PyErr_Occurred()) SWIG_fail;
17288 {
17289 PyThreadState* __tstate = wxPyBeginAllowThreads();
17290 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17291
17292 wxPyEndAllowThreads(__tstate);
17293 if (PyErr_Occurred()) SWIG_fail;
17294 }
17295 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17296 return resultobj;
17297 fail:
17298 return NULL;
17299 }
17300
17301
17302 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17303 PyObject *resultobj;
17304 wxBrushList *arg1 = (wxBrushList *) 0 ;
17305 wxBrush *arg2 = (wxBrush *) 0 ;
17306 PyObject * obj0 = 0 ;
17307 PyObject * obj1 = 0 ;
17308 char *kwnames[] = {
17309 (char *) "self",(char *) "brush", NULL
17310 };
17311
17312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17315 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17317 {
17318 PyThreadState* __tstate = wxPyBeginAllowThreads();
17319 (arg1)->RemoveBrush(arg2);
17320
17321 wxPyEndAllowThreads(__tstate);
17322 if (PyErr_Occurred()) SWIG_fail;
17323 }
17324 Py_INCREF(Py_None); resultobj = Py_None;
17325 return resultobj;
17326 fail:
17327 return NULL;
17328 }
17329
17330
17331 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17332 PyObject *resultobj;
17333 wxBrushList *arg1 = (wxBrushList *) 0 ;
17334 int result;
17335 PyObject * obj0 = 0 ;
17336 char *kwnames[] = {
17337 (char *) "self", NULL
17338 };
17339
17340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17343 {
17344 PyThreadState* __tstate = wxPyBeginAllowThreads();
17345 result = (int)(arg1)->GetCount();
17346
17347 wxPyEndAllowThreads(__tstate);
17348 if (PyErr_Occurred()) SWIG_fail;
17349 }
17350 resultobj = SWIG_FromInt((int)result);
17351 return resultobj;
17352 fail:
17353 return NULL;
17354 }
17355
17356
17357 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17358 PyObject *obj;
17359 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17360 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17361 Py_INCREF(obj);
17362 return Py_BuildValue((char *)"");
17363 }
17364 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17365 PyObject *resultobj;
17366 wxColourDatabase *result;
17367 char *kwnames[] = {
17368 NULL
17369 };
17370
17371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17372 {
17373 PyThreadState* __tstate = wxPyBeginAllowThreads();
17374 result = (wxColourDatabase *)new wxColourDatabase();
17375
17376 wxPyEndAllowThreads(__tstate);
17377 if (PyErr_Occurred()) SWIG_fail;
17378 }
17379 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17380 return resultobj;
17381 fail:
17382 return NULL;
17383 }
17384
17385
17386 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17387 PyObject *resultobj;
17388 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17389 PyObject * obj0 = 0 ;
17390 char *kwnames[] = {
17391 (char *) "self", NULL
17392 };
17393
17394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17397 {
17398 PyThreadState* __tstate = wxPyBeginAllowThreads();
17399 delete arg1;
17400
17401 wxPyEndAllowThreads(__tstate);
17402 if (PyErr_Occurred()) SWIG_fail;
17403 }
17404 Py_INCREF(Py_None); resultobj = Py_None;
17405 return resultobj;
17406 fail:
17407 return NULL;
17408 }
17409
17410
17411 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17412 PyObject *resultobj;
17413 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17414 wxString *arg2 = 0 ;
17415 wxColour result;
17416 bool temp2 = False ;
17417 PyObject * obj0 = 0 ;
17418 PyObject * obj1 = 0 ;
17419 char *kwnames[] = {
17420 (char *) "self",(char *) "name", NULL
17421 };
17422
17423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17426 {
17427 arg2 = wxString_in_helper(obj1);
17428 if (arg2 == NULL) SWIG_fail;
17429 temp2 = True;
17430 }
17431 {
17432 PyThreadState* __tstate = wxPyBeginAllowThreads();
17433 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17434
17435 wxPyEndAllowThreads(__tstate);
17436 if (PyErr_Occurred()) SWIG_fail;
17437 }
17438 {
17439 wxColour * resultptr;
17440 resultptr = new wxColour((wxColour &) result);
17441 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17442 }
17443 {
17444 if (temp2)
17445 delete arg2;
17446 }
17447 return resultobj;
17448 fail:
17449 {
17450 if (temp2)
17451 delete arg2;
17452 }
17453 return NULL;
17454 }
17455
17456
17457 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17458 PyObject *resultobj;
17459 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17460 wxColour *arg2 = 0 ;
17461 wxString result;
17462 wxColour temp2 ;
17463 PyObject * obj0 = 0 ;
17464 PyObject * obj1 = 0 ;
17465 char *kwnames[] = {
17466 (char *) "self",(char *) "colour", NULL
17467 };
17468
17469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17472 {
17473 arg2 = &temp2;
17474 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17475 }
17476 {
17477 PyThreadState* __tstate = wxPyBeginAllowThreads();
17478 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17479
17480 wxPyEndAllowThreads(__tstate);
17481 if (PyErr_Occurred()) SWIG_fail;
17482 }
17483 {
17484 #if wxUSE_UNICODE
17485 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17486 #else
17487 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17488 #endif
17489 }
17490 return resultobj;
17491 fail:
17492 return NULL;
17493 }
17494
17495
17496 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17497 PyObject *resultobj;
17498 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17499 wxString *arg2 = 0 ;
17500 wxColour *arg3 = 0 ;
17501 bool temp2 = False ;
17502 wxColour temp3 ;
17503 PyObject * obj0 = 0 ;
17504 PyObject * obj1 = 0 ;
17505 PyObject * obj2 = 0 ;
17506 char *kwnames[] = {
17507 (char *) "self",(char *) "name",(char *) "colour", NULL
17508 };
17509
17510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17513 {
17514 arg2 = wxString_in_helper(obj1);
17515 if (arg2 == NULL) SWIG_fail;
17516 temp2 = True;
17517 }
17518 {
17519 arg3 = &temp3;
17520 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17521 }
17522 {
17523 PyThreadState* __tstate = wxPyBeginAllowThreads();
17524 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17525
17526 wxPyEndAllowThreads(__tstate);
17527 if (PyErr_Occurred()) SWIG_fail;
17528 }
17529 Py_INCREF(Py_None); resultobj = Py_None;
17530 {
17531 if (temp2)
17532 delete arg2;
17533 }
17534 return resultobj;
17535 fail:
17536 {
17537 if (temp2)
17538 delete arg2;
17539 }
17540 return NULL;
17541 }
17542
17543
17544 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17545 PyObject *resultobj;
17546 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17547 wxString *arg2 = 0 ;
17548 int arg3 ;
17549 int arg4 ;
17550 int arg5 ;
17551 bool temp2 = False ;
17552 PyObject * obj0 = 0 ;
17553 PyObject * obj1 = 0 ;
17554 PyObject * obj2 = 0 ;
17555 PyObject * obj3 = 0 ;
17556 PyObject * obj4 = 0 ;
17557 char *kwnames[] = {
17558 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17559 };
17560
17561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17564 {
17565 arg2 = wxString_in_helper(obj1);
17566 if (arg2 == NULL) SWIG_fail;
17567 temp2 = True;
17568 }
17569 arg3 = (int) SWIG_AsInt(obj2);
17570 if (PyErr_Occurred()) SWIG_fail;
17571 arg4 = (int) SWIG_AsInt(obj3);
17572 if (PyErr_Occurred()) SWIG_fail;
17573 arg5 = (int) SWIG_AsInt(obj4);
17574 if (PyErr_Occurred()) SWIG_fail;
17575 {
17576 PyThreadState* __tstate = wxPyBeginAllowThreads();
17577 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17578
17579 wxPyEndAllowThreads(__tstate);
17580 if (PyErr_Occurred()) SWIG_fail;
17581 }
17582 Py_INCREF(Py_None); resultobj = Py_None;
17583 {
17584 if (temp2)
17585 delete arg2;
17586 }
17587 return resultobj;
17588 fail:
17589 {
17590 if (temp2)
17591 delete arg2;
17592 }
17593 return NULL;
17594 }
17595
17596
17597 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17598 PyObject *obj;
17599 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17600 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17601 Py_INCREF(obj);
17602 return Py_BuildValue((char *)"");
17603 }
17604 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17605 PyObject *resultobj;
17606 wxFontList *arg1 = (wxFontList *) 0 ;
17607 wxFont *arg2 = (wxFont *) 0 ;
17608 PyObject * obj0 = 0 ;
17609 PyObject * obj1 = 0 ;
17610 char *kwnames[] = {
17611 (char *) "self",(char *) "font", NULL
17612 };
17613
17614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17617 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17619 {
17620 PyThreadState* __tstate = wxPyBeginAllowThreads();
17621 (arg1)->AddFont(arg2);
17622
17623 wxPyEndAllowThreads(__tstate);
17624 if (PyErr_Occurred()) SWIG_fail;
17625 }
17626 Py_INCREF(Py_None); resultobj = Py_None;
17627 return resultobj;
17628 fail:
17629 return NULL;
17630 }
17631
17632
17633 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17634 PyObject *resultobj;
17635 wxFontList *arg1 = (wxFontList *) 0 ;
17636 int arg2 ;
17637 int arg3 ;
17638 int arg4 ;
17639 int arg5 ;
17640 bool arg6 = (bool) False ;
17641 wxString const &arg7_defvalue = wxPyEmptyString ;
17642 wxString *arg7 = (wxString *) &arg7_defvalue ;
17643 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17644 wxFont *result;
17645 bool temp7 = False ;
17646 PyObject * obj0 = 0 ;
17647 PyObject * obj1 = 0 ;
17648 PyObject * obj2 = 0 ;
17649 PyObject * obj3 = 0 ;
17650 PyObject * obj4 = 0 ;
17651 PyObject * obj5 = 0 ;
17652 PyObject * obj6 = 0 ;
17653 PyObject * obj7 = 0 ;
17654 char *kwnames[] = {
17655 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17656 };
17657
17658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17661 arg2 = (int) SWIG_AsInt(obj1);
17662 if (PyErr_Occurred()) SWIG_fail;
17663 arg3 = (int) SWIG_AsInt(obj2);
17664 if (PyErr_Occurred()) SWIG_fail;
17665 arg4 = (int) SWIG_AsInt(obj3);
17666 if (PyErr_Occurred()) SWIG_fail;
17667 arg5 = (int) SWIG_AsInt(obj4);
17668 if (PyErr_Occurred()) SWIG_fail;
17669 if (obj5) {
17670 arg6 = (bool) SWIG_AsBool(obj5);
17671 if (PyErr_Occurred()) SWIG_fail;
17672 }
17673 if (obj6) {
17674 {
17675 arg7 = wxString_in_helper(obj6);
17676 if (arg7 == NULL) SWIG_fail;
17677 temp7 = True;
17678 }
17679 }
17680 if (obj7) {
17681 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17682 if (PyErr_Occurred()) SWIG_fail;
17683 }
17684 {
17685 PyThreadState* __tstate = wxPyBeginAllowThreads();
17686 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17687
17688 wxPyEndAllowThreads(__tstate);
17689 if (PyErr_Occurred()) SWIG_fail;
17690 }
17691 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17692 {
17693 if (temp7)
17694 delete arg7;
17695 }
17696 return resultobj;
17697 fail:
17698 {
17699 if (temp7)
17700 delete arg7;
17701 }
17702 return NULL;
17703 }
17704
17705
17706 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17707 PyObject *resultobj;
17708 wxFontList *arg1 = (wxFontList *) 0 ;
17709 wxFont *arg2 = (wxFont *) 0 ;
17710 PyObject * obj0 = 0 ;
17711 PyObject * obj1 = 0 ;
17712 char *kwnames[] = {
17713 (char *) "self",(char *) "font", NULL
17714 };
17715
17716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17719 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17721 {
17722 PyThreadState* __tstate = wxPyBeginAllowThreads();
17723 (arg1)->RemoveFont(arg2);
17724
17725 wxPyEndAllowThreads(__tstate);
17726 if (PyErr_Occurred()) SWIG_fail;
17727 }
17728 Py_INCREF(Py_None); resultobj = Py_None;
17729 return resultobj;
17730 fail:
17731 return NULL;
17732 }
17733
17734
17735 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17736 PyObject *resultobj;
17737 wxFontList *arg1 = (wxFontList *) 0 ;
17738 int result;
17739 PyObject * obj0 = 0 ;
17740 char *kwnames[] = {
17741 (char *) "self", NULL
17742 };
17743
17744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17747 {
17748 PyThreadState* __tstate = wxPyBeginAllowThreads();
17749 result = (int)(arg1)->GetCount();
17750
17751 wxPyEndAllowThreads(__tstate);
17752 if (PyErr_Occurred()) SWIG_fail;
17753 }
17754 resultobj = SWIG_FromInt((int)result);
17755 return resultobj;
17756 fail:
17757 return NULL;
17758 }
17759
17760
17761 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17762 PyObject *obj;
17763 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17764 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17765 Py_INCREF(obj);
17766 return Py_BuildValue((char *)"");
17767 }
17768 static int _wrap_TheFontList_set(PyObject *_val) {
17769 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17770 return 1;
17771 }
17772
17773
17774 static PyObject *_wrap_TheFontList_get() {
17775 PyObject *pyobj;
17776
17777 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17778 return pyobj;
17779 }
17780
17781
17782 static int _wrap_ThePenList_set(PyObject *_val) {
17783 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17784 return 1;
17785 }
17786
17787
17788 static PyObject *_wrap_ThePenList_get() {
17789 PyObject *pyobj;
17790
17791 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17792 return pyobj;
17793 }
17794
17795
17796 static int _wrap_TheBrushList_set(PyObject *_val) {
17797 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17798 return 1;
17799 }
17800
17801
17802 static PyObject *_wrap_TheBrushList_get() {
17803 PyObject *pyobj;
17804
17805 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17806 return pyobj;
17807 }
17808
17809
17810 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17811 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17812 return 1;
17813 }
17814
17815
17816 static PyObject *_wrap_TheColourDatabase_get() {
17817 PyObject *pyobj;
17818
17819 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17820 return pyobj;
17821 }
17822
17823
17824 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17825 PyObject *resultobj;
17826 wxEffects *result;
17827 char *kwnames[] = {
17828 NULL
17829 };
17830
17831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17832 {
17833 PyThreadState* __tstate = wxPyBeginAllowThreads();
17834 result = (wxEffects *)new wxEffects();
17835
17836 wxPyEndAllowThreads(__tstate);
17837 if (PyErr_Occurred()) SWIG_fail;
17838 }
17839 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17840 return resultobj;
17841 fail:
17842 return NULL;
17843 }
17844
17845
17846 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17847 PyObject *resultobj;
17848 wxEffects *arg1 = (wxEffects *) 0 ;
17849 wxColour result;
17850 PyObject * obj0 = 0 ;
17851 char *kwnames[] = {
17852 (char *) "self", NULL
17853 };
17854
17855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17858 {
17859 PyThreadState* __tstate = wxPyBeginAllowThreads();
17860 result = ((wxEffects const *)arg1)->GetHighlightColour();
17861
17862 wxPyEndAllowThreads(__tstate);
17863 if (PyErr_Occurred()) SWIG_fail;
17864 }
17865 {
17866 wxColour * resultptr;
17867 resultptr = new wxColour((wxColour &) result);
17868 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17869 }
17870 return resultobj;
17871 fail:
17872 return NULL;
17873 }
17874
17875
17876 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17877 PyObject *resultobj;
17878 wxEffects *arg1 = (wxEffects *) 0 ;
17879 wxColour result;
17880 PyObject * obj0 = 0 ;
17881 char *kwnames[] = {
17882 (char *) "self", NULL
17883 };
17884
17885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17888 {
17889 PyThreadState* __tstate = wxPyBeginAllowThreads();
17890 result = ((wxEffects const *)arg1)->GetLightShadow();
17891
17892 wxPyEndAllowThreads(__tstate);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 }
17895 {
17896 wxColour * resultptr;
17897 resultptr = new wxColour((wxColour &) result);
17898 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17899 }
17900 return resultobj;
17901 fail:
17902 return NULL;
17903 }
17904
17905
17906 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17907 PyObject *resultobj;
17908 wxEffects *arg1 = (wxEffects *) 0 ;
17909 wxColour result;
17910 PyObject * obj0 = 0 ;
17911 char *kwnames[] = {
17912 (char *) "self", NULL
17913 };
17914
17915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17918 {
17919 PyThreadState* __tstate = wxPyBeginAllowThreads();
17920 result = ((wxEffects const *)arg1)->GetFaceColour();
17921
17922 wxPyEndAllowThreads(__tstate);
17923 if (PyErr_Occurred()) SWIG_fail;
17924 }
17925 {
17926 wxColour * resultptr;
17927 resultptr = new wxColour((wxColour &) result);
17928 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17929 }
17930 return resultobj;
17931 fail:
17932 return NULL;
17933 }
17934
17935
17936 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17937 PyObject *resultobj;
17938 wxEffects *arg1 = (wxEffects *) 0 ;
17939 wxColour result;
17940 PyObject * obj0 = 0 ;
17941 char *kwnames[] = {
17942 (char *) "self", NULL
17943 };
17944
17945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17948 {
17949 PyThreadState* __tstate = wxPyBeginAllowThreads();
17950 result = ((wxEffects const *)arg1)->GetMediumShadow();
17951
17952 wxPyEndAllowThreads(__tstate);
17953 if (PyErr_Occurred()) SWIG_fail;
17954 }
17955 {
17956 wxColour * resultptr;
17957 resultptr = new wxColour((wxColour &) result);
17958 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17959 }
17960 return resultobj;
17961 fail:
17962 return NULL;
17963 }
17964
17965
17966 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17967 PyObject *resultobj;
17968 wxEffects *arg1 = (wxEffects *) 0 ;
17969 wxColour result;
17970 PyObject * obj0 = 0 ;
17971 char *kwnames[] = {
17972 (char *) "self", NULL
17973 };
17974
17975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17978 {
17979 PyThreadState* __tstate = wxPyBeginAllowThreads();
17980 result = ((wxEffects const *)arg1)->GetDarkShadow();
17981
17982 wxPyEndAllowThreads(__tstate);
17983 if (PyErr_Occurred()) SWIG_fail;
17984 }
17985 {
17986 wxColour * resultptr;
17987 resultptr = new wxColour((wxColour &) result);
17988 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17989 }
17990 return resultobj;
17991 fail:
17992 return NULL;
17993 }
17994
17995
17996 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17997 PyObject *resultobj;
17998 wxEffects *arg1 = (wxEffects *) 0 ;
17999 wxColour *arg2 = 0 ;
18000 wxColour temp2 ;
18001 PyObject * obj0 = 0 ;
18002 PyObject * obj1 = 0 ;
18003 char *kwnames[] = {
18004 (char *) "self",(char *) "c", NULL
18005 };
18006
18007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18010 {
18011 arg2 = &temp2;
18012 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18013 }
18014 {
18015 PyThreadState* __tstate = wxPyBeginAllowThreads();
18016 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18017
18018 wxPyEndAllowThreads(__tstate);
18019 if (PyErr_Occurred()) SWIG_fail;
18020 }
18021 Py_INCREF(Py_None); resultobj = Py_None;
18022 return resultobj;
18023 fail:
18024 return NULL;
18025 }
18026
18027
18028 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18029 PyObject *resultobj;
18030 wxEffects *arg1 = (wxEffects *) 0 ;
18031 wxColour *arg2 = 0 ;
18032 wxColour temp2 ;
18033 PyObject * obj0 = 0 ;
18034 PyObject * obj1 = 0 ;
18035 char *kwnames[] = {
18036 (char *) "self",(char *) "c", NULL
18037 };
18038
18039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18042 {
18043 arg2 = &temp2;
18044 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18045 }
18046 {
18047 PyThreadState* __tstate = wxPyBeginAllowThreads();
18048 (arg1)->SetLightShadow((wxColour const &)*arg2);
18049
18050 wxPyEndAllowThreads(__tstate);
18051 if (PyErr_Occurred()) SWIG_fail;
18052 }
18053 Py_INCREF(Py_None); resultobj = Py_None;
18054 return resultobj;
18055 fail:
18056 return NULL;
18057 }
18058
18059
18060 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18061 PyObject *resultobj;
18062 wxEffects *arg1 = (wxEffects *) 0 ;
18063 wxColour *arg2 = 0 ;
18064 wxColour temp2 ;
18065 PyObject * obj0 = 0 ;
18066 PyObject * obj1 = 0 ;
18067 char *kwnames[] = {
18068 (char *) "self",(char *) "c", NULL
18069 };
18070
18071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18074 {
18075 arg2 = &temp2;
18076 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18077 }
18078 {
18079 PyThreadState* __tstate = wxPyBeginAllowThreads();
18080 (arg1)->SetFaceColour((wxColour const &)*arg2);
18081
18082 wxPyEndAllowThreads(__tstate);
18083 if (PyErr_Occurred()) SWIG_fail;
18084 }
18085 Py_INCREF(Py_None); resultobj = Py_None;
18086 return resultobj;
18087 fail:
18088 return NULL;
18089 }
18090
18091
18092 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18093 PyObject *resultobj;
18094 wxEffects *arg1 = (wxEffects *) 0 ;
18095 wxColour *arg2 = 0 ;
18096 wxColour temp2 ;
18097 PyObject * obj0 = 0 ;
18098 PyObject * obj1 = 0 ;
18099 char *kwnames[] = {
18100 (char *) "self",(char *) "c", NULL
18101 };
18102
18103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18106 {
18107 arg2 = &temp2;
18108 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18109 }
18110 {
18111 PyThreadState* __tstate = wxPyBeginAllowThreads();
18112 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18113
18114 wxPyEndAllowThreads(__tstate);
18115 if (PyErr_Occurred()) SWIG_fail;
18116 }
18117 Py_INCREF(Py_None); resultobj = Py_None;
18118 return resultobj;
18119 fail:
18120 return NULL;
18121 }
18122
18123
18124 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18125 PyObject *resultobj;
18126 wxEffects *arg1 = (wxEffects *) 0 ;
18127 wxColour *arg2 = 0 ;
18128 wxColour temp2 ;
18129 PyObject * obj0 = 0 ;
18130 PyObject * obj1 = 0 ;
18131 char *kwnames[] = {
18132 (char *) "self",(char *) "c", NULL
18133 };
18134
18135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18138 {
18139 arg2 = &temp2;
18140 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18141 }
18142 {
18143 PyThreadState* __tstate = wxPyBeginAllowThreads();
18144 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18145
18146 wxPyEndAllowThreads(__tstate);
18147 if (PyErr_Occurred()) SWIG_fail;
18148 }
18149 Py_INCREF(Py_None); resultobj = Py_None;
18150 return resultobj;
18151 fail:
18152 return NULL;
18153 }
18154
18155
18156 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18157 PyObject *resultobj;
18158 wxEffects *arg1 = (wxEffects *) 0 ;
18159 wxColour *arg2 = 0 ;
18160 wxColour *arg3 = 0 ;
18161 wxColour *arg4 = 0 ;
18162 wxColour *arg5 = 0 ;
18163 wxColour *arg6 = 0 ;
18164 wxColour temp2 ;
18165 wxColour temp3 ;
18166 wxColour temp4 ;
18167 wxColour temp5 ;
18168 wxColour temp6 ;
18169 PyObject * obj0 = 0 ;
18170 PyObject * obj1 = 0 ;
18171 PyObject * obj2 = 0 ;
18172 PyObject * obj3 = 0 ;
18173 PyObject * obj4 = 0 ;
18174 PyObject * obj5 = 0 ;
18175 char *kwnames[] = {
18176 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18177 };
18178
18179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18182 {
18183 arg2 = &temp2;
18184 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18185 }
18186 {
18187 arg3 = &temp3;
18188 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18189 }
18190 {
18191 arg4 = &temp4;
18192 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18193 }
18194 {
18195 arg5 = &temp5;
18196 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18197 }
18198 {
18199 arg6 = &temp6;
18200 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18201 }
18202 {
18203 PyThreadState* __tstate = wxPyBeginAllowThreads();
18204 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18205
18206 wxPyEndAllowThreads(__tstate);
18207 if (PyErr_Occurred()) SWIG_fail;
18208 }
18209 Py_INCREF(Py_None); resultobj = Py_None;
18210 return resultobj;
18211 fail:
18212 return NULL;
18213 }
18214
18215
18216 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18217 PyObject *resultobj;
18218 wxEffects *arg1 = (wxEffects *) 0 ;
18219 wxDC *arg2 = 0 ;
18220 wxRect *arg3 = 0 ;
18221 int arg4 = (int) 1 ;
18222 wxRect temp3 ;
18223 PyObject * obj0 = 0 ;
18224 PyObject * obj1 = 0 ;
18225 PyObject * obj2 = 0 ;
18226 PyObject * obj3 = 0 ;
18227 char *kwnames[] = {
18228 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18229 };
18230
18231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18234 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18235 SWIG_POINTER_EXCEPTION | 0)) == -1)
18236 SWIG_fail;
18237 if (arg2 == NULL) {
18238 PyErr_SetString(PyExc_TypeError,"null reference");
18239 SWIG_fail;
18240 }
18241 {
18242 arg3 = &temp3;
18243 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18244 }
18245 if (obj3) {
18246 arg4 = (int) SWIG_AsInt(obj3);
18247 if (PyErr_Occurred()) SWIG_fail;
18248 }
18249 {
18250 PyThreadState* __tstate = wxPyBeginAllowThreads();
18251 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18252
18253 wxPyEndAllowThreads(__tstate);
18254 if (PyErr_Occurred()) SWIG_fail;
18255 }
18256 Py_INCREF(Py_None); resultobj = Py_None;
18257 return resultobj;
18258 fail:
18259 return NULL;
18260 }
18261
18262
18263 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18264 PyObject *resultobj;
18265 wxEffects *arg1 = (wxEffects *) 0 ;
18266 wxRect *arg2 = 0 ;
18267 wxDC *arg3 = 0 ;
18268 wxBitmap *arg4 = 0 ;
18269 bool result;
18270 wxRect temp2 ;
18271 PyObject * obj0 = 0 ;
18272 PyObject * obj1 = 0 ;
18273 PyObject * obj2 = 0 ;
18274 PyObject * obj3 = 0 ;
18275 char *kwnames[] = {
18276 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18277 };
18278
18279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18282 {
18283 arg2 = &temp2;
18284 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18285 }
18286 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18287 SWIG_POINTER_EXCEPTION | 0)) == -1)
18288 SWIG_fail;
18289 if (arg3 == NULL) {
18290 PyErr_SetString(PyExc_TypeError,"null reference");
18291 SWIG_fail;
18292 }
18293 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18294 SWIG_POINTER_EXCEPTION | 0)) == -1)
18295 SWIG_fail;
18296 if (arg4 == NULL) {
18297 PyErr_SetString(PyExc_TypeError,"null reference");
18298 SWIG_fail;
18299 }
18300 {
18301 PyThreadState* __tstate = wxPyBeginAllowThreads();
18302 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18303
18304 wxPyEndAllowThreads(__tstate);
18305 if (PyErr_Occurred()) SWIG_fail;
18306 }
18307 {
18308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18309 }
18310 return resultobj;
18311 fail:
18312 return NULL;
18313 }
18314
18315
18316 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18317 PyObject *obj;
18318 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18319 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18320 Py_INCREF(obj);
18321 return Py_BuildValue((char *)"");
18322 }
18323 static PyMethodDef SwigMethods[] = {
18324 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18327 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18328 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18329 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18330 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18335 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18336 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18339 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18340 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18346 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18347 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18348 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18350 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18351 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18352 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18353 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18354 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18355 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18356 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18358 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18360 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18362 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18363 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18364 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18365 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18366 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18371 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18374 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
18375 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18378 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18380 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18387 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"new_EmptyBitmap", _wrap_new_EmptyBitmap, METH_VARARGS },
18394 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18414 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18416 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18431 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18439 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18447 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18453 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18475 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18479 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18493 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18517 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18526 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18546 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18547 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18579 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18583 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18591 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18598 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18620 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18622 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18630 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18690 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18691 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18692 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18694 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18695 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18696 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18697 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18698 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18699 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18701 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18702 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18703 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18704 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18705 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18706 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18707 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18708 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18709 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18710 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18712 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18713 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18714 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18715 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18717 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18718 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18719 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18721 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18723 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18724 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18728 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18729 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18730 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18732 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18735 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18736 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18737 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18740 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18745 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18751 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18755 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18756 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18757 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18758 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18759 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18760 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18761 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18762 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18763 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18764 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18765 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18766 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18767 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18768 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18769 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18770 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18771 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18772 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18773 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18774 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18775 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18776 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18777 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18778 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18779 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18780 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18781 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18782 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18783 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18784 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18785 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18786 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18787 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
18788 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
18789 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
18790 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
18791 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
18792 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
18793 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18794 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18795 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
18796 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18797 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18798 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18799 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18800 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18801 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18802 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18803 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18804 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18805 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18806 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18807 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18808 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18809 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18810 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18811 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18812 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18813 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18814 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18815 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18816 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18817 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18818 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18819 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18820 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18821 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18822 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18823 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18824 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18825 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18826 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18827 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18828 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18829 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18830 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18831 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18832 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18833 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18834 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18835 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18836 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18837 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18838 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18839 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18840 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18841 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18842 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18843 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18844 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18845 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18846 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18847 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18848 { NULL, NULL }
18849 };
18850
18851
18852 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18853
18854 static void *_p_wxControlTo_p_wxWindow(void *x) {
18855 return (void *)((wxWindow *) ((wxControl *) x));
18856 }
18857 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18858 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18859 }
18860 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18861 return (void *)((wxWindow *) ((wxMenuBar *) x));
18862 }
18863 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18864 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18865 }
18866 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18867 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18868 }
18869 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18870 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18871 }
18872 static void *_p_wxPenTo_p_wxObject(void *x) {
18873 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18874 }
18875 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18876 return (void *)((wxObject *) ((wxRegionIterator *) x));
18877 }
18878 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18879 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18880 }
18881 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18882 return (void *)((wxObject *) ((wxSizerItem *) x));
18883 }
18884 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18885 return (void *)((wxObject *) ((wxColourDatabase *) x));
18886 }
18887 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18888 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18889 }
18890 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18891 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18892 }
18893 static void *_p_wxIconTo_p_wxObject(void *x) {
18894 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18895 }
18896 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18897 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18898 }
18899 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18900 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18901 }
18902 static void *_p_wxSizerTo_p_wxObject(void *x) {
18903 return (void *)((wxObject *) ((wxSizer *) x));
18904 }
18905 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18906 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18907 }
18908 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18909 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18910 }
18911 static void *_p_wxPenListTo_p_wxObject(void *x) {
18912 return (void *)((wxObject *) ((wxPenList *) x));
18913 }
18914 static void *_p_wxEventTo_p_wxObject(void *x) {
18915 return (void *)((wxObject *) ((wxEvent *) x));
18916 }
18917 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18918 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18919 }
18920 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18921 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18922 }
18923 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18924 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18925 }
18926 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18927 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18928 }
18929 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18930 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18931 }
18932 static void *_p_wxDCTo_p_wxObject(void *x) {
18933 return (void *)((wxObject *) ((wxDC *) x));
18934 }
18935 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18936 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18937 }
18938 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18939 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18940 }
18941 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18942 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18943 }
18944 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18945 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18946 }
18947 static void *_p_wxControlTo_p_wxObject(void *x) {
18948 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18949 }
18950 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18951 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18952 }
18953 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18954 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18955 }
18956 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18957 return (void *)((wxObject *) ((wxFSFile *) x));
18958 }
18959 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18960 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18961 }
18962 static void *_p_wxRegionTo_p_wxObject(void *x) {
18963 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18964 }
18965 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18966 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18967 }
18968 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18969 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18970 }
18971 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18972 return (void *)((wxObject *) ((wxGDIObject *) x));
18973 }
18974 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18975 return (void *)((wxObject *) ((wxEffects *) x));
18976 }
18977 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18978 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18979 }
18980 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18981 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18982 }
18983 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18984 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18985 }
18986 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18987 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18988 }
18989 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18990 return (void *)((wxObject *) ((wxMenuItem *) x));
18991 }
18992 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18993 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18994 }
18995 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18996 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18997 }
18998 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18999 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19000 }
19001 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19002 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19003 }
19004 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19005 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19006 }
19007 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19008 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19009 }
19010 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19011 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19012 }
19013 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19014 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19015 }
19016 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19017 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19018 }
19019 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19020 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19021 }
19022 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19023 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19024 }
19025 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19026 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19027 }
19028 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19029 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19030 }
19031 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19032 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19033 }
19034 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19035 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19036 }
19037 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19038 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19039 }
19040 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19041 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19042 }
19043 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19044 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19045 }
19046 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19047 return (void *)((wxObject *) ((wxImageHandler *) x));
19048 }
19049 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19050 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19051 }
19052 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19053 return (void *)((wxObject *) ((wxEvtHandler *) x));
19054 }
19055 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19056 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19057 }
19058 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19059 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19060 }
19061 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19062 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19063 }
19064 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19065 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19066 }
19067 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19068 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19069 }
19070 static void *_p_wxImageTo_p_wxObject(void *x) {
19071 return (void *)((wxObject *) ((wxImage *) x));
19072 }
19073 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19074 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19075 }
19076 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19077 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19078 }
19079 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19080 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19081 }
19082 static void *_p_wxImageListTo_p_wxObject(void *x) {
19083 return (void *)((wxObject *) ((wxImageList *) x));
19084 }
19085 static void *_p_wxCursorTo_p_wxObject(void *x) {
19086 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19087 }
19088 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19089 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19090 }
19091 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19092 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19093 }
19094 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19095 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19096 }
19097 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19098 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19099 }
19100 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19101 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19102 }
19103 static void *_p_wxWindowTo_p_wxObject(void *x) {
19104 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19105 }
19106 static void *_p_wxMenuTo_p_wxObject(void *x) {
19107 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19108 }
19109 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19110 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19111 }
19112 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19113 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19114 }
19115 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19116 return (void *)((wxObject *) ((wxBrushList *) x));
19117 }
19118 static void *_p_wxPyPenTo_p_wxObject(void *x) {
19119 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19120 }
19121 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19122 return (void *)((wxObject *) ((wxFileSystem *) x));
19123 }
19124 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19125 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19126 }
19127 static void *_p_wxMaskTo_p_wxObject(void *x) {
19128 return (void *)((wxObject *) ((wxMask *) x));
19129 }
19130 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19131 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19132 }
19133 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19134 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19135 }
19136 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19137 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19138 }
19139 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19140 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19141 }
19142 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19143 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19144 }
19145 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19146 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19147 }
19148 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19149 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19150 }
19151 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19152 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19153 }
19154 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19155 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19156 }
19157 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19158 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19159 }
19160 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19161 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19162 }
19163 static void *_p_wxFontTo_p_wxObject(void *x) {
19164 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19165 }
19166 static void *_p_wxBrushTo_p_wxObject(void *x) {
19167 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19168 }
19169 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19170 return (void *)((wxObject *) ((wxMetaFile *) x));
19171 }
19172 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19173 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19174 }
19175 static void *_p_wxColourTo_p_wxObject(void *x) {
19176 return (void *)((wxObject *) ((wxColour *) x));
19177 }
19178 static void *_p_wxFontListTo_p_wxObject(void *x) {
19179 return (void *)((wxObject *) ((wxFontList *) x));
19180 }
19181 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19182 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19183 }
19184 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19185 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19186 }
19187 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19188 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19189 }
19190 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19191 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19192 }
19193 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19194 return (void *)((wxDC *) ((wxScreenDC *) x));
19195 }
19196 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19197 return (void *)((wxDC *) ((wxMirrorDC *) x));
19198 }
19199 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19200 return (void *)((wxDC *) ((wxMemoryDC *) x));
19201 }
19202 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19203 return (void *)((wxDC *) ((wxWindowDC *) x));
19204 }
19205 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19206 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19207 }
19208 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19209 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19210 }
19211 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19212 return (void *)((wxDC *) ((wxClientDC *) x));
19213 }
19214 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19215 return (void *)((wxDC *) ((wxPaintDC *) x));
19216 }
19217 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19218 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19219 }
19220 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19221 return (void *)((wxDC *) ((wxPrinterDC *) x));
19222 }
19223 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19224 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19225 }
19226 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19227 return (void *)((wxGDIObject *) ((wxIcon *) x));
19228 }
19229 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19230 return (void *)((wxGDIObject *) ((wxPalette *) x));
19231 }
19232 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19233 return (void *)((wxGDIObject *) ((wxPen *) x));
19234 }
19235 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19236 return (void *)((wxGDIObject *) ((wxFont *) x));
19237 }
19238 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19239 return (void *)((wxGDIObject *) ((wxCursor *) x));
19240 }
19241 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19242 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19243 }
19244 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19245 return (void *)((wxGDIObject *) ((wxRegion *) x));
19246 }
19247 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19248 return (void *)((wxGDIObject *) ((wxBrush *) x));
19249 }
19250 static void *_p_wxPyPenTo_p_wxPen(void *x) {
19251 return (void *)((wxPen *) ((wxPyPen *) x));
19252 }
19253 static 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}};
19254 static 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}};
19255 static 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}};
19256 static 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}};
19257 static 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}};
19258 static 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}};
19259 static 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}};
19260 static 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}};
19261 static 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}};
19262 static 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}};
19263 static 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}};
19264 static 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}};
19265 static 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}};
19266 static 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}};
19267 static 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}};
19268 static 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}};
19269 static 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}};
19270 static 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}};
19271 static 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}};
19272 static 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}};
19273 static 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}};
19274 static 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}};
19275 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPenList", _p_wxPenListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMask", _p_wxMaskTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDC", _p_wxDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageList", _p_wxImageListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColour", _p_wxColourTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontList", _p_wxFontListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19276 static 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}};
19277 static 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}};
19278 static 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}};
19279 static 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}};
19280 static 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}};
19281 static 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}};
19282 static 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}};
19283 static 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}};
19284 static 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}};
19285 static 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}};
19286 static 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}};
19287 static 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}};
19288 static 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}};
19289 static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", 0, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19290 static 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}};
19291 static 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}};
19292 static 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}};
19293 static 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}};
19294 static 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}};
19295 static 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}};
19296 static 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}};
19297 static 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}};
19298 static 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}};
19299 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen, 0, 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19300 static 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}};
19301 static 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}};
19302 static 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}};
19303 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0, 0, 0, 0},{"_p_wxPyPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19304 static 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}};
19305 static 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}};
19306 static 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}};
19307 static 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}};
19308 static 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}};
19309
19310 static swig_type_info *swig_types_initial[] = {
19311 _swigt__p_wxPostScriptDC,
19312 _swigt__p_wxBrush,
19313 _swigt__p_wxColour,
19314 _swigt__p_wxDC,
19315 _swigt__p_wxMirrorDC,
19316 _swigt__p_byte,
19317 _swigt__p_wxPyFontEnumerator,
19318 _swigt__p_char,
19319 _swigt__p_wxIconLocation,
19320 _swigt__p_wxImage,
19321 _swigt__p_wxMetaFileDC,
19322 _swigt__p_wxMask,
19323 _swigt__p_wxSize,
19324 _swigt__p_wxFont,
19325 _swigt__p_wxWindow,
19326 _swigt__p_double,
19327 _swigt__p_wxMemoryDC,
19328 _swigt__p_wxFontMapper,
19329 _swigt__p_wxEffects,
19330 _swigt__p_wxNativeEncodingInfo,
19331 _swigt__p_wxPalette,
19332 _swigt__p_wxBitmap,
19333 _swigt__p_wxObject,
19334 _swigt__p_wxRegionIterator,
19335 _swigt__p_wxRect,
19336 _swigt__p_wxString,
19337 _swigt__p_wxPrinterDC,
19338 _swigt__p_wxIconBundle,
19339 _swigt__p_wxPoint,
19340 _swigt__p_wxDash,
19341 _swigt__p_wxScreenDC,
19342 _swigt__p_wxCursor,
19343 _swigt__p_wxClientDC,
19344 _swigt__p_wxBufferedDC,
19345 _swigt__p_wxImageList,
19346 _swigt__p_unsigned_char,
19347 _swigt__p_wxGDIObject,
19348 _swigt__p_wxIcon,
19349 _swigt__p_wxLocale,
19350 _swigt__p_wxRegion,
19351 _swigt__p_wxConfigBase,
19352 _swigt__p_wxLanguageInfo,
19353 _swigt__p_wxWindowDC,
19354 _swigt__p_wxPrintData,
19355 _swigt__p_wxBrushList,
19356 _swigt__p_wxFontList,
19357 _swigt__p_wxPen,
19358 _swigt__p_wxBufferedPaintDC,
19359 _swigt__p_wxPaintDC,
19360 _swigt__p_wxPenList,
19361 _swigt__p_wxPyPen,
19362 _swigt__p_int,
19363 _swigt__p_wxMetaFile,
19364 _swigt__p_wxNativeFontInfo,
19365 _swigt__p_wxEncodingConverter,
19366 _swigt__p_wxColourDatabase,
19367 0
19368 };
19369
19370
19371 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19372
19373 static swig_const_info swig_const_table[] = {
19374 {0}};
19375
19376 #ifdef __cplusplus
19377 }
19378 #endif
19379
19380 #ifdef __cplusplus
19381 extern "C"
19382 #endif
19383 SWIGEXPORT(void) SWIG_init(void) {
19384 static PyObject *SWIG_globals = 0;
19385 static int typeinit = 0;
19386 PyObject *m, *d;
19387 int i;
19388 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19389 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19390 d = PyModule_GetDict(m);
19391
19392 if (!typeinit) {
19393 for (i = 0; swig_types_initial[i]; i++) {
19394 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19395 }
19396 typeinit = 1;
19397 }
19398 SWIG_InstallConstants(d,swig_const_table);
19399
19400 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19401 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19402 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19403 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19404 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19405 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19406 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19407 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19408 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19409 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19410 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19411 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19412 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19413 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19414 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19415 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19416 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19417 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19418 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19419 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19420 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19421 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19422 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19423 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19424 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19425 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19426 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19427 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19428 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19429 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19430 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19431 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19432 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19433 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19434 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19435 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19436 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19437 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19438 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19439 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19440 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19441 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19442 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19443 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19444 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19445 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19446 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19447 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19448 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19449 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
19450 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19451 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19452 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19453 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19454 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19455 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19456 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19457 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19458 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19459 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19460 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19461 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19462 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19463 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19464 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19465 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19466 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19467 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19468 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19469 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19470 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19471 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19472 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19473 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19474 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19475 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19476 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19477 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19478 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19479 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19480 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19481 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19482 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19483 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19484 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19485 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19486 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19487 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19488 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19489 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19490 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19491 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19492 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19493 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19494 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19495 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19496 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19497 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19498 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19499 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19500 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19501 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19502 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19503 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19504 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19505 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19506 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19507 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19508 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19509 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19510 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19511 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19512 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19513 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19514 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19515 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19516 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19517 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19518 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19519 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19520 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19521 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19522 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19523 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19524 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19525 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19526 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19527
19528 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19529
19530 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19531 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19532 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19533 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19534 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19535 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19536 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19537 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19538 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19539 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19540 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19541 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19542 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19543 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19544 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19545 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19546 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19547 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19548 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19549 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19550 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19551 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19552 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19553 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19554 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19555 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19556 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19557 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19558 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19559 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19560 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19561 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19562 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19563 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19564 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19565 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19566 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19567 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19568 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19569 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19570 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19571 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19572 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19573 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19574 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19575 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19576 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19577 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19578 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19579 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19580 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19581 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19582 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19583 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19584 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19585 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19586 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19587 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19588 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19589 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19590 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19591 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19592 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19593 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19594 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19595 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19596 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19597 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19598 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19599 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19600 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19601 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19602 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19603 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19604 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19605 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19606 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19607 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19608 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19609 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19610 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19611 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19612 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19613 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19614 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19615 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19616 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19617 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19618 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19619 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19620 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19621 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19622 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19623 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19624 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19625 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19626 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19627 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19628 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19629 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19630 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19631 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19632 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19633 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19634 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19635 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19636 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19637 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19638 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19639 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19640 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19641 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19642 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19643 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19644 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19645 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19646 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19647 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19648 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19649 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19650 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19651 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19652 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19653 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19654 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19655 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19656 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19657 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19658 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19659 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19660 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19661 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19662 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19663 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19664 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19665 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19666 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19667 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19668 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19669 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19670 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19671 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19672 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19673 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19674 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19675 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19676 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19677 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19678 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19679 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19680 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19681 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19682 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19683 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19684 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19685 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19686 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19687 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19688 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19689 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19690 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19691 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19692 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19693 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19694 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19695 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19696 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19697 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19698 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19699 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19700 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19701 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19702 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19703 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19704 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19705 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19706 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19707 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19708 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19709 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19710 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19711 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19712 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19713 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19714 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19715 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19716 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19717 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19718 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19719 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19720 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19721 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19722 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19723 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19724 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19725 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19726 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19727 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19728 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19729 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19730 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19731 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19732 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19733 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19734 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19735 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19736 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19737 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19738 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19739 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19740 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19741 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19742 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19743 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19744 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19745 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19746 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19747 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19748 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19749 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19750 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19751 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19752 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19753 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19754 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19755 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19756 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19757 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19758 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19759 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19760 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19761 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19762 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19763 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19764 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19765 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19766 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19767 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19768 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19769 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19770 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19771 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19772 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19773 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19774 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19775 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19776 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19777 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19778 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19779 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19780 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19781 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19782 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19783 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19784 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19785 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19786 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19787 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19788 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19789 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19790 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19791 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19792 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19793 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19794 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19795 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19796 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19797 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19798 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19799 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19800 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19801 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19802 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19803 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19804 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19805 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19806 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19807 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19808 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19809 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19810 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19811 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19812 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19813 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19814 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19815 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19816 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19817 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19818 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19819 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19820 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19821 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19822 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19823 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19824 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19825 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19826 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19827 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19828 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19829 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19830
19831 // Work around a chicken/egg problem in drawlist.cpp
19832 wxPyDrawList_SetAPIPtr();
19833
19834 }
19835