]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/gdi_wrap.cpp
reSWIGged
[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 //-=-=-=-=-=-=-=-=-=-=-
870
871 #if 1
872 // Use the standard wxBufferedDC
873 #include <wx/dcbuffer.h>
874
875 #else
876
877 // Or, temporarily put a set of classes here similar to the old buffered DC
878 // classes until the real ones can be fixed to work "correctly" again.
879
880 class wxBufferedDC : public wxMemoryDC
881 {
882 private:
883 wxDC *m_dc;
884 wxBitmap m_buffer;
885
886 public:
887
888 wxBufferedDC() : m_dc( 0 ) {}
889
890 wxBufferedDC( wxDC *dc, const wxBitmap &buffer )
891 : m_dc( dc ), m_buffer( buffer )
892 {
893 SelectObject( m_buffer );
894 }
895
896 wxBufferedDC( wxDC *dc, const wxSize &area )
897 : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() )
898 {
899 SelectObject( m_buffer );
900 }
901
902 ~wxBufferedDC() {
903 if( m_dc != 0 )
904 UnMask();
905 }
906
907
908 void Init( wxDC *dc, const wxBitmap &buffer ) {
909 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
910 _T("wxBufferedDC already initialised") );
911 m_dc = dc;
912 m_buffer = buffer;
913 SelectObject( m_buffer );
914 }
915
916 void Init( wxDC *dc, const wxSize &area ) {
917 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
918 _T("wxBufferedDC already initialised") );
919 m_dc = dc;
920 m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() );
921 SelectObject( m_buffer );
922 }
923
924 void UnMask() {
925 wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") );
926 m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 );
927 m_dc = 0;
928 }
929 };
930
931
932 class wxBufferedPaintDC : public wxBufferedDC
933 {
934 private:
935 wxPaintDC m_paintdc;
936
937 public:
938 wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap )
939 : m_paintdc( window )
940 {
941 window->PrepareDC( m_paintdc );
942
943 if( buffer != wxNullBitmap )
944 Init( &m_paintdc, buffer );
945 else
946 Init( &m_paintdc, window->GetClientSize() );
947 }
948
949 ~wxBufferedPaintDC() {
950 UnMask();
951 }
952 };
953
954 #endif
955 //-=-=-=-=-=-=-=-=-=-=-
956
957
958 #include <wx/dcps.h>
959
960
961 #include <wx/metafile.h>
962
963
964
965 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
966 self->AddColour(name, wxColour(red, green, blue));
967 }
968
969 #include <wx/effects.h>
970
971 #ifdef __cplusplus
972 extern "C" {
973 #endif
974 static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
975 PyObject *resultobj;
976 wxGDIObject *result;
977 char *kwnames[] = {
978 NULL
979 };
980
981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
982 {
983 PyThreadState* __tstate = wxPyBeginAllowThreads();
984 result = (wxGDIObject *)new wxGDIObject();
985
986 wxPyEndAllowThreads(__tstate);
987 if (PyErr_Occurred()) SWIG_fail;
988 }
989 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
990 return resultobj;
991 fail:
992 return NULL;
993 }
994
995
996 static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
997 PyObject *resultobj;
998 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
999 PyObject * obj0 = 0 ;
1000 char *kwnames[] = {
1001 (char *) "self", NULL
1002 };
1003
1004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
1005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1007 {
1008 PyThreadState* __tstate = wxPyBeginAllowThreads();
1009 delete arg1;
1010
1011 wxPyEndAllowThreads(__tstate);
1012 if (PyErr_Occurred()) SWIG_fail;
1013 }
1014 Py_INCREF(Py_None); resultobj = Py_None;
1015 return resultobj;
1016 fail:
1017 return NULL;
1018 }
1019
1020
1021 static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1022 PyObject *resultobj;
1023 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1024 bool result;
1025 PyObject * obj0 = 0 ;
1026 char *kwnames[] = {
1027 (char *) "self", NULL
1028 };
1029
1030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1033 {
1034 PyThreadState* __tstate = wxPyBeginAllowThreads();
1035 result = (bool)(arg1)->GetVisible();
1036
1037 wxPyEndAllowThreads(__tstate);
1038 if (PyErr_Occurred()) SWIG_fail;
1039 }
1040 {
1041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1042 }
1043 return resultobj;
1044 fail:
1045 return NULL;
1046 }
1047
1048
1049 static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1050 PyObject *resultobj;
1051 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1052 bool arg2 ;
1053 PyObject * obj0 = 0 ;
1054 PyObject * obj1 = 0 ;
1055 char *kwnames[] = {
1056 (char *) "self",(char *) "visible", NULL
1057 };
1058
1059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1062 arg2 = (bool) SWIG_AsBool(obj1);
1063 if (PyErr_Occurred()) SWIG_fail;
1064 {
1065 PyThreadState* __tstate = wxPyBeginAllowThreads();
1066 (arg1)->SetVisible(arg2);
1067
1068 wxPyEndAllowThreads(__tstate);
1069 if (PyErr_Occurred()) SWIG_fail;
1070 }
1071 Py_INCREF(Py_None); resultobj = Py_None;
1072 return resultobj;
1073 fail:
1074 return NULL;
1075 }
1076
1077
1078 static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
1079 PyObject *resultobj;
1080 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1081 bool result;
1082 PyObject * obj0 = 0 ;
1083 char *kwnames[] = {
1084 (char *) "self", NULL
1085 };
1086
1087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1090 {
1091 PyThreadState* __tstate = wxPyBeginAllowThreads();
1092 result = (bool)(arg1)->IsNull();
1093
1094 wxPyEndAllowThreads(__tstate);
1095 if (PyErr_Occurred()) SWIG_fail;
1096 }
1097 {
1098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1099 }
1100 return resultobj;
1101 fail:
1102 return NULL;
1103 }
1104
1105
1106 static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
1107 PyObject *obj;
1108 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1109 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1110 Py_INCREF(obj);
1111 return Py_BuildValue((char *)"");
1112 }
1113 static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1114 PyObject *resultobj;
1115 unsigned char arg1 = (unsigned char) 0 ;
1116 unsigned char arg2 = (unsigned char) 0 ;
1117 unsigned char arg3 = (unsigned char) 0 ;
1118 wxColour *result;
1119 PyObject * obj0 = 0 ;
1120 PyObject * obj1 = 0 ;
1121 PyObject * obj2 = 0 ;
1122 char *kwnames[] = {
1123 (char *) "red",(char *) "green",(char *) "blue", NULL
1124 };
1125
1126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1127 if (obj0) {
1128 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1129 if (PyErr_Occurred()) SWIG_fail;
1130 }
1131 if (obj1) {
1132 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1133 if (PyErr_Occurred()) SWIG_fail;
1134 }
1135 if (obj2) {
1136 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1137 if (PyErr_Occurred()) SWIG_fail;
1138 }
1139 {
1140 PyThreadState* __tstate = wxPyBeginAllowThreads();
1141 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1142
1143 wxPyEndAllowThreads(__tstate);
1144 if (PyErr_Occurred()) SWIG_fail;
1145 }
1146 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1147 return resultobj;
1148 fail:
1149 return NULL;
1150 }
1151
1152
1153 static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
1154 PyObject *resultobj;
1155 wxString *arg1 = 0 ;
1156 wxColour *result;
1157 bool temp1 = False ;
1158 PyObject * obj0 = 0 ;
1159 char *kwnames[] = {
1160 (char *) "colorName", NULL
1161 };
1162
1163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1164 {
1165 arg1 = wxString_in_helper(obj0);
1166 if (arg1 == NULL) SWIG_fail;
1167 temp1 = True;
1168 }
1169 {
1170 PyThreadState* __tstate = wxPyBeginAllowThreads();
1171 result = (wxColour *)new wxColour((wxString const &)*arg1);
1172
1173 wxPyEndAllowThreads(__tstate);
1174 if (PyErr_Occurred()) SWIG_fail;
1175 }
1176 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1177 {
1178 if (temp1)
1179 delete arg1;
1180 }
1181 return resultobj;
1182 fail:
1183 {
1184 if (temp1)
1185 delete arg1;
1186 }
1187 return NULL;
1188 }
1189
1190
1191 static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1192 PyObject *resultobj;
1193 unsigned long arg1 ;
1194 wxColour *result;
1195 PyObject * obj0 = 0 ;
1196 char *kwnames[] = {
1197 (char *) "colRGB", NULL
1198 };
1199
1200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1201 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1202 if (PyErr_Occurred()) SWIG_fail;
1203 {
1204 PyThreadState* __tstate = wxPyBeginAllowThreads();
1205 result = (wxColour *)new wxColour(arg1);
1206
1207 wxPyEndAllowThreads(__tstate);
1208 if (PyErr_Occurred()) SWIG_fail;
1209 }
1210 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1211 return resultobj;
1212 fail:
1213 return NULL;
1214 }
1215
1216
1217 static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1218 PyObject *resultobj;
1219 wxColour *arg1 = (wxColour *) 0 ;
1220 PyObject * obj0 = 0 ;
1221 char *kwnames[] = {
1222 (char *) "self", NULL
1223 };
1224
1225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1228 {
1229 PyThreadState* __tstate = wxPyBeginAllowThreads();
1230 delete arg1;
1231
1232 wxPyEndAllowThreads(__tstate);
1233 if (PyErr_Occurred()) SWIG_fail;
1234 }
1235 Py_INCREF(Py_None); resultobj = Py_None;
1236 return resultobj;
1237 fail:
1238 return NULL;
1239 }
1240
1241
1242 static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
1243 PyObject *resultobj;
1244 wxColour *arg1 = (wxColour *) 0 ;
1245 unsigned char result;
1246 PyObject * obj0 = 0 ;
1247 char *kwnames[] = {
1248 (char *) "self", NULL
1249 };
1250
1251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1254 {
1255 PyThreadState* __tstate = wxPyBeginAllowThreads();
1256 result = (unsigned char)(arg1)->Red();
1257
1258 wxPyEndAllowThreads(__tstate);
1259 if (PyErr_Occurred()) SWIG_fail;
1260 }
1261 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1262 return resultobj;
1263 fail:
1264 return NULL;
1265 }
1266
1267
1268 static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
1269 PyObject *resultobj;
1270 wxColour *arg1 = (wxColour *) 0 ;
1271 unsigned char result;
1272 PyObject * obj0 = 0 ;
1273 char *kwnames[] = {
1274 (char *) "self", NULL
1275 };
1276
1277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1280 {
1281 PyThreadState* __tstate = wxPyBeginAllowThreads();
1282 result = (unsigned char)(arg1)->Green();
1283
1284 wxPyEndAllowThreads(__tstate);
1285 if (PyErr_Occurred()) SWIG_fail;
1286 }
1287 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1288 return resultobj;
1289 fail:
1290 return NULL;
1291 }
1292
1293
1294 static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
1295 PyObject *resultobj;
1296 wxColour *arg1 = (wxColour *) 0 ;
1297 unsigned char result;
1298 PyObject * obj0 = 0 ;
1299 char *kwnames[] = {
1300 (char *) "self", NULL
1301 };
1302
1303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1306 {
1307 PyThreadState* __tstate = wxPyBeginAllowThreads();
1308 result = (unsigned char)(arg1)->Blue();
1309
1310 wxPyEndAllowThreads(__tstate);
1311 if (PyErr_Occurred()) SWIG_fail;
1312 }
1313 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1314 return resultobj;
1315 fail:
1316 return NULL;
1317 }
1318
1319
1320 static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1321 PyObject *resultobj;
1322 wxColour *arg1 = (wxColour *) 0 ;
1323 bool result;
1324 PyObject * obj0 = 0 ;
1325 char *kwnames[] = {
1326 (char *) "self", NULL
1327 };
1328
1329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1332 {
1333 PyThreadState* __tstate = wxPyBeginAllowThreads();
1334 result = (bool)(arg1)->Ok();
1335
1336 wxPyEndAllowThreads(__tstate);
1337 if (PyErr_Occurred()) SWIG_fail;
1338 }
1339 {
1340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1341 }
1342 return resultobj;
1343 fail:
1344 return NULL;
1345 }
1346
1347
1348 static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
1349 PyObject *resultobj;
1350 wxColour *arg1 = (wxColour *) 0 ;
1351 unsigned char arg2 ;
1352 unsigned char arg3 ;
1353 unsigned char arg4 ;
1354 PyObject * obj0 = 0 ;
1355 PyObject * obj1 = 0 ;
1356 PyObject * obj2 = 0 ;
1357 PyObject * obj3 = 0 ;
1358 char *kwnames[] = {
1359 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1360 };
1361
1362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1365 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1366 if (PyErr_Occurred()) SWIG_fail;
1367 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1368 if (PyErr_Occurred()) SWIG_fail;
1369 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1370 if (PyErr_Occurred()) SWIG_fail;
1371 {
1372 PyThreadState* __tstate = wxPyBeginAllowThreads();
1373 (arg1)->Set(arg2,arg3,arg4);
1374
1375 wxPyEndAllowThreads(__tstate);
1376 if (PyErr_Occurred()) SWIG_fail;
1377 }
1378 Py_INCREF(Py_None); resultobj = Py_None;
1379 return resultobj;
1380 fail:
1381 return NULL;
1382 }
1383
1384
1385 static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1386 PyObject *resultobj;
1387 wxColour *arg1 = (wxColour *) 0 ;
1388 unsigned long arg2 ;
1389 PyObject * obj0 = 0 ;
1390 PyObject * obj1 = 0 ;
1391 char *kwnames[] = {
1392 (char *) "self",(char *) "colRGB", NULL
1393 };
1394
1395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1398 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1399 if (PyErr_Occurred()) SWIG_fail;
1400 {
1401 PyThreadState* __tstate = wxPyBeginAllowThreads();
1402 (arg1)->Set(arg2);
1403
1404 wxPyEndAllowThreads(__tstate);
1405 if (PyErr_Occurred()) SWIG_fail;
1406 }
1407 Py_INCREF(Py_None); resultobj = Py_None;
1408 return resultobj;
1409 fail:
1410 return NULL;
1411 }
1412
1413
1414 static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
1415 PyObject *resultobj;
1416 wxColour *arg1 = (wxColour *) 0 ;
1417 wxString *arg2 = 0 ;
1418 bool temp2 = False ;
1419 PyObject * obj0 = 0 ;
1420 PyObject * obj1 = 0 ;
1421 char *kwnames[] = {
1422 (char *) "self",(char *) "colourName", NULL
1423 };
1424
1425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1428 {
1429 arg2 = wxString_in_helper(obj1);
1430 if (arg2 == NULL) SWIG_fail;
1431 temp2 = True;
1432 }
1433 {
1434 PyThreadState* __tstate = wxPyBeginAllowThreads();
1435 (arg1)->InitFromName((wxString const &)*arg2);
1436
1437 wxPyEndAllowThreads(__tstate);
1438 if (PyErr_Occurred()) SWIG_fail;
1439 }
1440 Py_INCREF(Py_None); resultobj = Py_None;
1441 {
1442 if (temp2)
1443 delete arg2;
1444 }
1445 return resultobj;
1446 fail:
1447 {
1448 if (temp2)
1449 delete arg2;
1450 }
1451 return NULL;
1452 }
1453
1454
1455 static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1456 PyObject *resultobj;
1457 wxColour *arg1 = (wxColour *) 0 ;
1458 long result;
1459 PyObject * obj0 = 0 ;
1460 char *kwnames[] = {
1461 (char *) "self", NULL
1462 };
1463
1464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1467 {
1468 PyThreadState* __tstate = wxPyBeginAllowThreads();
1469 result = (long)((wxColour const *)arg1)->GetPixel();
1470
1471 wxPyEndAllowThreads(__tstate);
1472 if (PyErr_Occurred()) SWIG_fail;
1473 }
1474 resultobj = SWIG_FromLong((long)result);
1475 return resultobj;
1476 fail:
1477 return NULL;
1478 }
1479
1480
1481 static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
1482 PyObject *resultobj;
1483 wxColour *arg1 = (wxColour *) 0 ;
1484 wxColour *arg2 = 0 ;
1485 bool result;
1486 wxColour temp2 ;
1487 PyObject * obj0 = 0 ;
1488 PyObject * obj1 = 0 ;
1489 char *kwnames[] = {
1490 (char *) "self",(char *) "colour", NULL
1491 };
1492
1493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1496 {
1497 arg2 = &temp2;
1498 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1499 }
1500 {
1501 PyThreadState* __tstate = wxPyBeginAllowThreads();
1502 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1503
1504 wxPyEndAllowThreads(__tstate);
1505 if (PyErr_Occurred()) SWIG_fail;
1506 }
1507 {
1508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1509 }
1510 return resultobj;
1511 fail:
1512 return NULL;
1513 }
1514
1515
1516 static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
1517 PyObject *resultobj;
1518 wxColour *arg1 = (wxColour *) 0 ;
1519 wxColour *arg2 = 0 ;
1520 bool result;
1521 wxColour temp2 ;
1522 PyObject * obj0 = 0 ;
1523 PyObject * obj1 = 0 ;
1524 char *kwnames[] = {
1525 (char *) "self",(char *) "colour", NULL
1526 };
1527
1528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1531 {
1532 arg2 = &temp2;
1533 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1534 }
1535 {
1536 PyThreadState* __tstate = wxPyBeginAllowThreads();
1537 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1538
1539 wxPyEndAllowThreads(__tstate);
1540 if (PyErr_Occurred()) SWIG_fail;
1541 }
1542 {
1543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1544 }
1545 return resultobj;
1546 fail:
1547 return NULL;
1548 }
1549
1550
1551 static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
1552 PyObject *resultobj;
1553 wxColour *arg1 = (wxColour *) 0 ;
1554 PyObject *result;
1555 PyObject * obj0 = 0 ;
1556 char *kwnames[] = {
1557 (char *) "self", NULL
1558 };
1559
1560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1563 {
1564 PyThreadState* __tstate = wxPyBeginAllowThreads();
1565 result = (PyObject *)wxColour_Get(arg1);
1566
1567 wxPyEndAllowThreads(__tstate);
1568 if (PyErr_Occurred()) SWIG_fail;
1569 }
1570 resultobj = result;
1571 return resultobj;
1572 fail:
1573 return NULL;
1574 }
1575
1576
1577 static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1578 PyObject *resultobj;
1579 wxColour *arg1 = (wxColour *) 0 ;
1580 unsigned long result;
1581 PyObject * obj0 = 0 ;
1582 char *kwnames[] = {
1583 (char *) "self", NULL
1584 };
1585
1586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1589 {
1590 PyThreadState* __tstate = wxPyBeginAllowThreads();
1591 result = (unsigned long)wxColour_GetRGB(arg1);
1592
1593 wxPyEndAllowThreads(__tstate);
1594 if (PyErr_Occurred()) SWIG_fail;
1595 }
1596 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1597 return resultobj;
1598 fail:
1599 return NULL;
1600 }
1601
1602
1603 static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
1604 PyObject *obj;
1605 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1606 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1607 Py_INCREF(obj);
1608 return Py_BuildValue((char *)"");
1609 }
1610 static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1611 PyObject *resultobj;
1612 int arg1 ;
1613 unsigned char *arg2 = (unsigned char *) 0 ;
1614 unsigned char *arg3 = (unsigned char *) 0 ;
1615 unsigned char *arg4 = (unsigned char *) 0 ;
1616 wxPalette *result;
1617 PyObject * obj0 = 0 ;
1618 PyObject * obj1 = 0 ;
1619 PyObject * obj2 = 0 ;
1620 PyObject * obj3 = 0 ;
1621 char *kwnames[] = {
1622 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1623 };
1624
1625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1626 arg1 = (int) SWIG_AsInt(obj0);
1627 if (PyErr_Occurred()) SWIG_fail;
1628 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1630 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1632 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1634 {
1635 PyThreadState* __tstate = wxPyBeginAllowThreads();
1636 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1637
1638 wxPyEndAllowThreads(__tstate);
1639 if (PyErr_Occurred()) SWIG_fail;
1640 }
1641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1642 return resultobj;
1643 fail:
1644 return NULL;
1645 }
1646
1647
1648 static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1649 PyObject *resultobj;
1650 wxPalette *arg1 = (wxPalette *) 0 ;
1651 PyObject * obj0 = 0 ;
1652 char *kwnames[] = {
1653 (char *) "self", NULL
1654 };
1655
1656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1659 {
1660 PyThreadState* __tstate = wxPyBeginAllowThreads();
1661 delete arg1;
1662
1663 wxPyEndAllowThreads(__tstate);
1664 if (PyErr_Occurred()) SWIG_fail;
1665 }
1666 Py_INCREF(Py_None); resultobj = Py_None;
1667 return resultobj;
1668 fail:
1669 return NULL;
1670 }
1671
1672
1673 static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1674 PyObject *resultobj;
1675 wxPalette *arg1 = (wxPalette *) 0 ;
1676 byte arg2 ;
1677 byte arg3 ;
1678 byte arg4 ;
1679 int result;
1680 PyObject * obj0 = 0 ;
1681 PyObject * obj1 = 0 ;
1682 PyObject * obj2 = 0 ;
1683 PyObject * obj3 = 0 ;
1684 char *kwnames[] = {
1685 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1686 };
1687
1688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1691 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1692 if (PyErr_Occurred()) SWIG_fail;
1693 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1694 if (PyErr_Occurred()) SWIG_fail;
1695 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1696 if (PyErr_Occurred()) SWIG_fail;
1697 {
1698 PyThreadState* __tstate = wxPyBeginAllowThreads();
1699 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1700
1701 wxPyEndAllowThreads(__tstate);
1702 if (PyErr_Occurred()) SWIG_fail;
1703 }
1704 resultobj = SWIG_FromInt((int)result);
1705 return resultobj;
1706 fail:
1707 return NULL;
1708 }
1709
1710
1711 static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1712 PyObject *resultobj;
1713 wxPalette *arg1 = (wxPalette *) 0 ;
1714 int arg2 ;
1715 byte *arg3 = (byte *) 0 ;
1716 byte *arg4 = (byte *) 0 ;
1717 byte *arg5 = (byte *) 0 ;
1718 bool result;
1719 byte temp3 ;
1720 byte temp4 ;
1721 byte temp5 ;
1722 PyObject * obj0 = 0 ;
1723 PyObject * obj1 = 0 ;
1724 char *kwnames[] = {
1725 (char *) "self",(char *) "pixel", NULL
1726 };
1727
1728 arg3 = &temp3;
1729 arg4 = &temp4;
1730 arg5 = &temp5;
1731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1734 arg2 = (int) SWIG_AsInt(obj1);
1735 if (PyErr_Occurred()) SWIG_fail;
1736 {
1737 PyThreadState* __tstate = wxPyBeginAllowThreads();
1738 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1739
1740 wxPyEndAllowThreads(__tstate);
1741 if (PyErr_Occurred()) SWIG_fail;
1742 }
1743 {
1744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1745 }
1746 {
1747 PyObject *o = PyInt_FromLong((long) (*arg3));
1748 resultobj = t_output_helper(resultobj,o);
1749 }
1750 {
1751 PyObject *o = PyInt_FromLong((long) (*arg4));
1752 resultobj = t_output_helper(resultobj,o);
1753 }
1754 {
1755 PyObject *o = PyInt_FromLong((long) (*arg5));
1756 resultobj = t_output_helper(resultobj,o);
1757 }
1758 return resultobj;
1759 fail:
1760 return NULL;
1761 }
1762
1763
1764 static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1765 PyObject *resultobj;
1766 wxPalette *arg1 = (wxPalette *) 0 ;
1767 bool result;
1768 PyObject * obj0 = 0 ;
1769 char *kwnames[] = {
1770 (char *) "self", NULL
1771 };
1772
1773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1776 {
1777 PyThreadState* __tstate = wxPyBeginAllowThreads();
1778 result = (bool)(arg1)->Ok();
1779
1780 wxPyEndAllowThreads(__tstate);
1781 if (PyErr_Occurred()) SWIG_fail;
1782 }
1783 {
1784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1785 }
1786 return resultobj;
1787 fail:
1788 return NULL;
1789 }
1790
1791
1792 static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
1793 PyObject *obj;
1794 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1795 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1796 Py_INCREF(obj);
1797 return Py_BuildValue((char *)"");
1798 }
1799 static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1800 PyObject *resultobj;
1801 wxColour *arg1 = 0 ;
1802 int arg2 = (int) 1 ;
1803 int arg3 = (int) wxSOLID ;
1804 wxPen *result;
1805 wxColour temp1 ;
1806 PyObject * obj0 = 0 ;
1807 PyObject * obj1 = 0 ;
1808 PyObject * obj2 = 0 ;
1809 char *kwnames[] = {
1810 (char *) "colour",(char *) "width",(char *) "style", NULL
1811 };
1812
1813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1814 {
1815 arg1 = &temp1;
1816 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1817 }
1818 if (obj1) {
1819 arg2 = (int) SWIG_AsInt(obj1);
1820 if (PyErr_Occurred()) SWIG_fail;
1821 }
1822 if (obj2) {
1823 arg3 = (int) SWIG_AsInt(obj2);
1824 if (PyErr_Occurred()) SWIG_fail;
1825 }
1826 {
1827 PyThreadState* __tstate = wxPyBeginAllowThreads();
1828 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1829
1830 wxPyEndAllowThreads(__tstate);
1831 if (PyErr_Occurred()) SWIG_fail;
1832 }
1833 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1834 return resultobj;
1835 fail:
1836 return NULL;
1837 }
1838
1839
1840 static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1841 PyObject *resultobj;
1842 wxPen *arg1 = (wxPen *) 0 ;
1843 PyObject * obj0 = 0 ;
1844 char *kwnames[] = {
1845 (char *) "self", NULL
1846 };
1847
1848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1851 {
1852 PyThreadState* __tstate = wxPyBeginAllowThreads();
1853 delete arg1;
1854
1855 wxPyEndAllowThreads(__tstate);
1856 if (PyErr_Occurred()) SWIG_fail;
1857 }
1858 Py_INCREF(Py_None); resultobj = Py_None;
1859 return resultobj;
1860 fail:
1861 return NULL;
1862 }
1863
1864
1865 static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
1866 PyObject *resultobj;
1867 wxPen *arg1 = (wxPen *) 0 ;
1868 int result;
1869 PyObject * obj0 = 0 ;
1870 char *kwnames[] = {
1871 (char *) "self", NULL
1872 };
1873
1874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1877 {
1878 PyThreadState* __tstate = wxPyBeginAllowThreads();
1879 result = (int)(arg1)->GetCap();
1880
1881 wxPyEndAllowThreads(__tstate);
1882 if (PyErr_Occurred()) SWIG_fail;
1883 }
1884 resultobj = SWIG_FromInt((int)result);
1885 return resultobj;
1886 fail:
1887 return NULL;
1888 }
1889
1890
1891 static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1892 PyObject *resultobj;
1893 wxPen *arg1 = (wxPen *) 0 ;
1894 wxColour result;
1895 PyObject * obj0 = 0 ;
1896 char *kwnames[] = {
1897 (char *) "self", NULL
1898 };
1899
1900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1903 {
1904 PyThreadState* __tstate = wxPyBeginAllowThreads();
1905 result = (arg1)->GetColour();
1906
1907 wxPyEndAllowThreads(__tstate);
1908 if (PyErr_Occurred()) SWIG_fail;
1909 }
1910 {
1911 wxColour * resultptr;
1912 resultptr = new wxColour((wxColour &) result);
1913 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1914 }
1915 return resultobj;
1916 fail:
1917 return NULL;
1918 }
1919
1920
1921 static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
1922 PyObject *resultobj;
1923 wxPen *arg1 = (wxPen *) 0 ;
1924 int result;
1925 PyObject * obj0 = 0 ;
1926 char *kwnames[] = {
1927 (char *) "self", NULL
1928 };
1929
1930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1933 {
1934 PyThreadState* __tstate = wxPyBeginAllowThreads();
1935 result = (int)(arg1)->GetJoin();
1936
1937 wxPyEndAllowThreads(__tstate);
1938 if (PyErr_Occurred()) SWIG_fail;
1939 }
1940 resultobj = SWIG_FromInt((int)result);
1941 return resultobj;
1942 fail:
1943 return NULL;
1944 }
1945
1946
1947 static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
1948 PyObject *resultobj;
1949 wxPen *arg1 = (wxPen *) 0 ;
1950 int result;
1951 PyObject * obj0 = 0 ;
1952 char *kwnames[] = {
1953 (char *) "self", NULL
1954 };
1955
1956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1959 {
1960 PyThreadState* __tstate = wxPyBeginAllowThreads();
1961 result = (int)(arg1)->GetStyle();
1962
1963 wxPyEndAllowThreads(__tstate);
1964 if (PyErr_Occurred()) SWIG_fail;
1965 }
1966 resultobj = SWIG_FromInt((int)result);
1967 return resultobj;
1968 fail:
1969 return NULL;
1970 }
1971
1972
1973 static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
1974 PyObject *resultobj;
1975 wxPen *arg1 = (wxPen *) 0 ;
1976 int result;
1977 PyObject * obj0 = 0 ;
1978 char *kwnames[] = {
1979 (char *) "self", NULL
1980 };
1981
1982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1985 {
1986 PyThreadState* __tstate = wxPyBeginAllowThreads();
1987 result = (int)(arg1)->GetWidth();
1988
1989 wxPyEndAllowThreads(__tstate);
1990 if (PyErr_Occurred()) SWIG_fail;
1991 }
1992 resultobj = SWIG_FromInt((int)result);
1993 return resultobj;
1994 fail:
1995 return NULL;
1996 }
1997
1998
1999 static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2000 PyObject *resultobj;
2001 wxPen *arg1 = (wxPen *) 0 ;
2002 bool result;
2003 PyObject * obj0 = 0 ;
2004 char *kwnames[] = {
2005 (char *) "self", NULL
2006 };
2007
2008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
2009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2011 {
2012 PyThreadState* __tstate = wxPyBeginAllowThreads();
2013 result = (bool)(arg1)->Ok();
2014
2015 wxPyEndAllowThreads(__tstate);
2016 if (PyErr_Occurred()) SWIG_fail;
2017 }
2018 {
2019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2020 }
2021 return resultobj;
2022 fail:
2023 return NULL;
2024 }
2025
2026
2027 static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
2028 PyObject *resultobj;
2029 wxPen *arg1 = (wxPen *) 0 ;
2030 int arg2 ;
2031 PyObject * obj0 = 0 ;
2032 PyObject * obj1 = 0 ;
2033 char *kwnames[] = {
2034 (char *) "self",(char *) "cap_style", NULL
2035 };
2036
2037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2040 arg2 = (int) SWIG_AsInt(obj1);
2041 if (PyErr_Occurred()) SWIG_fail;
2042 {
2043 PyThreadState* __tstate = wxPyBeginAllowThreads();
2044 (arg1)->SetCap(arg2);
2045
2046 wxPyEndAllowThreads(__tstate);
2047 if (PyErr_Occurred()) SWIG_fail;
2048 }
2049 Py_INCREF(Py_None); resultobj = Py_None;
2050 return resultobj;
2051 fail:
2052 return NULL;
2053 }
2054
2055
2056 static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2057 PyObject *resultobj;
2058 wxPen *arg1 = (wxPen *) 0 ;
2059 wxColour *arg2 = 0 ;
2060 wxColour temp2 ;
2061 PyObject * obj0 = 0 ;
2062 PyObject * obj1 = 0 ;
2063 char *kwnames[] = {
2064 (char *) "self",(char *) "colour", NULL
2065 };
2066
2067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2070 {
2071 arg2 = &temp2;
2072 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2073 }
2074 {
2075 PyThreadState* __tstate = wxPyBeginAllowThreads();
2076 (arg1)->SetColour(*arg2);
2077
2078 wxPyEndAllowThreads(__tstate);
2079 if (PyErr_Occurred()) SWIG_fail;
2080 }
2081 Py_INCREF(Py_None); resultobj = Py_None;
2082 return resultobj;
2083 fail:
2084 return NULL;
2085 }
2086
2087
2088 static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
2089 PyObject *resultobj;
2090 wxPen *arg1 = (wxPen *) 0 ;
2091 int arg2 ;
2092 PyObject * obj0 = 0 ;
2093 PyObject * obj1 = 0 ;
2094 char *kwnames[] = {
2095 (char *) "self",(char *) "join_style", NULL
2096 };
2097
2098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2101 arg2 = (int) SWIG_AsInt(obj1);
2102 if (PyErr_Occurred()) SWIG_fail;
2103 {
2104 PyThreadState* __tstate = wxPyBeginAllowThreads();
2105 (arg1)->SetJoin(arg2);
2106
2107 wxPyEndAllowThreads(__tstate);
2108 if (PyErr_Occurred()) SWIG_fail;
2109 }
2110 Py_INCREF(Py_None); resultobj = Py_None;
2111 return resultobj;
2112 fail:
2113 return NULL;
2114 }
2115
2116
2117 static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2118 PyObject *resultobj;
2119 wxPen *arg1 = (wxPen *) 0 ;
2120 int arg2 ;
2121 PyObject * obj0 = 0 ;
2122 PyObject * obj1 = 0 ;
2123 char *kwnames[] = {
2124 (char *) "self",(char *) "style", NULL
2125 };
2126
2127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2130 arg2 = (int) SWIG_AsInt(obj1);
2131 if (PyErr_Occurred()) SWIG_fail;
2132 {
2133 PyThreadState* __tstate = wxPyBeginAllowThreads();
2134 (arg1)->SetStyle(arg2);
2135
2136 wxPyEndAllowThreads(__tstate);
2137 if (PyErr_Occurred()) SWIG_fail;
2138 }
2139 Py_INCREF(Py_None); resultobj = Py_None;
2140 return resultobj;
2141 fail:
2142 return NULL;
2143 }
2144
2145
2146 static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2147 PyObject *resultobj;
2148 wxPen *arg1 = (wxPen *) 0 ;
2149 int arg2 ;
2150 PyObject * obj0 = 0 ;
2151 PyObject * obj1 = 0 ;
2152 char *kwnames[] = {
2153 (char *) "self",(char *) "width", NULL
2154 };
2155
2156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2159 arg2 = (int) SWIG_AsInt(obj1);
2160 if (PyErr_Occurred()) SWIG_fail;
2161 {
2162 PyThreadState* __tstate = wxPyBeginAllowThreads();
2163 (arg1)->SetWidth(arg2);
2164
2165 wxPyEndAllowThreads(__tstate);
2166 if (PyErr_Occurred()) SWIG_fail;
2167 }
2168 Py_INCREF(Py_None); resultobj = Py_None;
2169 return resultobj;
2170 fail:
2171 return NULL;
2172 }
2173
2174
2175 static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2176 PyObject *resultobj;
2177 wxPen *arg1 = (wxPen *) 0 ;
2178 int arg2 ;
2179 wxDash *arg3 = (wxDash *) 0 ;
2180 PyObject * obj0 = 0 ;
2181 PyObject * obj1 = 0 ;
2182 char *kwnames[] = {
2183 (char *) "self",(char *) "dashes", NULL
2184 };
2185
2186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2189 {
2190 arg2 = PyList_Size(obj1);
2191 arg3 = (wxDash*)byte_LIST_helper(obj1);
2192 if (arg3 == NULL) SWIG_fail;
2193 }
2194 {
2195 PyThreadState* __tstate = wxPyBeginAllowThreads();
2196 (arg1)->SetDashes(arg2,arg3);
2197
2198 wxPyEndAllowThreads(__tstate);
2199 if (PyErr_Occurred()) SWIG_fail;
2200 }
2201 Py_INCREF(Py_None); resultobj = Py_None;
2202 {
2203 if (arg3) delete [] arg3;
2204 }
2205 return resultobj;
2206 fail:
2207 {
2208 if (arg3) delete [] arg3;
2209 }
2210 return NULL;
2211 }
2212
2213
2214 static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2215 PyObject *resultobj;
2216 wxPen *arg1 = (wxPen *) 0 ;
2217 PyObject *result;
2218 PyObject * obj0 = 0 ;
2219 char *kwnames[] = {
2220 (char *) "self", NULL
2221 };
2222
2223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2226 {
2227 PyThreadState* __tstate = wxPyBeginAllowThreads();
2228 result = (PyObject *)wxPen_GetDashes(arg1);
2229
2230 wxPyEndAllowThreads(__tstate);
2231 if (PyErr_Occurred()) SWIG_fail;
2232 }
2233 resultobj = result;
2234 return resultobj;
2235 fail:
2236 return NULL;
2237 }
2238
2239
2240 static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2241 PyObject *resultobj;
2242 wxPen *arg1 = (wxPen *) 0 ;
2243 wxPen *arg2 = (wxPen *) 0 ;
2244 bool result;
2245 PyObject * obj0 = 0 ;
2246 PyObject * obj1 = 0 ;
2247 char *kwnames[] = {
2248 (char *) "self",(char *) "other", NULL
2249 };
2250
2251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2254 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2256 {
2257 PyThreadState* __tstate = wxPyBeginAllowThreads();
2258 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2259
2260 wxPyEndAllowThreads(__tstate);
2261 if (PyErr_Occurred()) SWIG_fail;
2262 }
2263 {
2264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2265 }
2266 return resultobj;
2267 fail:
2268 return NULL;
2269 }
2270
2271
2272 static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2273 PyObject *resultobj;
2274 wxPen *arg1 = (wxPen *) 0 ;
2275 wxPen *arg2 = (wxPen *) 0 ;
2276 bool result;
2277 PyObject * obj0 = 0 ;
2278 PyObject * obj1 = 0 ;
2279 char *kwnames[] = {
2280 (char *) "self",(char *) "other", NULL
2281 };
2282
2283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2286 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2288 {
2289 PyThreadState* __tstate = wxPyBeginAllowThreads();
2290 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2291
2292 wxPyEndAllowThreads(__tstate);
2293 if (PyErr_Occurred()) SWIG_fail;
2294 }
2295 {
2296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2297 }
2298 return resultobj;
2299 fail:
2300 return NULL;
2301 }
2302
2303
2304 static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
2305 PyObject *obj;
2306 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2307 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2308 Py_INCREF(obj);
2309 return Py_BuildValue((char *)"");
2310 }
2311 static PyObject *_wrap_new_PyPen(PyObject *, PyObject *args, PyObject *kwargs) {
2312 PyObject *resultobj;
2313 wxColour *arg1 = 0 ;
2314 int arg2 = (int) 1 ;
2315 int arg3 = (int) wxSOLID ;
2316 wxPyPen *result;
2317 wxColour temp1 ;
2318 PyObject * obj0 = 0 ;
2319 PyObject * obj1 = 0 ;
2320 PyObject * obj2 = 0 ;
2321 char *kwnames[] = {
2322 (char *) "colour",(char *) "width",(char *) "style", NULL
2323 };
2324
2325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2326 {
2327 arg1 = &temp1;
2328 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2329 }
2330 if (obj1) {
2331 arg2 = (int) SWIG_AsInt(obj1);
2332 if (PyErr_Occurred()) SWIG_fail;
2333 }
2334 if (obj2) {
2335 arg3 = (int) SWIG_AsInt(obj2);
2336 if (PyErr_Occurred()) SWIG_fail;
2337 }
2338 {
2339 PyThreadState* __tstate = wxPyBeginAllowThreads();
2340 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2341
2342 wxPyEndAllowThreads(__tstate);
2343 if (PyErr_Occurred()) SWIG_fail;
2344 }
2345 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
2346 return resultobj;
2347 fail:
2348 return NULL;
2349 }
2350
2351
2352 static PyObject *_wrap_delete_PyPen(PyObject *, PyObject *args, PyObject *kwargs) {
2353 PyObject *resultobj;
2354 wxPyPen *arg1 = (wxPyPen *) 0 ;
2355 PyObject * obj0 = 0 ;
2356 char *kwnames[] = {
2357 (char *) "self", NULL
2358 };
2359
2360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2363 {
2364 PyThreadState* __tstate = wxPyBeginAllowThreads();
2365 delete arg1;
2366
2367 wxPyEndAllowThreads(__tstate);
2368 if (PyErr_Occurred()) SWIG_fail;
2369 }
2370 Py_INCREF(Py_None); resultobj = Py_None;
2371 return resultobj;
2372 fail:
2373 return NULL;
2374 }
2375
2376
2377 static PyObject *_wrap_PyPen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2378 PyObject *resultobj;
2379 wxPyPen *arg1 = (wxPyPen *) 0 ;
2380 int arg2 ;
2381 wxDash *arg3 = (wxDash *) 0 ;
2382 PyObject * obj0 = 0 ;
2383 PyObject * obj1 = 0 ;
2384 char *kwnames[] = {
2385 (char *) "self",(char *) "dashes", NULL
2386 };
2387
2388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2391 {
2392 arg2 = PyList_Size(obj1);
2393 arg3 = (wxDash*)byte_LIST_helper(obj1);
2394 if (arg3 == NULL) SWIG_fail;
2395 }
2396 {
2397 PyThreadState* __tstate = wxPyBeginAllowThreads();
2398 (arg1)->SetDashes(arg2,arg3);
2399
2400 wxPyEndAllowThreads(__tstate);
2401 if (PyErr_Occurred()) SWIG_fail;
2402 }
2403 Py_INCREF(Py_None); resultobj = Py_None;
2404 {
2405 if (arg3) delete [] arg3;
2406 }
2407 return resultobj;
2408 fail:
2409 {
2410 if (arg3) delete [] arg3;
2411 }
2412 return NULL;
2413 }
2414
2415
2416 static PyObject * PyPen_swigregister(PyObject *, PyObject *args) {
2417 PyObject *obj;
2418 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2419 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2420 Py_INCREF(obj);
2421 return Py_BuildValue((char *)"");
2422 }
2423 static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2424 PyObject *resultobj;
2425 wxColour *arg1 = 0 ;
2426 int arg2 = (int) wxSOLID ;
2427 wxBrush *result;
2428 wxColour temp1 ;
2429 PyObject * obj0 = 0 ;
2430 PyObject * obj1 = 0 ;
2431 char *kwnames[] = {
2432 (char *) "colour",(char *) "style", NULL
2433 };
2434
2435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2436 {
2437 arg1 = &temp1;
2438 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2439 }
2440 if (obj1) {
2441 arg2 = (int) SWIG_AsInt(obj1);
2442 if (PyErr_Occurred()) SWIG_fail;
2443 }
2444 {
2445 PyThreadState* __tstate = wxPyBeginAllowThreads();
2446 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2447
2448 wxPyEndAllowThreads(__tstate);
2449 if (PyErr_Occurred()) SWIG_fail;
2450 }
2451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2452 return resultobj;
2453 fail:
2454 return NULL;
2455 }
2456
2457
2458 static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2459 PyObject *resultobj;
2460 wxBrush *arg1 = (wxBrush *) 0 ;
2461 PyObject * obj0 = 0 ;
2462 char *kwnames[] = {
2463 (char *) "self", NULL
2464 };
2465
2466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2469 {
2470 PyThreadState* __tstate = wxPyBeginAllowThreads();
2471 delete arg1;
2472
2473 wxPyEndAllowThreads(__tstate);
2474 if (PyErr_Occurred()) SWIG_fail;
2475 }
2476 Py_INCREF(Py_None); resultobj = Py_None;
2477 return resultobj;
2478 fail:
2479 return NULL;
2480 }
2481
2482
2483 static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2484 PyObject *resultobj;
2485 wxBrush *arg1 = (wxBrush *) 0 ;
2486 wxColour *arg2 = 0 ;
2487 wxColour temp2 ;
2488 PyObject * obj0 = 0 ;
2489 PyObject * obj1 = 0 ;
2490 char *kwnames[] = {
2491 (char *) "self",(char *) "col", NULL
2492 };
2493
2494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2497 {
2498 arg2 = &temp2;
2499 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2500 }
2501 {
2502 PyThreadState* __tstate = wxPyBeginAllowThreads();
2503 (arg1)->SetColour((wxColour const &)*arg2);
2504
2505 wxPyEndAllowThreads(__tstate);
2506 if (PyErr_Occurred()) SWIG_fail;
2507 }
2508 Py_INCREF(Py_None); resultobj = Py_None;
2509 return resultobj;
2510 fail:
2511 return NULL;
2512 }
2513
2514
2515 static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2516 PyObject *resultobj;
2517 wxBrush *arg1 = (wxBrush *) 0 ;
2518 int arg2 ;
2519 PyObject * obj0 = 0 ;
2520 PyObject * obj1 = 0 ;
2521 char *kwnames[] = {
2522 (char *) "self",(char *) "style", NULL
2523 };
2524
2525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2528 arg2 = (int) SWIG_AsInt(obj1);
2529 if (PyErr_Occurred()) SWIG_fail;
2530 {
2531 PyThreadState* __tstate = wxPyBeginAllowThreads();
2532 (arg1)->SetStyle(arg2);
2533
2534 wxPyEndAllowThreads(__tstate);
2535 if (PyErr_Occurred()) SWIG_fail;
2536 }
2537 Py_INCREF(Py_None); resultobj = Py_None;
2538 return resultobj;
2539 fail:
2540 return NULL;
2541 }
2542
2543
2544 static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2545 PyObject *resultobj;
2546 wxBrush *arg1 = (wxBrush *) 0 ;
2547 wxBitmap *arg2 = 0 ;
2548 PyObject * obj0 = 0 ;
2549 PyObject * obj1 = 0 ;
2550 char *kwnames[] = {
2551 (char *) "self",(char *) "stipple", NULL
2552 };
2553
2554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2557 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2558 SWIG_POINTER_EXCEPTION | 0)) == -1)
2559 SWIG_fail;
2560 if (arg2 == NULL) {
2561 PyErr_SetString(PyExc_TypeError,"null reference");
2562 SWIG_fail;
2563 }
2564 {
2565 PyThreadState* __tstate = wxPyBeginAllowThreads();
2566 (arg1)->SetStipple((wxBitmap const &)*arg2);
2567
2568 wxPyEndAllowThreads(__tstate);
2569 if (PyErr_Occurred()) SWIG_fail;
2570 }
2571 Py_INCREF(Py_None); resultobj = Py_None;
2572 return resultobj;
2573 fail:
2574 return NULL;
2575 }
2576
2577
2578 static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2579 PyObject *resultobj;
2580 wxBrush *arg1 = (wxBrush *) 0 ;
2581 wxColour result;
2582 PyObject * obj0 = 0 ;
2583 char *kwnames[] = {
2584 (char *) "self", NULL
2585 };
2586
2587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2590 {
2591 PyThreadState* __tstate = wxPyBeginAllowThreads();
2592 result = ((wxBrush const *)arg1)->GetColour();
2593
2594 wxPyEndAllowThreads(__tstate);
2595 if (PyErr_Occurred()) SWIG_fail;
2596 }
2597 {
2598 wxColour * resultptr;
2599 resultptr = new wxColour((wxColour &) result);
2600 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2601 }
2602 return resultobj;
2603 fail:
2604 return NULL;
2605 }
2606
2607
2608 static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2609 PyObject *resultobj;
2610 wxBrush *arg1 = (wxBrush *) 0 ;
2611 int result;
2612 PyObject * obj0 = 0 ;
2613 char *kwnames[] = {
2614 (char *) "self", NULL
2615 };
2616
2617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2620 {
2621 PyThreadState* __tstate = wxPyBeginAllowThreads();
2622 result = (int)((wxBrush const *)arg1)->GetStyle();
2623
2624 wxPyEndAllowThreads(__tstate);
2625 if (PyErr_Occurred()) SWIG_fail;
2626 }
2627 resultobj = SWIG_FromInt((int)result);
2628 return resultobj;
2629 fail:
2630 return NULL;
2631 }
2632
2633
2634 static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2635 PyObject *resultobj;
2636 wxBrush *arg1 = (wxBrush *) 0 ;
2637 wxBitmap *result;
2638 PyObject * obj0 = 0 ;
2639 char *kwnames[] = {
2640 (char *) "self", NULL
2641 };
2642
2643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2646 {
2647 PyThreadState* __tstate = wxPyBeginAllowThreads();
2648 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2649
2650 wxPyEndAllowThreads(__tstate);
2651 if (PyErr_Occurred()) SWIG_fail;
2652 }
2653 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2654 return resultobj;
2655 fail:
2656 return NULL;
2657 }
2658
2659
2660 static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2661 PyObject *resultobj;
2662 wxBrush *arg1 = (wxBrush *) 0 ;
2663 bool result;
2664 PyObject * obj0 = 0 ;
2665 char *kwnames[] = {
2666 (char *) "self", NULL
2667 };
2668
2669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2672 {
2673 PyThreadState* __tstate = wxPyBeginAllowThreads();
2674 result = (bool)(arg1)->Ok();
2675
2676 wxPyEndAllowThreads(__tstate);
2677 if (PyErr_Occurred()) SWIG_fail;
2678 }
2679 {
2680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2681 }
2682 return resultobj;
2683 fail:
2684 return NULL;
2685 }
2686
2687
2688 static PyObject *_wrap_Brush_MacGetTheme(PyObject *, PyObject *args, PyObject *kwargs) {
2689 PyObject *resultobj;
2690 wxBrush *arg1 = (wxBrush *) 0 ;
2691 short result;
2692 PyObject * obj0 = 0 ;
2693 char *kwnames[] = {
2694 (char *) "self", NULL
2695 };
2696
2697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
2698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2700 {
2701 PyThreadState* __tstate = wxPyBeginAllowThreads();
2702 result = (short)(arg1)->MacGetTheme();
2703
2704 wxPyEndAllowThreads(__tstate);
2705 if (PyErr_Occurred()) SWIG_fail;
2706 }
2707 resultobj = SWIG_FromShort((short)result);
2708 return resultobj;
2709 fail:
2710 return NULL;
2711 }
2712
2713
2714 static PyObject *_wrap_Brush_MacSetTheme(PyObject *, PyObject *args, PyObject *kwargs) {
2715 PyObject *resultobj;
2716 wxBrush *arg1 = (wxBrush *) 0 ;
2717 short arg2 ;
2718 PyObject * obj0 = 0 ;
2719 PyObject * obj1 = 0 ;
2720 char *kwnames[] = {
2721 (char *) "self",(char *) "macThemeBrush", NULL
2722 };
2723
2724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
2725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2727 arg2 = (short) SWIG_AsShort(obj1);
2728 if (PyErr_Occurred()) SWIG_fail;
2729 {
2730 PyThreadState* __tstate = wxPyBeginAllowThreads();
2731 (arg1)->MacSetTheme(arg2);
2732
2733 wxPyEndAllowThreads(__tstate);
2734 if (PyErr_Occurred()) SWIG_fail;
2735 }
2736 Py_INCREF(Py_None); resultobj = Py_None;
2737 return resultobj;
2738 fail:
2739 return NULL;
2740 }
2741
2742
2743 static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
2744 PyObject *obj;
2745 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2746 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2747 Py_INCREF(obj);
2748 return Py_BuildValue((char *)"");
2749 }
2750 static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2751 PyObject *resultobj;
2752 wxString *arg1 = 0 ;
2753 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2754 wxBitmap *result;
2755 bool temp1 = False ;
2756 PyObject * obj0 = 0 ;
2757 PyObject * obj1 = 0 ;
2758 char *kwnames[] = {
2759 (char *) "name",(char *) "type", NULL
2760 };
2761
2762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2763 {
2764 arg1 = wxString_in_helper(obj0);
2765 if (arg1 == NULL) SWIG_fail;
2766 temp1 = True;
2767 }
2768 if (obj1) {
2769 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2770 if (PyErr_Occurred()) SWIG_fail;
2771 }
2772 {
2773 PyThreadState* __tstate = wxPyBeginAllowThreads();
2774 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2775
2776 wxPyEndAllowThreads(__tstate);
2777 if (PyErr_Occurred()) SWIG_fail;
2778 }
2779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2780 {
2781 if (temp1)
2782 delete arg1;
2783 }
2784 return resultobj;
2785 fail:
2786 {
2787 if (temp1)
2788 delete arg1;
2789 }
2790 return NULL;
2791 }
2792
2793
2794 static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2795 PyObject *resultobj;
2796 wxBitmap *arg1 = (wxBitmap *) 0 ;
2797 PyObject * obj0 = 0 ;
2798 char *kwnames[] = {
2799 (char *) "self", NULL
2800 };
2801
2802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2805 {
2806 PyThreadState* __tstate = wxPyBeginAllowThreads();
2807 delete arg1;
2808
2809 wxPyEndAllowThreads(__tstate);
2810 if (PyErr_Occurred()) SWIG_fail;
2811 }
2812 Py_INCREF(Py_None); resultobj = Py_None;
2813 return resultobj;
2814 fail:
2815 return NULL;
2816 }
2817
2818
2819 static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
2820 PyObject *resultobj;
2821 wxIcon *arg1 = 0 ;
2822 wxBitmap *result;
2823 PyObject * obj0 = 0 ;
2824 char *kwnames[] = {
2825 (char *) "icon", NULL
2826 };
2827
2828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2830 SWIG_POINTER_EXCEPTION | 0)) == -1)
2831 SWIG_fail;
2832 if (arg1 == NULL) {
2833 PyErr_SetString(PyExc_TypeError,"null reference");
2834 SWIG_fail;
2835 }
2836 {
2837 PyThreadState* __tstate = wxPyBeginAllowThreads();
2838 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2839
2840 wxPyEndAllowThreads(__tstate);
2841 if (PyErr_Occurred()) SWIG_fail;
2842 }
2843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2844 return resultobj;
2845 fail:
2846 return NULL;
2847 }
2848
2849
2850 static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
2851 PyObject *resultobj;
2852 wxImage *arg1 = 0 ;
2853 int arg2 = (int) -1 ;
2854 wxBitmap *result;
2855 PyObject * obj0 = 0 ;
2856 PyObject * obj1 = 0 ;
2857 char *kwnames[] = {
2858 (char *) "image",(char *) "depth", NULL
2859 };
2860
2861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2863 SWIG_POINTER_EXCEPTION | 0)) == -1)
2864 SWIG_fail;
2865 if (arg1 == NULL) {
2866 PyErr_SetString(PyExc_TypeError,"null reference");
2867 SWIG_fail;
2868 }
2869 if (obj1) {
2870 arg2 = (int) SWIG_AsInt(obj1);
2871 if (PyErr_Occurred()) SWIG_fail;
2872 }
2873 {
2874 PyThreadState* __tstate = wxPyBeginAllowThreads();
2875 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2876
2877 wxPyEndAllowThreads(__tstate);
2878 if (PyErr_Occurred()) SWIG_fail;
2879 }
2880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2881 return resultobj;
2882 fail:
2883 return NULL;
2884 }
2885
2886
2887 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
2888 PyObject *resultobj;
2889 PyObject *arg1 = (PyObject *) 0 ;
2890 wxBitmap *result;
2891 PyObject * obj0 = 0 ;
2892 char *kwnames[] = {
2893 (char *) "listOfStrings", NULL
2894 };
2895
2896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2897 arg1 = obj0;
2898 {
2899 PyThreadState* __tstate = wxPyBeginAllowThreads();
2900 result = (wxBitmap *)new_wxBitmap(arg1);
2901
2902 wxPyEndAllowThreads(__tstate);
2903 if (PyErr_Occurred()) SWIG_fail;
2904 }
2905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2906 return resultobj;
2907 fail:
2908 return NULL;
2909 }
2910
2911
2912 static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
2913 PyObject *resultobj;
2914 PyObject *arg1 = (PyObject *) 0 ;
2915 int arg2 ;
2916 int arg3 ;
2917 int arg4 = (int) 1 ;
2918 wxBitmap *result;
2919 PyObject * obj0 = 0 ;
2920 PyObject * obj1 = 0 ;
2921 PyObject * obj2 = 0 ;
2922 PyObject * obj3 = 0 ;
2923 char *kwnames[] = {
2924 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2925 };
2926
2927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2928 arg1 = obj0;
2929 arg2 = (int) SWIG_AsInt(obj1);
2930 if (PyErr_Occurred()) SWIG_fail;
2931 arg3 = (int) SWIG_AsInt(obj2);
2932 if (PyErr_Occurred()) SWIG_fail;
2933 if (obj3) {
2934 arg4 = (int) SWIG_AsInt(obj3);
2935 if (PyErr_Occurred()) SWIG_fail;
2936 }
2937 {
2938 PyThreadState* __tstate = wxPyBeginAllowThreads();
2939 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2940
2941 wxPyEndAllowThreads(__tstate);
2942 if (PyErr_Occurred()) SWIG_fail;
2943 }
2944 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2945 return resultobj;
2946 fail:
2947 return NULL;
2948 }
2949
2950
2951 static PyObject *_wrap_new_EmptyBitmap__SWIG_0(PyObject *, PyObject *args) {
2952 PyObject *resultobj;
2953 int arg1 ;
2954 int arg2 ;
2955 int arg3 = (int) -1 ;
2956 wxBitmap *result;
2957 PyObject * obj0 = 0 ;
2958 PyObject * obj1 = 0 ;
2959 PyObject * obj2 = 0 ;
2960
2961 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_EmptyBitmap",&obj0,&obj1,&obj2)) goto fail;
2962 arg1 = (int) SWIG_AsInt(obj0);
2963 if (PyErr_Occurred()) SWIG_fail;
2964 arg2 = (int) SWIG_AsInt(obj1);
2965 if (PyErr_Occurred()) SWIG_fail;
2966 if (obj2) {
2967 arg3 = (int) SWIG_AsInt(obj2);
2968 if (PyErr_Occurred()) SWIG_fail;
2969 }
2970 {
2971 PyThreadState* __tstate = wxPyBeginAllowThreads();
2972 result = (wxBitmap *)new_wxBitmap__SWIG_0(arg1,arg2,arg3);
2973
2974 wxPyEndAllowThreads(__tstate);
2975 if (PyErr_Occurred()) SWIG_fail;
2976 }
2977 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2978 return resultobj;
2979 fail:
2980 return NULL;
2981 }
2982
2983
2984 static PyObject *_wrap_new_EmptyBitmap__SWIG_1(PyObject *, PyObject *args) {
2985 PyObject *resultobj;
2986 wxSize *arg1 = 0 ;
2987 int arg2 = (int) -1 ;
2988 wxBitmap *result;
2989 wxSize temp1 ;
2990 PyObject * obj0 = 0 ;
2991 PyObject * obj1 = 0 ;
2992
2993 if(!PyArg_ParseTuple(args,(char *)"O|O:new_EmptyBitmap",&obj0,&obj1)) goto fail;
2994 {
2995 arg1 = &temp1;
2996 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
2997 }
2998 if (obj1) {
2999 arg2 = (int) SWIG_AsInt(obj1);
3000 if (PyErr_Occurred()) SWIG_fail;
3001 }
3002 {
3003 PyThreadState* __tstate = wxPyBeginAllowThreads();
3004 result = (wxBitmap *)new_wxBitmap__SWIG_1((wxSize const &)*arg1,arg2);
3005
3006 wxPyEndAllowThreads(__tstate);
3007 if (PyErr_Occurred()) SWIG_fail;
3008 }
3009 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
3010 return resultobj;
3011 fail:
3012 return NULL;
3013 }
3014
3015
3016 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args) {
3017 int argc;
3018 PyObject *argv[4];
3019 int ii;
3020
3021 argc = PyObject_Length(args);
3022 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
3023 argv[ii] = PyTuple_GetItem(args,ii);
3024 }
3025 if ((argc >= 1) && (argc <= 2)) {
3026 int _v;
3027 {
3028 _v = wxPySimple_typecheck(argv[0], wxT("wxSize"), 2);
3029 }
3030 if (_v) {
3031 if (argc <= 1) {
3032 return _wrap_new_EmptyBitmap__SWIG_1(self,args);
3033 }
3034 _v = SWIG_CheckInt(argv[1]);
3035 if (_v) {
3036 return _wrap_new_EmptyBitmap__SWIG_1(self,args);
3037 }
3038 }
3039 }
3040 if ((argc >= 2) && (argc <= 3)) {
3041 int _v;
3042 _v = SWIG_CheckInt(argv[0]);
3043 if (_v) {
3044 _v = SWIG_CheckInt(argv[1]);
3045 if (_v) {
3046 if (argc <= 2) {
3047 return _wrap_new_EmptyBitmap__SWIG_0(self,args);
3048 }
3049 _v = SWIG_CheckInt(argv[2]);
3050 if (_v) {
3051 return _wrap_new_EmptyBitmap__SWIG_0(self,args);
3052 }
3053 }
3054 }
3055 }
3056
3057 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_EmptyBitmap'");
3058 return NULL;
3059 }
3060
3061
3062 static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3063 PyObject *resultobj;
3064 wxBitmap *arg1 = (wxBitmap *) 0 ;
3065 bool result;
3066 PyObject * obj0 = 0 ;
3067 char *kwnames[] = {
3068 (char *) "self", NULL
3069 };
3070
3071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
3072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3074 {
3075 PyThreadState* __tstate = wxPyBeginAllowThreads();
3076 result = (bool)(arg1)->Ok();
3077
3078 wxPyEndAllowThreads(__tstate);
3079 if (PyErr_Occurred()) SWIG_fail;
3080 }
3081 {
3082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3083 }
3084 return resultobj;
3085 fail:
3086 return NULL;
3087 }
3088
3089
3090 static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3091 PyObject *resultobj;
3092 wxBitmap *arg1 = (wxBitmap *) 0 ;
3093 int result;
3094 PyObject * obj0 = 0 ;
3095 char *kwnames[] = {
3096 (char *) "self", NULL
3097 };
3098
3099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3102 {
3103 PyThreadState* __tstate = wxPyBeginAllowThreads();
3104 result = (int)(arg1)->GetWidth();
3105
3106 wxPyEndAllowThreads(__tstate);
3107 if (PyErr_Occurred()) SWIG_fail;
3108 }
3109 resultobj = SWIG_FromInt((int)result);
3110 return resultobj;
3111 fail:
3112 return NULL;
3113 }
3114
3115
3116 static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3117 PyObject *resultobj;
3118 wxBitmap *arg1 = (wxBitmap *) 0 ;
3119 int result;
3120 PyObject * obj0 = 0 ;
3121 char *kwnames[] = {
3122 (char *) "self", NULL
3123 };
3124
3125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3128 {
3129 PyThreadState* __tstate = wxPyBeginAllowThreads();
3130 result = (int)(arg1)->GetHeight();
3131
3132 wxPyEndAllowThreads(__tstate);
3133 if (PyErr_Occurred()) SWIG_fail;
3134 }
3135 resultobj = SWIG_FromInt((int)result);
3136 return resultobj;
3137 fail:
3138 return NULL;
3139 }
3140
3141
3142 static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3143 PyObject *resultobj;
3144 wxBitmap *arg1 = (wxBitmap *) 0 ;
3145 int result;
3146 PyObject * obj0 = 0 ;
3147 char *kwnames[] = {
3148 (char *) "self", NULL
3149 };
3150
3151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",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 = (int)(arg1)->GetDepth();
3157
3158 wxPyEndAllowThreads(__tstate);
3159 if (PyErr_Occurred()) SWIG_fail;
3160 }
3161 resultobj = SWIG_FromInt((int)result);
3162 return resultobj;
3163 fail:
3164 return NULL;
3165 }
3166
3167
3168 static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
3169 PyObject *resultobj;
3170 wxBitmap *arg1 = (wxBitmap *) 0 ;
3171 wxSize result;
3172 PyObject * obj0 = 0 ;
3173 char *kwnames[] = {
3174 (char *) "self", NULL
3175 };
3176
3177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3180 {
3181 PyThreadState* __tstate = wxPyBeginAllowThreads();
3182 result = wxBitmap_GetSize(arg1);
3183
3184 wxPyEndAllowThreads(__tstate);
3185 if (PyErr_Occurred()) SWIG_fail;
3186 }
3187 {
3188 wxSize * resultptr;
3189 resultptr = new wxSize((wxSize &) result);
3190 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3191 }
3192 return resultobj;
3193 fail:
3194 return NULL;
3195 }
3196
3197
3198 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
3199 PyObject *resultobj;
3200 wxBitmap *arg1 = (wxBitmap *) 0 ;
3201 SwigValueWrapper< wxImage > result;
3202 PyObject * obj0 = 0 ;
3203 char *kwnames[] = {
3204 (char *) "self", NULL
3205 };
3206
3207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3210 {
3211 PyThreadState* __tstate = wxPyBeginAllowThreads();
3212 result = ((wxBitmap const *)arg1)->ConvertToImage();
3213
3214 wxPyEndAllowThreads(__tstate);
3215 if (PyErr_Occurred()) SWIG_fail;
3216 }
3217 {
3218 wxImage * resultptr;
3219 resultptr = new wxImage((wxImage &) result);
3220 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3221 }
3222 return resultobj;
3223 fail:
3224 return NULL;
3225 }
3226
3227
3228 static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3229 PyObject *resultobj;
3230 wxBitmap *arg1 = (wxBitmap *) 0 ;
3231 wxMask *result;
3232 PyObject * obj0 = 0 ;
3233 char *kwnames[] = {
3234 (char *) "self", NULL
3235 };
3236
3237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3240 {
3241 PyThreadState* __tstate = wxPyBeginAllowThreads();
3242 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3243
3244 wxPyEndAllowThreads(__tstate);
3245 if (PyErr_Occurred()) SWIG_fail;
3246 }
3247 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3248 return resultobj;
3249 fail:
3250 return NULL;
3251 }
3252
3253
3254 static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3255 PyObject *resultobj;
3256 wxBitmap *arg1 = (wxBitmap *) 0 ;
3257 wxMask *arg2 = (wxMask *) 0 ;
3258 PyObject * obj0 = 0 ;
3259 PyObject * obj1 = 0 ;
3260 char *kwnames[] = {
3261 (char *) "self",(char *) "mask", NULL
3262 };
3263
3264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3267 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3269 {
3270 PyThreadState* __tstate = wxPyBeginAllowThreads();
3271 (arg1)->SetMask(arg2);
3272
3273 wxPyEndAllowThreads(__tstate);
3274 if (PyErr_Occurred()) SWIG_fail;
3275 }
3276 Py_INCREF(Py_None); resultobj = Py_None;
3277 return resultobj;
3278 fail:
3279 return NULL;
3280 }
3281
3282
3283 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
3284 PyObject *resultobj;
3285 wxBitmap *arg1 = (wxBitmap *) 0 ;
3286 wxColour *arg2 = 0 ;
3287 wxColour temp2 ;
3288 PyObject * obj0 = 0 ;
3289 PyObject * obj1 = 0 ;
3290 char *kwnames[] = {
3291 (char *) "self",(char *) "colour", NULL
3292 };
3293
3294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3297 {
3298 arg2 = &temp2;
3299 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3300 }
3301 {
3302 PyThreadState* __tstate = wxPyBeginAllowThreads();
3303 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3304
3305 wxPyEndAllowThreads(__tstate);
3306 if (PyErr_Occurred()) SWIG_fail;
3307 }
3308 Py_INCREF(Py_None); resultobj = Py_None;
3309 return resultobj;
3310 fail:
3311 return NULL;
3312 }
3313
3314
3315 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3316 PyObject *resultobj;
3317 wxBitmap *arg1 = (wxBitmap *) 0 ;
3318 wxRect *arg2 = 0 ;
3319 SwigValueWrapper< wxBitmap > result;
3320 wxRect temp2 ;
3321 PyObject * obj0 = 0 ;
3322 PyObject * obj1 = 0 ;
3323 char *kwnames[] = {
3324 (char *) "self",(char *) "rect", NULL
3325 };
3326
3327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3330 {
3331 arg2 = &temp2;
3332 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3333 }
3334 {
3335 PyThreadState* __tstate = wxPyBeginAllowThreads();
3336 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3337
3338 wxPyEndAllowThreads(__tstate);
3339 if (PyErr_Occurred()) SWIG_fail;
3340 }
3341 {
3342 wxBitmap * resultptr;
3343 resultptr = new wxBitmap((wxBitmap &) result);
3344 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3345 }
3346 return resultobj;
3347 fail:
3348 return NULL;
3349 }
3350
3351
3352 static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
3353 PyObject *resultobj;
3354 wxBitmap *arg1 = (wxBitmap *) 0 ;
3355 wxString *arg2 = 0 ;
3356 int arg3 ;
3357 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3358 bool result;
3359 bool temp2 = False ;
3360 PyObject * obj0 = 0 ;
3361 PyObject * obj1 = 0 ;
3362 PyObject * obj2 = 0 ;
3363 PyObject * obj3 = 0 ;
3364 char *kwnames[] = {
3365 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3366 };
3367
3368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3371 {
3372 arg2 = wxString_in_helper(obj1);
3373 if (arg2 == NULL) SWIG_fail;
3374 temp2 = True;
3375 }
3376 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3377 if (PyErr_Occurred()) SWIG_fail;
3378 if (obj3) {
3379 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3381 }
3382 {
3383 PyThreadState* __tstate = wxPyBeginAllowThreads();
3384 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3385
3386 wxPyEndAllowThreads(__tstate);
3387 if (PyErr_Occurred()) SWIG_fail;
3388 }
3389 {
3390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3391 }
3392 {
3393 if (temp2)
3394 delete arg2;
3395 }
3396 return resultobj;
3397 fail:
3398 {
3399 if (temp2)
3400 delete arg2;
3401 }
3402 return NULL;
3403 }
3404
3405
3406 static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
3407 PyObject *resultobj;
3408 wxBitmap *arg1 = (wxBitmap *) 0 ;
3409 wxString *arg2 = 0 ;
3410 int arg3 ;
3411 bool result;
3412 bool temp2 = False ;
3413 PyObject * obj0 = 0 ;
3414 PyObject * obj1 = 0 ;
3415 PyObject * obj2 = 0 ;
3416 char *kwnames[] = {
3417 (char *) "self",(char *) "name",(char *) "type", NULL
3418 };
3419
3420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3423 {
3424 arg2 = wxString_in_helper(obj1);
3425 if (arg2 == NULL) SWIG_fail;
3426 temp2 = True;
3427 }
3428 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3429 if (PyErr_Occurred()) SWIG_fail;
3430 {
3431 PyThreadState* __tstate = wxPyBeginAllowThreads();
3432 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3433
3434 wxPyEndAllowThreads(__tstate);
3435 if (PyErr_Occurred()) SWIG_fail;
3436 }
3437 {
3438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3439 }
3440 {
3441 if (temp2)
3442 delete arg2;
3443 }
3444 return resultobj;
3445 fail:
3446 {
3447 if (temp2)
3448 delete arg2;
3449 }
3450 return NULL;
3451 }
3452
3453
3454 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3455 PyObject *resultobj;
3456 wxBitmap *arg1 = (wxBitmap *) 0 ;
3457 wxIcon *arg2 = 0 ;
3458 bool result;
3459 PyObject * obj0 = 0 ;
3460 PyObject * obj1 = 0 ;
3461 char *kwnames[] = {
3462 (char *) "self",(char *) "icon", NULL
3463 };
3464
3465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3468 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3469 SWIG_POINTER_EXCEPTION | 0)) == -1)
3470 SWIG_fail;
3471 if (arg2 == NULL) {
3472 PyErr_SetString(PyExc_TypeError,"null reference");
3473 SWIG_fail;
3474 }
3475 {
3476 PyThreadState* __tstate = wxPyBeginAllowThreads();
3477 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3478
3479 wxPyEndAllowThreads(__tstate);
3480 if (PyErr_Occurred()) SWIG_fail;
3481 }
3482 {
3483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3484 }
3485 return resultobj;
3486 fail:
3487 return NULL;
3488 }
3489
3490
3491 static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3492 PyObject *resultobj;
3493 wxBitmap *arg1 = (wxBitmap *) 0 ;
3494 int arg2 ;
3495 PyObject * obj0 = 0 ;
3496 PyObject * obj1 = 0 ;
3497 char *kwnames[] = {
3498 (char *) "self",(char *) "height", NULL
3499 };
3500
3501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3504 arg2 = (int) SWIG_AsInt(obj1);
3505 if (PyErr_Occurred()) SWIG_fail;
3506 {
3507 PyThreadState* __tstate = wxPyBeginAllowThreads();
3508 (arg1)->SetHeight(arg2);
3509
3510 wxPyEndAllowThreads(__tstate);
3511 if (PyErr_Occurred()) SWIG_fail;
3512 }
3513 Py_INCREF(Py_None); resultobj = Py_None;
3514 return resultobj;
3515 fail:
3516 return NULL;
3517 }
3518
3519
3520 static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3521 PyObject *resultobj;
3522 wxBitmap *arg1 = (wxBitmap *) 0 ;
3523 int arg2 ;
3524 PyObject * obj0 = 0 ;
3525 PyObject * obj1 = 0 ;
3526 char *kwnames[] = {
3527 (char *) "self",(char *) "width", NULL
3528 };
3529
3530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3533 arg2 = (int) SWIG_AsInt(obj1);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 {
3536 PyThreadState* __tstate = wxPyBeginAllowThreads();
3537 (arg1)->SetWidth(arg2);
3538
3539 wxPyEndAllowThreads(__tstate);
3540 if (PyErr_Occurred()) SWIG_fail;
3541 }
3542 Py_INCREF(Py_None); resultobj = Py_None;
3543 return resultobj;
3544 fail:
3545 return NULL;
3546 }
3547
3548
3549 static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3550 PyObject *resultobj;
3551 wxBitmap *arg1 = (wxBitmap *) 0 ;
3552 int arg2 ;
3553 PyObject * obj0 = 0 ;
3554 PyObject * obj1 = 0 ;
3555 char *kwnames[] = {
3556 (char *) "self",(char *) "depth", NULL
3557 };
3558
3559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3562 arg2 = (int) SWIG_AsInt(obj1);
3563 if (PyErr_Occurred()) SWIG_fail;
3564 {
3565 PyThreadState* __tstate = wxPyBeginAllowThreads();
3566 (arg1)->SetDepth(arg2);
3567
3568 wxPyEndAllowThreads(__tstate);
3569 if (PyErr_Occurred()) SWIG_fail;
3570 }
3571 Py_INCREF(Py_None); resultobj = Py_None;
3572 return resultobj;
3573 fail:
3574 return NULL;
3575 }
3576
3577
3578 static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
3579 PyObject *resultobj;
3580 wxBitmap *arg1 = (wxBitmap *) 0 ;
3581 wxSize *arg2 = 0 ;
3582 wxSize temp2 ;
3583 PyObject * obj0 = 0 ;
3584 PyObject * obj1 = 0 ;
3585 char *kwnames[] = {
3586 (char *) "self",(char *) "size", NULL
3587 };
3588
3589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3592 {
3593 arg2 = &temp2;
3594 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3595 }
3596 {
3597 PyThreadState* __tstate = wxPyBeginAllowThreads();
3598 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3599
3600 wxPyEndAllowThreads(__tstate);
3601 if (PyErr_Occurred()) SWIG_fail;
3602 }
3603 Py_INCREF(Py_None); resultobj = Py_None;
3604 return resultobj;
3605 fail:
3606 return NULL;
3607 }
3608
3609
3610 static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3611 PyObject *resultobj;
3612 wxBitmap *arg1 = (wxBitmap *) 0 ;
3613 wxBitmap *arg2 = (wxBitmap *) 0 ;
3614 bool result;
3615 PyObject * obj0 = 0 ;
3616 PyObject * obj1 = 0 ;
3617 char *kwnames[] = {
3618 (char *) "self",(char *) "other", NULL
3619 };
3620
3621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3624 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3626 {
3627 PyThreadState* __tstate = wxPyBeginAllowThreads();
3628 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3629
3630 wxPyEndAllowThreads(__tstate);
3631 if (PyErr_Occurred()) SWIG_fail;
3632 }
3633 {
3634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3635 }
3636 return resultobj;
3637 fail:
3638 return NULL;
3639 }
3640
3641
3642 static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3643 PyObject *resultobj;
3644 wxBitmap *arg1 = (wxBitmap *) 0 ;
3645 wxBitmap *arg2 = (wxBitmap *) 0 ;
3646 bool result;
3647 PyObject * obj0 = 0 ;
3648 PyObject * obj1 = 0 ;
3649 char *kwnames[] = {
3650 (char *) "self",(char *) "other", NULL
3651 };
3652
3653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3656 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3658 {
3659 PyThreadState* __tstate = wxPyBeginAllowThreads();
3660 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3661
3662 wxPyEndAllowThreads(__tstate);
3663 if (PyErr_Occurred()) SWIG_fail;
3664 }
3665 {
3666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3667 }
3668 return resultobj;
3669 fail:
3670 return NULL;
3671 }
3672
3673
3674 static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
3675 PyObject *obj;
3676 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3677 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3678 Py_INCREF(obj);
3679 return Py_BuildValue((char *)"");
3680 }
3681 static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
3682 PyObject *resultobj;
3683 wxBitmap *arg1 = 0 ;
3684 wxColour const &arg2_defvalue = wxNullColour ;
3685 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3686 wxMask *result;
3687 wxColour temp2 ;
3688 PyObject * obj0 = 0 ;
3689 PyObject * obj1 = 0 ;
3690 char *kwnames[] = {
3691 (char *) "bitmap",(char *) "colour", NULL
3692 };
3693
3694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3696 SWIG_POINTER_EXCEPTION | 0)) == -1)
3697 SWIG_fail;
3698 if (arg1 == NULL) {
3699 PyErr_SetString(PyExc_TypeError,"null reference");
3700 SWIG_fail;
3701 }
3702 if (obj1) {
3703 {
3704 arg2 = &temp2;
3705 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3706 }
3707 }
3708 {
3709 PyThreadState* __tstate = wxPyBeginAllowThreads();
3710 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3711
3712 wxPyEndAllowThreads(__tstate);
3713 if (PyErr_Occurred()) SWIG_fail;
3714 }
3715 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3716 return resultobj;
3717 fail:
3718 return NULL;
3719 }
3720
3721
3722 static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
3723 PyObject *obj;
3724 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3725 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3726 Py_INCREF(obj);
3727 return Py_BuildValue((char *)"");
3728 }
3729 static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3730 PyObject *resultobj;
3731 wxString *arg1 = 0 ;
3732 int arg2 ;
3733 int arg3 = (int) -1 ;
3734 int arg4 = (int) -1 ;
3735 wxIcon *result;
3736 bool temp1 = False ;
3737 PyObject * obj0 = 0 ;
3738 PyObject * obj1 = 0 ;
3739 PyObject * obj2 = 0 ;
3740 PyObject * obj3 = 0 ;
3741 char *kwnames[] = {
3742 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3743 };
3744
3745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3746 {
3747 arg1 = wxString_in_helper(obj0);
3748 if (arg1 == NULL) SWIG_fail;
3749 temp1 = True;
3750 }
3751 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3752 if (PyErr_Occurred()) SWIG_fail;
3753 if (obj2) {
3754 arg3 = (int) SWIG_AsInt(obj2);
3755 if (PyErr_Occurred()) SWIG_fail;
3756 }
3757 if (obj3) {
3758 arg4 = (int) SWIG_AsInt(obj3);
3759 if (PyErr_Occurred()) SWIG_fail;
3760 }
3761 {
3762 PyThreadState* __tstate = wxPyBeginAllowThreads();
3763 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3764
3765 wxPyEndAllowThreads(__tstate);
3766 if (PyErr_Occurred()) SWIG_fail;
3767 }
3768 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3769 {
3770 if (temp1)
3771 delete arg1;
3772 }
3773 return resultobj;
3774 fail:
3775 {
3776 if (temp1)
3777 delete arg1;
3778 }
3779 return NULL;
3780 }
3781
3782
3783 static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3784 PyObject *resultobj;
3785 wxIcon *arg1 = (wxIcon *) 0 ;
3786 PyObject * obj0 = 0 ;
3787 char *kwnames[] = {
3788 (char *) "self", NULL
3789 };
3790
3791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3794 {
3795 PyThreadState* __tstate = wxPyBeginAllowThreads();
3796 delete arg1;
3797
3798 wxPyEndAllowThreads(__tstate);
3799 if (PyErr_Occurred()) SWIG_fail;
3800 }
3801 Py_INCREF(Py_None); resultobj = Py_None;
3802 return resultobj;
3803 fail:
3804 return NULL;
3805 }
3806
3807
3808 static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3809 PyObject *resultobj;
3810 wxIcon *result;
3811 char *kwnames[] = {
3812 NULL
3813 };
3814
3815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3816 {
3817 PyThreadState* __tstate = wxPyBeginAllowThreads();
3818 result = (wxIcon *)new wxIcon();
3819
3820 wxPyEndAllowThreads(__tstate);
3821 if (PyErr_Occurred()) SWIG_fail;
3822 }
3823 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3824 return resultobj;
3825 fail:
3826 return NULL;
3827 }
3828
3829
3830 static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
3831 PyObject *resultobj;
3832 wxIconLocation *arg1 = 0 ;
3833 wxIcon *result;
3834 PyObject * obj0 = 0 ;
3835 char *kwnames[] = {
3836 (char *) "loc", NULL
3837 };
3838
3839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3841 SWIG_POINTER_EXCEPTION | 0)) == -1)
3842 SWIG_fail;
3843 if (arg1 == NULL) {
3844 PyErr_SetString(PyExc_TypeError,"null reference");
3845 SWIG_fail;
3846 }
3847 {
3848 PyThreadState* __tstate = wxPyBeginAllowThreads();
3849 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3850
3851 wxPyEndAllowThreads(__tstate);
3852 if (PyErr_Occurred()) SWIG_fail;
3853 }
3854 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3855 return resultobj;
3856 fail:
3857 return NULL;
3858 }
3859
3860
3861 static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3862 PyObject *resultobj;
3863 wxBitmap *arg1 = 0 ;
3864 wxIcon *result;
3865 PyObject * obj0 = 0 ;
3866 char *kwnames[] = {
3867 (char *) "bmp", NULL
3868 };
3869
3870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3872 SWIG_POINTER_EXCEPTION | 0)) == -1)
3873 SWIG_fail;
3874 if (arg1 == NULL) {
3875 PyErr_SetString(PyExc_TypeError,"null reference");
3876 SWIG_fail;
3877 }
3878 {
3879 PyThreadState* __tstate = wxPyBeginAllowThreads();
3880 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3881
3882 wxPyEndAllowThreads(__tstate);
3883 if (PyErr_Occurred()) SWIG_fail;
3884 }
3885 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3886 return resultobj;
3887 fail:
3888 return NULL;
3889 }
3890
3891
3892 static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
3893 PyObject *resultobj;
3894 PyObject *arg1 = (PyObject *) 0 ;
3895 wxIcon *result;
3896 PyObject * obj0 = 0 ;
3897 char *kwnames[] = {
3898 (char *) "listOfStrings", NULL
3899 };
3900
3901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3902 arg1 = obj0;
3903 {
3904 PyThreadState* __tstate = wxPyBeginAllowThreads();
3905 result = (wxIcon *)new_wxIcon(arg1);
3906
3907 wxPyEndAllowThreads(__tstate);
3908 if (PyErr_Occurred()) SWIG_fail;
3909 }
3910 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3911 return resultobj;
3912 fail:
3913 return NULL;
3914 }
3915
3916
3917 static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3918 PyObject *resultobj;
3919 wxIcon *arg1 = (wxIcon *) 0 ;
3920 bool result;
3921 PyObject * obj0 = 0 ;
3922 char *kwnames[] = {
3923 (char *) "self", NULL
3924 };
3925
3926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3929 {
3930 PyThreadState* __tstate = wxPyBeginAllowThreads();
3931 result = (bool)(arg1)->Ok();
3932
3933 wxPyEndAllowThreads(__tstate);
3934 if (PyErr_Occurred()) SWIG_fail;
3935 }
3936 {
3937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3938 }
3939 return resultobj;
3940 fail:
3941 return NULL;
3942 }
3943
3944
3945 static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3946 PyObject *resultobj;
3947 wxIcon *arg1 = (wxIcon *) 0 ;
3948 int result;
3949 PyObject * obj0 = 0 ;
3950 char *kwnames[] = {
3951 (char *) "self", NULL
3952 };
3953
3954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3957 {
3958 PyThreadState* __tstate = wxPyBeginAllowThreads();
3959 result = (int)(arg1)->GetWidth();
3960
3961 wxPyEndAllowThreads(__tstate);
3962 if (PyErr_Occurred()) SWIG_fail;
3963 }
3964 resultobj = SWIG_FromInt((int)result);
3965 return resultobj;
3966 fail:
3967 return NULL;
3968 }
3969
3970
3971 static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3972 PyObject *resultobj;
3973 wxIcon *arg1 = (wxIcon *) 0 ;
3974 int result;
3975 PyObject * obj0 = 0 ;
3976 char *kwnames[] = {
3977 (char *) "self", NULL
3978 };
3979
3980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3983 {
3984 PyThreadState* __tstate = wxPyBeginAllowThreads();
3985 result = (int)(arg1)->GetHeight();
3986
3987 wxPyEndAllowThreads(__tstate);
3988 if (PyErr_Occurred()) SWIG_fail;
3989 }
3990 resultobj = SWIG_FromInt((int)result);
3991 return resultobj;
3992 fail:
3993 return NULL;
3994 }
3995
3996
3997 static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3998 PyObject *resultobj;
3999 wxIcon *arg1 = (wxIcon *) 0 ;
4000 int result;
4001 PyObject * obj0 = 0 ;
4002 char *kwnames[] = {
4003 (char *) "self", NULL
4004 };
4005
4006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4009 {
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 result = (int)(arg1)->GetDepth();
4012
4013 wxPyEndAllowThreads(__tstate);
4014 if (PyErr_Occurred()) SWIG_fail;
4015 }
4016 resultobj = SWIG_FromInt((int)result);
4017 return resultobj;
4018 fail:
4019 return NULL;
4020 }
4021
4022
4023 static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4024 PyObject *resultobj;
4025 wxIcon *arg1 = (wxIcon *) 0 ;
4026 int arg2 ;
4027 PyObject * obj0 = 0 ;
4028 PyObject * obj1 = 0 ;
4029 char *kwnames[] = {
4030 (char *) "self",(char *) "w", NULL
4031 };
4032
4033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4036 arg2 = (int) SWIG_AsInt(obj1);
4037 if (PyErr_Occurred()) SWIG_fail;
4038 {
4039 PyThreadState* __tstate = wxPyBeginAllowThreads();
4040 (arg1)->SetWidth(arg2);
4041
4042 wxPyEndAllowThreads(__tstate);
4043 if (PyErr_Occurred()) SWIG_fail;
4044 }
4045 Py_INCREF(Py_None); resultobj = Py_None;
4046 return resultobj;
4047 fail:
4048 return NULL;
4049 }
4050
4051
4052 static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
4053 PyObject *resultobj;
4054 wxIcon *arg1 = (wxIcon *) 0 ;
4055 int arg2 ;
4056 PyObject * obj0 = 0 ;
4057 PyObject * obj1 = 0 ;
4058 char *kwnames[] = {
4059 (char *) "self",(char *) "h", NULL
4060 };
4061
4062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4065 arg2 = (int) SWIG_AsInt(obj1);
4066 if (PyErr_Occurred()) SWIG_fail;
4067 {
4068 PyThreadState* __tstate = wxPyBeginAllowThreads();
4069 (arg1)->SetHeight(arg2);
4070
4071 wxPyEndAllowThreads(__tstate);
4072 if (PyErr_Occurred()) SWIG_fail;
4073 }
4074 Py_INCREF(Py_None); resultobj = Py_None;
4075 return resultobj;
4076 fail:
4077 return NULL;
4078 }
4079
4080
4081 static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4082 PyObject *resultobj;
4083 wxIcon *arg1 = (wxIcon *) 0 ;
4084 int arg2 ;
4085 PyObject * obj0 = 0 ;
4086 PyObject * obj1 = 0 ;
4087 char *kwnames[] = {
4088 (char *) "self",(char *) "d", NULL
4089 };
4090
4091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4094 arg2 = (int) SWIG_AsInt(obj1);
4095 if (PyErr_Occurred()) SWIG_fail;
4096 {
4097 PyThreadState* __tstate = wxPyBeginAllowThreads();
4098 (arg1)->SetDepth(arg2);
4099
4100 wxPyEndAllowThreads(__tstate);
4101 if (PyErr_Occurred()) SWIG_fail;
4102 }
4103 Py_INCREF(Py_None); resultobj = Py_None;
4104 return resultobj;
4105 fail:
4106 return NULL;
4107 }
4108
4109
4110 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4111 PyObject *resultobj;
4112 wxIcon *arg1 = (wxIcon *) 0 ;
4113 wxBitmap *arg2 = 0 ;
4114 PyObject * obj0 = 0 ;
4115 PyObject * obj1 = 0 ;
4116 char *kwnames[] = {
4117 (char *) "self",(char *) "bmp", NULL
4118 };
4119
4120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4123 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4124 SWIG_POINTER_EXCEPTION | 0)) == -1)
4125 SWIG_fail;
4126 if (arg2 == NULL) {
4127 PyErr_SetString(PyExc_TypeError,"null reference");
4128 SWIG_fail;
4129 }
4130 {
4131 PyThreadState* __tstate = wxPyBeginAllowThreads();
4132 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4133
4134 wxPyEndAllowThreads(__tstate);
4135 if (PyErr_Occurred()) SWIG_fail;
4136 }
4137 Py_INCREF(Py_None); resultobj = Py_None;
4138 return resultobj;
4139 fail:
4140 return NULL;
4141 }
4142
4143
4144 static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
4145 PyObject *obj;
4146 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4147 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4148 Py_INCREF(obj);
4149 return Py_BuildValue((char *)"");
4150 }
4151 static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4152 PyObject *resultobj;
4153 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4154 int arg2 = (int) 0 ;
4155 wxIconLocation *result;
4156 bool temp1 = False ;
4157 PyObject * obj0 = 0 ;
4158 PyObject * obj1 = 0 ;
4159 char *kwnames[] = {
4160 (char *) "filename",(char *) "num", NULL
4161 };
4162
4163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4164 if (obj0) {
4165 {
4166 arg1 = wxString_in_helper(obj0);
4167 if (arg1 == NULL) SWIG_fail;
4168 temp1 = True;
4169 }
4170 }
4171 if (obj1) {
4172 arg2 = (int) SWIG_AsInt(obj1);
4173 if (PyErr_Occurred()) SWIG_fail;
4174 }
4175 {
4176 PyThreadState* __tstate = wxPyBeginAllowThreads();
4177 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4178
4179 wxPyEndAllowThreads(__tstate);
4180 if (PyErr_Occurred()) SWIG_fail;
4181 }
4182 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4183 {
4184 if (temp1)
4185 delete arg1;
4186 }
4187 return resultobj;
4188 fail:
4189 {
4190 if (temp1)
4191 delete arg1;
4192 }
4193 return NULL;
4194 }
4195
4196
4197 static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4198 PyObject *resultobj;
4199 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4200 PyObject * obj0 = 0 ;
4201 char *kwnames[] = {
4202 (char *) "self", NULL
4203 };
4204
4205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4208 {
4209 PyThreadState* __tstate = wxPyBeginAllowThreads();
4210 delete arg1;
4211
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 Py_INCREF(Py_None); resultobj = Py_None;
4216 return resultobj;
4217 fail:
4218 return NULL;
4219 }
4220
4221
4222 static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
4223 PyObject *resultobj;
4224 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4225 bool result;
4226 PyObject * obj0 = 0 ;
4227 char *kwnames[] = {
4228 (char *) "self", NULL
4229 };
4230
4231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4234 {
4235 PyThreadState* __tstate = wxPyBeginAllowThreads();
4236 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4237
4238 wxPyEndAllowThreads(__tstate);
4239 if (PyErr_Occurred()) SWIG_fail;
4240 }
4241 {
4242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4243 }
4244 return resultobj;
4245 fail:
4246 return NULL;
4247 }
4248
4249
4250 static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4251 PyObject *resultobj;
4252 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4253 wxString *arg2 = 0 ;
4254 bool temp2 = False ;
4255 PyObject * obj0 = 0 ;
4256 PyObject * obj1 = 0 ;
4257 char *kwnames[] = {
4258 (char *) "self",(char *) "filename", NULL
4259 };
4260
4261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4264 {
4265 arg2 = wxString_in_helper(obj1);
4266 if (arg2 == NULL) SWIG_fail;
4267 temp2 = True;
4268 }
4269 {
4270 PyThreadState* __tstate = wxPyBeginAllowThreads();
4271 (arg1)->SetFileName((wxString const &)*arg2);
4272
4273 wxPyEndAllowThreads(__tstate);
4274 if (PyErr_Occurred()) SWIG_fail;
4275 }
4276 Py_INCREF(Py_None); resultobj = Py_None;
4277 {
4278 if (temp2)
4279 delete arg2;
4280 }
4281 return resultobj;
4282 fail:
4283 {
4284 if (temp2)
4285 delete arg2;
4286 }
4287 return NULL;
4288 }
4289
4290
4291 static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4292 PyObject *resultobj;
4293 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4294 wxString *result;
4295 PyObject * obj0 = 0 ;
4296 char *kwnames[] = {
4297 (char *) "self", NULL
4298 };
4299
4300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4303 {
4304 PyThreadState* __tstate = wxPyBeginAllowThreads();
4305 {
4306 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4307 result = (wxString *) &_result_ref;
4308 }
4309
4310 wxPyEndAllowThreads(__tstate);
4311 if (PyErr_Occurred()) SWIG_fail;
4312 }
4313 {
4314 #if wxUSE_UNICODE
4315 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4316 #else
4317 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4318 #endif
4319 }
4320 return resultobj;
4321 fail:
4322 return NULL;
4323 }
4324
4325
4326 static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4327 PyObject *resultobj;
4328 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4329 int arg2 ;
4330 PyObject * obj0 = 0 ;
4331 PyObject * obj1 = 0 ;
4332 char *kwnames[] = {
4333 (char *) "self",(char *) "num", NULL
4334 };
4335
4336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4339 arg2 = (int) SWIG_AsInt(obj1);
4340 if (PyErr_Occurred()) SWIG_fail;
4341 {
4342 PyThreadState* __tstate = wxPyBeginAllowThreads();
4343 wxIconLocation_SetIndex(arg1,arg2);
4344
4345 wxPyEndAllowThreads(__tstate);
4346 if (PyErr_Occurred()) SWIG_fail;
4347 }
4348 Py_INCREF(Py_None); resultobj = Py_None;
4349 return resultobj;
4350 fail:
4351 return NULL;
4352 }
4353
4354
4355 static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4356 PyObject *resultobj;
4357 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4358 int result;
4359 PyObject * obj0 = 0 ;
4360 char *kwnames[] = {
4361 (char *) "self", NULL
4362 };
4363
4364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4367 {
4368 PyThreadState* __tstate = wxPyBeginAllowThreads();
4369 result = (int)wxIconLocation_GetIndex(arg1);
4370
4371 wxPyEndAllowThreads(__tstate);
4372 if (PyErr_Occurred()) SWIG_fail;
4373 }
4374 resultobj = SWIG_FromInt((int)result);
4375 return resultobj;
4376 fail:
4377 return NULL;
4378 }
4379
4380
4381 static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
4382 PyObject *obj;
4383 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4384 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4385 Py_INCREF(obj);
4386 return Py_BuildValue((char *)"");
4387 }
4388 static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4389 PyObject *resultobj;
4390 wxIconBundle *result;
4391 char *kwnames[] = {
4392 NULL
4393 };
4394
4395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4396 {
4397 PyThreadState* __tstate = wxPyBeginAllowThreads();
4398 result = (wxIconBundle *)new wxIconBundle();
4399
4400 wxPyEndAllowThreads(__tstate);
4401 if (PyErr_Occurred()) SWIG_fail;
4402 }
4403 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4404 return resultobj;
4405 fail:
4406 return NULL;
4407 }
4408
4409
4410 static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4411 PyObject *resultobj;
4412 wxString *arg1 = 0 ;
4413 long arg2 ;
4414 wxIconBundle *result;
4415 bool temp1 = False ;
4416 PyObject * obj0 = 0 ;
4417 PyObject * obj1 = 0 ;
4418 char *kwnames[] = {
4419 (char *) "file",(char *) "type", NULL
4420 };
4421
4422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4423 {
4424 arg1 = wxString_in_helper(obj0);
4425 if (arg1 == NULL) SWIG_fail;
4426 temp1 = True;
4427 }
4428 arg2 = (long) SWIG_AsLong(obj1);
4429 if (PyErr_Occurred()) SWIG_fail;
4430 {
4431 PyThreadState* __tstate = wxPyBeginAllowThreads();
4432 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4433
4434 wxPyEndAllowThreads(__tstate);
4435 if (PyErr_Occurred()) SWIG_fail;
4436 }
4437 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4438 {
4439 if (temp1)
4440 delete arg1;
4441 }
4442 return resultobj;
4443 fail:
4444 {
4445 if (temp1)
4446 delete arg1;
4447 }
4448 return NULL;
4449 }
4450
4451
4452 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4453 PyObject *resultobj;
4454 wxIcon *arg1 = 0 ;
4455 wxIconBundle *result;
4456 PyObject * obj0 = 0 ;
4457 char *kwnames[] = {
4458 (char *) "icon", NULL
4459 };
4460
4461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4463 SWIG_POINTER_EXCEPTION | 0)) == -1)
4464 SWIG_fail;
4465 if (arg1 == NULL) {
4466 PyErr_SetString(PyExc_TypeError,"null reference");
4467 SWIG_fail;
4468 }
4469 {
4470 PyThreadState* __tstate = wxPyBeginAllowThreads();
4471 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4472
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
4476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4477 return resultobj;
4478 fail:
4479 return NULL;
4480 }
4481
4482
4483 static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4484 PyObject *resultobj;
4485 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4486 PyObject * obj0 = 0 ;
4487 char *kwnames[] = {
4488 (char *) "self", NULL
4489 };
4490
4491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4494 {
4495 PyThreadState* __tstate = wxPyBeginAllowThreads();
4496 delete arg1;
4497
4498 wxPyEndAllowThreads(__tstate);
4499 if (PyErr_Occurred()) SWIG_fail;
4500 }
4501 Py_INCREF(Py_None); resultobj = Py_None;
4502 return resultobj;
4503 fail:
4504 return NULL;
4505 }
4506
4507
4508 static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4509 PyObject *resultobj;
4510 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4511 wxIcon *arg2 = 0 ;
4512 PyObject * obj0 = 0 ;
4513 PyObject * obj1 = 0 ;
4514 char *kwnames[] = {
4515 (char *) "self",(char *) "icon", NULL
4516 };
4517
4518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4521 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4522 SWIG_POINTER_EXCEPTION | 0)) == -1)
4523 SWIG_fail;
4524 if (arg2 == NULL) {
4525 PyErr_SetString(PyExc_TypeError,"null reference");
4526 SWIG_fail;
4527 }
4528 {
4529 PyThreadState* __tstate = wxPyBeginAllowThreads();
4530 (arg1)->AddIcon((wxIcon const &)*arg2);
4531
4532 wxPyEndAllowThreads(__tstate);
4533 if (PyErr_Occurred()) SWIG_fail;
4534 }
4535 Py_INCREF(Py_None); resultobj = Py_None;
4536 return resultobj;
4537 fail:
4538 return NULL;
4539 }
4540
4541
4542 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4543 PyObject *resultobj;
4544 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4545 wxString *arg2 = 0 ;
4546 long arg3 ;
4547 bool temp2 = False ;
4548 PyObject * obj0 = 0 ;
4549 PyObject * obj1 = 0 ;
4550 PyObject * obj2 = 0 ;
4551 char *kwnames[] = {
4552 (char *) "self",(char *) "file",(char *) "type", NULL
4553 };
4554
4555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4558 {
4559 arg2 = wxString_in_helper(obj1);
4560 if (arg2 == NULL) SWIG_fail;
4561 temp2 = True;
4562 }
4563 arg3 = (long) SWIG_AsLong(obj2);
4564 if (PyErr_Occurred()) SWIG_fail;
4565 {
4566 PyThreadState* __tstate = wxPyBeginAllowThreads();
4567 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4568
4569 wxPyEndAllowThreads(__tstate);
4570 if (PyErr_Occurred()) SWIG_fail;
4571 }
4572 Py_INCREF(Py_None); resultobj = Py_None;
4573 {
4574 if (temp2)
4575 delete arg2;
4576 }
4577 return resultobj;
4578 fail:
4579 {
4580 if (temp2)
4581 delete arg2;
4582 }
4583 return NULL;
4584 }
4585
4586
4587 static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4588 PyObject *resultobj;
4589 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4590 wxSize *arg2 = 0 ;
4591 wxIcon *result;
4592 wxSize temp2 ;
4593 PyObject * obj0 = 0 ;
4594 PyObject * obj1 = 0 ;
4595 char *kwnames[] = {
4596 (char *) "self",(char *) "size", NULL
4597 };
4598
4599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4602 {
4603 arg2 = &temp2;
4604 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4605 }
4606 {
4607 PyThreadState* __tstate = wxPyBeginAllowThreads();
4608 {
4609 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4610 result = (wxIcon *) &_result_ref;
4611 }
4612
4613 wxPyEndAllowThreads(__tstate);
4614 if (PyErr_Occurred()) SWIG_fail;
4615 }
4616 {
4617 wxIcon* resultptr = new wxIcon(*result);
4618 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4619 }
4620 return resultobj;
4621 fail:
4622 return NULL;
4623 }
4624
4625
4626 static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
4627 PyObject *obj;
4628 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4629 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4630 Py_INCREF(obj);
4631 return Py_BuildValue((char *)"");
4632 }
4633 static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4634 PyObject *resultobj;
4635 wxString *arg1 = (wxString *) 0 ;
4636 long arg2 ;
4637 int arg3 = (int) 0 ;
4638 int arg4 = (int) 0 ;
4639 wxCursor *result;
4640 bool temp1 = False ;
4641 PyObject * obj0 = 0 ;
4642 PyObject * obj1 = 0 ;
4643 PyObject * obj2 = 0 ;
4644 PyObject * obj3 = 0 ;
4645 char *kwnames[] = {
4646 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4647 };
4648
4649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4650 {
4651 arg1 = wxString_in_helper(obj0);
4652 if (arg1 == NULL) SWIG_fail;
4653 temp1 = True;
4654 }
4655 arg2 = (long) SWIG_AsLong(obj1);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 if (obj2) {
4658 arg3 = (int) SWIG_AsInt(obj2);
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 if (obj3) {
4662 arg4 = (int) SWIG_AsInt(obj3);
4663 if (PyErr_Occurred()) SWIG_fail;
4664 }
4665 {
4666 PyThreadState* __tstate = wxPyBeginAllowThreads();
4667 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4668
4669 wxPyEndAllowThreads(__tstate);
4670 if (PyErr_Occurred()) SWIG_fail;
4671 }
4672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4673 {
4674 if (temp1)
4675 delete arg1;
4676 }
4677 return resultobj;
4678 fail:
4679 {
4680 if (temp1)
4681 delete arg1;
4682 }
4683 return NULL;
4684 }
4685
4686
4687 static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4688 PyObject *resultobj;
4689 wxCursor *arg1 = (wxCursor *) 0 ;
4690 PyObject * obj0 = 0 ;
4691 char *kwnames[] = {
4692 (char *) "self", NULL
4693 };
4694
4695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4698 {
4699 PyThreadState* __tstate = wxPyBeginAllowThreads();
4700 delete arg1;
4701
4702 wxPyEndAllowThreads(__tstate);
4703 if (PyErr_Occurred()) SWIG_fail;
4704 }
4705 Py_INCREF(Py_None); resultobj = Py_None;
4706 return resultobj;
4707 fail:
4708 return NULL;
4709 }
4710
4711
4712 static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4713 PyObject *resultobj;
4714 int arg1 ;
4715 wxCursor *result;
4716 PyObject * obj0 = 0 ;
4717 char *kwnames[] = {
4718 (char *) "id", NULL
4719 };
4720
4721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4722 arg1 = (int) SWIG_AsInt(obj0);
4723 if (PyErr_Occurred()) SWIG_fail;
4724 {
4725 PyThreadState* __tstate = wxPyBeginAllowThreads();
4726 result = (wxCursor *)new wxCursor(arg1);
4727
4728 wxPyEndAllowThreads(__tstate);
4729 if (PyErr_Occurred()) SWIG_fail;
4730 }
4731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4732 return resultobj;
4733 fail:
4734 return NULL;
4735 }
4736
4737
4738 static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
4739 PyObject *resultobj;
4740 wxImage *arg1 = 0 ;
4741 wxCursor *result;
4742 PyObject * obj0 = 0 ;
4743 char *kwnames[] = {
4744 (char *) "image", NULL
4745 };
4746
4747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4749 SWIG_POINTER_EXCEPTION | 0)) == -1)
4750 SWIG_fail;
4751 if (arg1 == NULL) {
4752 PyErr_SetString(PyExc_TypeError,"null reference");
4753 SWIG_fail;
4754 }
4755 {
4756 PyThreadState* __tstate = wxPyBeginAllowThreads();
4757 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4758
4759 wxPyEndAllowThreads(__tstate);
4760 if (PyErr_Occurred()) SWIG_fail;
4761 }
4762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4763 return resultobj;
4764 fail:
4765 return NULL;
4766 }
4767
4768
4769 static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4770 PyObject *resultobj;
4771 wxCursor *arg1 = (wxCursor *) 0 ;
4772 bool result;
4773 PyObject * obj0 = 0 ;
4774 char *kwnames[] = {
4775 (char *) "self", NULL
4776 };
4777
4778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4781 {
4782 PyThreadState* __tstate = wxPyBeginAllowThreads();
4783 result = (bool)(arg1)->Ok();
4784
4785 wxPyEndAllowThreads(__tstate);
4786 if (PyErr_Occurred()) SWIG_fail;
4787 }
4788 {
4789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4790 }
4791 return resultobj;
4792 fail:
4793 return NULL;
4794 }
4795
4796
4797 static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
4798 PyObject *obj;
4799 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4800 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4801 Py_INCREF(obj);
4802 return Py_BuildValue((char *)"");
4803 }
4804 static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4805 PyObject *resultobj;
4806 int arg1 = (int) 0 ;
4807 int arg2 = (int) 0 ;
4808 int arg3 = (int) 0 ;
4809 int arg4 = (int) 0 ;
4810 wxRegion *result;
4811 PyObject * obj0 = 0 ;
4812 PyObject * obj1 = 0 ;
4813 PyObject * obj2 = 0 ;
4814 PyObject * obj3 = 0 ;
4815 char *kwnames[] = {
4816 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4817 };
4818
4819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4820 if (obj0) {
4821 arg1 = (int) SWIG_AsInt(obj0);
4822 if (PyErr_Occurred()) SWIG_fail;
4823 }
4824 if (obj1) {
4825 arg2 = (int) SWIG_AsInt(obj1);
4826 if (PyErr_Occurred()) SWIG_fail;
4827 }
4828 if (obj2) {
4829 arg3 = (int) SWIG_AsInt(obj2);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 if (obj3) {
4833 arg4 = (int) SWIG_AsInt(obj3);
4834 if (PyErr_Occurred()) SWIG_fail;
4835 }
4836 {
4837 PyThreadState* __tstate = wxPyBeginAllowThreads();
4838 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4839
4840 wxPyEndAllowThreads(__tstate);
4841 if (PyErr_Occurred()) SWIG_fail;
4842 }
4843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4844 return resultobj;
4845 fail:
4846 return NULL;
4847 }
4848
4849
4850 static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4851 PyObject *resultobj;
4852 wxBitmap *arg1 = 0 ;
4853 wxColour const &arg2_defvalue = wxNullColour ;
4854 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4855 int arg3 = (int) 0 ;
4856 wxRegion *result;
4857 wxColour temp2 ;
4858 PyObject * obj0 = 0 ;
4859 PyObject * obj1 = 0 ;
4860 PyObject * obj2 = 0 ;
4861 char *kwnames[] = {
4862 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4863 };
4864
4865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4867 SWIG_POINTER_EXCEPTION | 0)) == -1)
4868 SWIG_fail;
4869 if (arg1 == NULL) {
4870 PyErr_SetString(PyExc_TypeError,"null reference");
4871 SWIG_fail;
4872 }
4873 if (obj1) {
4874 {
4875 arg2 = &temp2;
4876 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4877 }
4878 }
4879 if (obj2) {
4880 arg3 = (int) SWIG_AsInt(obj2);
4881 if (PyErr_Occurred()) SWIG_fail;
4882 }
4883 {
4884 PyThreadState* __tstate = wxPyBeginAllowThreads();
4885 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4886
4887 wxPyEndAllowThreads(__tstate);
4888 if (PyErr_Occurred()) SWIG_fail;
4889 }
4890 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4891 return resultobj;
4892 fail:
4893 return NULL;
4894 }
4895
4896
4897 static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
4898 PyObject *resultobj;
4899 int arg1 ;
4900 wxPoint *arg2 = (wxPoint *) 0 ;
4901 int arg3 = (int) wxWINDING_RULE ;
4902 wxRegion *result;
4903 PyObject * obj0 = 0 ;
4904 PyObject * obj1 = 0 ;
4905 char *kwnames[] = {
4906 (char *) "points",(char *) "fillStyle", NULL
4907 };
4908
4909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4910 {
4911 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4912 if (arg2 == NULL) SWIG_fail;
4913 }
4914 if (obj1) {
4915 arg3 = (int) SWIG_AsInt(obj1);
4916 if (PyErr_Occurred()) SWIG_fail;
4917 }
4918 {
4919 PyThreadState* __tstate = wxPyBeginAllowThreads();
4920 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
4921
4922 wxPyEndAllowThreads(__tstate);
4923 if (PyErr_Occurred()) SWIG_fail;
4924 }
4925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4926 {
4927 if (arg2) delete [] arg2;
4928 }
4929 return resultobj;
4930 fail:
4931 {
4932 if (arg2) delete [] arg2;
4933 }
4934 return NULL;
4935 }
4936
4937
4938 static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4939 PyObject *resultobj;
4940 wxRegion *arg1 = (wxRegion *) 0 ;
4941 PyObject * obj0 = 0 ;
4942 char *kwnames[] = {
4943 (char *) "self", NULL
4944 };
4945
4946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4949 {
4950 PyThreadState* __tstate = wxPyBeginAllowThreads();
4951 delete arg1;
4952
4953 wxPyEndAllowThreads(__tstate);
4954 if (PyErr_Occurred()) SWIG_fail;
4955 }
4956 Py_INCREF(Py_None); resultobj = Py_None;
4957 return resultobj;
4958 fail:
4959 return NULL;
4960 }
4961
4962
4963 static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
4964 PyObject *resultobj;
4965 wxRegion *arg1 = (wxRegion *) 0 ;
4966 PyObject * obj0 = 0 ;
4967 char *kwnames[] = {
4968 (char *) "self", NULL
4969 };
4970
4971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4974 {
4975 PyThreadState* __tstate = wxPyBeginAllowThreads();
4976 (arg1)->Clear();
4977
4978 wxPyEndAllowThreads(__tstate);
4979 if (PyErr_Occurred()) SWIG_fail;
4980 }
4981 Py_INCREF(Py_None); resultobj = Py_None;
4982 return resultobj;
4983 fail:
4984 return NULL;
4985 }
4986
4987
4988 static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
4989 PyObject *resultobj;
4990 wxRegion *arg1 = (wxRegion *) 0 ;
4991 int arg2 ;
4992 int arg3 ;
4993 int result;
4994 PyObject * obj0 = 0 ;
4995 PyObject * obj1 = 0 ;
4996 PyObject * obj2 = 0 ;
4997 char *kwnames[] = {
4998 (char *) "self",(char *) "x",(char *) "y", NULL
4999 };
5000
5001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5004 arg2 = (int) SWIG_AsInt(obj1);
5005 if (PyErr_Occurred()) SWIG_fail;
5006 arg3 = (int) SWIG_AsInt(obj2);
5007 if (PyErr_Occurred()) SWIG_fail;
5008 {
5009 PyThreadState* __tstate = wxPyBeginAllowThreads();
5010 result = (int)(arg1)->Contains(arg2,arg3);
5011
5012 wxPyEndAllowThreads(__tstate);
5013 if (PyErr_Occurred()) SWIG_fail;
5014 }
5015 resultobj = SWIG_FromInt((int)result);
5016 return resultobj;
5017 fail:
5018 return NULL;
5019 }
5020
5021
5022 static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
5023 PyObject *resultobj;
5024 wxRegion *arg1 = (wxRegion *) 0 ;
5025 wxPoint *arg2 = 0 ;
5026 int result;
5027 wxPoint temp2 ;
5028 PyObject * obj0 = 0 ;
5029 PyObject * obj1 = 0 ;
5030 char *kwnames[] = {
5031 (char *) "self",(char *) "pt", NULL
5032 };
5033
5034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5037 {
5038 arg2 = &temp2;
5039 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5040 }
5041 {
5042 PyThreadState* __tstate = wxPyBeginAllowThreads();
5043 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5044
5045 wxPyEndAllowThreads(__tstate);
5046 if (PyErr_Occurred()) SWIG_fail;
5047 }
5048 resultobj = SWIG_FromInt((int)result);
5049 return resultobj;
5050 fail:
5051 return NULL;
5052 }
5053
5054
5055 static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
5056 PyObject *resultobj;
5057 wxRegion *arg1 = (wxRegion *) 0 ;
5058 wxRect *arg2 = 0 ;
5059 int result;
5060 wxRect temp2 ;
5061 PyObject * obj0 = 0 ;
5062 PyObject * obj1 = 0 ;
5063 char *kwnames[] = {
5064 (char *) "self",(char *) "rect", NULL
5065 };
5066
5067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5070 {
5071 arg2 = &temp2;
5072 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5073 }
5074 {
5075 PyThreadState* __tstate = wxPyBeginAllowThreads();
5076 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5077
5078 wxPyEndAllowThreads(__tstate);
5079 if (PyErr_Occurred()) SWIG_fail;
5080 }
5081 resultobj = SWIG_FromInt((int)result);
5082 return resultobj;
5083 fail:
5084 return NULL;
5085 }
5086
5087
5088 static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
5089 PyObject *resultobj;
5090 wxRegion *arg1 = (wxRegion *) 0 ;
5091 int arg2 ;
5092 int arg3 ;
5093 int arg4 ;
5094 int arg5 ;
5095 int result;
5096 PyObject * obj0 = 0 ;
5097 PyObject * obj1 = 0 ;
5098 PyObject * obj2 = 0 ;
5099 PyObject * obj3 = 0 ;
5100 PyObject * obj4 = 0 ;
5101 char *kwnames[] = {
5102 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5103 };
5104
5105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5108 arg2 = (int) SWIG_AsInt(obj1);
5109 if (PyErr_Occurred()) SWIG_fail;
5110 arg3 = (int) SWIG_AsInt(obj2);
5111 if (PyErr_Occurred()) SWIG_fail;
5112 arg4 = (int) SWIG_AsInt(obj3);
5113 if (PyErr_Occurred()) SWIG_fail;
5114 arg5 = (int) SWIG_AsInt(obj4);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 {
5117 PyThreadState* __tstate = wxPyBeginAllowThreads();
5118 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5119
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 resultobj = SWIG_FromInt((int)result);
5124 return resultobj;
5125 fail:
5126 return NULL;
5127 }
5128
5129
5130 static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
5131 PyObject *resultobj;
5132 wxRegion *arg1 = (wxRegion *) 0 ;
5133 wxRect result;
5134 PyObject * obj0 = 0 ;
5135 char *kwnames[] = {
5136 (char *) "self", NULL
5137 };
5138
5139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5142 {
5143 PyThreadState* __tstate = wxPyBeginAllowThreads();
5144 result = (arg1)->GetBox();
5145
5146 wxPyEndAllowThreads(__tstate);
5147 if (PyErr_Occurred()) SWIG_fail;
5148 }
5149 {
5150 wxRect * resultptr;
5151 resultptr = new wxRect((wxRect &) result);
5152 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5153 }
5154 return resultobj;
5155 fail:
5156 return NULL;
5157 }
5158
5159
5160 static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
5161 PyObject *resultobj;
5162 wxRegion *arg1 = (wxRegion *) 0 ;
5163 int arg2 ;
5164 int arg3 ;
5165 int arg4 ;
5166 int arg5 ;
5167 bool result;
5168 PyObject * obj0 = 0 ;
5169 PyObject * obj1 = 0 ;
5170 PyObject * obj2 = 0 ;
5171 PyObject * obj3 = 0 ;
5172 PyObject * obj4 = 0 ;
5173 char *kwnames[] = {
5174 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5175 };
5176
5177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5180 arg2 = (int) SWIG_AsInt(obj1);
5181 if (PyErr_Occurred()) SWIG_fail;
5182 arg3 = (int) SWIG_AsInt(obj2);
5183 if (PyErr_Occurred()) SWIG_fail;
5184 arg4 = (int) SWIG_AsInt(obj3);
5185 if (PyErr_Occurred()) SWIG_fail;
5186 arg5 = (int) SWIG_AsInt(obj4);
5187 if (PyErr_Occurred()) SWIG_fail;
5188 {
5189 PyThreadState* __tstate = wxPyBeginAllowThreads();
5190 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5191
5192 wxPyEndAllowThreads(__tstate);
5193 if (PyErr_Occurred()) SWIG_fail;
5194 }
5195 {
5196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5197 }
5198 return resultobj;
5199 fail:
5200 return NULL;
5201 }
5202
5203
5204 static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
5205 PyObject *resultobj;
5206 wxRegion *arg1 = (wxRegion *) 0 ;
5207 wxRect *arg2 = 0 ;
5208 bool result;
5209 wxRect temp2 ;
5210 PyObject * obj0 = 0 ;
5211 PyObject * obj1 = 0 ;
5212 char *kwnames[] = {
5213 (char *) "self",(char *) "rect", NULL
5214 };
5215
5216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5219 {
5220 arg2 = &temp2;
5221 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5222 }
5223 {
5224 PyThreadState* __tstate = wxPyBeginAllowThreads();
5225 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5226
5227 wxPyEndAllowThreads(__tstate);
5228 if (PyErr_Occurred()) SWIG_fail;
5229 }
5230 {
5231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5232 }
5233 return resultobj;
5234 fail:
5235 return NULL;
5236 }
5237
5238
5239 static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5240 PyObject *resultobj;
5241 wxRegion *arg1 = (wxRegion *) 0 ;
5242 wxRegion *arg2 = 0 ;
5243 bool result;
5244 PyObject * obj0 = 0 ;
5245 PyObject * obj1 = 0 ;
5246 char *kwnames[] = {
5247 (char *) "self",(char *) "region", NULL
5248 };
5249
5250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5253 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5254 SWIG_POINTER_EXCEPTION | 0)) == -1)
5255 SWIG_fail;
5256 if (arg2 == NULL) {
5257 PyErr_SetString(PyExc_TypeError,"null reference");
5258 SWIG_fail;
5259 }
5260 {
5261 PyThreadState* __tstate = wxPyBeginAllowThreads();
5262 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5263
5264 wxPyEndAllowThreads(__tstate);
5265 if (PyErr_Occurred()) SWIG_fail;
5266 }
5267 {
5268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5269 }
5270 return resultobj;
5271 fail:
5272 return NULL;
5273 }
5274
5275
5276 static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
5277 PyObject *resultobj;
5278 wxRegion *arg1 = (wxRegion *) 0 ;
5279 bool result;
5280 PyObject * obj0 = 0 ;
5281 char *kwnames[] = {
5282 (char *) "self", NULL
5283 };
5284
5285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5288 {
5289 PyThreadState* __tstate = wxPyBeginAllowThreads();
5290 result = (bool)(arg1)->IsEmpty();
5291
5292 wxPyEndAllowThreads(__tstate);
5293 if (PyErr_Occurred()) SWIG_fail;
5294 }
5295 {
5296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5297 }
5298 return resultobj;
5299 fail:
5300 return NULL;
5301 }
5302
5303
5304 static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
5305 PyObject *resultobj;
5306 wxRegion *arg1 = (wxRegion *) 0 ;
5307 int arg2 ;
5308 int arg3 ;
5309 int arg4 ;
5310 int arg5 ;
5311 bool result;
5312 PyObject * obj0 = 0 ;
5313 PyObject * obj1 = 0 ;
5314 PyObject * obj2 = 0 ;
5315 PyObject * obj3 = 0 ;
5316 PyObject * obj4 = 0 ;
5317 char *kwnames[] = {
5318 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5319 };
5320
5321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5324 arg2 = (int) SWIG_AsInt(obj1);
5325 if (PyErr_Occurred()) SWIG_fail;
5326 arg3 = (int) SWIG_AsInt(obj2);
5327 if (PyErr_Occurred()) SWIG_fail;
5328 arg4 = (int) SWIG_AsInt(obj3);
5329 if (PyErr_Occurred()) SWIG_fail;
5330 arg5 = (int) SWIG_AsInt(obj4);
5331 if (PyErr_Occurred()) SWIG_fail;
5332 {
5333 PyThreadState* __tstate = wxPyBeginAllowThreads();
5334 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5335
5336 wxPyEndAllowThreads(__tstate);
5337 if (PyErr_Occurred()) SWIG_fail;
5338 }
5339 {
5340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5341 }
5342 return resultobj;
5343 fail:
5344 return NULL;
5345 }
5346
5347
5348 static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
5349 PyObject *resultobj;
5350 wxRegion *arg1 = (wxRegion *) 0 ;
5351 wxRect *arg2 = 0 ;
5352 bool result;
5353 wxRect temp2 ;
5354 PyObject * obj0 = 0 ;
5355 PyObject * obj1 = 0 ;
5356 char *kwnames[] = {
5357 (char *) "self",(char *) "rect", NULL
5358 };
5359
5360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5363 {
5364 arg2 = &temp2;
5365 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5366 }
5367 {
5368 PyThreadState* __tstate = wxPyBeginAllowThreads();
5369 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5370
5371 wxPyEndAllowThreads(__tstate);
5372 if (PyErr_Occurred()) SWIG_fail;
5373 }
5374 {
5375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5376 }
5377 return resultobj;
5378 fail:
5379 return NULL;
5380 }
5381
5382
5383 static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5384 PyObject *resultobj;
5385 wxRegion *arg1 = (wxRegion *) 0 ;
5386 wxRegion *arg2 = 0 ;
5387 bool result;
5388 PyObject * obj0 = 0 ;
5389 PyObject * obj1 = 0 ;
5390 char *kwnames[] = {
5391 (char *) "self",(char *) "region", NULL
5392 };
5393
5394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5397 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5398 SWIG_POINTER_EXCEPTION | 0)) == -1)
5399 SWIG_fail;
5400 if (arg2 == NULL) {
5401 PyErr_SetString(PyExc_TypeError,"null reference");
5402 SWIG_fail;
5403 }
5404 {
5405 PyThreadState* __tstate = wxPyBeginAllowThreads();
5406 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5407
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 {
5412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5413 }
5414 return resultobj;
5415 fail:
5416 return NULL;
5417 }
5418
5419
5420 static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
5421 PyObject *resultobj;
5422 wxRegion *arg1 = (wxRegion *) 0 ;
5423 int arg2 ;
5424 int arg3 ;
5425 int arg4 ;
5426 int arg5 ;
5427 bool result;
5428 PyObject * obj0 = 0 ;
5429 PyObject * obj1 = 0 ;
5430 PyObject * obj2 = 0 ;
5431 PyObject * obj3 = 0 ;
5432 PyObject * obj4 = 0 ;
5433 char *kwnames[] = {
5434 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5435 };
5436
5437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5440 arg2 = (int) SWIG_AsInt(obj1);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 arg3 = (int) SWIG_AsInt(obj2);
5443 if (PyErr_Occurred()) SWIG_fail;
5444 arg4 = (int) SWIG_AsInt(obj3);
5445 if (PyErr_Occurred()) SWIG_fail;
5446 arg5 = (int) SWIG_AsInt(obj4);
5447 if (PyErr_Occurred()) SWIG_fail;
5448 {
5449 PyThreadState* __tstate = wxPyBeginAllowThreads();
5450 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5451
5452 wxPyEndAllowThreads(__tstate);
5453 if (PyErr_Occurred()) SWIG_fail;
5454 }
5455 {
5456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5457 }
5458 return resultobj;
5459 fail:
5460 return NULL;
5461 }
5462
5463
5464 static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
5465 PyObject *resultobj;
5466 wxRegion *arg1 = (wxRegion *) 0 ;
5467 wxRect *arg2 = 0 ;
5468 bool result;
5469 wxRect temp2 ;
5470 PyObject * obj0 = 0 ;
5471 PyObject * obj1 = 0 ;
5472 char *kwnames[] = {
5473 (char *) "self",(char *) "rect", NULL
5474 };
5475
5476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5479 {
5480 arg2 = &temp2;
5481 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5482 }
5483 {
5484 PyThreadState* __tstate = wxPyBeginAllowThreads();
5485 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5486
5487 wxPyEndAllowThreads(__tstate);
5488 if (PyErr_Occurred()) SWIG_fail;
5489 }
5490 {
5491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5492 }
5493 return resultobj;
5494 fail:
5495 return NULL;
5496 }
5497
5498
5499 static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5500 PyObject *resultobj;
5501 wxRegion *arg1 = (wxRegion *) 0 ;
5502 wxRegion *arg2 = 0 ;
5503 bool result;
5504 PyObject * obj0 = 0 ;
5505 PyObject * obj1 = 0 ;
5506 char *kwnames[] = {
5507 (char *) "self",(char *) "region", NULL
5508 };
5509
5510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5513 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5514 SWIG_POINTER_EXCEPTION | 0)) == -1)
5515 SWIG_fail;
5516 if (arg2 == NULL) {
5517 PyErr_SetString(PyExc_TypeError,"null reference");
5518 SWIG_fail;
5519 }
5520 {
5521 PyThreadState* __tstate = wxPyBeginAllowThreads();
5522 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5523
5524 wxPyEndAllowThreads(__tstate);
5525 if (PyErr_Occurred()) SWIG_fail;
5526 }
5527 {
5528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5529 }
5530 return resultobj;
5531 fail:
5532 return NULL;
5533 }
5534
5535
5536 static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
5537 PyObject *resultobj;
5538 wxRegion *arg1 = (wxRegion *) 0 ;
5539 int arg2 ;
5540 int arg3 ;
5541 int arg4 ;
5542 int arg5 ;
5543 bool result;
5544 PyObject * obj0 = 0 ;
5545 PyObject * obj1 = 0 ;
5546 PyObject * obj2 = 0 ;
5547 PyObject * obj3 = 0 ;
5548 PyObject * obj4 = 0 ;
5549 char *kwnames[] = {
5550 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5551 };
5552
5553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5556 arg2 = (int) SWIG_AsInt(obj1);
5557 if (PyErr_Occurred()) SWIG_fail;
5558 arg3 = (int) SWIG_AsInt(obj2);
5559 if (PyErr_Occurred()) SWIG_fail;
5560 arg4 = (int) SWIG_AsInt(obj3);
5561 if (PyErr_Occurred()) SWIG_fail;
5562 arg5 = (int) SWIG_AsInt(obj4);
5563 if (PyErr_Occurred()) SWIG_fail;
5564 {
5565 PyThreadState* __tstate = wxPyBeginAllowThreads();
5566 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5567
5568 wxPyEndAllowThreads(__tstate);
5569 if (PyErr_Occurred()) SWIG_fail;
5570 }
5571 {
5572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5573 }
5574 return resultobj;
5575 fail:
5576 return NULL;
5577 }
5578
5579
5580 static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
5581 PyObject *resultobj;
5582 wxRegion *arg1 = (wxRegion *) 0 ;
5583 wxRect *arg2 = 0 ;
5584 bool result;
5585 wxRect temp2 ;
5586 PyObject * obj0 = 0 ;
5587 PyObject * obj1 = 0 ;
5588 char *kwnames[] = {
5589 (char *) "self",(char *) "rect", NULL
5590 };
5591
5592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5595 {
5596 arg2 = &temp2;
5597 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5598 }
5599 {
5600 PyThreadState* __tstate = wxPyBeginAllowThreads();
5601 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5602
5603 wxPyEndAllowThreads(__tstate);
5604 if (PyErr_Occurred()) SWIG_fail;
5605 }
5606 {
5607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5608 }
5609 return resultobj;
5610 fail:
5611 return NULL;
5612 }
5613
5614
5615 static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5616 PyObject *resultobj;
5617 wxRegion *arg1 = (wxRegion *) 0 ;
5618 wxRegion *arg2 = 0 ;
5619 bool result;
5620 PyObject * obj0 = 0 ;
5621 PyObject * obj1 = 0 ;
5622 char *kwnames[] = {
5623 (char *) "self",(char *) "region", NULL
5624 };
5625
5626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5629 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5630 SWIG_POINTER_EXCEPTION | 0)) == -1)
5631 SWIG_fail;
5632 if (arg2 == NULL) {
5633 PyErr_SetString(PyExc_TypeError,"null reference");
5634 SWIG_fail;
5635 }
5636 {
5637 PyThreadState* __tstate = wxPyBeginAllowThreads();
5638 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5639
5640 wxPyEndAllowThreads(__tstate);
5641 if (PyErr_Occurred()) SWIG_fail;
5642 }
5643 {
5644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5645 }
5646 return resultobj;
5647 fail:
5648 return NULL;
5649 }
5650
5651
5652 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5653 PyObject *resultobj;
5654 wxRegion *arg1 = (wxRegion *) 0 ;
5655 SwigValueWrapper< wxBitmap > result;
5656 PyObject * obj0 = 0 ;
5657 char *kwnames[] = {
5658 (char *) "self", NULL
5659 };
5660
5661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5664 {
5665 PyThreadState* __tstate = wxPyBeginAllowThreads();
5666 result = (arg1)->ConvertToBitmap();
5667
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 {
5672 wxBitmap * resultptr;
5673 resultptr = new wxBitmap((wxBitmap &) result);
5674 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5675 }
5676 return resultobj;
5677 fail:
5678 return NULL;
5679 }
5680
5681
5682 static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5683 PyObject *resultobj;
5684 wxRegion *arg1 = (wxRegion *) 0 ;
5685 wxBitmap *arg2 = 0 ;
5686 wxColour const &arg3_defvalue = wxNullColour ;
5687 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5688 int arg4 = (int) 0 ;
5689 bool result;
5690 wxColour temp3 ;
5691 PyObject * obj0 = 0 ;
5692 PyObject * obj1 = 0 ;
5693 PyObject * obj2 = 0 ;
5694 PyObject * obj3 = 0 ;
5695 char *kwnames[] = {
5696 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5697 };
5698
5699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5702 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5703 SWIG_POINTER_EXCEPTION | 0)) == -1)
5704 SWIG_fail;
5705 if (arg2 == NULL) {
5706 PyErr_SetString(PyExc_TypeError,"null reference");
5707 SWIG_fail;
5708 }
5709 if (obj2) {
5710 {
5711 arg3 = &temp3;
5712 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5713 }
5714 }
5715 if (obj3) {
5716 arg4 = (int) SWIG_AsInt(obj3);
5717 if (PyErr_Occurred()) SWIG_fail;
5718 }
5719 {
5720 PyThreadState* __tstate = wxPyBeginAllowThreads();
5721 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5722
5723 wxPyEndAllowThreads(__tstate);
5724 if (PyErr_Occurred()) SWIG_fail;
5725 }
5726 {
5727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5728 }
5729 return resultobj;
5730 fail:
5731 return NULL;
5732 }
5733
5734
5735 static PyObject * Region_swigregister(PyObject *, PyObject *args) {
5736 PyObject *obj;
5737 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5738 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5739 Py_INCREF(obj);
5740 return Py_BuildValue((char *)"");
5741 }
5742 static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5743 PyObject *resultobj;
5744 wxRegion *arg1 = 0 ;
5745 wxRegionIterator *result;
5746 PyObject * obj0 = 0 ;
5747 char *kwnames[] = {
5748 (char *) "region", NULL
5749 };
5750
5751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5753 SWIG_POINTER_EXCEPTION | 0)) == -1)
5754 SWIG_fail;
5755 if (arg1 == NULL) {
5756 PyErr_SetString(PyExc_TypeError,"null reference");
5757 SWIG_fail;
5758 }
5759 {
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5762
5763 wxPyEndAllowThreads(__tstate);
5764 if (PyErr_Occurred()) SWIG_fail;
5765 }
5766 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5767 return resultobj;
5768 fail:
5769 return NULL;
5770 }
5771
5772
5773 static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5774 PyObject *resultobj;
5775 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5776 PyObject * obj0 = 0 ;
5777 char *kwnames[] = {
5778 (char *) "self", NULL
5779 };
5780
5781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 delete arg1;
5787
5788 wxPyEndAllowThreads(__tstate);
5789 if (PyErr_Occurred()) SWIG_fail;
5790 }
5791 Py_INCREF(Py_None); resultobj = Py_None;
5792 return resultobj;
5793 fail:
5794 return NULL;
5795 }
5796
5797
5798 static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
5799 PyObject *resultobj;
5800 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5801 int result;
5802 PyObject * obj0 = 0 ;
5803 char *kwnames[] = {
5804 (char *) "self", NULL
5805 };
5806
5807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5810 {
5811 PyThreadState* __tstate = wxPyBeginAllowThreads();
5812 result = (int)(arg1)->GetX();
5813
5814 wxPyEndAllowThreads(__tstate);
5815 if (PyErr_Occurred()) SWIG_fail;
5816 }
5817 resultobj = SWIG_FromInt((int)result);
5818 return resultobj;
5819 fail:
5820 return NULL;
5821 }
5822
5823
5824 static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
5825 PyObject *resultobj;
5826 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5827 int result;
5828 PyObject * obj0 = 0 ;
5829 char *kwnames[] = {
5830 (char *) "self", NULL
5831 };
5832
5833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 result = (int)(arg1)->GetY();
5839
5840 wxPyEndAllowThreads(__tstate);
5841 if (PyErr_Occurred()) SWIG_fail;
5842 }
5843 resultobj = SWIG_FromInt((int)result);
5844 return resultobj;
5845 fail:
5846 return NULL;
5847 }
5848
5849
5850 static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
5851 PyObject *resultobj;
5852 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5853 int result;
5854 PyObject * obj0 = 0 ;
5855 char *kwnames[] = {
5856 (char *) "self", NULL
5857 };
5858
5859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5862 {
5863 PyThreadState* __tstate = wxPyBeginAllowThreads();
5864 result = (int)(arg1)->GetW();
5865
5866 wxPyEndAllowThreads(__tstate);
5867 if (PyErr_Occurred()) SWIG_fail;
5868 }
5869 resultobj = SWIG_FromInt((int)result);
5870 return resultobj;
5871 fail:
5872 return NULL;
5873 }
5874
5875
5876 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5877 PyObject *resultobj;
5878 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5879 int result;
5880 PyObject * obj0 = 0 ;
5881 char *kwnames[] = {
5882 (char *) "self", NULL
5883 };
5884
5885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5888 {
5889 PyThreadState* __tstate = wxPyBeginAllowThreads();
5890 result = (int)(arg1)->GetWidth();
5891
5892 wxPyEndAllowThreads(__tstate);
5893 if (PyErr_Occurred()) SWIG_fail;
5894 }
5895 resultobj = SWIG_FromInt((int)result);
5896 return resultobj;
5897 fail:
5898 return NULL;
5899 }
5900
5901
5902 static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
5903 PyObject *resultobj;
5904 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5905 int result;
5906 PyObject * obj0 = 0 ;
5907 char *kwnames[] = {
5908 (char *) "self", NULL
5909 };
5910
5911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 result = (int)(arg1)->GetH();
5917
5918 wxPyEndAllowThreads(__tstate);
5919 if (PyErr_Occurred()) SWIG_fail;
5920 }
5921 resultobj = SWIG_FromInt((int)result);
5922 return resultobj;
5923 fail:
5924 return NULL;
5925 }
5926
5927
5928 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5929 PyObject *resultobj;
5930 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5931 int result;
5932 PyObject * obj0 = 0 ;
5933 char *kwnames[] = {
5934 (char *) "self", NULL
5935 };
5936
5937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5940 {
5941 PyThreadState* __tstate = wxPyBeginAllowThreads();
5942 result = (int)(arg1)->GetHeight();
5943
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_FromInt((int)result);
5948 return resultobj;
5949 fail:
5950 return NULL;
5951 }
5952
5953
5954 static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
5955 PyObject *resultobj;
5956 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5957 wxRect result;
5958 PyObject * obj0 = 0 ;
5959 char *kwnames[] = {
5960 (char *) "self", NULL
5961 };
5962
5963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5966 {
5967 PyThreadState* __tstate = wxPyBeginAllowThreads();
5968 result = (arg1)->GetRect();
5969
5970 wxPyEndAllowThreads(__tstate);
5971 if (PyErr_Occurred()) SWIG_fail;
5972 }
5973 {
5974 wxRect * resultptr;
5975 resultptr = new wxRect((wxRect &) result);
5976 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5977 }
5978 return resultobj;
5979 fail:
5980 return NULL;
5981 }
5982
5983
5984 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
5985 PyObject *resultobj;
5986 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5987 bool result;
5988 PyObject * obj0 = 0 ;
5989 char *kwnames[] = {
5990 (char *) "self", NULL
5991 };
5992
5993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5996 {
5997 PyThreadState* __tstate = wxPyBeginAllowThreads();
5998 result = (bool)(arg1)->HaveRects();
5999
6000 wxPyEndAllowThreads(__tstate);
6001 if (PyErr_Occurred()) SWIG_fail;
6002 }
6003 {
6004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6005 }
6006 return resultobj;
6007 fail:
6008 return NULL;
6009 }
6010
6011
6012 static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
6013 PyObject *resultobj;
6014 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6015 PyObject * obj0 = 0 ;
6016 char *kwnames[] = {
6017 (char *) "self", NULL
6018 };
6019
6020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6023 {
6024 PyThreadState* __tstate = wxPyBeginAllowThreads();
6025 (arg1)->Reset();
6026
6027 wxPyEndAllowThreads(__tstate);
6028 if (PyErr_Occurred()) SWIG_fail;
6029 }
6030 Py_INCREF(Py_None); resultobj = Py_None;
6031 return resultobj;
6032 fail:
6033 return NULL;
6034 }
6035
6036
6037 static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
6038 PyObject *resultobj;
6039 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6040 PyObject * obj0 = 0 ;
6041 char *kwnames[] = {
6042 (char *) "self", NULL
6043 };
6044
6045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6048 {
6049 PyThreadState* __tstate = wxPyBeginAllowThreads();
6050 wxRegionIterator_Next(arg1);
6051
6052 wxPyEndAllowThreads(__tstate);
6053 if (PyErr_Occurred()) SWIG_fail;
6054 }
6055 Py_INCREF(Py_None); resultobj = Py_None;
6056 return resultobj;
6057 fail:
6058 return NULL;
6059 }
6060
6061
6062 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
6063 PyObject *resultobj;
6064 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6065 bool result;
6066 PyObject * obj0 = 0 ;
6067 char *kwnames[] = {
6068 (char *) "self", NULL
6069 };
6070
6071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6074 {
6075 PyThreadState* __tstate = wxPyBeginAllowThreads();
6076 result = (bool)wxRegionIterator___nonzero__(arg1);
6077
6078 wxPyEndAllowThreads(__tstate);
6079 if (PyErr_Occurred()) SWIG_fail;
6080 }
6081 {
6082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6083 }
6084 return resultobj;
6085 fail:
6086 return NULL;
6087 }
6088
6089
6090 static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
6091 PyObject *obj;
6092 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6093 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6094 Py_INCREF(obj);
6095 return Py_BuildValue((char *)"");
6096 }
6097 static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6098 PyObject *resultobj;
6099 wxNativeFontInfo *result;
6100 char *kwnames[] = {
6101 NULL
6102 };
6103
6104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6105 {
6106 PyThreadState* __tstate = wxPyBeginAllowThreads();
6107 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6108
6109 wxPyEndAllowThreads(__tstate);
6110 if (PyErr_Occurred()) SWIG_fail;
6111 }
6112 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6113 return resultobj;
6114 fail:
6115 return NULL;
6116 }
6117
6118
6119 static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6120 PyObject *resultobj;
6121 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6122 PyObject * obj0 = 0 ;
6123 char *kwnames[] = {
6124 (char *) "self", NULL
6125 };
6126
6127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6130 {
6131 PyThreadState* __tstate = wxPyBeginAllowThreads();
6132 delete arg1;
6133
6134 wxPyEndAllowThreads(__tstate);
6135 if (PyErr_Occurred()) SWIG_fail;
6136 }
6137 Py_INCREF(Py_None); resultobj = Py_None;
6138 return resultobj;
6139 fail:
6140 return NULL;
6141 }
6142
6143
6144 static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
6145 PyObject *resultobj;
6146 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6147 PyObject * obj0 = 0 ;
6148 char *kwnames[] = {
6149 (char *) "self", NULL
6150 };
6151
6152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",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 (arg1)->Init();
6158
6159 wxPyEndAllowThreads(__tstate);
6160 if (PyErr_Occurred()) SWIG_fail;
6161 }
6162 Py_INCREF(Py_None); resultobj = Py_None;
6163 return resultobj;
6164 fail:
6165 return NULL;
6166 }
6167
6168
6169 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj;
6171 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6172 wxFont *arg2 = 0 ;
6173 PyObject * obj0 = 0 ;
6174 PyObject * obj1 = 0 ;
6175 char *kwnames[] = {
6176 (char *) "self",(char *) "font", NULL
6177 };
6178
6179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6182 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6183 SWIG_POINTER_EXCEPTION | 0)) == -1)
6184 SWIG_fail;
6185 if (arg2 == NULL) {
6186 PyErr_SetString(PyExc_TypeError,"null reference");
6187 SWIG_fail;
6188 }
6189 {
6190 PyThreadState* __tstate = wxPyBeginAllowThreads();
6191 (arg1)->InitFromFont((wxFont const &)*arg2);
6192
6193 wxPyEndAllowThreads(__tstate);
6194 if (PyErr_Occurred()) SWIG_fail;
6195 }
6196 Py_INCREF(Py_None); resultobj = Py_None;
6197 return resultobj;
6198 fail:
6199 return NULL;
6200 }
6201
6202
6203 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6204 PyObject *resultobj;
6205 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6206 int result;
6207 PyObject * obj0 = 0 ;
6208 char *kwnames[] = {
6209 (char *) "self", NULL
6210 };
6211
6212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6215 {
6216 PyThreadState* __tstate = wxPyBeginAllowThreads();
6217 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6218
6219 wxPyEndAllowThreads(__tstate);
6220 if (PyErr_Occurred()) SWIG_fail;
6221 }
6222 resultobj = SWIG_FromInt((int)result);
6223 return resultobj;
6224 fail:
6225 return NULL;
6226 }
6227
6228
6229 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6230 PyObject *resultobj;
6231 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6232 int result;
6233 PyObject * obj0 = 0 ;
6234 char *kwnames[] = {
6235 (char *) "self", NULL
6236 };
6237
6238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6241 {
6242 PyThreadState* __tstate = wxPyBeginAllowThreads();
6243 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6244
6245 wxPyEndAllowThreads(__tstate);
6246 if (PyErr_Occurred()) SWIG_fail;
6247 }
6248 resultobj = SWIG_FromInt((int)result);
6249 return resultobj;
6250 fail:
6251 return NULL;
6252 }
6253
6254
6255 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, 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_GetWeight",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)->GetWeight();
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_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6282 PyObject *resultobj;
6283 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6284 bool result;
6285 PyObject * obj0 = 0 ;
6286 char *kwnames[] = {
6287 (char *) "self", NULL
6288 };
6289
6290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",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 = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6296
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 {
6301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6302 }
6303 return resultobj;
6304 fail:
6305 return NULL;
6306 }
6307
6308
6309 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6310 PyObject *resultobj;
6311 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6312 wxString result;
6313 PyObject * obj0 = 0 ;
6314 char *kwnames[] = {
6315 (char *) "self", NULL
6316 };
6317
6318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6321 {
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
6323 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6324
6325 wxPyEndAllowThreads(__tstate);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
6328 {
6329 #if wxUSE_UNICODE
6330 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6331 #else
6332 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6333 #endif
6334 }
6335 return resultobj;
6336 fail:
6337 return NULL;
6338 }
6339
6340
6341 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6342 PyObject *resultobj;
6343 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6344 int result;
6345 PyObject * obj0 = 0 ;
6346 char *kwnames[] = {
6347 (char *) "self", NULL
6348 };
6349
6350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6353 {
6354 PyThreadState* __tstate = wxPyBeginAllowThreads();
6355 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6356
6357 wxPyEndAllowThreads(__tstate);
6358 if (PyErr_Occurred()) SWIG_fail;
6359 }
6360 resultobj = SWIG_FromInt((int)result);
6361 return resultobj;
6362 fail:
6363 return NULL;
6364 }
6365
6366
6367 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6368 PyObject *resultobj;
6369 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6370 int result;
6371 PyObject * obj0 = 0 ;
6372 char *kwnames[] = {
6373 (char *) "self", NULL
6374 };
6375
6376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6379 {
6380 PyThreadState* __tstate = wxPyBeginAllowThreads();
6381 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6382
6383 wxPyEndAllowThreads(__tstate);
6384 if (PyErr_Occurred()) SWIG_fail;
6385 }
6386 resultobj = SWIG_FromInt((int)result);
6387 return resultobj;
6388 fail:
6389 return NULL;
6390 }
6391
6392
6393 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6394 PyObject *resultobj;
6395 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6396 int arg2 ;
6397 PyObject * obj0 = 0 ;
6398 PyObject * obj1 = 0 ;
6399 char *kwnames[] = {
6400 (char *) "self",(char *) "pointsize", NULL
6401 };
6402
6403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6406 arg2 = (int) SWIG_AsInt(obj1);
6407 if (PyErr_Occurred()) SWIG_fail;
6408 {
6409 PyThreadState* __tstate = wxPyBeginAllowThreads();
6410 (arg1)->SetPointSize(arg2);
6411
6412 wxPyEndAllowThreads(__tstate);
6413 if (PyErr_Occurred()) SWIG_fail;
6414 }
6415 Py_INCREF(Py_None); resultobj = Py_None;
6416 return resultobj;
6417 fail:
6418 return NULL;
6419 }
6420
6421
6422 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6423 PyObject *resultobj;
6424 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6425 int arg2 ;
6426 PyObject * obj0 = 0 ;
6427 PyObject * obj1 = 0 ;
6428 char *kwnames[] = {
6429 (char *) "self",(char *) "style", NULL
6430 };
6431
6432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6435 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6436 if (PyErr_Occurred()) SWIG_fail;
6437 {
6438 PyThreadState* __tstate = wxPyBeginAllowThreads();
6439 (arg1)->SetStyle((wxFontStyle )arg2);
6440
6441 wxPyEndAllowThreads(__tstate);
6442 if (PyErr_Occurred()) SWIG_fail;
6443 }
6444 Py_INCREF(Py_None); resultobj = Py_None;
6445 return resultobj;
6446 fail:
6447 return NULL;
6448 }
6449
6450
6451 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6452 PyObject *resultobj;
6453 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6454 int arg2 ;
6455 PyObject * obj0 = 0 ;
6456 PyObject * obj1 = 0 ;
6457 char *kwnames[] = {
6458 (char *) "self",(char *) "weight", NULL
6459 };
6460
6461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6464 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6465 if (PyErr_Occurred()) SWIG_fail;
6466 {
6467 PyThreadState* __tstate = wxPyBeginAllowThreads();
6468 (arg1)->SetWeight((wxFontWeight )arg2);
6469
6470 wxPyEndAllowThreads(__tstate);
6471 if (PyErr_Occurred()) SWIG_fail;
6472 }
6473 Py_INCREF(Py_None); resultobj = Py_None;
6474 return resultobj;
6475 fail:
6476 return NULL;
6477 }
6478
6479
6480 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6481 PyObject *resultobj;
6482 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6483 bool arg2 ;
6484 PyObject * obj0 = 0 ;
6485 PyObject * obj1 = 0 ;
6486 char *kwnames[] = {
6487 (char *) "self",(char *) "underlined", NULL
6488 };
6489
6490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6493 arg2 = (bool) SWIG_AsBool(obj1);
6494 if (PyErr_Occurred()) SWIG_fail;
6495 {
6496 PyThreadState* __tstate = wxPyBeginAllowThreads();
6497 (arg1)->SetUnderlined(arg2);
6498
6499 wxPyEndAllowThreads(__tstate);
6500 if (PyErr_Occurred()) SWIG_fail;
6501 }
6502 Py_INCREF(Py_None); resultobj = Py_None;
6503 return resultobj;
6504 fail:
6505 return NULL;
6506 }
6507
6508
6509 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6510 PyObject *resultobj;
6511 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6512 wxString arg2 ;
6513 PyObject * obj0 = 0 ;
6514 PyObject * obj1 = 0 ;
6515 char *kwnames[] = {
6516 (char *) "self",(char *) "facename", NULL
6517 };
6518
6519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6522 {
6523 wxString* sptr = wxString_in_helper(obj1);
6524 if (sptr == NULL) SWIG_fail;
6525 arg2 = *sptr;
6526 delete sptr;
6527 }
6528 {
6529 PyThreadState* __tstate = wxPyBeginAllowThreads();
6530 (arg1)->SetFaceName(arg2);
6531
6532 wxPyEndAllowThreads(__tstate);
6533 if (PyErr_Occurred()) SWIG_fail;
6534 }
6535 Py_INCREF(Py_None); resultobj = Py_None;
6536 return resultobj;
6537 fail:
6538 return NULL;
6539 }
6540
6541
6542 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6543 PyObject *resultobj;
6544 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6545 int arg2 ;
6546 PyObject * obj0 = 0 ;
6547 PyObject * obj1 = 0 ;
6548 char *kwnames[] = {
6549 (char *) "self",(char *) "family", NULL
6550 };
6551
6552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6555 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6556 if (PyErr_Occurred()) SWIG_fail;
6557 {
6558 PyThreadState* __tstate = wxPyBeginAllowThreads();
6559 (arg1)->SetFamily((wxFontFamily )arg2);
6560
6561 wxPyEndAllowThreads(__tstate);
6562 if (PyErr_Occurred()) SWIG_fail;
6563 }
6564 Py_INCREF(Py_None); resultobj = Py_None;
6565 return resultobj;
6566 fail:
6567 return NULL;
6568 }
6569
6570
6571 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6572 PyObject *resultobj;
6573 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6574 int arg2 ;
6575 PyObject * obj0 = 0 ;
6576 PyObject * obj1 = 0 ;
6577 char *kwnames[] = {
6578 (char *) "self",(char *) "encoding", NULL
6579 };
6580
6581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6584 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6585 if (PyErr_Occurred()) SWIG_fail;
6586 {
6587 PyThreadState* __tstate = wxPyBeginAllowThreads();
6588 (arg1)->SetEncoding((wxFontEncoding )arg2);
6589
6590 wxPyEndAllowThreads(__tstate);
6591 if (PyErr_Occurred()) SWIG_fail;
6592 }
6593 Py_INCREF(Py_None); resultobj = Py_None;
6594 return resultobj;
6595 fail:
6596 return NULL;
6597 }
6598
6599
6600 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6601 PyObject *resultobj;
6602 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6603 wxString *arg2 = 0 ;
6604 bool result;
6605 bool temp2 = False ;
6606 PyObject * obj0 = 0 ;
6607 PyObject * obj1 = 0 ;
6608 char *kwnames[] = {
6609 (char *) "self",(char *) "s", NULL
6610 };
6611
6612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6615 {
6616 arg2 = wxString_in_helper(obj1);
6617 if (arg2 == NULL) SWIG_fail;
6618 temp2 = True;
6619 }
6620 {
6621 PyThreadState* __tstate = wxPyBeginAllowThreads();
6622 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6623
6624 wxPyEndAllowThreads(__tstate);
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 {
6628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6629 }
6630 {
6631 if (temp2)
6632 delete arg2;
6633 }
6634 return resultobj;
6635 fail:
6636 {
6637 if (temp2)
6638 delete arg2;
6639 }
6640 return NULL;
6641 }
6642
6643
6644 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
6645 PyObject *resultobj;
6646 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6647 wxString result;
6648 PyObject * obj0 = 0 ;
6649 char *kwnames[] = {
6650 (char *) "self", NULL
6651 };
6652
6653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6656 {
6657 PyThreadState* __tstate = wxPyBeginAllowThreads();
6658 result = ((wxNativeFontInfo const *)arg1)->ToString();
6659
6660 wxPyEndAllowThreads(__tstate);
6661 if (PyErr_Occurred()) SWIG_fail;
6662 }
6663 {
6664 #if wxUSE_UNICODE
6665 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6666 #else
6667 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6668 #endif
6669 }
6670 return resultobj;
6671 fail:
6672 return NULL;
6673 }
6674
6675
6676 static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
6677 PyObject *resultobj;
6678 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6679 wxString result;
6680 PyObject * obj0 = 0 ;
6681 char *kwnames[] = {
6682 (char *) "self", NULL
6683 };
6684
6685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6688 {
6689 PyThreadState* __tstate = wxPyBeginAllowThreads();
6690 result = wxNativeFontInfo___str__(arg1);
6691
6692 wxPyEndAllowThreads(__tstate);
6693 if (PyErr_Occurred()) SWIG_fail;
6694 }
6695 {
6696 #if wxUSE_UNICODE
6697 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6698 #else
6699 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6700 #endif
6701 }
6702 return resultobj;
6703 fail:
6704 return NULL;
6705 }
6706
6707
6708 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6709 PyObject *resultobj;
6710 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6711 wxString *arg2 = 0 ;
6712 bool result;
6713 bool temp2 = False ;
6714 PyObject * obj0 = 0 ;
6715 PyObject * obj1 = 0 ;
6716 char *kwnames[] = {
6717 (char *) "self",(char *) "s", NULL
6718 };
6719
6720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6723 {
6724 arg2 = wxString_in_helper(obj1);
6725 if (arg2 == NULL) SWIG_fail;
6726 temp2 = True;
6727 }
6728 {
6729 PyThreadState* __tstate = wxPyBeginAllowThreads();
6730 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6731
6732 wxPyEndAllowThreads(__tstate);
6733 if (PyErr_Occurred()) SWIG_fail;
6734 }
6735 {
6736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6737 }
6738 {
6739 if (temp2)
6740 delete arg2;
6741 }
6742 return resultobj;
6743 fail:
6744 {
6745 if (temp2)
6746 delete arg2;
6747 }
6748 return NULL;
6749 }
6750
6751
6752 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6753 PyObject *resultobj;
6754 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6755 wxString result;
6756 PyObject * obj0 = 0 ;
6757 char *kwnames[] = {
6758 (char *) "self", NULL
6759 };
6760
6761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6764 {
6765 PyThreadState* __tstate = wxPyBeginAllowThreads();
6766 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6767
6768 wxPyEndAllowThreads(__tstate);
6769 if (PyErr_Occurred()) SWIG_fail;
6770 }
6771 {
6772 #if wxUSE_UNICODE
6773 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6774 #else
6775 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6776 #endif
6777 }
6778 return resultobj;
6779 fail:
6780 return NULL;
6781 }
6782
6783
6784 static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
6785 PyObject *obj;
6786 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6787 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6788 Py_INCREF(obj);
6789 return Py_BuildValue((char *)"");
6790 }
6791 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
6792 PyObject *resultobj;
6793 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6794 wxString *arg2 = (wxString *) 0 ;
6795 bool temp2 = False ;
6796 PyObject * obj0 = 0 ;
6797 PyObject * obj1 = 0 ;
6798 char *kwnames[] = {
6799 (char *) "self",(char *) "facename", NULL
6800 };
6801
6802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6805 {
6806 arg2 = wxString_in_helper(obj1);
6807 if (arg2 == NULL) SWIG_fail;
6808 temp2 = True;
6809 }
6810 if (arg1) (arg1)->facename = *arg2;
6811
6812 Py_INCREF(Py_None); resultobj = Py_None;
6813 {
6814 if (temp2)
6815 delete arg2;
6816 }
6817 return resultobj;
6818 fail:
6819 {
6820 if (temp2)
6821 delete arg2;
6822 }
6823 return NULL;
6824 }
6825
6826
6827 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
6828 PyObject *resultobj;
6829 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6830 wxString *result;
6831 PyObject * obj0 = 0 ;
6832 char *kwnames[] = {
6833 (char *) "self", NULL
6834 };
6835
6836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6839 result = (wxString *)& ((arg1)->facename);
6840
6841 {
6842 #if wxUSE_UNICODE
6843 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6844 #else
6845 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6846 #endif
6847 }
6848 return resultobj;
6849 fail:
6850 return NULL;
6851 }
6852
6853
6854 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
6855 PyObject *resultobj;
6856 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6857 int arg2 ;
6858 PyObject * obj0 = 0 ;
6859 PyObject * obj1 = 0 ;
6860 char *kwnames[] = {
6861 (char *) "self",(char *) "encoding", NULL
6862 };
6863
6864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6867 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6868 if (PyErr_Occurred()) SWIG_fail;
6869 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6870
6871 Py_INCREF(Py_None); resultobj = Py_None;
6872 return resultobj;
6873 fail:
6874 return NULL;
6875 }
6876
6877
6878 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
6879 PyObject *resultobj;
6880 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6881 int result;
6882 PyObject * obj0 = 0 ;
6883 char *kwnames[] = {
6884 (char *) "self", NULL
6885 };
6886
6887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6890 result = (int) ((arg1)->encoding);
6891
6892 resultobj = SWIG_FromInt((int)result);
6893 return resultobj;
6894 fail:
6895 return NULL;
6896 }
6897
6898
6899 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6900 PyObject *resultobj;
6901 wxNativeEncodingInfo *result;
6902 char *kwnames[] = {
6903 NULL
6904 };
6905
6906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6907 {
6908 PyThreadState* __tstate = wxPyBeginAllowThreads();
6909 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6910
6911 wxPyEndAllowThreads(__tstate);
6912 if (PyErr_Occurred()) SWIG_fail;
6913 }
6914 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6915 return resultobj;
6916 fail:
6917 return NULL;
6918 }
6919
6920
6921 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6922 PyObject *resultobj;
6923 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6924 PyObject * obj0 = 0 ;
6925 char *kwnames[] = {
6926 (char *) "self", NULL
6927 };
6928
6929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6932 {
6933 PyThreadState* __tstate = wxPyBeginAllowThreads();
6934 delete arg1;
6935
6936 wxPyEndAllowThreads(__tstate);
6937 if (PyErr_Occurred()) SWIG_fail;
6938 }
6939 Py_INCREF(Py_None); resultobj = Py_None;
6940 return resultobj;
6941 fail:
6942 return NULL;
6943 }
6944
6945
6946 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6947 PyObject *resultobj;
6948 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6949 wxString *arg2 = 0 ;
6950 bool result;
6951 bool temp2 = False ;
6952 PyObject * obj0 = 0 ;
6953 PyObject * obj1 = 0 ;
6954 char *kwnames[] = {
6955 (char *) "self",(char *) "s", NULL
6956 };
6957
6958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6961 {
6962 arg2 = wxString_in_helper(obj1);
6963 if (arg2 == NULL) SWIG_fail;
6964 temp2 = True;
6965 }
6966 {
6967 PyThreadState* __tstate = wxPyBeginAllowThreads();
6968 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6969
6970 wxPyEndAllowThreads(__tstate);
6971 if (PyErr_Occurred()) SWIG_fail;
6972 }
6973 {
6974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6975 }
6976 {
6977 if (temp2)
6978 delete arg2;
6979 }
6980 return resultobj;
6981 fail:
6982 {
6983 if (temp2)
6984 delete arg2;
6985 }
6986 return NULL;
6987 }
6988
6989
6990 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
6991 PyObject *resultobj;
6992 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6993 wxString result;
6994 PyObject * obj0 = 0 ;
6995 char *kwnames[] = {
6996 (char *) "self", NULL
6997 };
6998
6999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7002 {
7003 PyThreadState* __tstate = wxPyBeginAllowThreads();
7004 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7005
7006 wxPyEndAllowThreads(__tstate);
7007 if (PyErr_Occurred()) SWIG_fail;
7008 }
7009 {
7010 #if wxUSE_UNICODE
7011 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7012 #else
7013 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7014 #endif
7015 }
7016 return resultobj;
7017 fail:
7018 return NULL;
7019 }
7020
7021
7022 static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
7023 PyObject *obj;
7024 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7025 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7026 Py_INCREF(obj);
7027 return Py_BuildValue((char *)"");
7028 }
7029 static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7030 PyObject *resultobj;
7031 int arg1 ;
7032 wxNativeEncodingInfo *result;
7033 PyObject * obj0 = 0 ;
7034 char *kwnames[] = {
7035 (char *) "encoding", NULL
7036 };
7037
7038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7039 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7040 if (PyErr_Occurred()) SWIG_fail;
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7044
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) SWIG_fail;
7047 }
7048 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7049 return resultobj;
7050 fail:
7051 return NULL;
7052 }
7053
7054
7055 static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7056 PyObject *resultobj;
7057 wxNativeEncodingInfo *arg1 = 0 ;
7058 bool result;
7059 PyObject * obj0 = 0 ;
7060 char *kwnames[] = {
7061 (char *) "info", NULL
7062 };
7063
7064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7066 SWIG_POINTER_EXCEPTION | 0)) == -1)
7067 SWIG_fail;
7068 if (arg1 == NULL) {
7069 PyErr_SetString(PyExc_TypeError,"null reference");
7070 SWIG_fail;
7071 }
7072 {
7073 PyThreadState* __tstate = wxPyBeginAllowThreads();
7074 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7075
7076 wxPyEndAllowThreads(__tstate);
7077 if (PyErr_Occurred()) SWIG_fail;
7078 }
7079 {
7080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7081 }
7082 return resultobj;
7083 fail:
7084 return NULL;
7085 }
7086
7087
7088 static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
7089 PyObject *resultobj;
7090 wxFontMapper *result;
7091 char *kwnames[] = {
7092 NULL
7093 };
7094
7095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7096 {
7097 PyThreadState* __tstate = wxPyBeginAllowThreads();
7098 result = (wxFontMapper *)new wxFontMapper();
7099
7100 wxPyEndAllowThreads(__tstate);
7101 if (PyErr_Occurred()) SWIG_fail;
7102 }
7103 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7104 return resultobj;
7105 fail:
7106 return NULL;
7107 }
7108
7109
7110 static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
7111 PyObject *resultobj;
7112 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7113 PyObject * obj0 = 0 ;
7114 char *kwnames[] = {
7115 (char *) "self", NULL
7116 };
7117
7118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7121 {
7122 PyThreadState* __tstate = wxPyBeginAllowThreads();
7123 delete arg1;
7124
7125 wxPyEndAllowThreads(__tstate);
7126 if (PyErr_Occurred()) SWIG_fail;
7127 }
7128 Py_INCREF(Py_None); resultobj = Py_None;
7129 return resultobj;
7130 fail:
7131 return NULL;
7132 }
7133
7134
7135 static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
7136 PyObject *resultobj;
7137 wxFontMapper *result;
7138 char *kwnames[] = {
7139 NULL
7140 };
7141
7142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7143 {
7144 PyThreadState* __tstate = wxPyBeginAllowThreads();
7145 result = (wxFontMapper *)wxFontMapper::Get();
7146
7147 wxPyEndAllowThreads(__tstate);
7148 if (PyErr_Occurred()) SWIG_fail;
7149 }
7150 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7151 return resultobj;
7152 fail:
7153 return NULL;
7154 }
7155
7156
7157 static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
7158 PyObject *resultobj;
7159 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7160 wxFontMapper *result;
7161 PyObject * obj0 = 0 ;
7162 char *kwnames[] = {
7163 (char *) "mapper", NULL
7164 };
7165
7166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7169 {
7170 PyThreadState* __tstate = wxPyBeginAllowThreads();
7171 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7172
7173 wxPyEndAllowThreads(__tstate);
7174 if (PyErr_Occurred()) SWIG_fail;
7175 }
7176 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7177 return resultobj;
7178 fail:
7179 return NULL;
7180 }
7181
7182
7183 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7184 PyObject *resultobj;
7185 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7186 wxString *arg2 = 0 ;
7187 bool arg3 = (bool) True ;
7188 int result;
7189 bool temp2 = False ;
7190 PyObject * obj0 = 0 ;
7191 PyObject * obj1 = 0 ;
7192 PyObject * obj2 = 0 ;
7193 char *kwnames[] = {
7194 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7195 };
7196
7197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7200 {
7201 arg2 = wxString_in_helper(obj1);
7202 if (arg2 == NULL) SWIG_fail;
7203 temp2 = True;
7204 }
7205 if (obj2) {
7206 arg3 = (bool) SWIG_AsBool(obj2);
7207 if (PyErr_Occurred()) SWIG_fail;
7208 }
7209 {
7210 PyThreadState* __tstate = wxPyBeginAllowThreads();
7211 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7212
7213 wxPyEndAllowThreads(__tstate);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 resultobj = SWIG_FromInt((int)result);
7217 {
7218 if (temp2)
7219 delete arg2;
7220 }
7221 return resultobj;
7222 fail:
7223 {
7224 if (temp2)
7225 delete arg2;
7226 }
7227 return NULL;
7228 }
7229
7230
7231 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
7232 PyObject *resultobj;
7233 size_t result;
7234 char *kwnames[] = {
7235 NULL
7236 };
7237
7238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7239 {
7240 PyThreadState* __tstate = wxPyBeginAllowThreads();
7241 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7242
7243 wxPyEndAllowThreads(__tstate);
7244 if (PyErr_Occurred()) SWIG_fail;
7245 }
7246 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7247 return resultobj;
7248 fail:
7249 return NULL;
7250 }
7251
7252
7253 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7254 PyObject *resultobj;
7255 size_t arg1 ;
7256 int result;
7257 PyObject * obj0 = 0 ;
7258 char *kwnames[] = {
7259 (char *) "n", NULL
7260 };
7261
7262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7263 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7264 if (PyErr_Occurred()) SWIG_fail;
7265 {
7266 PyThreadState* __tstate = wxPyBeginAllowThreads();
7267 result = (int)wxFontMapper::GetEncoding(arg1);
7268
7269 wxPyEndAllowThreads(__tstate);
7270 if (PyErr_Occurred()) SWIG_fail;
7271 }
7272 resultobj = SWIG_FromInt((int)result);
7273 return resultobj;
7274 fail:
7275 return NULL;
7276 }
7277
7278
7279 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
7280 PyObject *resultobj;
7281 int arg1 ;
7282 wxString result;
7283 PyObject * obj0 = 0 ;
7284 char *kwnames[] = {
7285 (char *) "encoding", NULL
7286 };
7287
7288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7289 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7290 if (PyErr_Occurred()) SWIG_fail;
7291 {
7292 PyThreadState* __tstate = wxPyBeginAllowThreads();
7293 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7294
7295 wxPyEndAllowThreads(__tstate);
7296 if (PyErr_Occurred()) SWIG_fail;
7297 }
7298 {
7299 #if wxUSE_UNICODE
7300 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7301 #else
7302 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7303 #endif
7304 }
7305 return resultobj;
7306 fail:
7307 return NULL;
7308 }
7309
7310
7311 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
7312 PyObject *resultobj;
7313 int arg1 ;
7314 wxString result;
7315 PyObject * obj0 = 0 ;
7316 char *kwnames[] = {
7317 (char *) "encoding", NULL
7318 };
7319
7320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7321 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7322 if (PyErr_Occurred()) SWIG_fail;
7323 {
7324 PyThreadState* __tstate = wxPyBeginAllowThreads();
7325 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7326
7327 wxPyEndAllowThreads(__tstate);
7328 if (PyErr_Occurred()) SWIG_fail;
7329 }
7330 {
7331 #if wxUSE_UNICODE
7332 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7333 #else
7334 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7335 #endif
7336 }
7337 return resultobj;
7338 fail:
7339 return NULL;
7340 }
7341
7342
7343 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
7344 PyObject *resultobj;
7345 wxString *arg1 = 0 ;
7346 int result;
7347 bool temp1 = False ;
7348 PyObject * obj0 = 0 ;
7349 char *kwnames[] = {
7350 (char *) "name", NULL
7351 };
7352
7353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7354 {
7355 arg1 = wxString_in_helper(obj0);
7356 if (arg1 == NULL) SWIG_fail;
7357 temp1 = True;
7358 }
7359 {
7360 PyThreadState* __tstate = wxPyBeginAllowThreads();
7361 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7362
7363 wxPyEndAllowThreads(__tstate);
7364 if (PyErr_Occurred()) SWIG_fail;
7365 }
7366 resultobj = SWIG_FromInt((int)result);
7367 {
7368 if (temp1)
7369 delete arg1;
7370 }
7371 return resultobj;
7372 fail:
7373 {
7374 if (temp1)
7375 delete arg1;
7376 }
7377 return NULL;
7378 }
7379
7380
7381 static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) {
7382 PyObject *resultobj;
7383 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7384 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7385 PyObject * obj0 = 0 ;
7386 PyObject * obj1 = 0 ;
7387 char *kwnames[] = {
7388 (char *) "self",(char *) "config", NULL
7389 };
7390
7391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7394 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7396 {
7397 PyThreadState* __tstate = wxPyBeginAllowThreads();
7398 (arg1)->SetConfig(arg2);
7399
7400 wxPyEndAllowThreads(__tstate);
7401 if (PyErr_Occurred()) SWIG_fail;
7402 }
7403 Py_INCREF(Py_None); resultobj = Py_None;
7404 return resultobj;
7405 fail:
7406 return NULL;
7407 }
7408
7409
7410 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7411 PyObject *resultobj;
7412 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7413 wxString *arg2 = 0 ;
7414 bool temp2 = False ;
7415 PyObject * obj0 = 0 ;
7416 PyObject * obj1 = 0 ;
7417 char *kwnames[] = {
7418 (char *) "self",(char *) "prefix", NULL
7419 };
7420
7421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7424 {
7425 arg2 = wxString_in_helper(obj1);
7426 if (arg2 == NULL) SWIG_fail;
7427 temp2 = True;
7428 }
7429 {
7430 PyThreadState* __tstate = wxPyBeginAllowThreads();
7431 (arg1)->SetConfigPath((wxString const &)*arg2);
7432
7433 wxPyEndAllowThreads(__tstate);
7434 if (PyErr_Occurred()) SWIG_fail;
7435 }
7436 Py_INCREF(Py_None); resultobj = Py_None;
7437 {
7438 if (temp2)
7439 delete arg2;
7440 }
7441 return resultobj;
7442 fail:
7443 {
7444 if (temp2)
7445 delete arg2;
7446 }
7447 return NULL;
7448 }
7449
7450
7451 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7452 PyObject *resultobj;
7453 wxString result;
7454 char *kwnames[] = {
7455 NULL
7456 };
7457
7458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7459 {
7460 PyThreadState* __tstate = wxPyBeginAllowThreads();
7461 result = wxFontMapper::GetDefaultConfigPath();
7462
7463 wxPyEndAllowThreads(__tstate);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 }
7466 {
7467 #if wxUSE_UNICODE
7468 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7469 #else
7470 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7471 #endif
7472 }
7473 return resultobj;
7474 fail:
7475 return NULL;
7476 }
7477
7478
7479 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7480 PyObject *resultobj;
7481 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7482 int arg2 ;
7483 wxString const &arg3_defvalue = wxPyEmptyString ;
7484 wxString *arg3 = (wxString *) &arg3_defvalue ;
7485 bool arg4 = (bool) True ;
7486 PyObject *result;
7487 bool temp3 = False ;
7488 PyObject * obj0 = 0 ;
7489 PyObject * obj1 = 0 ;
7490 PyObject * obj2 = 0 ;
7491 PyObject * obj3 = 0 ;
7492 char *kwnames[] = {
7493 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7494 };
7495
7496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7499 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7500 if (PyErr_Occurred()) SWIG_fail;
7501 if (obj2) {
7502 {
7503 arg3 = wxString_in_helper(obj2);
7504 if (arg3 == NULL) SWIG_fail;
7505 temp3 = True;
7506 }
7507 }
7508 if (obj3) {
7509 arg4 = (bool) SWIG_AsBool(obj3);
7510 if (PyErr_Occurred()) SWIG_fail;
7511 }
7512 {
7513 PyThreadState* __tstate = wxPyBeginAllowThreads();
7514 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7515
7516 wxPyEndAllowThreads(__tstate);
7517 if (PyErr_Occurred()) SWIG_fail;
7518 }
7519 resultobj = result;
7520 {
7521 if (temp3)
7522 delete arg3;
7523 }
7524 return resultobj;
7525 fail:
7526 {
7527 if (temp3)
7528 delete arg3;
7529 }
7530 return NULL;
7531 }
7532
7533
7534 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
7535 PyObject *resultobj;
7536 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7537 int arg2 ;
7538 wxString const &arg3_defvalue = wxPyEmptyString ;
7539 wxString *arg3 = (wxString *) &arg3_defvalue ;
7540 bool result;
7541 bool temp3 = False ;
7542 PyObject * obj0 = 0 ;
7543 PyObject * obj1 = 0 ;
7544 PyObject * obj2 = 0 ;
7545 char *kwnames[] = {
7546 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7547 };
7548
7549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7552 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7553 if (PyErr_Occurred()) SWIG_fail;
7554 if (obj2) {
7555 {
7556 arg3 = wxString_in_helper(obj2);
7557 if (arg3 == NULL) SWIG_fail;
7558 temp3 = True;
7559 }
7560 }
7561 {
7562 PyThreadState* __tstate = wxPyBeginAllowThreads();
7563 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7564
7565 wxPyEndAllowThreads(__tstate);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 }
7568 {
7569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7570 }
7571 {
7572 if (temp3)
7573 delete arg3;
7574 }
7575 return resultobj;
7576 fail:
7577 {
7578 if (temp3)
7579 delete arg3;
7580 }
7581 return NULL;
7582 }
7583
7584
7585 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
7586 PyObject *resultobj;
7587 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7588 wxWindow *arg2 = (wxWindow *) 0 ;
7589 PyObject * obj0 = 0 ;
7590 PyObject * obj1 = 0 ;
7591 char *kwnames[] = {
7592 (char *) "self",(char *) "parent", NULL
7593 };
7594
7595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7598 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7600 {
7601 PyThreadState* __tstate = wxPyBeginAllowThreads();
7602 (arg1)->SetDialogParent(arg2);
7603
7604 wxPyEndAllowThreads(__tstate);
7605 if (PyErr_Occurred()) SWIG_fail;
7606 }
7607 Py_INCREF(Py_None); resultobj = Py_None;
7608 return resultobj;
7609 fail:
7610 return NULL;
7611 }
7612
7613
7614 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
7615 PyObject *resultobj;
7616 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7617 wxString *arg2 = 0 ;
7618 bool temp2 = False ;
7619 PyObject * obj0 = 0 ;
7620 PyObject * obj1 = 0 ;
7621 char *kwnames[] = {
7622 (char *) "self",(char *) "title", NULL
7623 };
7624
7625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7628 {
7629 arg2 = wxString_in_helper(obj1);
7630 if (arg2 == NULL) SWIG_fail;
7631 temp2 = True;
7632 }
7633 {
7634 PyThreadState* __tstate = wxPyBeginAllowThreads();
7635 (arg1)->SetDialogTitle((wxString const &)*arg2);
7636
7637 wxPyEndAllowThreads(__tstate);
7638 if (PyErr_Occurred()) SWIG_fail;
7639 }
7640 Py_INCREF(Py_None); resultobj = Py_None;
7641 {
7642 if (temp2)
7643 delete arg2;
7644 }
7645 return resultobj;
7646 fail:
7647 {
7648 if (temp2)
7649 delete arg2;
7650 }
7651 return NULL;
7652 }
7653
7654
7655 static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
7656 PyObject *obj;
7657 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7658 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7659 Py_INCREF(obj);
7660 return Py_BuildValue((char *)"");
7661 }
7662 static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7663 PyObject *resultobj;
7664 int arg1 ;
7665 int arg2 ;
7666 int arg3 ;
7667 int arg4 ;
7668 bool arg5 = (bool) False ;
7669 wxString const &arg6_defvalue = wxPyEmptyString ;
7670 wxString *arg6 = (wxString *) &arg6_defvalue ;
7671 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7672 wxFont *result;
7673 bool temp6 = False ;
7674 PyObject * obj0 = 0 ;
7675 PyObject * obj1 = 0 ;
7676 PyObject * obj2 = 0 ;
7677 PyObject * obj3 = 0 ;
7678 PyObject * obj4 = 0 ;
7679 PyObject * obj5 = 0 ;
7680 PyObject * obj6 = 0 ;
7681 char *kwnames[] = {
7682 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7683 };
7684
7685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7686 arg1 = (int) SWIG_AsInt(obj0);
7687 if (PyErr_Occurred()) SWIG_fail;
7688 arg2 = (int) SWIG_AsInt(obj1);
7689 if (PyErr_Occurred()) SWIG_fail;
7690 arg3 = (int) SWIG_AsInt(obj2);
7691 if (PyErr_Occurred()) SWIG_fail;
7692 arg4 = (int) SWIG_AsInt(obj3);
7693 if (PyErr_Occurred()) SWIG_fail;
7694 if (obj4) {
7695 arg5 = (bool) SWIG_AsBool(obj4);
7696 if (PyErr_Occurred()) SWIG_fail;
7697 }
7698 if (obj5) {
7699 {
7700 arg6 = wxString_in_helper(obj5);
7701 if (arg6 == NULL) SWIG_fail;
7702 temp6 = True;
7703 }
7704 }
7705 if (obj6) {
7706 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7707 if (PyErr_Occurred()) SWIG_fail;
7708 }
7709 {
7710 PyThreadState* __tstate = wxPyBeginAllowThreads();
7711 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7712
7713 wxPyEndAllowThreads(__tstate);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 }
7716 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7717 {
7718 if (temp6)
7719 delete arg6;
7720 }
7721 return resultobj;
7722 fail:
7723 {
7724 if (temp6)
7725 delete arg6;
7726 }
7727 return NULL;
7728 }
7729
7730
7731 static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7732 PyObject *resultobj;
7733 wxFont *arg1 = (wxFont *) 0 ;
7734 PyObject * obj0 = 0 ;
7735 char *kwnames[] = {
7736 (char *) "self", NULL
7737 };
7738
7739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7742 {
7743 PyThreadState* __tstate = wxPyBeginAllowThreads();
7744 delete arg1;
7745
7746 wxPyEndAllowThreads(__tstate);
7747 if (PyErr_Occurred()) SWIG_fail;
7748 }
7749 Py_INCREF(Py_None); resultobj = Py_None;
7750 return resultobj;
7751 fail:
7752 return NULL;
7753 }
7754
7755
7756 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7757 PyObject *resultobj;
7758 wxNativeFontInfo *arg1 = 0 ;
7759 wxFont *result;
7760 PyObject * obj0 = 0 ;
7761 char *kwnames[] = {
7762 (char *) "info", NULL
7763 };
7764
7765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7767 SWIG_POINTER_EXCEPTION | 0)) == -1)
7768 SWIG_fail;
7769 if (arg1 == NULL) {
7770 PyErr_SetString(PyExc_TypeError,"null reference");
7771 SWIG_fail;
7772 }
7773 {
7774 PyThreadState* __tstate = wxPyBeginAllowThreads();
7775 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7776
7777 wxPyEndAllowThreads(__tstate);
7778 if (PyErr_Occurred()) SWIG_fail;
7779 }
7780 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7781 return resultobj;
7782 fail:
7783 return NULL;
7784 }
7785
7786
7787 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
7788 PyObject *resultobj;
7789 wxString *arg1 = 0 ;
7790 wxFont *result;
7791 bool temp1 = False ;
7792 PyObject * obj0 = 0 ;
7793 char *kwnames[] = {
7794 (char *) "info", NULL
7795 };
7796
7797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7798 {
7799 arg1 = wxString_in_helper(obj0);
7800 if (arg1 == NULL) SWIG_fail;
7801 temp1 = True;
7802 }
7803 {
7804 PyThreadState* __tstate = wxPyBeginAllowThreads();
7805 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7806
7807 wxPyEndAllowThreads(__tstate);
7808 if (PyErr_Occurred()) SWIG_fail;
7809 }
7810 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7811 {
7812 if (temp1)
7813 delete arg1;
7814 }
7815 return resultobj;
7816 fail:
7817 {
7818 if (temp1)
7819 delete arg1;
7820 }
7821 return NULL;
7822 }
7823
7824
7825 static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) {
7826 PyObject *resultobj;
7827 int arg1 ;
7828 int arg2 ;
7829 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7830 wxString const &arg4_defvalue = wxPyEmptyString ;
7831 wxString *arg4 = (wxString *) &arg4_defvalue ;
7832 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7833 wxFont *result;
7834 bool temp4 = False ;
7835 PyObject * obj0 = 0 ;
7836 PyObject * obj1 = 0 ;
7837 PyObject * obj2 = 0 ;
7838 PyObject * obj3 = 0 ;
7839 PyObject * obj4 = 0 ;
7840 char *kwnames[] = {
7841 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7842 };
7843
7844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7845 arg1 = (int) SWIG_AsInt(obj0);
7846 if (PyErr_Occurred()) SWIG_fail;
7847 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7848 if (PyErr_Occurred()) SWIG_fail;
7849 if (obj2) {
7850 arg3 = (int) SWIG_AsInt(obj2);
7851 if (PyErr_Occurred()) SWIG_fail;
7852 }
7853 if (obj3) {
7854 {
7855 arg4 = wxString_in_helper(obj3);
7856 if (arg4 == NULL) SWIG_fail;
7857 temp4 = True;
7858 }
7859 }
7860 if (obj4) {
7861 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7862 if (PyErr_Occurred()) SWIG_fail;
7863 }
7864 {
7865 PyThreadState* __tstate = wxPyBeginAllowThreads();
7866 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7867
7868 wxPyEndAllowThreads(__tstate);
7869 if (PyErr_Occurred()) SWIG_fail;
7870 }
7871 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7872 {
7873 if (temp4)
7874 delete arg4;
7875 }
7876 return resultobj;
7877 fail:
7878 {
7879 if (temp4)
7880 delete arg4;
7881 }
7882 return NULL;
7883 }
7884
7885
7886 static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
7887 PyObject *resultobj;
7888 wxFont *arg1 = (wxFont *) 0 ;
7889 bool result;
7890 PyObject * obj0 = 0 ;
7891 char *kwnames[] = {
7892 (char *) "self", NULL
7893 };
7894
7895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7898 {
7899 PyThreadState* __tstate = wxPyBeginAllowThreads();
7900 result = (bool)((wxFont const *)arg1)->Ok();
7901
7902 wxPyEndAllowThreads(__tstate);
7903 if (PyErr_Occurred()) SWIG_fail;
7904 }
7905 {
7906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7907 }
7908 return resultobj;
7909 fail:
7910 return NULL;
7911 }
7912
7913
7914 static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
7915 PyObject *resultobj;
7916 wxFont *arg1 = (wxFont *) 0 ;
7917 wxFont *arg2 = (wxFont *) 0 ;
7918 bool result;
7919 PyObject * obj0 = 0 ;
7920 PyObject * obj1 = 0 ;
7921 char *kwnames[] = {
7922 (char *) "self",(char *) "other", NULL
7923 };
7924
7925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7928 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7930 {
7931 PyThreadState* __tstate = wxPyBeginAllowThreads();
7932 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7933
7934 wxPyEndAllowThreads(__tstate);
7935 if (PyErr_Occurred()) SWIG_fail;
7936 }
7937 {
7938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7939 }
7940 return resultobj;
7941 fail:
7942 return NULL;
7943 }
7944
7945
7946 static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
7947 PyObject *resultobj;
7948 wxFont *arg1 = (wxFont *) 0 ;
7949 wxFont *arg2 = (wxFont *) 0 ;
7950 bool result;
7951 PyObject * obj0 = 0 ;
7952 PyObject * obj1 = 0 ;
7953 char *kwnames[] = {
7954 (char *) "self",(char *) "other", NULL
7955 };
7956
7957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7960 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7962 {
7963 PyThreadState* __tstate = wxPyBeginAllowThreads();
7964 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7965
7966 wxPyEndAllowThreads(__tstate);
7967 if (PyErr_Occurred()) SWIG_fail;
7968 }
7969 {
7970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7971 }
7972 return resultobj;
7973 fail:
7974 return NULL;
7975 }
7976
7977
7978 static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
7979 PyObject *resultobj;
7980 wxFont *arg1 = (wxFont *) 0 ;
7981 int result;
7982 PyObject * obj0 = 0 ;
7983 char *kwnames[] = {
7984 (char *) "self", NULL
7985 };
7986
7987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7990 {
7991 PyThreadState* __tstate = wxPyBeginAllowThreads();
7992 result = (int)((wxFont const *)arg1)->GetPointSize();
7993
7994 wxPyEndAllowThreads(__tstate);
7995 if (PyErr_Occurred()) SWIG_fail;
7996 }
7997 resultobj = SWIG_FromInt((int)result);
7998 return resultobj;
7999 fail:
8000 return NULL;
8001 }
8002
8003
8004 static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8005 PyObject *resultobj;
8006 wxFont *arg1 = (wxFont *) 0 ;
8007 int result;
8008 PyObject * obj0 = 0 ;
8009 char *kwnames[] = {
8010 (char *) "self", NULL
8011 };
8012
8013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8016 {
8017 PyThreadState* __tstate = wxPyBeginAllowThreads();
8018 result = (int)((wxFont const *)arg1)->GetFamily();
8019
8020 wxPyEndAllowThreads(__tstate);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 }
8023 resultobj = SWIG_FromInt((int)result);
8024 return resultobj;
8025 fail:
8026 return NULL;
8027 }
8028
8029
8030 static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8031 PyObject *resultobj;
8032 wxFont *arg1 = (wxFont *) 0 ;
8033 int result;
8034 PyObject * obj0 = 0 ;
8035 char *kwnames[] = {
8036 (char *) "self", NULL
8037 };
8038
8039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8042 {
8043 PyThreadState* __tstate = wxPyBeginAllowThreads();
8044 result = (int)((wxFont const *)arg1)->GetStyle();
8045
8046 wxPyEndAllowThreads(__tstate);
8047 if (PyErr_Occurred()) SWIG_fail;
8048 }
8049 resultobj = SWIG_FromInt((int)result);
8050 return resultobj;
8051 fail:
8052 return NULL;
8053 }
8054
8055
8056 static PyObject *_wrap_Font_GetWeight(PyObject *, 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_GetWeight",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)->GetWeight();
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_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8083 PyObject *resultobj;
8084 wxFont *arg1 = (wxFont *) 0 ;
8085 bool result;
8086 PyObject * obj0 = 0 ;
8087 char *kwnames[] = {
8088 (char *) "self", NULL
8089 };
8090
8091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",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 = (bool)((wxFont const *)arg1)->GetUnderlined();
8097
8098 wxPyEndAllowThreads(__tstate);
8099 if (PyErr_Occurred()) SWIG_fail;
8100 }
8101 {
8102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8103 }
8104 return resultobj;
8105 fail:
8106 return NULL;
8107 }
8108
8109
8110 static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8111 PyObject *resultobj;
8112 wxFont *arg1 = (wxFont *) 0 ;
8113 wxString result;
8114 PyObject * obj0 = 0 ;
8115 char *kwnames[] = {
8116 (char *) "self", NULL
8117 };
8118
8119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8122 {
8123 PyThreadState* __tstate = wxPyBeginAllowThreads();
8124 result = ((wxFont const *)arg1)->GetFaceName();
8125
8126 wxPyEndAllowThreads(__tstate);
8127 if (PyErr_Occurred()) SWIG_fail;
8128 }
8129 {
8130 #if wxUSE_UNICODE
8131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8132 #else
8133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8134 #endif
8135 }
8136 return resultobj;
8137 fail:
8138 return NULL;
8139 }
8140
8141
8142 static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8143 PyObject *resultobj;
8144 wxFont *arg1 = (wxFont *) 0 ;
8145 int result;
8146 PyObject * obj0 = 0 ;
8147 char *kwnames[] = {
8148 (char *) "self", NULL
8149 };
8150
8151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8154 {
8155 PyThreadState* __tstate = wxPyBeginAllowThreads();
8156 result = (int)((wxFont const *)arg1)->GetEncoding();
8157
8158 wxPyEndAllowThreads(__tstate);
8159 if (PyErr_Occurred()) SWIG_fail;
8160 }
8161 resultobj = SWIG_FromInt((int)result);
8162 return resultobj;
8163 fail:
8164 return NULL;
8165 }
8166
8167
8168 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8169 PyObject *resultobj;
8170 wxFont *arg1 = (wxFont *) 0 ;
8171 wxNativeFontInfo *result;
8172 PyObject * obj0 = 0 ;
8173 char *kwnames[] = {
8174 (char *) "self", NULL
8175 };
8176
8177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",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 = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8183
8184 wxPyEndAllowThreads(__tstate);
8185 if (PyErr_Occurred()) SWIG_fail;
8186 }
8187 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8188 return resultobj;
8189 fail:
8190 return NULL;
8191 }
8192
8193
8194 static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
8195 PyObject *resultobj;
8196 wxFont *arg1 = (wxFont *) 0 ;
8197 bool result;
8198 PyObject * obj0 = 0 ;
8199 char *kwnames[] = {
8200 (char *) "self", NULL
8201 };
8202
8203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8206 {
8207 PyThreadState* __tstate = wxPyBeginAllowThreads();
8208 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8209
8210 wxPyEndAllowThreads(__tstate);
8211 if (PyErr_Occurred()) SWIG_fail;
8212 }
8213 {
8214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8215 }
8216 return resultobj;
8217 fail:
8218 return NULL;
8219 }
8220
8221
8222 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8223 PyObject *resultobj;
8224 wxFont *arg1 = (wxFont *) 0 ;
8225 wxString result;
8226 PyObject * obj0 = 0 ;
8227 char *kwnames[] = {
8228 (char *) "self", NULL
8229 };
8230
8231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8234 {
8235 PyThreadState* __tstate = wxPyBeginAllowThreads();
8236 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8237
8238 wxPyEndAllowThreads(__tstate);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 {
8242 #if wxUSE_UNICODE
8243 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8244 #else
8245 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8246 #endif
8247 }
8248 return resultobj;
8249 fail:
8250 return NULL;
8251 }
8252
8253
8254 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8255 PyObject *resultobj;
8256 wxFont *arg1 = (wxFont *) 0 ;
8257 wxString result;
8258 PyObject * obj0 = 0 ;
8259 char *kwnames[] = {
8260 (char *) "self", NULL
8261 };
8262
8263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8266 {
8267 PyThreadState* __tstate = wxPyBeginAllowThreads();
8268 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8269
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 {
8274 #if wxUSE_UNICODE
8275 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8276 #else
8277 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8278 #endif
8279 }
8280 return resultobj;
8281 fail:
8282 return NULL;
8283 }
8284
8285
8286 static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8287 PyObject *resultobj;
8288 wxFont *arg1 = (wxFont *) 0 ;
8289 int arg2 ;
8290 PyObject * obj0 = 0 ;
8291 PyObject * obj1 = 0 ;
8292 char *kwnames[] = {
8293 (char *) "self",(char *) "pointSize", NULL
8294 };
8295
8296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8299 arg2 = (int) SWIG_AsInt(obj1);
8300 if (PyErr_Occurred()) SWIG_fail;
8301 {
8302 PyThreadState* __tstate = wxPyBeginAllowThreads();
8303 (arg1)->SetPointSize(arg2);
8304
8305 wxPyEndAllowThreads(__tstate);
8306 if (PyErr_Occurred()) SWIG_fail;
8307 }
8308 Py_INCREF(Py_None); resultobj = Py_None;
8309 return resultobj;
8310 fail:
8311 return NULL;
8312 }
8313
8314
8315 static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8316 PyObject *resultobj;
8317 wxFont *arg1 = (wxFont *) 0 ;
8318 int arg2 ;
8319 PyObject * obj0 = 0 ;
8320 PyObject * obj1 = 0 ;
8321 char *kwnames[] = {
8322 (char *) "self",(char *) "family", NULL
8323 };
8324
8325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8328 arg2 = (int) SWIG_AsInt(obj1);
8329 if (PyErr_Occurred()) SWIG_fail;
8330 {
8331 PyThreadState* __tstate = wxPyBeginAllowThreads();
8332 (arg1)->SetFamily(arg2);
8333
8334 wxPyEndAllowThreads(__tstate);
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 Py_INCREF(Py_None); resultobj = Py_None;
8338 return resultobj;
8339 fail:
8340 return NULL;
8341 }
8342
8343
8344 static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8345 PyObject *resultobj;
8346 wxFont *arg1 = (wxFont *) 0 ;
8347 int arg2 ;
8348 PyObject * obj0 = 0 ;
8349 PyObject * obj1 = 0 ;
8350 char *kwnames[] = {
8351 (char *) "self",(char *) "style", NULL
8352 };
8353
8354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8357 arg2 = (int) SWIG_AsInt(obj1);
8358 if (PyErr_Occurred()) SWIG_fail;
8359 {
8360 PyThreadState* __tstate = wxPyBeginAllowThreads();
8361 (arg1)->SetStyle(arg2);
8362
8363 wxPyEndAllowThreads(__tstate);
8364 if (PyErr_Occurred()) SWIG_fail;
8365 }
8366 Py_INCREF(Py_None); resultobj = Py_None;
8367 return resultobj;
8368 fail:
8369 return NULL;
8370 }
8371
8372
8373 static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8374 PyObject *resultobj;
8375 wxFont *arg1 = (wxFont *) 0 ;
8376 int arg2 ;
8377 PyObject * obj0 = 0 ;
8378 PyObject * obj1 = 0 ;
8379 char *kwnames[] = {
8380 (char *) "self",(char *) "weight", NULL
8381 };
8382
8383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8386 arg2 = (int) SWIG_AsInt(obj1);
8387 if (PyErr_Occurred()) SWIG_fail;
8388 {
8389 PyThreadState* __tstate = wxPyBeginAllowThreads();
8390 (arg1)->SetWeight(arg2);
8391
8392 wxPyEndAllowThreads(__tstate);
8393 if (PyErr_Occurred()) SWIG_fail;
8394 }
8395 Py_INCREF(Py_None); resultobj = Py_None;
8396 return resultobj;
8397 fail:
8398 return NULL;
8399 }
8400
8401
8402 static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8403 PyObject *resultobj;
8404 wxFont *arg1 = (wxFont *) 0 ;
8405 wxString *arg2 = 0 ;
8406 bool temp2 = False ;
8407 PyObject * obj0 = 0 ;
8408 PyObject * obj1 = 0 ;
8409 char *kwnames[] = {
8410 (char *) "self",(char *) "faceName", NULL
8411 };
8412
8413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8416 {
8417 arg2 = wxString_in_helper(obj1);
8418 if (arg2 == NULL) SWIG_fail;
8419 temp2 = True;
8420 }
8421 {
8422 PyThreadState* __tstate = wxPyBeginAllowThreads();
8423 (arg1)->SetFaceName((wxString const &)*arg2);
8424
8425 wxPyEndAllowThreads(__tstate);
8426 if (PyErr_Occurred()) SWIG_fail;
8427 }
8428 Py_INCREF(Py_None); resultobj = Py_None;
8429 {
8430 if (temp2)
8431 delete arg2;
8432 }
8433 return resultobj;
8434 fail:
8435 {
8436 if (temp2)
8437 delete arg2;
8438 }
8439 return NULL;
8440 }
8441
8442
8443 static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8444 PyObject *resultobj;
8445 wxFont *arg1 = (wxFont *) 0 ;
8446 bool arg2 ;
8447 PyObject * obj0 = 0 ;
8448 PyObject * obj1 = 0 ;
8449 char *kwnames[] = {
8450 (char *) "self",(char *) "underlined", NULL
8451 };
8452
8453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8456 arg2 = (bool) SWIG_AsBool(obj1);
8457 if (PyErr_Occurred()) SWIG_fail;
8458 {
8459 PyThreadState* __tstate = wxPyBeginAllowThreads();
8460 (arg1)->SetUnderlined(arg2);
8461
8462 wxPyEndAllowThreads(__tstate);
8463 if (PyErr_Occurred()) SWIG_fail;
8464 }
8465 Py_INCREF(Py_None); resultobj = Py_None;
8466 return resultobj;
8467 fail:
8468 return NULL;
8469 }
8470
8471
8472 static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8473 PyObject *resultobj;
8474 wxFont *arg1 = (wxFont *) 0 ;
8475 int arg2 ;
8476 PyObject * obj0 = 0 ;
8477 PyObject * obj1 = 0 ;
8478 char *kwnames[] = {
8479 (char *) "self",(char *) "encoding", NULL
8480 };
8481
8482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8485 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8486 if (PyErr_Occurred()) SWIG_fail;
8487 {
8488 PyThreadState* __tstate = wxPyBeginAllowThreads();
8489 (arg1)->SetEncoding((wxFontEncoding )arg2);
8490
8491 wxPyEndAllowThreads(__tstate);
8492 if (PyErr_Occurred()) SWIG_fail;
8493 }
8494 Py_INCREF(Py_None); resultobj = Py_None;
8495 return resultobj;
8496 fail:
8497 return NULL;
8498 }
8499
8500
8501 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj;
8503 wxFont *arg1 = (wxFont *) 0 ;
8504 wxNativeFontInfo *arg2 = 0 ;
8505 PyObject * obj0 = 0 ;
8506 PyObject * obj1 = 0 ;
8507 char *kwnames[] = {
8508 (char *) "self",(char *) "info", NULL
8509 };
8510
8511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8514 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8515 SWIG_POINTER_EXCEPTION | 0)) == -1)
8516 SWIG_fail;
8517 if (arg2 == NULL) {
8518 PyErr_SetString(PyExc_TypeError,"null reference");
8519 SWIG_fail;
8520 }
8521 {
8522 PyThreadState* __tstate = wxPyBeginAllowThreads();
8523 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8524
8525 wxPyEndAllowThreads(__tstate);
8526 if (PyErr_Occurred()) SWIG_fail;
8527 }
8528 Py_INCREF(Py_None); resultobj = Py_None;
8529 return resultobj;
8530 fail:
8531 return NULL;
8532 }
8533
8534
8535 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
8536 PyObject *resultobj;
8537 wxFont *arg1 = (wxFont *) 0 ;
8538 wxString *arg2 = 0 ;
8539 bool temp2 = False ;
8540 PyObject * obj0 = 0 ;
8541 PyObject * obj1 = 0 ;
8542 char *kwnames[] = {
8543 (char *) "self",(char *) "info", NULL
8544 };
8545
8546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8549 {
8550 arg2 = wxString_in_helper(obj1);
8551 if (arg2 == NULL) SWIG_fail;
8552 temp2 = True;
8553 }
8554 {
8555 PyThreadState* __tstate = wxPyBeginAllowThreads();
8556 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8557
8558 wxPyEndAllowThreads(__tstate);
8559 if (PyErr_Occurred()) SWIG_fail;
8560 }
8561 Py_INCREF(Py_None); resultobj = Py_None;
8562 {
8563 if (temp2)
8564 delete arg2;
8565 }
8566 return resultobj;
8567 fail:
8568 {
8569 if (temp2)
8570 delete arg2;
8571 }
8572 return NULL;
8573 }
8574
8575
8576 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8577 PyObject *resultobj;
8578 wxFont *arg1 = (wxFont *) 0 ;
8579 wxString *arg2 = 0 ;
8580 bool temp2 = False ;
8581 PyObject * obj0 = 0 ;
8582 PyObject * obj1 = 0 ;
8583 char *kwnames[] = {
8584 (char *) "self",(char *) "info", NULL
8585 };
8586
8587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8590 {
8591 arg2 = wxString_in_helper(obj1);
8592 if (arg2 == NULL) SWIG_fail;
8593 temp2 = True;
8594 }
8595 {
8596 PyThreadState* __tstate = wxPyBeginAllowThreads();
8597 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8598
8599 wxPyEndAllowThreads(__tstate);
8600 if (PyErr_Occurred()) SWIG_fail;
8601 }
8602 Py_INCREF(Py_None); resultobj = Py_None;
8603 {
8604 if (temp2)
8605 delete arg2;
8606 }
8607 return resultobj;
8608 fail:
8609 {
8610 if (temp2)
8611 delete arg2;
8612 }
8613 return NULL;
8614 }
8615
8616
8617 static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
8618 PyObject *resultobj;
8619 wxFont *arg1 = (wxFont *) 0 ;
8620 wxString result;
8621 PyObject * obj0 = 0 ;
8622 char *kwnames[] = {
8623 (char *) "self", NULL
8624 };
8625
8626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8629 {
8630 PyThreadState* __tstate = wxPyBeginAllowThreads();
8631 result = ((wxFont const *)arg1)->GetFamilyString();
8632
8633 wxPyEndAllowThreads(__tstate);
8634 if (PyErr_Occurred()) SWIG_fail;
8635 }
8636 {
8637 #if wxUSE_UNICODE
8638 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8639 #else
8640 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8641 #endif
8642 }
8643 return resultobj;
8644 fail:
8645 return NULL;
8646 }
8647
8648
8649 static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
8650 PyObject *resultobj;
8651 wxFont *arg1 = (wxFont *) 0 ;
8652 wxString result;
8653 PyObject * obj0 = 0 ;
8654 char *kwnames[] = {
8655 (char *) "self", NULL
8656 };
8657
8658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8661 {
8662 PyThreadState* __tstate = wxPyBeginAllowThreads();
8663 result = ((wxFont const *)arg1)->GetStyleString();
8664
8665 wxPyEndAllowThreads(__tstate);
8666 if (PyErr_Occurred()) SWIG_fail;
8667 }
8668 {
8669 #if wxUSE_UNICODE
8670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8671 #else
8672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8673 #endif
8674 }
8675 return resultobj;
8676 fail:
8677 return NULL;
8678 }
8679
8680
8681 static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
8682 PyObject *resultobj;
8683 wxFont *arg1 = (wxFont *) 0 ;
8684 wxString result;
8685 PyObject * obj0 = 0 ;
8686 char *kwnames[] = {
8687 (char *) "self", NULL
8688 };
8689
8690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8693 {
8694 PyThreadState* __tstate = wxPyBeginAllowThreads();
8695 result = ((wxFont const *)arg1)->GetWeightString();
8696
8697 wxPyEndAllowThreads(__tstate);
8698 if (PyErr_Occurred()) SWIG_fail;
8699 }
8700 {
8701 #if wxUSE_UNICODE
8702 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8703 #else
8704 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8705 #endif
8706 }
8707 return resultobj;
8708 fail:
8709 return NULL;
8710 }
8711
8712
8713 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
8714 PyObject *resultobj;
8715 wxFont *arg1 = (wxFont *) 0 ;
8716 bool arg2 = (bool) True ;
8717 PyObject * obj0 = 0 ;
8718 PyObject * obj1 = 0 ;
8719 char *kwnames[] = {
8720 (char *) "self",(char *) "no", NULL
8721 };
8722
8723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8726 if (obj1) {
8727 arg2 = (bool) SWIG_AsBool(obj1);
8728 if (PyErr_Occurred()) SWIG_fail;
8729 }
8730 {
8731 PyThreadState* __tstate = wxPyBeginAllowThreads();
8732 (arg1)->SetNoAntiAliasing(arg2);
8733
8734 wxPyEndAllowThreads(__tstate);
8735 if (PyErr_Occurred()) SWIG_fail;
8736 }
8737 Py_INCREF(Py_None); resultobj = Py_None;
8738 return resultobj;
8739 fail:
8740 return NULL;
8741 }
8742
8743
8744 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
8745 PyObject *resultobj;
8746 wxFont *arg1 = (wxFont *) 0 ;
8747 bool result;
8748 PyObject * obj0 = 0 ;
8749 char *kwnames[] = {
8750 (char *) "self", NULL
8751 };
8752
8753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8756 {
8757 PyThreadState* __tstate = wxPyBeginAllowThreads();
8758 result = (bool)(arg1)->GetNoAntiAliasing();
8759
8760 wxPyEndAllowThreads(__tstate);
8761 if (PyErr_Occurred()) SWIG_fail;
8762 }
8763 {
8764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8765 }
8766 return resultobj;
8767 fail:
8768 return NULL;
8769 }
8770
8771
8772 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8773 PyObject *resultobj;
8774 int result;
8775 char *kwnames[] = {
8776 NULL
8777 };
8778
8779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8780 {
8781 PyThreadState* __tstate = wxPyBeginAllowThreads();
8782 result = (int)wxFont::GetDefaultEncoding();
8783
8784 wxPyEndAllowThreads(__tstate);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 resultobj = SWIG_FromInt((int)result);
8788 return resultobj;
8789 fail:
8790 return NULL;
8791 }
8792
8793
8794 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8795 PyObject *resultobj;
8796 int arg1 ;
8797 PyObject * obj0 = 0 ;
8798 char *kwnames[] = {
8799 (char *) "encoding", NULL
8800 };
8801
8802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8803 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8804 if (PyErr_Occurred()) SWIG_fail;
8805 {
8806 PyThreadState* __tstate = wxPyBeginAllowThreads();
8807 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8808
8809 wxPyEndAllowThreads(__tstate);
8810 if (PyErr_Occurred()) SWIG_fail;
8811 }
8812 Py_INCREF(Py_None); resultobj = Py_None;
8813 return resultobj;
8814 fail:
8815 return NULL;
8816 }
8817
8818
8819 static PyObject * Font_swigregister(PyObject *, PyObject *args) {
8820 PyObject *obj;
8821 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8822 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8823 Py_INCREF(obj);
8824 return Py_BuildValue((char *)"");
8825 }
8826 static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
8827 PyObject *resultobj;
8828 wxPyFontEnumerator *result;
8829 char *kwnames[] = {
8830 NULL
8831 };
8832
8833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8834 {
8835 PyThreadState* __tstate = wxPyBeginAllowThreads();
8836 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8837
8838 wxPyEndAllowThreads(__tstate);
8839 if (PyErr_Occurred()) SWIG_fail;
8840 }
8841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8842 return resultobj;
8843 fail:
8844 return NULL;
8845 }
8846
8847
8848 static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
8849 PyObject *resultobj;
8850 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8851 PyObject * obj0 = 0 ;
8852 char *kwnames[] = {
8853 (char *) "self", NULL
8854 };
8855
8856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8859 {
8860 PyThreadState* __tstate = wxPyBeginAllowThreads();
8861 delete arg1;
8862
8863 wxPyEndAllowThreads(__tstate);
8864 if (PyErr_Occurred()) SWIG_fail;
8865 }
8866 Py_INCREF(Py_None); resultobj = Py_None;
8867 return resultobj;
8868 fail:
8869 return NULL;
8870 }
8871
8872
8873 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8874 PyObject *resultobj;
8875 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8876 PyObject *arg2 = (PyObject *) 0 ;
8877 PyObject *arg3 = (PyObject *) 0 ;
8878 bool arg4 ;
8879 PyObject * obj0 = 0 ;
8880 PyObject * obj1 = 0 ;
8881 PyObject * obj2 = 0 ;
8882 PyObject * obj3 = 0 ;
8883 char *kwnames[] = {
8884 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8885 };
8886
8887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8890 arg2 = obj1;
8891 arg3 = obj2;
8892 arg4 = (bool) SWIG_AsBool(obj3);
8893 if (PyErr_Occurred()) SWIG_fail;
8894 {
8895 PyThreadState* __tstate = wxPyBeginAllowThreads();
8896 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8897
8898 wxPyEndAllowThreads(__tstate);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 }
8901 Py_INCREF(Py_None); resultobj = Py_None;
8902 return resultobj;
8903 fail:
8904 return NULL;
8905 }
8906
8907
8908 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
8909 PyObject *resultobj;
8910 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8911 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8912 bool arg3 = (bool) False ;
8913 bool result;
8914 PyObject * obj0 = 0 ;
8915 PyObject * obj1 = 0 ;
8916 PyObject * obj2 = 0 ;
8917 char *kwnames[] = {
8918 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8919 };
8920
8921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8924 if (obj1) {
8925 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8926 if (PyErr_Occurred()) SWIG_fail;
8927 }
8928 if (obj2) {
8929 arg3 = (bool) SWIG_AsBool(obj2);
8930 if (PyErr_Occurred()) SWIG_fail;
8931 }
8932 {
8933 PyThreadState* __tstate = wxPyBeginAllowThreads();
8934 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8935
8936 wxPyEndAllowThreads(__tstate);
8937 if (PyErr_Occurred()) SWIG_fail;
8938 }
8939 {
8940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8941 }
8942 return resultobj;
8943 fail:
8944 return NULL;
8945 }
8946
8947
8948 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
8949 PyObject *resultobj;
8950 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8951 wxString const &arg2_defvalue = wxPyEmptyString ;
8952 wxString *arg2 = (wxString *) &arg2_defvalue ;
8953 bool result;
8954 bool temp2 = False ;
8955 PyObject * obj0 = 0 ;
8956 PyObject * obj1 = 0 ;
8957 char *kwnames[] = {
8958 (char *) "self",(char *) "facename", NULL
8959 };
8960
8961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8964 if (obj1) {
8965 {
8966 arg2 = wxString_in_helper(obj1);
8967 if (arg2 == NULL) SWIG_fail;
8968 temp2 = True;
8969 }
8970 }
8971 {
8972 PyThreadState* __tstate = wxPyBeginAllowThreads();
8973 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8974
8975 wxPyEndAllowThreads(__tstate);
8976 if (PyErr_Occurred()) SWIG_fail;
8977 }
8978 {
8979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8980 }
8981 {
8982 if (temp2)
8983 delete arg2;
8984 }
8985 return resultobj;
8986 fail:
8987 {
8988 if (temp2)
8989 delete arg2;
8990 }
8991 return NULL;
8992 }
8993
8994
8995 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
8996 PyObject *resultobj;
8997 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8998 PyObject *result;
8999 PyObject * obj0 = 0 ;
9000 char *kwnames[] = {
9001 (char *) "self", NULL
9002 };
9003
9004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9007 {
9008 PyThreadState* __tstate = wxPyBeginAllowThreads();
9009 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9010
9011 wxPyEndAllowThreads(__tstate);
9012 if (PyErr_Occurred()) SWIG_fail;
9013 }
9014 resultobj = result;
9015 return resultobj;
9016 fail:
9017 return NULL;
9018 }
9019
9020
9021 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
9022 PyObject *resultobj;
9023 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9024 PyObject *result;
9025 PyObject * obj0 = 0 ;
9026 char *kwnames[] = {
9027 (char *) "self", NULL
9028 };
9029
9030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9033 {
9034 PyThreadState* __tstate = wxPyBeginAllowThreads();
9035 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9036
9037 wxPyEndAllowThreads(__tstate);
9038 if (PyErr_Occurred()) SWIG_fail;
9039 }
9040 resultobj = result;
9041 return resultobj;
9042 fail:
9043 return NULL;
9044 }
9045
9046
9047 static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
9048 PyObject *obj;
9049 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9050 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9051 Py_INCREF(obj);
9052 return Py_BuildValue((char *)"");
9053 }
9054 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
9055 PyObject *resultobj;
9056 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9057 int arg2 ;
9058 PyObject * obj0 = 0 ;
9059 PyObject * obj1 = 0 ;
9060 char *kwnames[] = {
9061 (char *) "self",(char *) "Language", NULL
9062 };
9063
9064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9067 arg2 = (int) SWIG_AsInt(obj1);
9068 if (PyErr_Occurred()) SWIG_fail;
9069 if (arg1) (arg1)->Language = arg2;
9070
9071 Py_INCREF(Py_None); resultobj = Py_None;
9072 return resultobj;
9073 fail:
9074 return NULL;
9075 }
9076
9077
9078 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
9079 PyObject *resultobj;
9080 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9081 int result;
9082 PyObject * obj0 = 0 ;
9083 char *kwnames[] = {
9084 (char *) "self", NULL
9085 };
9086
9087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9090 result = (int) ((arg1)->Language);
9091
9092 resultobj = SWIG_FromInt((int)result);
9093 return resultobj;
9094 fail:
9095 return NULL;
9096 }
9097
9098
9099 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
9100 PyObject *resultobj;
9101 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9102 wxString *arg2 = (wxString *) 0 ;
9103 bool temp2 = False ;
9104 PyObject * obj0 = 0 ;
9105 PyObject * obj1 = 0 ;
9106 char *kwnames[] = {
9107 (char *) "self",(char *) "CanonicalName", NULL
9108 };
9109
9110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9113 {
9114 arg2 = wxString_in_helper(obj1);
9115 if (arg2 == NULL) SWIG_fail;
9116 temp2 = True;
9117 }
9118 if (arg1) (arg1)->CanonicalName = *arg2;
9119
9120 Py_INCREF(Py_None); resultobj = Py_None;
9121 {
9122 if (temp2)
9123 delete arg2;
9124 }
9125 return resultobj;
9126 fail:
9127 {
9128 if (temp2)
9129 delete arg2;
9130 }
9131 return NULL;
9132 }
9133
9134
9135 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
9136 PyObject *resultobj;
9137 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9138 wxString *result;
9139 PyObject * obj0 = 0 ;
9140 char *kwnames[] = {
9141 (char *) "self", NULL
9142 };
9143
9144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9147 result = (wxString *)& ((arg1)->CanonicalName);
9148
9149 {
9150 #if wxUSE_UNICODE
9151 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9152 #else
9153 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9154 #endif
9155 }
9156 return resultobj;
9157 fail:
9158 return NULL;
9159 }
9160
9161
9162 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
9163 PyObject *resultobj;
9164 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9165 wxString *arg2 = (wxString *) 0 ;
9166 bool temp2 = False ;
9167 PyObject * obj0 = 0 ;
9168 PyObject * obj1 = 0 ;
9169 char *kwnames[] = {
9170 (char *) "self",(char *) "Description", NULL
9171 };
9172
9173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9176 {
9177 arg2 = wxString_in_helper(obj1);
9178 if (arg2 == NULL) SWIG_fail;
9179 temp2 = True;
9180 }
9181 if (arg1) (arg1)->Description = *arg2;
9182
9183 Py_INCREF(Py_None); resultobj = Py_None;
9184 {
9185 if (temp2)
9186 delete arg2;
9187 }
9188 return resultobj;
9189 fail:
9190 {
9191 if (temp2)
9192 delete arg2;
9193 }
9194 return NULL;
9195 }
9196
9197
9198 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
9199 PyObject *resultobj;
9200 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9201 wxString *result;
9202 PyObject * obj0 = 0 ;
9203 char *kwnames[] = {
9204 (char *) "self", NULL
9205 };
9206
9207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9210 result = (wxString *)& ((arg1)->Description);
9211
9212 {
9213 #if wxUSE_UNICODE
9214 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9215 #else
9216 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9217 #endif
9218 }
9219 return resultobj;
9220 fail:
9221 return NULL;
9222 }
9223
9224
9225 static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
9226 PyObject *obj;
9227 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9228 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9229 Py_INCREF(obj);
9230 return Py_BuildValue((char *)"");
9231 }
9232 static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9233 PyObject *resultobj;
9234 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9235 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9236 wxLocale *result;
9237 PyObject * obj0 = 0 ;
9238 PyObject * obj1 = 0 ;
9239 char *kwnames[] = {
9240 (char *) "language",(char *) "flags", NULL
9241 };
9242
9243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9244 if (obj0) {
9245 arg1 = (int) SWIG_AsInt(obj0);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 }
9248 if (obj1) {
9249 arg2 = (int) SWIG_AsInt(obj1);
9250 if (PyErr_Occurred()) SWIG_fail;
9251 }
9252 {
9253 PyThreadState* __tstate = wxPyBeginAllowThreads();
9254 result = (wxLocale *)new wxLocale(arg1,arg2);
9255
9256 wxPyEndAllowThreads(__tstate);
9257 if (PyErr_Occurred()) SWIG_fail;
9258 }
9259 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9260 return resultobj;
9261 fail:
9262 return NULL;
9263 }
9264
9265
9266 static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9267 PyObject *resultobj;
9268 wxLocale *arg1 = (wxLocale *) 0 ;
9269 PyObject * obj0 = 0 ;
9270 char *kwnames[] = {
9271 (char *) "self", NULL
9272 };
9273
9274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9277 {
9278 PyThreadState* __tstate = wxPyBeginAllowThreads();
9279 delete arg1;
9280
9281 wxPyEndAllowThreads(__tstate);
9282 if (PyErr_Occurred()) SWIG_fail;
9283 }
9284 Py_INCREF(Py_None); resultobj = Py_None;
9285 return resultobj;
9286 fail:
9287 return NULL;
9288 }
9289
9290
9291 static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
9292 PyObject *resultobj;
9293 wxLocale *arg1 = (wxLocale *) 0 ;
9294 wxString *arg2 = 0 ;
9295 wxString const &arg3_defvalue = wxPyEmptyString ;
9296 wxString *arg3 = (wxString *) &arg3_defvalue ;
9297 wxString const &arg4_defvalue = wxPyEmptyString ;
9298 wxString *arg4 = (wxString *) &arg4_defvalue ;
9299 bool arg5 = (bool) True ;
9300 bool arg6 = (bool) False ;
9301 bool result;
9302 bool temp2 = False ;
9303 bool temp3 = False ;
9304 bool temp4 = False ;
9305 PyObject * obj0 = 0 ;
9306 PyObject * obj1 = 0 ;
9307 PyObject * obj2 = 0 ;
9308 PyObject * obj3 = 0 ;
9309 PyObject * obj4 = 0 ;
9310 PyObject * obj5 = 0 ;
9311 char *kwnames[] = {
9312 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9313 };
9314
9315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9318 {
9319 arg2 = wxString_in_helper(obj1);
9320 if (arg2 == NULL) SWIG_fail;
9321 temp2 = True;
9322 }
9323 if (obj2) {
9324 {
9325 arg3 = wxString_in_helper(obj2);
9326 if (arg3 == NULL) SWIG_fail;
9327 temp3 = True;
9328 }
9329 }
9330 if (obj3) {
9331 {
9332 arg4 = wxString_in_helper(obj3);
9333 if (arg4 == NULL) SWIG_fail;
9334 temp4 = True;
9335 }
9336 }
9337 if (obj4) {
9338 arg5 = (bool) SWIG_AsBool(obj4);
9339 if (PyErr_Occurred()) SWIG_fail;
9340 }
9341 if (obj5) {
9342 arg6 = (bool) SWIG_AsBool(obj5);
9343 if (PyErr_Occurred()) SWIG_fail;
9344 }
9345 {
9346 PyThreadState* __tstate = wxPyBeginAllowThreads();
9347 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9348
9349 wxPyEndAllowThreads(__tstate);
9350 if (PyErr_Occurred()) SWIG_fail;
9351 }
9352 {
9353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9354 }
9355 {
9356 if (temp2)
9357 delete arg2;
9358 }
9359 {
9360 if (temp3)
9361 delete arg3;
9362 }
9363 {
9364 if (temp4)
9365 delete arg4;
9366 }
9367 return resultobj;
9368 fail:
9369 {
9370 if (temp2)
9371 delete arg2;
9372 }
9373 {
9374 if (temp3)
9375 delete arg3;
9376 }
9377 {
9378 if (temp4)
9379 delete arg4;
9380 }
9381 return NULL;
9382 }
9383
9384
9385 static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
9386 PyObject *resultobj;
9387 wxLocale *arg1 = (wxLocale *) 0 ;
9388 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9389 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9390 bool result;
9391 PyObject * obj0 = 0 ;
9392 PyObject * obj1 = 0 ;
9393 PyObject * obj2 = 0 ;
9394 char *kwnames[] = {
9395 (char *) "self",(char *) "language",(char *) "flags", NULL
9396 };
9397
9398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9401 if (obj1) {
9402 arg2 = (int) SWIG_AsInt(obj1);
9403 if (PyErr_Occurred()) SWIG_fail;
9404 }
9405 if (obj2) {
9406 arg3 = (int) SWIG_AsInt(obj2);
9407 if (PyErr_Occurred()) SWIG_fail;
9408 }
9409 {
9410 PyThreadState* __tstate = wxPyBeginAllowThreads();
9411 result = (bool)(arg1)->Init(arg2,arg3);
9412
9413 wxPyEndAllowThreads(__tstate);
9414 if (PyErr_Occurred()) SWIG_fail;
9415 }
9416 {
9417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9418 }
9419 return resultobj;
9420 fail:
9421 return NULL;
9422 }
9423
9424
9425 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9426 PyObject *resultobj;
9427 int result;
9428 char *kwnames[] = {
9429 NULL
9430 };
9431
9432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9433 {
9434 PyThreadState* __tstate = wxPyBeginAllowThreads();
9435 result = (int)wxLocale::GetSystemLanguage();
9436
9437 wxPyEndAllowThreads(__tstate);
9438 if (PyErr_Occurred()) SWIG_fail;
9439 }
9440 resultobj = SWIG_FromInt((int)result);
9441 return resultobj;
9442 fail:
9443 return NULL;
9444 }
9445
9446
9447 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9448 PyObject *resultobj;
9449 int result;
9450 char *kwnames[] = {
9451 NULL
9452 };
9453
9454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9455 {
9456 PyThreadState* __tstate = wxPyBeginAllowThreads();
9457 result = (int)wxLocale::GetSystemEncoding();
9458
9459 wxPyEndAllowThreads(__tstate);
9460 if (PyErr_Occurred()) SWIG_fail;
9461 }
9462 resultobj = SWIG_FromInt((int)result);
9463 return resultobj;
9464 fail:
9465 return NULL;
9466 }
9467
9468
9469 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
9470 PyObject *resultobj;
9471 wxString result;
9472 char *kwnames[] = {
9473 NULL
9474 };
9475
9476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9477 {
9478 PyThreadState* __tstate = wxPyBeginAllowThreads();
9479 result = wxLocale::GetSystemEncodingName();
9480
9481 wxPyEndAllowThreads(__tstate);
9482 if (PyErr_Occurred()) SWIG_fail;
9483 }
9484 {
9485 #if wxUSE_UNICODE
9486 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9487 #else
9488 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9489 #endif
9490 }
9491 return resultobj;
9492 fail:
9493 return NULL;
9494 }
9495
9496
9497 static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
9498 PyObject *resultobj;
9499 wxLocale *arg1 = (wxLocale *) 0 ;
9500 bool result;
9501 PyObject * obj0 = 0 ;
9502 char *kwnames[] = {
9503 (char *) "self", NULL
9504 };
9505
9506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",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 = (bool)((wxLocale const *)arg1)->IsOk();
9512
9513 wxPyEndAllowThreads(__tstate);
9514 if (PyErr_Occurred()) SWIG_fail;
9515 }
9516 {
9517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9518 }
9519 return resultobj;
9520 fail:
9521 return NULL;
9522 }
9523
9524
9525 static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
9526 PyObject *resultobj;
9527 wxLocale *arg1 = (wxLocale *) 0 ;
9528 wxString result;
9529 PyObject * obj0 = 0 ;
9530 char *kwnames[] = {
9531 (char *) "self", NULL
9532 };
9533
9534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9537 {
9538 PyThreadState* __tstate = wxPyBeginAllowThreads();
9539 result = ((wxLocale const *)arg1)->GetLocale();
9540
9541 wxPyEndAllowThreads(__tstate);
9542 if (PyErr_Occurred()) SWIG_fail;
9543 }
9544 {
9545 #if wxUSE_UNICODE
9546 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9547 #else
9548 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9549 #endif
9550 }
9551 return resultobj;
9552 fail:
9553 return NULL;
9554 }
9555
9556
9557 static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9558 PyObject *resultobj;
9559 wxLocale *arg1 = (wxLocale *) 0 ;
9560 int result;
9561 PyObject * obj0 = 0 ;
9562 char *kwnames[] = {
9563 (char *) "self", NULL
9564 };
9565
9566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9569 {
9570 PyThreadState* __tstate = wxPyBeginAllowThreads();
9571 result = (int)((wxLocale const *)arg1)->GetLanguage();
9572
9573 wxPyEndAllowThreads(__tstate);
9574 if (PyErr_Occurred()) SWIG_fail;
9575 }
9576 resultobj = SWIG_FromInt((int)result);
9577 return resultobj;
9578 fail:
9579 return NULL;
9580 }
9581
9582
9583 static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
9584 PyObject *resultobj;
9585 wxLocale *arg1 = (wxLocale *) 0 ;
9586 wxString result;
9587 PyObject * obj0 = 0 ;
9588 char *kwnames[] = {
9589 (char *) "self", NULL
9590 };
9591
9592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9595 {
9596 PyThreadState* __tstate = wxPyBeginAllowThreads();
9597 result = ((wxLocale const *)arg1)->GetSysName();
9598
9599 wxPyEndAllowThreads(__tstate);
9600 if (PyErr_Occurred()) SWIG_fail;
9601 }
9602 {
9603 #if wxUSE_UNICODE
9604 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9605 #else
9606 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9607 #endif
9608 }
9609 return resultobj;
9610 fail:
9611 return NULL;
9612 }
9613
9614
9615 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
9616 PyObject *resultobj;
9617 wxLocale *arg1 = (wxLocale *) 0 ;
9618 wxString result;
9619 PyObject * obj0 = 0 ;
9620 char *kwnames[] = {
9621 (char *) "self", NULL
9622 };
9623
9624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9627 {
9628 PyThreadState* __tstate = wxPyBeginAllowThreads();
9629 result = ((wxLocale const *)arg1)->GetCanonicalName();
9630
9631 wxPyEndAllowThreads(__tstate);
9632 if (PyErr_Occurred()) SWIG_fail;
9633 }
9634 {
9635 #if wxUSE_UNICODE
9636 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9637 #else
9638 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9639 #endif
9640 }
9641 return resultobj;
9642 fail:
9643 return NULL;
9644 }
9645
9646
9647 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
9648 PyObject *resultobj;
9649 wxString *arg1 = 0 ;
9650 bool temp1 = False ;
9651 PyObject * obj0 = 0 ;
9652 char *kwnames[] = {
9653 (char *) "prefix", NULL
9654 };
9655
9656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9657 {
9658 arg1 = wxString_in_helper(obj0);
9659 if (arg1 == NULL) SWIG_fail;
9660 temp1 = True;
9661 }
9662 {
9663 PyThreadState* __tstate = wxPyBeginAllowThreads();
9664 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9665
9666 wxPyEndAllowThreads(__tstate);
9667 if (PyErr_Occurred()) SWIG_fail;
9668 }
9669 Py_INCREF(Py_None); resultobj = Py_None;
9670 {
9671 if (temp1)
9672 delete arg1;
9673 }
9674 return resultobj;
9675 fail:
9676 {
9677 if (temp1)
9678 delete arg1;
9679 }
9680 return NULL;
9681 }
9682
9683
9684 static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
9685 PyObject *resultobj;
9686 wxLocale *arg1 = (wxLocale *) 0 ;
9687 wxString *arg2 = 0 ;
9688 bool result;
9689 bool temp2 = False ;
9690 PyObject * obj0 = 0 ;
9691 PyObject * obj1 = 0 ;
9692 char *kwnames[] = {
9693 (char *) "self",(char *) "szDomain", NULL
9694 };
9695
9696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9699 {
9700 arg2 = wxString_in_helper(obj1);
9701 if (arg2 == NULL) SWIG_fail;
9702 temp2 = True;
9703 }
9704 {
9705 PyThreadState* __tstate = wxPyBeginAllowThreads();
9706 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9707
9708 wxPyEndAllowThreads(__tstate);
9709 if (PyErr_Occurred()) SWIG_fail;
9710 }
9711 {
9712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9713 }
9714 {
9715 if (temp2)
9716 delete arg2;
9717 }
9718 return resultobj;
9719 fail:
9720 {
9721 if (temp2)
9722 delete arg2;
9723 }
9724 return NULL;
9725 }
9726
9727
9728 static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
9729 PyObject *resultobj;
9730 wxLocale *arg1 = (wxLocale *) 0 ;
9731 wxString *arg2 = 0 ;
9732 bool result;
9733 bool temp2 = False ;
9734 PyObject * obj0 = 0 ;
9735 PyObject * obj1 = 0 ;
9736 char *kwnames[] = {
9737 (char *) "self",(char *) "szDomain", NULL
9738 };
9739
9740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9743 {
9744 arg2 = wxString_in_helper(obj1);
9745 if (arg2 == NULL) SWIG_fail;
9746 temp2 = True;
9747 }
9748 {
9749 PyThreadState* __tstate = wxPyBeginAllowThreads();
9750 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9751
9752 wxPyEndAllowThreads(__tstate);
9753 if (PyErr_Occurred()) SWIG_fail;
9754 }
9755 {
9756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9757 }
9758 {
9759 if (temp2)
9760 delete arg2;
9761 }
9762 return resultobj;
9763 fail:
9764 {
9765 if (temp2)
9766 delete arg2;
9767 }
9768 return NULL;
9769 }
9770
9771
9772 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9773 PyObject *resultobj;
9774 int arg1 ;
9775 wxLanguageInfo *result;
9776 PyObject * obj0 = 0 ;
9777 char *kwnames[] = {
9778 (char *) "lang", NULL
9779 };
9780
9781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9782 arg1 = (int) SWIG_AsInt(obj0);
9783 if (PyErr_Occurred()) SWIG_fail;
9784 {
9785 PyThreadState* __tstate = wxPyBeginAllowThreads();
9786 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9787
9788 wxPyEndAllowThreads(__tstate);
9789 if (PyErr_Occurred()) SWIG_fail;
9790 }
9791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9792 return resultobj;
9793 fail:
9794 return NULL;
9795 }
9796
9797
9798 static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
9799 PyObject *resultobj;
9800 int arg1 ;
9801 wxString result;
9802 PyObject * obj0 = 0 ;
9803 char *kwnames[] = {
9804 (char *) "lang", NULL
9805 };
9806
9807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9808 arg1 = (int) SWIG_AsInt(obj0);
9809 if (PyErr_Occurred()) SWIG_fail;
9810 {
9811 PyThreadState* __tstate = wxPyBeginAllowThreads();
9812 result = wxLocale::GetLanguageName(arg1);
9813
9814 wxPyEndAllowThreads(__tstate);
9815 if (PyErr_Occurred()) SWIG_fail;
9816 }
9817 {
9818 #if wxUSE_UNICODE
9819 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9820 #else
9821 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9822 #endif
9823 }
9824 return resultobj;
9825 fail:
9826 return NULL;
9827 }
9828
9829
9830 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9831 PyObject *resultobj;
9832 wxString *arg1 = 0 ;
9833 wxLanguageInfo *result;
9834 bool temp1 = False ;
9835 PyObject * obj0 = 0 ;
9836 char *kwnames[] = {
9837 (char *) "locale", NULL
9838 };
9839
9840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9841 {
9842 arg1 = wxString_in_helper(obj0);
9843 if (arg1 == NULL) SWIG_fail;
9844 temp1 = True;
9845 }
9846 {
9847 PyThreadState* __tstate = wxPyBeginAllowThreads();
9848 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9849
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9854 {
9855 if (temp1)
9856 delete arg1;
9857 }
9858 return resultobj;
9859 fail:
9860 {
9861 if (temp1)
9862 delete arg1;
9863 }
9864 return NULL;
9865 }
9866
9867
9868 static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9869 PyObject *resultobj;
9870 wxLanguageInfo *arg1 = 0 ;
9871 PyObject * obj0 = 0 ;
9872 char *kwnames[] = {
9873 (char *) "info", NULL
9874 };
9875
9876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9878 SWIG_POINTER_EXCEPTION | 0)) == -1)
9879 SWIG_fail;
9880 if (arg1 == NULL) {
9881 PyErr_SetString(PyExc_TypeError,"null reference");
9882 SWIG_fail;
9883 }
9884 {
9885 PyThreadState* __tstate = wxPyBeginAllowThreads();
9886 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9887
9888 wxPyEndAllowThreads(__tstate);
9889 if (PyErr_Occurred()) SWIG_fail;
9890 }
9891 Py_INCREF(Py_None); resultobj = Py_None;
9892 return resultobj;
9893 fail:
9894 return NULL;
9895 }
9896
9897
9898 static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
9899 PyObject *resultobj;
9900 wxLocale *arg1 = (wxLocale *) 0 ;
9901 wxString *arg2 = 0 ;
9902 wxString const &arg3_defvalue = wxPyEmptyString ;
9903 wxString *arg3 = (wxString *) &arg3_defvalue ;
9904 wxString result;
9905 bool temp2 = False ;
9906 bool temp3 = False ;
9907 PyObject * obj0 = 0 ;
9908 PyObject * obj1 = 0 ;
9909 PyObject * obj2 = 0 ;
9910 char *kwnames[] = {
9911 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9912 };
9913
9914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9917 {
9918 arg2 = wxString_in_helper(obj1);
9919 if (arg2 == NULL) SWIG_fail;
9920 temp2 = True;
9921 }
9922 if (obj2) {
9923 {
9924 arg3 = wxString_in_helper(obj2);
9925 if (arg3 == NULL) SWIG_fail;
9926 temp3 = True;
9927 }
9928 }
9929 {
9930 PyThreadState* __tstate = wxPyBeginAllowThreads();
9931 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9932
9933 wxPyEndAllowThreads(__tstate);
9934 if (PyErr_Occurred()) SWIG_fail;
9935 }
9936 {
9937 #if wxUSE_UNICODE
9938 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9939 #else
9940 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9941 #endif
9942 }
9943 {
9944 if (temp2)
9945 delete arg2;
9946 }
9947 {
9948 if (temp3)
9949 delete arg3;
9950 }
9951 return resultobj;
9952 fail:
9953 {
9954 if (temp2)
9955 delete arg2;
9956 }
9957 {
9958 if (temp3)
9959 delete arg3;
9960 }
9961 return NULL;
9962 }
9963
9964
9965 static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
9966 PyObject *resultobj;
9967 wxLocale *arg1 = (wxLocale *) 0 ;
9968 wxString *result;
9969 PyObject * obj0 = 0 ;
9970 char *kwnames[] = {
9971 (char *) "self", NULL
9972 };
9973
9974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9977 {
9978 PyThreadState* __tstate = wxPyBeginAllowThreads();
9979 {
9980 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9981 result = (wxString *) &_result_ref;
9982 }
9983
9984 wxPyEndAllowThreads(__tstate);
9985 if (PyErr_Occurred()) SWIG_fail;
9986 }
9987 {
9988 #if wxUSE_UNICODE
9989 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9990 #else
9991 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9992 #endif
9993 }
9994 return resultobj;
9995 fail:
9996 return NULL;
9997 }
9998
9999
10000 static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
10001 PyObject *obj;
10002 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10003 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10004 Py_INCREF(obj);
10005 return Py_BuildValue((char *)"");
10006 }
10007 static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
10008 PyObject *resultobj;
10009 wxLocale *result;
10010 char *kwnames[] = {
10011 NULL
10012 };
10013
10014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10015 {
10016 PyThreadState* __tstate = wxPyBeginAllowThreads();
10017 result = (wxLocale *)wxGetLocale();
10018
10019 wxPyEndAllowThreads(__tstate);
10020 if (PyErr_Occurred()) SWIG_fail;
10021 }
10022 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10023 return resultobj;
10024 fail:
10025 return NULL;
10026 }
10027
10028
10029 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
10030 PyObject *resultobj;
10031 wxString *arg1 = 0 ;
10032 wxString result;
10033 bool temp1 = False ;
10034 PyObject * obj0 = 0 ;
10035
10036 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10037 {
10038 arg1 = wxString_in_helper(obj0);
10039 if (arg1 == NULL) SWIG_fail;
10040 temp1 = True;
10041 }
10042 {
10043 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044 result = wxGetTranslation((wxString const &)*arg1);
10045
10046 wxPyEndAllowThreads(__tstate);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 }
10049 {
10050 #if wxUSE_UNICODE
10051 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10052 #else
10053 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10054 #endif
10055 }
10056 {
10057 if (temp1)
10058 delete arg1;
10059 }
10060 return resultobj;
10061 fail:
10062 {
10063 if (temp1)
10064 delete arg1;
10065 }
10066 return NULL;
10067 }
10068
10069
10070 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
10071 PyObject *resultobj;
10072 wxString *arg1 = 0 ;
10073 wxString *arg2 = 0 ;
10074 size_t arg3 ;
10075 wxString result;
10076 bool temp1 = False ;
10077 bool temp2 = False ;
10078 PyObject * obj0 = 0 ;
10079 PyObject * obj1 = 0 ;
10080 PyObject * obj2 = 0 ;
10081
10082 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10083 {
10084 arg1 = wxString_in_helper(obj0);
10085 if (arg1 == NULL) SWIG_fail;
10086 temp1 = True;
10087 }
10088 {
10089 arg2 = wxString_in_helper(obj1);
10090 if (arg2 == NULL) SWIG_fail;
10091 temp2 = True;
10092 }
10093 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10094 if (PyErr_Occurred()) SWIG_fail;
10095 {
10096 PyThreadState* __tstate = wxPyBeginAllowThreads();
10097 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10098
10099 wxPyEndAllowThreads(__tstate);
10100 if (PyErr_Occurred()) SWIG_fail;
10101 }
10102 {
10103 #if wxUSE_UNICODE
10104 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10105 #else
10106 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10107 #endif
10108 }
10109 {
10110 if (temp1)
10111 delete arg1;
10112 }
10113 {
10114 if (temp2)
10115 delete arg2;
10116 }
10117 return resultobj;
10118 fail:
10119 {
10120 if (temp1)
10121 delete arg1;
10122 }
10123 {
10124 if (temp2)
10125 delete arg2;
10126 }
10127 return NULL;
10128 }
10129
10130
10131 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10132 int argc;
10133 PyObject *argv[4];
10134 int ii;
10135
10136 argc = PyObject_Length(args);
10137 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10138 argv[ii] = PyTuple_GetItem(args,ii);
10139 }
10140 if (argc == 1) {
10141 int _v;
10142 {
10143 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10144 }
10145 if (_v) {
10146 return _wrap_GetTranslation__SWIG_0(self,args);
10147 }
10148 }
10149 if (argc == 3) {
10150 int _v;
10151 {
10152 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10153 }
10154 if (_v) {
10155 {
10156 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10157 }
10158 if (_v) {
10159 _v = SWIG_CheckUnsignedLong(argv[2]);
10160 if (_v) {
10161 return _wrap_GetTranslation__SWIG_1(self,args);
10162 }
10163 }
10164 }
10165 }
10166
10167 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10168 return NULL;
10169 }
10170
10171
10172 static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
10173 PyObject *resultobj;
10174 wxEncodingConverter *result;
10175 char *kwnames[] = {
10176 NULL
10177 };
10178
10179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10180 {
10181 PyThreadState* __tstate = wxPyBeginAllowThreads();
10182 result = (wxEncodingConverter *)new wxEncodingConverter();
10183
10184 wxPyEndAllowThreads(__tstate);
10185 if (PyErr_Occurred()) SWIG_fail;
10186 }
10187 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10188 return resultobj;
10189 fail:
10190 return NULL;
10191 }
10192
10193
10194 static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
10195 PyObject *resultobj;
10196 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10197 PyObject * obj0 = 0 ;
10198 char *kwnames[] = {
10199 (char *) "self", NULL
10200 };
10201
10202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10205 {
10206 PyThreadState* __tstate = wxPyBeginAllowThreads();
10207 delete arg1;
10208
10209 wxPyEndAllowThreads(__tstate);
10210 if (PyErr_Occurred()) SWIG_fail;
10211 }
10212 Py_INCREF(Py_None); resultobj = Py_None;
10213 return resultobj;
10214 fail:
10215 return NULL;
10216 }
10217
10218
10219 static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
10220 PyObject *resultobj;
10221 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10222 int arg2 ;
10223 int arg3 ;
10224 int arg4 = (int) wxCONVERT_STRICT ;
10225 bool result;
10226 PyObject * obj0 = 0 ;
10227 PyObject * obj1 = 0 ;
10228 PyObject * obj2 = 0 ;
10229 PyObject * obj3 = 0 ;
10230 char *kwnames[] = {
10231 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10232 };
10233
10234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10237 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10238 if (PyErr_Occurred()) SWIG_fail;
10239 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10240 if (PyErr_Occurred()) SWIG_fail;
10241 if (obj3) {
10242 arg4 = (int) SWIG_AsInt(obj3);
10243 if (PyErr_Occurred()) SWIG_fail;
10244 }
10245 {
10246 PyThreadState* __tstate = wxPyBeginAllowThreads();
10247 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10248
10249 wxPyEndAllowThreads(__tstate);
10250 if (PyErr_Occurred()) SWIG_fail;
10251 }
10252 {
10253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10254 }
10255 return resultobj;
10256 fail:
10257 return NULL;
10258 }
10259
10260
10261 static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
10262 PyObject *resultobj;
10263 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10264 wxString *arg2 = 0 ;
10265 wxString result;
10266 bool temp2 = False ;
10267 PyObject * obj0 = 0 ;
10268 PyObject * obj1 = 0 ;
10269 char *kwnames[] = {
10270 (char *) "self",(char *) "input", NULL
10271 };
10272
10273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10276 {
10277 arg2 = wxString_in_helper(obj1);
10278 if (arg2 == NULL) SWIG_fail;
10279 temp2 = True;
10280 }
10281 {
10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
10283 result = (arg1)->Convert((wxString const &)*arg2);
10284
10285 wxPyEndAllowThreads(__tstate);
10286 if (PyErr_Occurred()) SWIG_fail;
10287 }
10288 {
10289 #if wxUSE_UNICODE
10290 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10291 #else
10292 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10293 #endif
10294 }
10295 {
10296 if (temp2)
10297 delete arg2;
10298 }
10299 return resultobj;
10300 fail:
10301 {
10302 if (temp2)
10303 delete arg2;
10304 }
10305 return NULL;
10306 }
10307
10308
10309 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10310 PyObject *resultobj;
10311 int arg1 ;
10312 int arg2 = (int) wxPLATFORM_CURRENT ;
10313 wxFontEncodingArray result;
10314 PyObject * obj0 = 0 ;
10315 PyObject * obj1 = 0 ;
10316 char *kwnames[] = {
10317 (char *) "enc",(char *) "platform", NULL
10318 };
10319
10320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10321 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 if (obj1) {
10324 arg2 = (int) SWIG_AsInt(obj1);
10325 if (PyErr_Occurred()) SWIG_fail;
10326 }
10327 {
10328 PyThreadState* __tstate = wxPyBeginAllowThreads();
10329 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10330
10331 wxPyEndAllowThreads(__tstate);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
10334 {
10335 resultobj = PyList_New(0);
10336 for (size_t i=0; i < (&result)->GetCount(); i++) {
10337 PyObject* number = PyInt_FromLong((&result)->Item(i));
10338 PyList_Append(resultobj, number);
10339 Py_DECREF(number);
10340 }
10341 }
10342 return resultobj;
10343 fail:
10344 return NULL;
10345 }
10346
10347
10348 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10349 PyObject *resultobj;
10350 int arg1 ;
10351 wxFontEncodingArray result;
10352 PyObject * obj0 = 0 ;
10353 char *kwnames[] = {
10354 (char *) "enc", NULL
10355 };
10356
10357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10358 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10359 if (PyErr_Occurred()) SWIG_fail;
10360 {
10361 PyThreadState* __tstate = wxPyBeginAllowThreads();
10362 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10363
10364 wxPyEndAllowThreads(__tstate);
10365 if (PyErr_Occurred()) SWIG_fail;
10366 }
10367 {
10368 resultobj = PyList_New(0);
10369 for (size_t i=0; i < (&result)->GetCount(); i++) {
10370 PyObject* number = PyInt_FromLong((&result)->Item(i));
10371 PyList_Append(resultobj, number);
10372 Py_DECREF(number);
10373 }
10374 }
10375 return resultobj;
10376 fail:
10377 return NULL;
10378 }
10379
10380
10381 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
10382 PyObject *resultobj;
10383 int arg1 ;
10384 int arg2 ;
10385 bool result;
10386 PyObject * obj0 = 0 ;
10387 PyObject * obj1 = 0 ;
10388 char *kwnames[] = {
10389 (char *) "encIn",(char *) "encOut", NULL
10390 };
10391
10392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10393 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10394 if (PyErr_Occurred()) SWIG_fail;
10395 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10396 if (PyErr_Occurred()) SWIG_fail;
10397 {
10398 PyThreadState* __tstate = wxPyBeginAllowThreads();
10399 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10400
10401 wxPyEndAllowThreads(__tstate);
10402 if (PyErr_Occurred()) SWIG_fail;
10403 }
10404 {
10405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10406 }
10407 return resultobj;
10408 fail:
10409 return NULL;
10410 }
10411
10412
10413 static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
10414 PyObject *obj;
10415 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10416 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10417 Py_INCREF(obj);
10418 return Py_BuildValue((char *)"");
10419 }
10420 static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
10421 PyObject *resultobj;
10422 wxDC *arg1 = (wxDC *) 0 ;
10423 PyObject * obj0 = 0 ;
10424 char *kwnames[] = {
10425 (char *) "self", NULL
10426 };
10427
10428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10431 {
10432 PyThreadState* __tstate = wxPyBeginAllowThreads();
10433 delete arg1;
10434
10435 wxPyEndAllowThreads(__tstate);
10436 if (PyErr_Occurred()) SWIG_fail;
10437 }
10438 Py_INCREF(Py_None); resultobj = Py_None;
10439 return resultobj;
10440 fail:
10441 return NULL;
10442 }
10443
10444
10445 static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10446 PyObject *resultobj;
10447 wxDC *arg1 = (wxDC *) 0 ;
10448 PyObject * obj0 = 0 ;
10449 char *kwnames[] = {
10450 (char *) "self", NULL
10451 };
10452
10453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10456 {
10457 PyThreadState* __tstate = wxPyBeginAllowThreads();
10458 (arg1)->BeginDrawing();
10459
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 Py_INCREF(Py_None); resultobj = Py_None;
10464 return resultobj;
10465 fail:
10466 return NULL;
10467 }
10468
10469
10470 static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10471 PyObject *resultobj;
10472 wxDC *arg1 = (wxDC *) 0 ;
10473 PyObject * obj0 = 0 ;
10474 char *kwnames[] = {
10475 (char *) "self", NULL
10476 };
10477
10478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10481 {
10482 PyThreadState* __tstate = wxPyBeginAllowThreads();
10483 (arg1)->EndDrawing();
10484
10485 wxPyEndAllowThreads(__tstate);
10486 if (PyErr_Occurred()) SWIG_fail;
10487 }
10488 Py_INCREF(Py_None); resultobj = Py_None;
10489 return resultobj;
10490 fail:
10491 return NULL;
10492 }
10493
10494
10495 static PyObject *_wrap_DC_FloodFillXY(PyObject *, PyObject *args, PyObject *kwargs) {
10496 PyObject *resultobj;
10497 wxDC *arg1 = (wxDC *) 0 ;
10498 int arg2 ;
10499 int arg3 ;
10500 wxColour *arg4 = 0 ;
10501 int arg5 = (int) wxFLOOD_SURFACE ;
10502 bool result;
10503 wxColour temp4 ;
10504 PyObject * obj0 = 0 ;
10505 PyObject * obj1 = 0 ;
10506 PyObject * obj2 = 0 ;
10507 PyObject * obj3 = 0 ;
10508 PyObject * obj4 = 0 ;
10509 char *kwnames[] = {
10510 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10511 };
10512
10513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10516 arg2 = (int) SWIG_AsInt(obj1);
10517 if (PyErr_Occurred()) SWIG_fail;
10518 arg3 = (int) SWIG_AsInt(obj2);
10519 if (PyErr_Occurred()) SWIG_fail;
10520 {
10521 arg4 = &temp4;
10522 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10523 }
10524 if (obj4) {
10525 arg5 = (int) SWIG_AsInt(obj4);
10526 if (PyErr_Occurred()) SWIG_fail;
10527 }
10528 {
10529 PyThreadState* __tstate = wxPyBeginAllowThreads();
10530 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10531
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 {
10536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10537 }
10538 return resultobj;
10539 fail:
10540 return NULL;
10541 }
10542
10543
10544 static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
10545 PyObject *resultobj;
10546 wxDC *arg1 = (wxDC *) 0 ;
10547 wxPoint *arg2 = 0 ;
10548 wxColour *arg3 = 0 ;
10549 int arg4 = (int) wxFLOOD_SURFACE ;
10550 bool result;
10551 wxPoint temp2 ;
10552 wxColour temp3 ;
10553 PyObject * obj0 = 0 ;
10554 PyObject * obj1 = 0 ;
10555 PyObject * obj2 = 0 ;
10556 PyObject * obj3 = 0 ;
10557 char *kwnames[] = {
10558 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10559 };
10560
10561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10564 {
10565 arg2 = &temp2;
10566 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10567 }
10568 {
10569 arg3 = &temp3;
10570 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10571 }
10572 if (obj3) {
10573 arg4 = (int) SWIG_AsInt(obj3);
10574 if (PyErr_Occurred()) SWIG_fail;
10575 }
10576 {
10577 PyThreadState* __tstate = wxPyBeginAllowThreads();
10578 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10579
10580 wxPyEndAllowThreads(__tstate);
10581 if (PyErr_Occurred()) SWIG_fail;
10582 }
10583 {
10584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10585 }
10586 return resultobj;
10587 fail:
10588 return NULL;
10589 }
10590
10591
10592 static PyObject *_wrap_DC_GetPixelXY(PyObject *, PyObject *args, PyObject *kwargs) {
10593 PyObject *resultobj;
10594 wxDC *arg1 = (wxDC *) 0 ;
10595 int arg2 ;
10596 int arg3 ;
10597 wxColour result;
10598 PyObject * obj0 = 0 ;
10599 PyObject * obj1 = 0 ;
10600 PyObject * obj2 = 0 ;
10601 char *kwnames[] = {
10602 (char *) "self",(char *) "x",(char *) "y", NULL
10603 };
10604
10605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10608 arg2 = (int) SWIG_AsInt(obj1);
10609 if (PyErr_Occurred()) SWIG_fail;
10610 arg3 = (int) SWIG_AsInt(obj2);
10611 if (PyErr_Occurred()) SWIG_fail;
10612 {
10613 PyThreadState* __tstate = wxPyBeginAllowThreads();
10614 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10615
10616 wxPyEndAllowThreads(__tstate);
10617 if (PyErr_Occurred()) SWIG_fail;
10618 }
10619 {
10620 wxColour * resultptr;
10621 resultptr = new wxColour((wxColour &) result);
10622 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10623 }
10624 return resultobj;
10625 fail:
10626 return NULL;
10627 }
10628
10629
10630 static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
10631 PyObject *resultobj;
10632 wxDC *arg1 = (wxDC *) 0 ;
10633 wxPoint *arg2 = 0 ;
10634 wxColour result;
10635 wxPoint temp2 ;
10636 PyObject * obj0 = 0 ;
10637 PyObject * obj1 = 0 ;
10638 char *kwnames[] = {
10639 (char *) "self",(char *) "pt", NULL
10640 };
10641
10642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10645 {
10646 arg2 = &temp2;
10647 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10648 }
10649 {
10650 PyThreadState* __tstate = wxPyBeginAllowThreads();
10651 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10652
10653 wxPyEndAllowThreads(__tstate);
10654 if (PyErr_Occurred()) SWIG_fail;
10655 }
10656 {
10657 wxColour * resultptr;
10658 resultptr = new wxColour((wxColour &) result);
10659 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10660 }
10661 return resultobj;
10662 fail:
10663 return NULL;
10664 }
10665
10666
10667 static PyObject *_wrap_DC_DrawLineXY(PyObject *, PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj;
10669 wxDC *arg1 = (wxDC *) 0 ;
10670 int arg2 ;
10671 int arg3 ;
10672 int arg4 ;
10673 int arg5 ;
10674 PyObject * obj0 = 0 ;
10675 PyObject * obj1 = 0 ;
10676 PyObject * obj2 = 0 ;
10677 PyObject * obj3 = 0 ;
10678 PyObject * obj4 = 0 ;
10679 char *kwnames[] = {
10680 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10681 };
10682
10683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10686 arg2 = (int) SWIG_AsInt(obj1);
10687 if (PyErr_Occurred()) SWIG_fail;
10688 arg3 = (int) SWIG_AsInt(obj2);
10689 if (PyErr_Occurred()) SWIG_fail;
10690 arg4 = (int) SWIG_AsInt(obj3);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 arg5 = (int) SWIG_AsInt(obj4);
10693 if (PyErr_Occurred()) SWIG_fail;
10694 {
10695 PyThreadState* __tstate = wxPyBeginAllowThreads();
10696 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10697
10698 wxPyEndAllowThreads(__tstate);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 }
10701 Py_INCREF(Py_None); resultobj = Py_None;
10702 return resultobj;
10703 fail:
10704 return NULL;
10705 }
10706
10707
10708 static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
10709 PyObject *resultobj;
10710 wxDC *arg1 = (wxDC *) 0 ;
10711 wxPoint *arg2 = 0 ;
10712 wxPoint *arg3 = 0 ;
10713 wxPoint temp2 ;
10714 wxPoint temp3 ;
10715 PyObject * obj0 = 0 ;
10716 PyObject * obj1 = 0 ;
10717 PyObject * obj2 = 0 ;
10718 char *kwnames[] = {
10719 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10720 };
10721
10722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10725 {
10726 arg2 = &temp2;
10727 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10728 }
10729 {
10730 arg3 = &temp3;
10731 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10732 }
10733 {
10734 PyThreadState* __tstate = wxPyBeginAllowThreads();
10735 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10736
10737 wxPyEndAllowThreads(__tstate);
10738 if (PyErr_Occurred()) SWIG_fail;
10739 }
10740 Py_INCREF(Py_None); resultobj = Py_None;
10741 return resultobj;
10742 fail:
10743 return NULL;
10744 }
10745
10746
10747 static PyObject *_wrap_DC_CrossHairXY(PyObject *, PyObject *args, PyObject *kwargs) {
10748 PyObject *resultobj;
10749 wxDC *arg1 = (wxDC *) 0 ;
10750 int arg2 ;
10751 int arg3 ;
10752 PyObject * obj0 = 0 ;
10753 PyObject * obj1 = 0 ;
10754 PyObject * obj2 = 0 ;
10755 char *kwnames[] = {
10756 (char *) "self",(char *) "x",(char *) "y", NULL
10757 };
10758
10759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10762 arg2 = (int) SWIG_AsInt(obj1);
10763 if (PyErr_Occurred()) SWIG_fail;
10764 arg3 = (int) SWIG_AsInt(obj2);
10765 if (PyErr_Occurred()) SWIG_fail;
10766 {
10767 PyThreadState* __tstate = wxPyBeginAllowThreads();
10768 (arg1)->CrossHair(arg2,arg3);
10769
10770 wxPyEndAllowThreads(__tstate);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 Py_INCREF(Py_None); resultobj = Py_None;
10774 return resultobj;
10775 fail:
10776 return NULL;
10777 }
10778
10779
10780 static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
10781 PyObject *resultobj;
10782 wxDC *arg1 = (wxDC *) 0 ;
10783 wxPoint *arg2 = 0 ;
10784 wxPoint temp2 ;
10785 PyObject * obj0 = 0 ;
10786 PyObject * obj1 = 0 ;
10787 char *kwnames[] = {
10788 (char *) "self",(char *) "pt", NULL
10789 };
10790
10791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10794 {
10795 arg2 = &temp2;
10796 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10797 }
10798 {
10799 PyThreadState* __tstate = wxPyBeginAllowThreads();
10800 (arg1)->CrossHair((wxPoint const &)*arg2);
10801
10802 wxPyEndAllowThreads(__tstate);
10803 if (PyErr_Occurred()) SWIG_fail;
10804 }
10805 Py_INCREF(Py_None); resultobj = Py_None;
10806 return resultobj;
10807 fail:
10808 return NULL;
10809 }
10810
10811
10812 static PyObject *_wrap_DC_DrawArcXY(PyObject *, PyObject *args, PyObject *kwargs) {
10813 PyObject *resultobj;
10814 wxDC *arg1 = (wxDC *) 0 ;
10815 int arg2 ;
10816 int arg3 ;
10817 int arg4 ;
10818 int arg5 ;
10819 int arg6 ;
10820 int arg7 ;
10821 PyObject * obj0 = 0 ;
10822 PyObject * obj1 = 0 ;
10823 PyObject * obj2 = 0 ;
10824 PyObject * obj3 = 0 ;
10825 PyObject * obj4 = 0 ;
10826 PyObject * obj5 = 0 ;
10827 PyObject * obj6 = 0 ;
10828 char *kwnames[] = {
10829 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10830 };
10831
10832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10835 arg2 = (int) SWIG_AsInt(obj1);
10836 if (PyErr_Occurred()) SWIG_fail;
10837 arg3 = (int) SWIG_AsInt(obj2);
10838 if (PyErr_Occurred()) SWIG_fail;
10839 arg4 = (int) SWIG_AsInt(obj3);
10840 if (PyErr_Occurred()) SWIG_fail;
10841 arg5 = (int) SWIG_AsInt(obj4);
10842 if (PyErr_Occurred()) SWIG_fail;
10843 arg6 = (int) SWIG_AsInt(obj5);
10844 if (PyErr_Occurred()) SWIG_fail;
10845 arg7 = (int) SWIG_AsInt(obj6);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 {
10848 PyThreadState* __tstate = wxPyBeginAllowThreads();
10849 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10850
10851 wxPyEndAllowThreads(__tstate);
10852 if (PyErr_Occurred()) SWIG_fail;
10853 }
10854 Py_INCREF(Py_None); resultobj = Py_None;
10855 return resultobj;
10856 fail:
10857 return NULL;
10858 }
10859
10860
10861 static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
10862 PyObject *resultobj;
10863 wxDC *arg1 = (wxDC *) 0 ;
10864 wxPoint *arg2 = 0 ;
10865 wxPoint *arg3 = 0 ;
10866 wxPoint *arg4 = 0 ;
10867 wxPoint temp2 ;
10868 wxPoint temp3 ;
10869 wxPoint temp4 ;
10870 PyObject * obj0 = 0 ;
10871 PyObject * obj1 = 0 ;
10872 PyObject * obj2 = 0 ;
10873 PyObject * obj3 = 0 ;
10874 char *kwnames[] = {
10875 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10876 };
10877
10878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10881 {
10882 arg2 = &temp2;
10883 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10884 }
10885 {
10886 arg3 = &temp3;
10887 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10888 }
10889 {
10890 arg4 = &temp4;
10891 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10892 }
10893 {
10894 PyThreadState* __tstate = wxPyBeginAllowThreads();
10895 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10896
10897 wxPyEndAllowThreads(__tstate);
10898 if (PyErr_Occurred()) SWIG_fail;
10899 }
10900 Py_INCREF(Py_None); resultobj = Py_None;
10901 return resultobj;
10902 fail:
10903 return NULL;
10904 }
10905
10906
10907 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *, PyObject *args, PyObject *kwargs) {
10908 PyObject *resultobj;
10909 wxDC *arg1 = (wxDC *) 0 ;
10910 int arg2 ;
10911 int arg3 ;
10912 int arg4 ;
10913 int arg5 ;
10914 PyObject * obj0 = 0 ;
10915 PyObject * obj1 = 0 ;
10916 PyObject * obj2 = 0 ;
10917 PyObject * obj3 = 0 ;
10918 PyObject * obj4 = 0 ;
10919 char *kwnames[] = {
10920 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10921 };
10922
10923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10926 arg2 = (int) SWIG_AsInt(obj1);
10927 if (PyErr_Occurred()) SWIG_fail;
10928 arg3 = (int) SWIG_AsInt(obj2);
10929 if (PyErr_Occurred()) SWIG_fail;
10930 arg4 = (int) SWIG_AsInt(obj3);
10931 if (PyErr_Occurred()) SWIG_fail;
10932 arg5 = (int) SWIG_AsInt(obj4);
10933 if (PyErr_Occurred()) SWIG_fail;
10934 {
10935 PyThreadState* __tstate = wxPyBeginAllowThreads();
10936 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10937
10938 wxPyEndAllowThreads(__tstate);
10939 if (PyErr_Occurred()) SWIG_fail;
10940 }
10941 Py_INCREF(Py_None); resultobj = Py_None;
10942 return resultobj;
10943 fail:
10944 return NULL;
10945 }
10946
10947
10948 static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
10949 PyObject *resultobj;
10950 wxDC *arg1 = (wxDC *) 0 ;
10951 wxRect *arg2 = 0 ;
10952 wxRect temp2 ;
10953 PyObject * obj0 = 0 ;
10954 PyObject * obj1 = 0 ;
10955 char *kwnames[] = {
10956 (char *) "self",(char *) "rect", NULL
10957 };
10958
10959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10962 {
10963 arg2 = &temp2;
10964 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10965 }
10966 {
10967 PyThreadState* __tstate = wxPyBeginAllowThreads();
10968 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10969
10970 wxPyEndAllowThreads(__tstate);
10971 if (PyErr_Occurred()) SWIG_fail;
10972 }
10973 Py_INCREF(Py_None); resultobj = Py_None;
10974 return resultobj;
10975 fail:
10976 return NULL;
10977 }
10978
10979
10980 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *, PyObject *args, PyObject *kwargs) {
10981 PyObject *resultobj;
10982 wxDC *arg1 = (wxDC *) 0 ;
10983 int arg2 ;
10984 int arg3 ;
10985 int arg4 ;
10986 int arg5 ;
10987 double arg6 ;
10988 double arg7 ;
10989 PyObject * obj0 = 0 ;
10990 PyObject * obj1 = 0 ;
10991 PyObject * obj2 = 0 ;
10992 PyObject * obj3 = 0 ;
10993 PyObject * obj4 = 0 ;
10994 PyObject * obj5 = 0 ;
10995 PyObject * obj6 = 0 ;
10996 char *kwnames[] = {
10997 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10998 };
10999
11000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11003 arg2 = (int) SWIG_AsInt(obj1);
11004 if (PyErr_Occurred()) SWIG_fail;
11005 arg3 = (int) SWIG_AsInt(obj2);
11006 if (PyErr_Occurred()) SWIG_fail;
11007 arg4 = (int) SWIG_AsInt(obj3);
11008 if (PyErr_Occurred()) SWIG_fail;
11009 arg5 = (int) SWIG_AsInt(obj4);
11010 if (PyErr_Occurred()) SWIG_fail;
11011 arg6 = (double) SWIG_AsDouble(obj5);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 arg7 = (double) SWIG_AsDouble(obj6);
11014 if (PyErr_Occurred()) SWIG_fail;
11015 {
11016 PyThreadState* __tstate = wxPyBeginAllowThreads();
11017 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11018
11019 wxPyEndAllowThreads(__tstate);
11020 if (PyErr_Occurred()) SWIG_fail;
11021 }
11022 Py_INCREF(Py_None); resultobj = Py_None;
11023 return resultobj;
11024 fail:
11025 return NULL;
11026 }
11027
11028
11029 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
11030 PyObject *resultobj;
11031 wxDC *arg1 = (wxDC *) 0 ;
11032 wxPoint *arg2 = 0 ;
11033 wxSize *arg3 = 0 ;
11034 double arg4 ;
11035 double arg5 ;
11036 wxPoint temp2 ;
11037 wxSize temp3 ;
11038 PyObject * obj0 = 0 ;
11039 PyObject * obj1 = 0 ;
11040 PyObject * obj2 = 0 ;
11041 PyObject * obj3 = 0 ;
11042 PyObject * obj4 = 0 ;
11043 char *kwnames[] = {
11044 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11045 };
11046
11047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11050 {
11051 arg2 = &temp2;
11052 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11053 }
11054 {
11055 arg3 = &temp3;
11056 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11057 }
11058 arg4 = (double) SWIG_AsDouble(obj3);
11059 if (PyErr_Occurred()) SWIG_fail;
11060 arg5 = (double) SWIG_AsDouble(obj4);
11061 if (PyErr_Occurred()) SWIG_fail;
11062 {
11063 PyThreadState* __tstate = wxPyBeginAllowThreads();
11064 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11065
11066 wxPyEndAllowThreads(__tstate);
11067 if (PyErr_Occurred()) SWIG_fail;
11068 }
11069 Py_INCREF(Py_None); resultobj = Py_None;
11070 return resultobj;
11071 fail:
11072 return NULL;
11073 }
11074
11075
11076 static PyObject *_wrap_DC_DrawPointXY(PyObject *, PyObject *args, PyObject *kwargs) {
11077 PyObject *resultobj;
11078 wxDC *arg1 = (wxDC *) 0 ;
11079 int arg2 ;
11080 int arg3 ;
11081 PyObject * obj0 = 0 ;
11082 PyObject * obj1 = 0 ;
11083 PyObject * obj2 = 0 ;
11084 char *kwnames[] = {
11085 (char *) "self",(char *) "x",(char *) "y", NULL
11086 };
11087
11088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11091 arg2 = (int) SWIG_AsInt(obj1);
11092 if (PyErr_Occurred()) SWIG_fail;
11093 arg3 = (int) SWIG_AsInt(obj2);
11094 if (PyErr_Occurred()) SWIG_fail;
11095 {
11096 PyThreadState* __tstate = wxPyBeginAllowThreads();
11097 (arg1)->DrawPoint(arg2,arg3);
11098
11099 wxPyEndAllowThreads(__tstate);
11100 if (PyErr_Occurred()) SWIG_fail;
11101 }
11102 Py_INCREF(Py_None); resultobj = Py_None;
11103 return resultobj;
11104 fail:
11105 return NULL;
11106 }
11107
11108
11109 static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
11110 PyObject *resultobj;
11111 wxDC *arg1 = (wxDC *) 0 ;
11112 wxPoint *arg2 = 0 ;
11113 wxPoint temp2 ;
11114 PyObject * obj0 = 0 ;
11115 PyObject * obj1 = 0 ;
11116 char *kwnames[] = {
11117 (char *) "self",(char *) "pt", NULL
11118 };
11119
11120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
11121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11123 {
11124 arg2 = &temp2;
11125 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11126 }
11127 {
11128 PyThreadState* __tstate = wxPyBeginAllowThreads();
11129 (arg1)->DrawPoint((wxPoint const &)*arg2);
11130
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 Py_INCREF(Py_None); resultobj = Py_None;
11135 return resultobj;
11136 fail:
11137 return NULL;
11138 }
11139
11140
11141 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *, PyObject *args, PyObject *kwargs) {
11142 PyObject *resultobj;
11143 wxDC *arg1 = (wxDC *) 0 ;
11144 int arg2 ;
11145 int arg3 ;
11146 int arg4 ;
11147 int arg5 ;
11148 PyObject * obj0 = 0 ;
11149 PyObject * obj1 = 0 ;
11150 PyObject * obj2 = 0 ;
11151 PyObject * obj3 = 0 ;
11152 PyObject * obj4 = 0 ;
11153 char *kwnames[] = {
11154 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11155 };
11156
11157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11160 arg2 = (int) SWIG_AsInt(obj1);
11161 if (PyErr_Occurred()) SWIG_fail;
11162 arg3 = (int) SWIG_AsInt(obj2);
11163 if (PyErr_Occurred()) SWIG_fail;
11164 arg4 = (int) SWIG_AsInt(obj3);
11165 if (PyErr_Occurred()) SWIG_fail;
11166 arg5 = (int) SWIG_AsInt(obj4);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 {
11169 PyThreadState* __tstate = wxPyBeginAllowThreads();
11170 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11171
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 Py_INCREF(Py_None); resultobj = Py_None;
11176 return resultobj;
11177 fail:
11178 return NULL;
11179 }
11180
11181
11182 static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
11183 PyObject *resultobj;
11184 wxDC *arg1 = (wxDC *) 0 ;
11185 wxPoint *arg2 = 0 ;
11186 wxSize *arg3 = 0 ;
11187 wxPoint temp2 ;
11188 wxSize temp3 ;
11189 PyObject * obj0 = 0 ;
11190 PyObject * obj1 = 0 ;
11191 PyObject * obj2 = 0 ;
11192 char *kwnames[] = {
11193 (char *) "self",(char *) "pt",(char *) "sz", NULL
11194 };
11195
11196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11199 {
11200 arg2 = &temp2;
11201 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11202 }
11203 {
11204 arg3 = &temp3;
11205 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11206 }
11207 {
11208 PyThreadState* __tstate = wxPyBeginAllowThreads();
11209 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11210
11211 wxPyEndAllowThreads(__tstate);
11212 if (PyErr_Occurred()) SWIG_fail;
11213 }
11214 Py_INCREF(Py_None); resultobj = Py_None;
11215 return resultobj;
11216 fail:
11217 return NULL;
11218 }
11219
11220
11221 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11222 PyObject *resultobj;
11223 wxDC *arg1 = (wxDC *) 0 ;
11224 wxRect *arg2 = 0 ;
11225 wxRect temp2 ;
11226 PyObject * obj0 = 0 ;
11227 PyObject * obj1 = 0 ;
11228 char *kwnames[] = {
11229 (char *) "self",(char *) "rect", NULL
11230 };
11231
11232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11235 {
11236 arg2 = &temp2;
11237 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11238 }
11239 {
11240 PyThreadState* __tstate = wxPyBeginAllowThreads();
11241 (arg1)->DrawRectangle((wxRect const &)*arg2);
11242
11243 wxPyEndAllowThreads(__tstate);
11244 if (PyErr_Occurred()) SWIG_fail;
11245 }
11246 Py_INCREF(Py_None); resultobj = Py_None;
11247 return resultobj;
11248 fail:
11249 return NULL;
11250 }
11251
11252
11253 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *, PyObject *args, PyObject *kwargs) {
11254 PyObject *resultobj;
11255 wxDC *arg1 = (wxDC *) 0 ;
11256 int arg2 ;
11257 int arg3 ;
11258 int arg4 ;
11259 int arg5 ;
11260 double arg6 ;
11261 PyObject * obj0 = 0 ;
11262 PyObject * obj1 = 0 ;
11263 PyObject * obj2 = 0 ;
11264 PyObject * obj3 = 0 ;
11265 PyObject * obj4 = 0 ;
11266 PyObject * obj5 = 0 ;
11267 char *kwnames[] = {
11268 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11269 };
11270
11271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11274 arg2 = (int) SWIG_AsInt(obj1);
11275 if (PyErr_Occurred()) SWIG_fail;
11276 arg3 = (int) SWIG_AsInt(obj2);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 arg4 = (int) SWIG_AsInt(obj3);
11279 if (PyErr_Occurred()) SWIG_fail;
11280 arg5 = (int) SWIG_AsInt(obj4);
11281 if (PyErr_Occurred()) SWIG_fail;
11282 arg6 = (double) SWIG_AsDouble(obj5);
11283 if (PyErr_Occurred()) SWIG_fail;
11284 {
11285 PyThreadState* __tstate = wxPyBeginAllowThreads();
11286 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11287
11288 wxPyEndAllowThreads(__tstate);
11289 if (PyErr_Occurred()) SWIG_fail;
11290 }
11291 Py_INCREF(Py_None); resultobj = Py_None;
11292 return resultobj;
11293 fail:
11294 return NULL;
11295 }
11296
11297
11298 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
11299 PyObject *resultobj;
11300 wxDC *arg1 = (wxDC *) 0 ;
11301 wxPoint *arg2 = 0 ;
11302 wxSize *arg3 = 0 ;
11303 double arg4 ;
11304 wxPoint temp2 ;
11305 wxSize temp3 ;
11306 PyObject * obj0 = 0 ;
11307 PyObject * obj1 = 0 ;
11308 PyObject * obj2 = 0 ;
11309 PyObject * obj3 = 0 ;
11310 char *kwnames[] = {
11311 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11312 };
11313
11314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11317 {
11318 arg2 = &temp2;
11319 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11320 }
11321 {
11322 arg3 = &temp3;
11323 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11324 }
11325 arg4 = (double) SWIG_AsDouble(obj3);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 {
11328 PyThreadState* __tstate = wxPyBeginAllowThreads();
11329 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11330
11331 wxPyEndAllowThreads(__tstate);
11332 if (PyErr_Occurred()) SWIG_fail;
11333 }
11334 Py_INCREF(Py_None); resultobj = Py_None;
11335 return resultobj;
11336 fail:
11337 return NULL;
11338 }
11339
11340
11341 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11342 PyObject *resultobj;
11343 wxDC *arg1 = (wxDC *) 0 ;
11344 wxRect *arg2 = 0 ;
11345 double arg3 ;
11346 wxRect temp2 ;
11347 PyObject * obj0 = 0 ;
11348 PyObject * obj1 = 0 ;
11349 PyObject * obj2 = 0 ;
11350 char *kwnames[] = {
11351 (char *) "self",(char *) "r",(char *) "radius", NULL
11352 };
11353
11354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11357 {
11358 arg2 = &temp2;
11359 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11360 }
11361 arg3 = (double) SWIG_AsDouble(obj2);
11362 if (PyErr_Occurred()) SWIG_fail;
11363 {
11364 PyThreadState* __tstate = wxPyBeginAllowThreads();
11365 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11366
11367 wxPyEndAllowThreads(__tstate);
11368 if (PyErr_Occurred()) SWIG_fail;
11369 }
11370 Py_INCREF(Py_None); resultobj = Py_None;
11371 return resultobj;
11372 fail:
11373 return NULL;
11374 }
11375
11376
11377 static PyObject *_wrap_DC_DrawCircleXY(PyObject *, PyObject *args, PyObject *kwargs) {
11378 PyObject *resultobj;
11379 wxDC *arg1 = (wxDC *) 0 ;
11380 int arg2 ;
11381 int arg3 ;
11382 int arg4 ;
11383 PyObject * obj0 = 0 ;
11384 PyObject * obj1 = 0 ;
11385 PyObject * obj2 = 0 ;
11386 PyObject * obj3 = 0 ;
11387 char *kwnames[] = {
11388 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11389 };
11390
11391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11394 arg2 = (int) SWIG_AsInt(obj1);
11395 if (PyErr_Occurred()) SWIG_fail;
11396 arg3 = (int) SWIG_AsInt(obj2);
11397 if (PyErr_Occurred()) SWIG_fail;
11398 arg4 = (int) SWIG_AsInt(obj3);
11399 if (PyErr_Occurred()) SWIG_fail;
11400 {
11401 PyThreadState* __tstate = wxPyBeginAllowThreads();
11402 (arg1)->DrawCircle(arg2,arg3,arg4);
11403
11404 wxPyEndAllowThreads(__tstate);
11405 if (PyErr_Occurred()) SWIG_fail;
11406 }
11407 Py_INCREF(Py_None); resultobj = Py_None;
11408 return resultobj;
11409 fail:
11410 return NULL;
11411 }
11412
11413
11414 static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
11415 PyObject *resultobj;
11416 wxDC *arg1 = (wxDC *) 0 ;
11417 wxPoint *arg2 = 0 ;
11418 int arg3 ;
11419 wxPoint temp2 ;
11420 PyObject * obj0 = 0 ;
11421 PyObject * obj1 = 0 ;
11422 PyObject * obj2 = 0 ;
11423 char *kwnames[] = {
11424 (char *) "self",(char *) "pt",(char *) "radius", NULL
11425 };
11426
11427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11430 {
11431 arg2 = &temp2;
11432 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11433 }
11434 arg3 = (int) SWIG_AsInt(obj2);
11435 if (PyErr_Occurred()) SWIG_fail;
11436 {
11437 PyThreadState* __tstate = wxPyBeginAllowThreads();
11438 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11439
11440 wxPyEndAllowThreads(__tstate);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 Py_INCREF(Py_None); resultobj = Py_None;
11444 return resultobj;
11445 fail:
11446 return NULL;
11447 }
11448
11449
11450 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *, PyObject *args, PyObject *kwargs) {
11451 PyObject *resultobj;
11452 wxDC *arg1 = (wxDC *) 0 ;
11453 int arg2 ;
11454 int arg3 ;
11455 int arg4 ;
11456 int arg5 ;
11457 PyObject * obj0 = 0 ;
11458 PyObject * obj1 = 0 ;
11459 PyObject * obj2 = 0 ;
11460 PyObject * obj3 = 0 ;
11461 PyObject * obj4 = 0 ;
11462 char *kwnames[] = {
11463 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11464 };
11465
11466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11469 arg2 = (int) SWIG_AsInt(obj1);
11470 if (PyErr_Occurred()) SWIG_fail;
11471 arg3 = (int) SWIG_AsInt(obj2);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 arg4 = (int) SWIG_AsInt(obj3);
11474 if (PyErr_Occurred()) SWIG_fail;
11475 arg5 = (int) SWIG_AsInt(obj4);
11476 if (PyErr_Occurred()) SWIG_fail;
11477 {
11478 PyThreadState* __tstate = wxPyBeginAllowThreads();
11479 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11480
11481 wxPyEndAllowThreads(__tstate);
11482 if (PyErr_Occurred()) SWIG_fail;
11483 }
11484 Py_INCREF(Py_None); resultobj = Py_None;
11485 return resultobj;
11486 fail:
11487 return NULL;
11488 }
11489
11490
11491 static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
11492 PyObject *resultobj;
11493 wxDC *arg1 = (wxDC *) 0 ;
11494 wxPoint *arg2 = 0 ;
11495 wxSize *arg3 = 0 ;
11496 wxPoint temp2 ;
11497 wxSize temp3 ;
11498 PyObject * obj0 = 0 ;
11499 PyObject * obj1 = 0 ;
11500 PyObject * obj2 = 0 ;
11501 char *kwnames[] = {
11502 (char *) "self",(char *) "pt",(char *) "sz", NULL
11503 };
11504
11505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11508 {
11509 arg2 = &temp2;
11510 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11511 }
11512 {
11513 arg3 = &temp3;
11514 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11515 }
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11519
11520 wxPyEndAllowThreads(__tstate);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 Py_INCREF(Py_None); resultobj = Py_None;
11524 return resultobj;
11525 fail:
11526 return NULL;
11527 }
11528
11529
11530 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
11531 PyObject *resultobj;
11532 wxDC *arg1 = (wxDC *) 0 ;
11533 wxRect *arg2 = 0 ;
11534 wxRect temp2 ;
11535 PyObject * obj0 = 0 ;
11536 PyObject * obj1 = 0 ;
11537 char *kwnames[] = {
11538 (char *) "self",(char *) "rect", NULL
11539 };
11540
11541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11544 {
11545 arg2 = &temp2;
11546 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11547 }
11548 {
11549 PyThreadState* __tstate = wxPyBeginAllowThreads();
11550 (arg1)->DrawEllipse((wxRect const &)*arg2);
11551
11552 wxPyEndAllowThreads(__tstate);
11553 if (PyErr_Occurred()) SWIG_fail;
11554 }
11555 Py_INCREF(Py_None); resultobj = Py_None;
11556 return resultobj;
11557 fail:
11558 return NULL;
11559 }
11560
11561
11562 static PyObject *_wrap_DC_DrawIconXY(PyObject *, PyObject *args, PyObject *kwargs) {
11563 PyObject *resultobj;
11564 wxDC *arg1 = (wxDC *) 0 ;
11565 wxIcon *arg2 = 0 ;
11566 int arg3 ;
11567 int arg4 ;
11568 PyObject * obj0 = 0 ;
11569 PyObject * obj1 = 0 ;
11570 PyObject * obj2 = 0 ;
11571 PyObject * obj3 = 0 ;
11572 char *kwnames[] = {
11573 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11574 };
11575
11576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11579 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11580 SWIG_POINTER_EXCEPTION | 0)) == -1)
11581 SWIG_fail;
11582 if (arg2 == NULL) {
11583 PyErr_SetString(PyExc_TypeError,"null reference");
11584 SWIG_fail;
11585 }
11586 arg3 = (int) SWIG_AsInt(obj2);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 arg4 = (int) SWIG_AsInt(obj3);
11589 if (PyErr_Occurred()) SWIG_fail;
11590 {
11591 PyThreadState* __tstate = wxPyBeginAllowThreads();
11592 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11593
11594 wxPyEndAllowThreads(__tstate);
11595 if (PyErr_Occurred()) SWIG_fail;
11596 }
11597 Py_INCREF(Py_None); resultobj = Py_None;
11598 return resultobj;
11599 fail:
11600 return NULL;
11601 }
11602
11603
11604 static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
11605 PyObject *resultobj;
11606 wxDC *arg1 = (wxDC *) 0 ;
11607 wxIcon *arg2 = 0 ;
11608 wxPoint *arg3 = 0 ;
11609 wxPoint temp3 ;
11610 PyObject * obj0 = 0 ;
11611 PyObject * obj1 = 0 ;
11612 PyObject * obj2 = 0 ;
11613 char *kwnames[] = {
11614 (char *) "self",(char *) "icon",(char *) "pt", NULL
11615 };
11616
11617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11620 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11621 SWIG_POINTER_EXCEPTION | 0)) == -1)
11622 SWIG_fail;
11623 if (arg2 == NULL) {
11624 PyErr_SetString(PyExc_TypeError,"null reference");
11625 SWIG_fail;
11626 }
11627 {
11628 arg3 = &temp3;
11629 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11630 }
11631 {
11632 PyThreadState* __tstate = wxPyBeginAllowThreads();
11633 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11634
11635 wxPyEndAllowThreads(__tstate);
11636 if (PyErr_Occurred()) SWIG_fail;
11637 }
11638 Py_INCREF(Py_None); resultobj = Py_None;
11639 return resultobj;
11640 fail:
11641 return NULL;
11642 }
11643
11644
11645 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *, PyObject *args, PyObject *kwargs) {
11646 PyObject *resultobj;
11647 wxDC *arg1 = (wxDC *) 0 ;
11648 wxBitmap *arg2 = 0 ;
11649 int arg3 ;
11650 int arg4 ;
11651 bool arg5 = (bool) False ;
11652 PyObject * obj0 = 0 ;
11653 PyObject * obj1 = 0 ;
11654 PyObject * obj2 = 0 ;
11655 PyObject * obj3 = 0 ;
11656 PyObject * obj4 = 0 ;
11657 char *kwnames[] = {
11658 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11659 };
11660
11661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11664 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11665 SWIG_POINTER_EXCEPTION | 0)) == -1)
11666 SWIG_fail;
11667 if (arg2 == NULL) {
11668 PyErr_SetString(PyExc_TypeError,"null reference");
11669 SWIG_fail;
11670 }
11671 arg3 = (int) SWIG_AsInt(obj2);
11672 if (PyErr_Occurred()) SWIG_fail;
11673 arg4 = (int) SWIG_AsInt(obj3);
11674 if (PyErr_Occurred()) SWIG_fail;
11675 if (obj4) {
11676 arg5 = (bool) SWIG_AsBool(obj4);
11677 if (PyErr_Occurred()) SWIG_fail;
11678 }
11679 {
11680 PyThreadState* __tstate = wxPyBeginAllowThreads();
11681 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11682
11683 wxPyEndAllowThreads(__tstate);
11684 if (PyErr_Occurred()) SWIG_fail;
11685 }
11686 Py_INCREF(Py_None); resultobj = Py_None;
11687 return resultobj;
11688 fail:
11689 return NULL;
11690 }
11691
11692
11693 static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
11694 PyObject *resultobj;
11695 wxDC *arg1 = (wxDC *) 0 ;
11696 wxBitmap *arg2 = 0 ;
11697 wxPoint *arg3 = 0 ;
11698 bool arg4 = (bool) False ;
11699 wxPoint temp3 ;
11700 PyObject * obj0 = 0 ;
11701 PyObject * obj1 = 0 ;
11702 PyObject * obj2 = 0 ;
11703 PyObject * obj3 = 0 ;
11704 char *kwnames[] = {
11705 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11706 };
11707
11708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11711 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11712 SWIG_POINTER_EXCEPTION | 0)) == -1)
11713 SWIG_fail;
11714 if (arg2 == NULL) {
11715 PyErr_SetString(PyExc_TypeError,"null reference");
11716 SWIG_fail;
11717 }
11718 {
11719 arg3 = &temp3;
11720 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11721 }
11722 if (obj3) {
11723 arg4 = (bool) SWIG_AsBool(obj3);
11724 if (PyErr_Occurred()) SWIG_fail;
11725 }
11726 {
11727 PyThreadState* __tstate = wxPyBeginAllowThreads();
11728 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11729
11730 wxPyEndAllowThreads(__tstate);
11731 if (PyErr_Occurred()) SWIG_fail;
11732 }
11733 Py_INCREF(Py_None); resultobj = Py_None;
11734 return resultobj;
11735 fail:
11736 return NULL;
11737 }
11738
11739
11740 static PyObject *_wrap_DC_DrawTextXY(PyObject *, PyObject *args, PyObject *kwargs) {
11741 PyObject *resultobj;
11742 wxDC *arg1 = (wxDC *) 0 ;
11743 wxString *arg2 = 0 ;
11744 int arg3 ;
11745 int arg4 ;
11746 bool temp2 = False ;
11747 PyObject * obj0 = 0 ;
11748 PyObject * obj1 = 0 ;
11749 PyObject * obj2 = 0 ;
11750 PyObject * obj3 = 0 ;
11751 char *kwnames[] = {
11752 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11753 };
11754
11755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11758 {
11759 arg2 = wxString_in_helper(obj1);
11760 if (arg2 == NULL) SWIG_fail;
11761 temp2 = True;
11762 }
11763 arg3 = (int) SWIG_AsInt(obj2);
11764 if (PyErr_Occurred()) SWIG_fail;
11765 arg4 = (int) SWIG_AsInt(obj3);
11766 if (PyErr_Occurred()) SWIG_fail;
11767 {
11768 PyThreadState* __tstate = wxPyBeginAllowThreads();
11769 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11770
11771 wxPyEndAllowThreads(__tstate);
11772 if (PyErr_Occurred()) SWIG_fail;
11773 }
11774 Py_INCREF(Py_None); resultobj = Py_None;
11775 {
11776 if (temp2)
11777 delete arg2;
11778 }
11779 return resultobj;
11780 fail:
11781 {
11782 if (temp2)
11783 delete arg2;
11784 }
11785 return NULL;
11786 }
11787
11788
11789 static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
11790 PyObject *resultobj;
11791 wxDC *arg1 = (wxDC *) 0 ;
11792 wxString *arg2 = 0 ;
11793 wxPoint *arg3 = 0 ;
11794 bool temp2 = False ;
11795 wxPoint temp3 ;
11796 PyObject * obj0 = 0 ;
11797 PyObject * obj1 = 0 ;
11798 PyObject * obj2 = 0 ;
11799 char *kwnames[] = {
11800 (char *) "self",(char *) "text",(char *) "pt", NULL
11801 };
11802
11803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11806 {
11807 arg2 = wxString_in_helper(obj1);
11808 if (arg2 == NULL) SWIG_fail;
11809 temp2 = True;
11810 }
11811 {
11812 arg3 = &temp3;
11813 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11814 }
11815 {
11816 PyThreadState* __tstate = wxPyBeginAllowThreads();
11817 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11818
11819 wxPyEndAllowThreads(__tstate);
11820 if (PyErr_Occurred()) SWIG_fail;
11821 }
11822 Py_INCREF(Py_None); resultobj = Py_None;
11823 {
11824 if (temp2)
11825 delete arg2;
11826 }
11827 return resultobj;
11828 fail:
11829 {
11830 if (temp2)
11831 delete arg2;
11832 }
11833 return NULL;
11834 }
11835
11836
11837 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *, PyObject *args, PyObject *kwargs) {
11838 PyObject *resultobj;
11839 wxDC *arg1 = (wxDC *) 0 ;
11840 wxString *arg2 = 0 ;
11841 int arg3 ;
11842 int arg4 ;
11843 double arg5 ;
11844 bool temp2 = False ;
11845 PyObject * obj0 = 0 ;
11846 PyObject * obj1 = 0 ;
11847 PyObject * obj2 = 0 ;
11848 PyObject * obj3 = 0 ;
11849 PyObject * obj4 = 0 ;
11850 char *kwnames[] = {
11851 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11852 };
11853
11854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11857 {
11858 arg2 = wxString_in_helper(obj1);
11859 if (arg2 == NULL) SWIG_fail;
11860 temp2 = True;
11861 }
11862 arg3 = (int) SWIG_AsInt(obj2);
11863 if (PyErr_Occurred()) SWIG_fail;
11864 arg4 = (int) SWIG_AsInt(obj3);
11865 if (PyErr_Occurred()) SWIG_fail;
11866 arg5 = (double) SWIG_AsDouble(obj4);
11867 if (PyErr_Occurred()) SWIG_fail;
11868 {
11869 PyThreadState* __tstate = wxPyBeginAllowThreads();
11870 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11871
11872 wxPyEndAllowThreads(__tstate);
11873 if (PyErr_Occurred()) SWIG_fail;
11874 }
11875 Py_INCREF(Py_None); resultobj = Py_None;
11876 {
11877 if (temp2)
11878 delete arg2;
11879 }
11880 return resultobj;
11881 fail:
11882 {
11883 if (temp2)
11884 delete arg2;
11885 }
11886 return NULL;
11887 }
11888
11889
11890 static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
11891 PyObject *resultobj;
11892 wxDC *arg1 = (wxDC *) 0 ;
11893 wxString *arg2 = 0 ;
11894 wxPoint *arg3 = 0 ;
11895 double arg4 ;
11896 bool temp2 = False ;
11897 wxPoint temp3 ;
11898 PyObject * obj0 = 0 ;
11899 PyObject * obj1 = 0 ;
11900 PyObject * obj2 = 0 ;
11901 PyObject * obj3 = 0 ;
11902 char *kwnames[] = {
11903 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11904 };
11905
11906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11909 {
11910 arg2 = wxString_in_helper(obj1);
11911 if (arg2 == NULL) SWIG_fail;
11912 temp2 = True;
11913 }
11914 {
11915 arg3 = &temp3;
11916 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11917 }
11918 arg4 = (double) SWIG_AsDouble(obj3);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 {
11921 PyThreadState* __tstate = wxPyBeginAllowThreads();
11922 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11923
11924 wxPyEndAllowThreads(__tstate);
11925 if (PyErr_Occurred()) SWIG_fail;
11926 }
11927 Py_INCREF(Py_None); resultobj = Py_None;
11928 {
11929 if (temp2)
11930 delete arg2;
11931 }
11932 return resultobj;
11933 fail:
11934 {
11935 if (temp2)
11936 delete arg2;
11937 }
11938 return NULL;
11939 }
11940
11941
11942 static PyObject *_wrap_DC_BlitXY(PyObject *, PyObject *args, PyObject *kwargs) {
11943 PyObject *resultobj;
11944 wxDC *arg1 = (wxDC *) 0 ;
11945 int arg2 ;
11946 int arg3 ;
11947 int arg4 ;
11948 int arg5 ;
11949 wxDC *arg6 = (wxDC *) 0 ;
11950 int arg7 ;
11951 int arg8 ;
11952 int arg9 = (int) wxCOPY ;
11953 bool arg10 = (bool) False ;
11954 int arg11 = (int) -1 ;
11955 int arg12 = (int) -1 ;
11956 bool result;
11957 PyObject * obj0 = 0 ;
11958 PyObject * obj1 = 0 ;
11959 PyObject * obj2 = 0 ;
11960 PyObject * obj3 = 0 ;
11961 PyObject * obj4 = 0 ;
11962 PyObject * obj5 = 0 ;
11963 PyObject * obj6 = 0 ;
11964 PyObject * obj7 = 0 ;
11965 PyObject * obj8 = 0 ;
11966 PyObject * obj9 = 0 ;
11967 PyObject * obj10 = 0 ;
11968 PyObject * obj11 = 0 ;
11969 char *kwnames[] = {
11970 (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
11971 };
11972
11973 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;
11974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11976 arg2 = (int) SWIG_AsInt(obj1);
11977 if (PyErr_Occurred()) SWIG_fail;
11978 arg3 = (int) SWIG_AsInt(obj2);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 arg4 = (int) SWIG_AsInt(obj3);
11981 if (PyErr_Occurred()) SWIG_fail;
11982 arg5 = (int) SWIG_AsInt(obj4);
11983 if (PyErr_Occurred()) SWIG_fail;
11984 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11986 arg7 = (int) SWIG_AsInt(obj6);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 arg8 = (int) SWIG_AsInt(obj7);
11989 if (PyErr_Occurred()) SWIG_fail;
11990 if (obj8) {
11991 arg9 = (int) SWIG_AsInt(obj8);
11992 if (PyErr_Occurred()) SWIG_fail;
11993 }
11994 if (obj9) {
11995 arg10 = (bool) SWIG_AsBool(obj9);
11996 if (PyErr_Occurred()) SWIG_fail;
11997 }
11998 if (obj10) {
11999 arg11 = (int) SWIG_AsInt(obj10);
12000 if (PyErr_Occurred()) SWIG_fail;
12001 }
12002 if (obj11) {
12003 arg12 = (int) SWIG_AsInt(obj11);
12004 if (PyErr_Occurred()) SWIG_fail;
12005 }
12006 {
12007 PyThreadState* __tstate = wxPyBeginAllowThreads();
12008 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12009
12010 wxPyEndAllowThreads(__tstate);
12011 if (PyErr_Occurred()) SWIG_fail;
12012 }
12013 {
12014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12015 }
12016 return resultobj;
12017 fail:
12018 return NULL;
12019 }
12020
12021
12022 static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
12023 PyObject *resultobj;
12024 wxDC *arg1 = (wxDC *) 0 ;
12025 wxPoint *arg2 = 0 ;
12026 wxSize *arg3 = 0 ;
12027 wxDC *arg4 = (wxDC *) 0 ;
12028 wxPoint *arg5 = 0 ;
12029 int arg6 = (int) wxCOPY ;
12030 bool arg7 = (bool) False ;
12031 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12032 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12033 bool result;
12034 wxPoint temp2 ;
12035 wxSize temp3 ;
12036 wxPoint temp5 ;
12037 wxPoint temp8 ;
12038 PyObject * obj0 = 0 ;
12039 PyObject * obj1 = 0 ;
12040 PyObject * obj2 = 0 ;
12041 PyObject * obj3 = 0 ;
12042 PyObject * obj4 = 0 ;
12043 PyObject * obj5 = 0 ;
12044 PyObject * obj6 = 0 ;
12045 PyObject * obj7 = 0 ;
12046 char *kwnames[] = {
12047 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12048 };
12049
12050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12053 {
12054 arg2 = &temp2;
12055 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12056 }
12057 {
12058 arg3 = &temp3;
12059 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12060 }
12061 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12063 {
12064 arg5 = &temp5;
12065 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12066 }
12067 if (obj5) {
12068 arg6 = (int) SWIG_AsInt(obj5);
12069 if (PyErr_Occurred()) SWIG_fail;
12070 }
12071 if (obj6) {
12072 arg7 = (bool) SWIG_AsBool(obj6);
12073 if (PyErr_Occurred()) SWIG_fail;
12074 }
12075 if (obj7) {
12076 {
12077 arg8 = &temp8;
12078 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12079 }
12080 }
12081 {
12082 PyThreadState* __tstate = wxPyBeginAllowThreads();
12083 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12084
12085 wxPyEndAllowThreads(__tstate);
12086 if (PyErr_Occurred()) SWIG_fail;
12087 }
12088 {
12089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12090 }
12091 return resultobj;
12092 fail:
12093 return NULL;
12094 }
12095
12096
12097 static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
12098 PyObject *resultobj;
12099 wxDC *arg1 = (wxDC *) 0 ;
12100 int arg2 ;
12101 wxPoint *arg3 = (wxPoint *) 0 ;
12102 int arg4 = (int) 0 ;
12103 int arg5 = (int) 0 ;
12104 PyObject * obj0 = 0 ;
12105 PyObject * obj1 = 0 ;
12106 PyObject * obj2 = 0 ;
12107 PyObject * obj3 = 0 ;
12108 char *kwnames[] = {
12109 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12110 };
12111
12112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12115 {
12116 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12117 if (arg3 == NULL) SWIG_fail;
12118 }
12119 if (obj2) {
12120 arg4 = (int) SWIG_AsInt(obj2);
12121 if (PyErr_Occurred()) SWIG_fail;
12122 }
12123 if (obj3) {
12124 arg5 = (int) SWIG_AsInt(obj3);
12125 if (PyErr_Occurred()) SWIG_fail;
12126 }
12127 {
12128 PyThreadState* __tstate = wxPyBeginAllowThreads();
12129 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12130
12131 wxPyEndAllowThreads(__tstate);
12132 if (PyErr_Occurred()) SWIG_fail;
12133 }
12134 Py_INCREF(Py_None); resultobj = Py_None;
12135 {
12136 if (arg3) delete [] arg3;
12137 }
12138 return resultobj;
12139 fail:
12140 {
12141 if (arg3) delete [] arg3;
12142 }
12143 return NULL;
12144 }
12145
12146
12147 static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
12148 PyObject *resultobj;
12149 wxDC *arg1 = (wxDC *) 0 ;
12150 int arg2 ;
12151 wxPoint *arg3 = (wxPoint *) 0 ;
12152 int arg4 = (int) 0 ;
12153 int arg5 = (int) 0 ;
12154 int arg6 = (int) wxODDEVEN_RULE ;
12155 PyObject * obj0 = 0 ;
12156 PyObject * obj1 = 0 ;
12157 PyObject * obj2 = 0 ;
12158 PyObject * obj3 = 0 ;
12159 PyObject * obj4 = 0 ;
12160 char *kwnames[] = {
12161 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12162 };
12163
12164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12167 {
12168 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12169 if (arg3 == NULL) SWIG_fail;
12170 }
12171 if (obj2) {
12172 arg4 = (int) SWIG_AsInt(obj2);
12173 if (PyErr_Occurred()) SWIG_fail;
12174 }
12175 if (obj3) {
12176 arg5 = (int) SWIG_AsInt(obj3);
12177 if (PyErr_Occurred()) SWIG_fail;
12178 }
12179 if (obj4) {
12180 arg6 = (int) SWIG_AsInt(obj4);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 }
12183 {
12184 PyThreadState* __tstate = wxPyBeginAllowThreads();
12185 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12186
12187 wxPyEndAllowThreads(__tstate);
12188 if (PyErr_Occurred()) SWIG_fail;
12189 }
12190 Py_INCREF(Py_None); resultobj = Py_None;
12191 {
12192 if (arg3) delete [] arg3;
12193 }
12194 return resultobj;
12195 fail:
12196 {
12197 if (arg3) delete [] arg3;
12198 }
12199 return NULL;
12200 }
12201
12202
12203 static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12204 PyObject *resultobj;
12205 wxDC *arg1 = (wxDC *) 0 ;
12206 wxString *arg2 = 0 ;
12207 wxRect *arg3 = 0 ;
12208 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12209 int arg5 = (int) -1 ;
12210 bool temp2 = False ;
12211 wxRect temp3 ;
12212 PyObject * obj0 = 0 ;
12213 PyObject * obj1 = 0 ;
12214 PyObject * obj2 = 0 ;
12215 PyObject * obj3 = 0 ;
12216 PyObject * obj4 = 0 ;
12217 char *kwnames[] = {
12218 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12219 };
12220
12221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12224 {
12225 arg2 = wxString_in_helper(obj1);
12226 if (arg2 == NULL) SWIG_fail;
12227 temp2 = True;
12228 }
12229 {
12230 arg3 = &temp3;
12231 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12232 }
12233 if (obj3) {
12234 arg4 = (int) SWIG_AsInt(obj3);
12235 if (PyErr_Occurred()) SWIG_fail;
12236 }
12237 if (obj4) {
12238 arg5 = (int) SWIG_AsInt(obj4);
12239 if (PyErr_Occurred()) SWIG_fail;
12240 }
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12244
12245 wxPyEndAllowThreads(__tstate);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 }
12248 Py_INCREF(Py_None); resultobj = Py_None;
12249 {
12250 if (temp2)
12251 delete arg2;
12252 }
12253 return resultobj;
12254 fail:
12255 {
12256 if (temp2)
12257 delete arg2;
12258 }
12259 return NULL;
12260 }
12261
12262
12263 static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12264 PyObject *resultobj;
12265 wxDC *arg1 = (wxDC *) 0 ;
12266 wxString *arg2 = 0 ;
12267 wxBitmap *arg3 = 0 ;
12268 wxRect *arg4 = 0 ;
12269 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12270 int arg6 = (int) -1 ;
12271 wxRect result;
12272 bool temp2 = False ;
12273 wxRect temp4 ;
12274 PyObject * obj0 = 0 ;
12275 PyObject * obj1 = 0 ;
12276 PyObject * obj2 = 0 ;
12277 PyObject * obj3 = 0 ;
12278 PyObject * obj4 = 0 ;
12279 PyObject * obj5 = 0 ;
12280 char *kwnames[] = {
12281 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12282 };
12283
12284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12287 {
12288 arg2 = wxString_in_helper(obj1);
12289 if (arg2 == NULL) SWIG_fail;
12290 temp2 = True;
12291 }
12292 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12293 SWIG_POINTER_EXCEPTION | 0)) == -1)
12294 SWIG_fail;
12295 if (arg3 == NULL) {
12296 PyErr_SetString(PyExc_TypeError,"null reference");
12297 SWIG_fail;
12298 }
12299 {
12300 arg4 = &temp4;
12301 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12302 }
12303 if (obj4) {
12304 arg5 = (int) SWIG_AsInt(obj4);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 if (obj5) {
12308 arg6 = (int) SWIG_AsInt(obj5);
12309 if (PyErr_Occurred()) SWIG_fail;
12310 }
12311 {
12312 PyThreadState* __tstate = wxPyBeginAllowThreads();
12313 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12314
12315 wxPyEndAllowThreads(__tstate);
12316 if (PyErr_Occurred()) SWIG_fail;
12317 }
12318 {
12319 wxRect * resultptr;
12320 resultptr = new wxRect((wxRect &) result);
12321 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12322 }
12323 {
12324 if (temp2)
12325 delete arg2;
12326 }
12327 return resultobj;
12328 fail:
12329 {
12330 if (temp2)
12331 delete arg2;
12332 }
12333 return NULL;
12334 }
12335
12336
12337 static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
12338 PyObject *resultobj;
12339 wxDC *arg1 = (wxDC *) 0 ;
12340 int arg2 ;
12341 wxPoint *arg3 = (wxPoint *) 0 ;
12342 PyObject * obj0 = 0 ;
12343 PyObject * obj1 = 0 ;
12344 char *kwnames[] = {
12345 (char *) "self",(char *) "points", NULL
12346 };
12347
12348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12351 {
12352 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12353 if (arg3 == NULL) SWIG_fail;
12354 }
12355 {
12356 PyThreadState* __tstate = wxPyBeginAllowThreads();
12357 (arg1)->DrawSpline(arg2,arg3);
12358
12359 wxPyEndAllowThreads(__tstate);
12360 if (PyErr_Occurred()) SWIG_fail;
12361 }
12362 Py_INCREF(Py_None); resultobj = Py_None;
12363 {
12364 if (arg3) delete [] arg3;
12365 }
12366 return resultobj;
12367 fail:
12368 {
12369 if (arg3) delete [] arg3;
12370 }
12371 return NULL;
12372 }
12373
12374
12375 static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
12376 PyObject *resultobj;
12377 wxDC *arg1 = (wxDC *) 0 ;
12378 PyObject * obj0 = 0 ;
12379 char *kwnames[] = {
12380 (char *) "self", NULL
12381 };
12382
12383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12386 {
12387 PyThreadState* __tstate = wxPyBeginAllowThreads();
12388 (arg1)->Clear();
12389
12390 wxPyEndAllowThreads(__tstate);
12391 if (PyErr_Occurred()) SWIG_fail;
12392 }
12393 Py_INCREF(Py_None); resultobj = Py_None;
12394 return resultobj;
12395 fail:
12396 return NULL;
12397 }
12398
12399
12400 static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12401 PyObject *resultobj;
12402 wxDC *arg1 = (wxDC *) 0 ;
12403 wxString *arg2 = 0 ;
12404 bool result;
12405 bool temp2 = False ;
12406 PyObject * obj0 = 0 ;
12407 PyObject * obj1 = 0 ;
12408 char *kwnames[] = {
12409 (char *) "self",(char *) "message", NULL
12410 };
12411
12412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12415 {
12416 arg2 = wxString_in_helper(obj1);
12417 if (arg2 == NULL) SWIG_fail;
12418 temp2 = True;
12419 }
12420 {
12421 PyThreadState* __tstate = wxPyBeginAllowThreads();
12422 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12423
12424 wxPyEndAllowThreads(__tstate);
12425 if (PyErr_Occurred()) SWIG_fail;
12426 }
12427 {
12428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12429 }
12430 {
12431 if (temp2)
12432 delete arg2;
12433 }
12434 return resultobj;
12435 fail:
12436 {
12437 if (temp2)
12438 delete arg2;
12439 }
12440 return NULL;
12441 }
12442
12443
12444 static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12445 PyObject *resultobj;
12446 wxDC *arg1 = (wxDC *) 0 ;
12447 PyObject * obj0 = 0 ;
12448 char *kwnames[] = {
12449 (char *) "self", NULL
12450 };
12451
12452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12455 {
12456 PyThreadState* __tstate = wxPyBeginAllowThreads();
12457 (arg1)->EndDoc();
12458
12459 wxPyEndAllowThreads(__tstate);
12460 if (PyErr_Occurred()) SWIG_fail;
12461 }
12462 Py_INCREF(Py_None); resultobj = Py_None;
12463 return resultobj;
12464 fail:
12465 return NULL;
12466 }
12467
12468
12469 static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
12470 PyObject *resultobj;
12471 wxDC *arg1 = (wxDC *) 0 ;
12472 PyObject * obj0 = 0 ;
12473 char *kwnames[] = {
12474 (char *) "self", NULL
12475 };
12476
12477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12480 {
12481 PyThreadState* __tstate = wxPyBeginAllowThreads();
12482 (arg1)->StartPage();
12483
12484 wxPyEndAllowThreads(__tstate);
12485 if (PyErr_Occurred()) SWIG_fail;
12486 }
12487 Py_INCREF(Py_None); resultobj = Py_None;
12488 return resultobj;
12489 fail:
12490 return NULL;
12491 }
12492
12493
12494 static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
12495 PyObject *resultobj;
12496 wxDC *arg1 = (wxDC *) 0 ;
12497 PyObject * obj0 = 0 ;
12498 char *kwnames[] = {
12499 (char *) "self", NULL
12500 };
12501
12502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12505 {
12506 PyThreadState* __tstate = wxPyBeginAllowThreads();
12507 (arg1)->EndPage();
12508
12509 wxPyEndAllowThreads(__tstate);
12510 if (PyErr_Occurred()) SWIG_fail;
12511 }
12512 Py_INCREF(Py_None); resultobj = Py_None;
12513 return resultobj;
12514 fail:
12515 return NULL;
12516 }
12517
12518
12519 static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
12520 PyObject *resultobj;
12521 wxDC *arg1 = (wxDC *) 0 ;
12522 wxFont *arg2 = 0 ;
12523 PyObject * obj0 = 0 ;
12524 PyObject * obj1 = 0 ;
12525 char *kwnames[] = {
12526 (char *) "self",(char *) "font", NULL
12527 };
12528
12529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12532 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12533 SWIG_POINTER_EXCEPTION | 0)) == -1)
12534 SWIG_fail;
12535 if (arg2 == NULL) {
12536 PyErr_SetString(PyExc_TypeError,"null reference");
12537 SWIG_fail;
12538 }
12539 {
12540 PyThreadState* __tstate = wxPyBeginAllowThreads();
12541 (arg1)->SetFont((wxFont const &)*arg2);
12542
12543 wxPyEndAllowThreads(__tstate);
12544 if (PyErr_Occurred()) SWIG_fail;
12545 }
12546 Py_INCREF(Py_None); resultobj = Py_None;
12547 return resultobj;
12548 fail:
12549 return NULL;
12550 }
12551
12552
12553 static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
12554 PyObject *resultobj;
12555 wxDC *arg1 = (wxDC *) 0 ;
12556 wxPen *arg2 = 0 ;
12557 PyObject * obj0 = 0 ;
12558 PyObject * obj1 = 0 ;
12559 char *kwnames[] = {
12560 (char *) "self",(char *) "pen", NULL
12561 };
12562
12563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12566 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12567 SWIG_POINTER_EXCEPTION | 0)) == -1)
12568 SWIG_fail;
12569 if (arg2 == NULL) {
12570 PyErr_SetString(PyExc_TypeError,"null reference");
12571 SWIG_fail;
12572 }
12573 {
12574 PyThreadState* __tstate = wxPyBeginAllowThreads();
12575 (arg1)->SetPen((wxPen const &)*arg2);
12576
12577 wxPyEndAllowThreads(__tstate);
12578 if (PyErr_Occurred()) SWIG_fail;
12579 }
12580 Py_INCREF(Py_None); resultobj = Py_None;
12581 return resultobj;
12582 fail:
12583 return NULL;
12584 }
12585
12586
12587 static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
12588 PyObject *resultobj;
12589 wxDC *arg1 = (wxDC *) 0 ;
12590 wxBrush *arg2 = 0 ;
12591 PyObject * obj0 = 0 ;
12592 PyObject * obj1 = 0 ;
12593 char *kwnames[] = {
12594 (char *) "self",(char *) "brush", NULL
12595 };
12596
12597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12600 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12601 SWIG_POINTER_EXCEPTION | 0)) == -1)
12602 SWIG_fail;
12603 if (arg2 == NULL) {
12604 PyErr_SetString(PyExc_TypeError,"null reference");
12605 SWIG_fail;
12606 }
12607 {
12608 PyThreadState* __tstate = wxPyBeginAllowThreads();
12609 (arg1)->SetBrush((wxBrush const &)*arg2);
12610
12611 wxPyEndAllowThreads(__tstate);
12612 if (PyErr_Occurred()) SWIG_fail;
12613 }
12614 Py_INCREF(Py_None); resultobj = Py_None;
12615 return resultobj;
12616 fail:
12617 return NULL;
12618 }
12619
12620
12621 static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
12622 PyObject *resultobj;
12623 wxDC *arg1 = (wxDC *) 0 ;
12624 wxBrush *arg2 = 0 ;
12625 PyObject * obj0 = 0 ;
12626 PyObject * obj1 = 0 ;
12627 char *kwnames[] = {
12628 (char *) "self",(char *) "brush", NULL
12629 };
12630
12631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12634 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12635 SWIG_POINTER_EXCEPTION | 0)) == -1)
12636 SWIG_fail;
12637 if (arg2 == NULL) {
12638 PyErr_SetString(PyExc_TypeError,"null reference");
12639 SWIG_fail;
12640 }
12641 {
12642 PyThreadState* __tstate = wxPyBeginAllowThreads();
12643 (arg1)->SetBackground((wxBrush const &)*arg2);
12644
12645 wxPyEndAllowThreads(__tstate);
12646 if (PyErr_Occurred()) SWIG_fail;
12647 }
12648 Py_INCREF(Py_None); resultobj = Py_None;
12649 return resultobj;
12650 fail:
12651 return NULL;
12652 }
12653
12654
12655 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
12656 PyObject *resultobj;
12657 wxDC *arg1 = (wxDC *) 0 ;
12658 int arg2 ;
12659 PyObject * obj0 = 0 ;
12660 PyObject * obj1 = 0 ;
12661 char *kwnames[] = {
12662 (char *) "self",(char *) "mode", NULL
12663 };
12664
12665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12668 arg2 = (int) SWIG_AsInt(obj1);
12669 if (PyErr_Occurred()) SWIG_fail;
12670 {
12671 PyThreadState* __tstate = wxPyBeginAllowThreads();
12672 (arg1)->SetBackgroundMode(arg2);
12673
12674 wxPyEndAllowThreads(__tstate);
12675 if (PyErr_Occurred()) SWIG_fail;
12676 }
12677 Py_INCREF(Py_None); resultobj = Py_None;
12678 return resultobj;
12679 fail:
12680 return NULL;
12681 }
12682
12683
12684 static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
12685 PyObject *resultobj;
12686 wxDC *arg1 = (wxDC *) 0 ;
12687 wxPalette *arg2 = 0 ;
12688 PyObject * obj0 = 0 ;
12689 PyObject * obj1 = 0 ;
12690 char *kwnames[] = {
12691 (char *) "self",(char *) "palette", NULL
12692 };
12693
12694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12697 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12698 SWIG_POINTER_EXCEPTION | 0)) == -1)
12699 SWIG_fail;
12700 if (arg2 == NULL) {
12701 PyErr_SetString(PyExc_TypeError,"null reference");
12702 SWIG_fail;
12703 }
12704 {
12705 PyThreadState* __tstate = wxPyBeginAllowThreads();
12706 (arg1)->SetPalette((wxPalette const &)*arg2);
12707
12708 wxPyEndAllowThreads(__tstate);
12709 if (PyErr_Occurred()) SWIG_fail;
12710 }
12711 Py_INCREF(Py_None); resultobj = Py_None;
12712 return resultobj;
12713 fail:
12714 return NULL;
12715 }
12716
12717
12718 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *, PyObject *args, PyObject *kwargs) {
12719 PyObject *resultobj;
12720 wxDC *arg1 = (wxDC *) 0 ;
12721 int arg2 ;
12722 int arg3 ;
12723 int arg4 ;
12724 int arg5 ;
12725 PyObject * obj0 = 0 ;
12726 PyObject * obj1 = 0 ;
12727 PyObject * obj2 = 0 ;
12728 PyObject * obj3 = 0 ;
12729 PyObject * obj4 = 0 ;
12730 char *kwnames[] = {
12731 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12732 };
12733
12734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12737 arg2 = (int) SWIG_AsInt(obj1);
12738 if (PyErr_Occurred()) SWIG_fail;
12739 arg3 = (int) SWIG_AsInt(obj2);
12740 if (PyErr_Occurred()) SWIG_fail;
12741 arg4 = (int) SWIG_AsInt(obj3);
12742 if (PyErr_Occurred()) SWIG_fail;
12743 arg5 = (int) SWIG_AsInt(obj4);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 {
12746 PyThreadState* __tstate = wxPyBeginAllowThreads();
12747 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12748
12749 wxPyEndAllowThreads(__tstate);
12750 if (PyErr_Occurred()) SWIG_fail;
12751 }
12752 Py_INCREF(Py_None); resultobj = Py_None;
12753 return resultobj;
12754 fail:
12755 return NULL;
12756 }
12757
12758
12759 static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12760 PyObject *resultobj;
12761 wxDC *arg1 = (wxDC *) 0 ;
12762 wxPoint *arg2 = 0 ;
12763 wxSize *arg3 = 0 ;
12764 wxPoint temp2 ;
12765 wxSize temp3 ;
12766 PyObject * obj0 = 0 ;
12767 PyObject * obj1 = 0 ;
12768 PyObject * obj2 = 0 ;
12769 char *kwnames[] = {
12770 (char *) "self",(char *) "pt",(char *) "sz", NULL
12771 };
12772
12773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12776 {
12777 arg2 = &temp2;
12778 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12779 }
12780 {
12781 arg3 = &temp3;
12782 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12783 }
12784 {
12785 PyThreadState* __tstate = wxPyBeginAllowThreads();
12786 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12787
12788 wxPyEndAllowThreads(__tstate);
12789 if (PyErr_Occurred()) SWIG_fail;
12790 }
12791 Py_INCREF(Py_None); resultobj = Py_None;
12792 return resultobj;
12793 fail:
12794 return NULL;
12795 }
12796
12797
12798 static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
12799 PyObject *resultobj;
12800 wxDC *arg1 = (wxDC *) 0 ;
12801 wxRect *arg2 = 0 ;
12802 wxRect temp2 ;
12803 PyObject * obj0 = 0 ;
12804 PyObject * obj1 = 0 ;
12805 char *kwnames[] = {
12806 (char *) "self",(char *) "rect", NULL
12807 };
12808
12809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12812 {
12813 arg2 = &temp2;
12814 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12815 }
12816 {
12817 PyThreadState* __tstate = wxPyBeginAllowThreads();
12818 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12819
12820 wxPyEndAllowThreads(__tstate);
12821 if (PyErr_Occurred()) SWIG_fail;
12822 }
12823 Py_INCREF(Py_None); resultobj = Py_None;
12824 return resultobj;
12825 fail:
12826 return NULL;
12827 }
12828
12829
12830 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12831 PyObject *resultobj;
12832 wxDC *arg1 = (wxDC *) 0 ;
12833 wxRegion *arg2 = 0 ;
12834 PyObject * obj0 = 0 ;
12835 PyObject * obj1 = 0 ;
12836 char *kwnames[] = {
12837 (char *) "self",(char *) "region", NULL
12838 };
12839
12840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12844 SWIG_POINTER_EXCEPTION | 0)) == -1)
12845 SWIG_fail;
12846 if (arg2 == NULL) {
12847 PyErr_SetString(PyExc_TypeError,"null reference");
12848 SWIG_fail;
12849 }
12850 {
12851 PyThreadState* __tstate = wxPyBeginAllowThreads();
12852 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12853
12854 wxPyEndAllowThreads(__tstate);
12855 if (PyErr_Occurred()) SWIG_fail;
12856 }
12857 Py_INCREF(Py_None); resultobj = Py_None;
12858 return resultobj;
12859 fail:
12860 return NULL;
12861 }
12862
12863
12864 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12865 PyObject *resultobj;
12866 wxDC *arg1 = (wxDC *) 0 ;
12867 PyObject * obj0 = 0 ;
12868 char *kwnames[] = {
12869 (char *) "self", NULL
12870 };
12871
12872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12875 {
12876 PyThreadState* __tstate = wxPyBeginAllowThreads();
12877 (arg1)->DestroyClippingRegion();
12878
12879 wxPyEndAllowThreads(__tstate);
12880 if (PyErr_Occurred()) SWIG_fail;
12881 }
12882 Py_INCREF(Py_None); resultobj = Py_None;
12883 return resultobj;
12884 fail:
12885 return NULL;
12886 }
12887
12888
12889 static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
12890 PyObject *resultobj;
12891 wxDC *arg1 = (wxDC *) 0 ;
12892 int *arg2 = (int *) 0 ;
12893 int *arg3 = (int *) 0 ;
12894 int *arg4 = (int *) 0 ;
12895 int *arg5 = (int *) 0 ;
12896 int temp2 ;
12897 int temp3 ;
12898 int temp4 ;
12899 int temp5 ;
12900 PyObject * obj0 = 0 ;
12901 char *kwnames[] = {
12902 (char *) "self", NULL
12903 };
12904
12905 arg2 = &temp2;
12906 arg3 = &temp3;
12907 arg4 = &temp4;
12908 arg5 = &temp5;
12909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12912 {
12913 PyThreadState* __tstate = wxPyBeginAllowThreads();
12914 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12915
12916 wxPyEndAllowThreads(__tstate);
12917 if (PyErr_Occurred()) SWIG_fail;
12918 }
12919 Py_INCREF(Py_None); resultobj = Py_None;
12920 {
12921 PyObject *o = PyInt_FromLong((long) (*arg2));
12922 resultobj = t_output_helper(resultobj,o);
12923 }
12924 {
12925 PyObject *o = PyInt_FromLong((long) (*arg3));
12926 resultobj = t_output_helper(resultobj,o);
12927 }
12928 {
12929 PyObject *o = PyInt_FromLong((long) (*arg4));
12930 resultobj = t_output_helper(resultobj,o);
12931 }
12932 {
12933 PyObject *o = PyInt_FromLong((long) (*arg5));
12934 resultobj = t_output_helper(resultobj,o);
12935 }
12936 return resultobj;
12937 fail:
12938 return NULL;
12939 }
12940
12941
12942 static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
12943 PyObject *resultobj;
12944 wxDC *arg1 = (wxDC *) 0 ;
12945 wxRect result;
12946 PyObject * obj0 = 0 ;
12947 char *kwnames[] = {
12948 (char *) "self", NULL
12949 };
12950
12951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12954 {
12955 PyThreadState* __tstate = wxPyBeginAllowThreads();
12956 result = wxDC_GetClippingRect(arg1);
12957
12958 wxPyEndAllowThreads(__tstate);
12959 if (PyErr_Occurred()) SWIG_fail;
12960 }
12961 {
12962 wxRect * resultptr;
12963 resultptr = new wxRect((wxRect &) result);
12964 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12965 }
12966 return resultobj;
12967 fail:
12968 return NULL;
12969 }
12970
12971
12972 static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
12973 PyObject *resultobj;
12974 wxDC *arg1 = (wxDC *) 0 ;
12975 int result;
12976 PyObject * obj0 = 0 ;
12977 char *kwnames[] = {
12978 (char *) "self", NULL
12979 };
12980
12981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12984 {
12985 PyThreadState* __tstate = wxPyBeginAllowThreads();
12986 result = (int)((wxDC const *)arg1)->GetCharHeight();
12987
12988 wxPyEndAllowThreads(__tstate);
12989 if (PyErr_Occurred()) SWIG_fail;
12990 }
12991 resultobj = SWIG_FromInt((int)result);
12992 return resultobj;
12993 fail:
12994 return NULL;
12995 }
12996
12997
12998 static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
12999 PyObject *resultobj;
13000 wxDC *arg1 = (wxDC *) 0 ;
13001 int result;
13002 PyObject * obj0 = 0 ;
13003 char *kwnames[] = {
13004 (char *) "self", NULL
13005 };
13006
13007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13010 {
13011 PyThreadState* __tstate = wxPyBeginAllowThreads();
13012 result = (int)((wxDC const *)arg1)->GetCharWidth();
13013
13014 wxPyEndAllowThreads(__tstate);
13015 if (PyErr_Occurred()) SWIG_fail;
13016 }
13017 resultobj = SWIG_FromInt((int)result);
13018 return resultobj;
13019 fail:
13020 return NULL;
13021 }
13022
13023
13024 static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13025 PyObject *resultobj;
13026 wxDC *arg1 = (wxDC *) 0 ;
13027 wxString *arg2 = 0 ;
13028 int *arg3 = (int *) 0 ;
13029 int *arg4 = (int *) 0 ;
13030 bool temp2 = False ;
13031 int temp3 ;
13032 int temp4 ;
13033 PyObject * obj0 = 0 ;
13034 PyObject * obj1 = 0 ;
13035 char *kwnames[] = {
13036 (char *) "self",(char *) "string", NULL
13037 };
13038
13039 arg3 = &temp3;
13040 arg4 = &temp4;
13041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13044 {
13045 arg2 = wxString_in_helper(obj1);
13046 if (arg2 == NULL) SWIG_fail;
13047 temp2 = True;
13048 }
13049 {
13050 PyThreadState* __tstate = wxPyBeginAllowThreads();
13051 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13052
13053 wxPyEndAllowThreads(__tstate);
13054 if (PyErr_Occurred()) SWIG_fail;
13055 }
13056 Py_INCREF(Py_None); resultobj = Py_None;
13057 {
13058 PyObject *o = PyInt_FromLong((long) (*arg3));
13059 resultobj = t_output_helper(resultobj,o);
13060 }
13061 {
13062 PyObject *o = PyInt_FromLong((long) (*arg4));
13063 resultobj = t_output_helper(resultobj,o);
13064 }
13065 {
13066 if (temp2)
13067 delete arg2;
13068 }
13069 return resultobj;
13070 fail:
13071 {
13072 if (temp2)
13073 delete arg2;
13074 }
13075 return NULL;
13076 }
13077
13078
13079 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13080 PyObject *resultobj;
13081 wxDC *arg1 = (wxDC *) 0 ;
13082 wxString *arg2 = 0 ;
13083 int *arg3 = (int *) 0 ;
13084 int *arg4 = (int *) 0 ;
13085 int *arg5 = (int *) 0 ;
13086 int *arg6 = (int *) 0 ;
13087 wxFont *arg7 = (wxFont *) NULL ;
13088 bool temp2 = False ;
13089 int temp3 ;
13090 int temp4 ;
13091 int temp5 ;
13092 int temp6 ;
13093 PyObject * obj0 = 0 ;
13094 PyObject * obj1 = 0 ;
13095 PyObject * obj2 = 0 ;
13096 char *kwnames[] = {
13097 (char *) "self",(char *) "string",(char *) "font", NULL
13098 };
13099
13100 arg3 = &temp3;
13101 arg4 = &temp4;
13102 arg5 = &temp5;
13103 arg6 = &temp6;
13104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13107 {
13108 arg2 = wxString_in_helper(obj1);
13109 if (arg2 == NULL) SWIG_fail;
13110 temp2 = True;
13111 }
13112 if (obj2) {
13113 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13115 }
13116 {
13117 PyThreadState* __tstate = wxPyBeginAllowThreads();
13118 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13119
13120 wxPyEndAllowThreads(__tstate);
13121 if (PyErr_Occurred()) SWIG_fail;
13122 }
13123 Py_INCREF(Py_None); resultobj = Py_None;
13124 {
13125 PyObject *o = PyInt_FromLong((long) (*arg3));
13126 resultobj = t_output_helper(resultobj,o);
13127 }
13128 {
13129 PyObject *o = PyInt_FromLong((long) (*arg4));
13130 resultobj = t_output_helper(resultobj,o);
13131 }
13132 {
13133 PyObject *o = PyInt_FromLong((long) (*arg5));
13134 resultobj = t_output_helper(resultobj,o);
13135 }
13136 {
13137 PyObject *o = PyInt_FromLong((long) (*arg6));
13138 resultobj = t_output_helper(resultobj,o);
13139 }
13140 {
13141 if (temp2)
13142 delete arg2;
13143 }
13144 return resultobj;
13145 fail:
13146 {
13147 if (temp2)
13148 delete arg2;
13149 }
13150 return NULL;
13151 }
13152
13153
13154 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13155 PyObject *resultobj;
13156 wxDC *arg1 = (wxDC *) 0 ;
13157 wxString *arg2 = 0 ;
13158 int *arg3 = (int *) 0 ;
13159 int *arg4 = (int *) 0 ;
13160 int *arg5 = (int *) 0 ;
13161 wxFont *arg6 = (wxFont *) NULL ;
13162 bool temp2 = False ;
13163 int temp3 ;
13164 int temp4 ;
13165 int temp5 ;
13166 PyObject * obj0 = 0 ;
13167 PyObject * obj1 = 0 ;
13168 PyObject * obj2 = 0 ;
13169 char *kwnames[] = {
13170 (char *) "self",(char *) "text",(char *) "font", NULL
13171 };
13172
13173 arg3 = &temp3;
13174 arg4 = &temp4;
13175 arg5 = &temp5;
13176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13179 {
13180 arg2 = wxString_in_helper(obj1);
13181 if (arg2 == NULL) SWIG_fail;
13182 temp2 = True;
13183 }
13184 if (obj2) {
13185 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13187 }
13188 {
13189 PyThreadState* __tstate = wxPyBeginAllowThreads();
13190 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13191
13192 wxPyEndAllowThreads(__tstate);
13193 if (PyErr_Occurred()) SWIG_fail;
13194 }
13195 Py_INCREF(Py_None); resultobj = Py_None;
13196 {
13197 PyObject *o = PyInt_FromLong((long) (*arg3));
13198 resultobj = t_output_helper(resultobj,o);
13199 }
13200 {
13201 PyObject *o = PyInt_FromLong((long) (*arg4));
13202 resultobj = t_output_helper(resultobj,o);
13203 }
13204 {
13205 PyObject *o = PyInt_FromLong((long) (*arg5));
13206 resultobj = t_output_helper(resultobj,o);
13207 }
13208 {
13209 if (temp2)
13210 delete arg2;
13211 }
13212 return resultobj;
13213 fail:
13214 {
13215 if (temp2)
13216 delete arg2;
13217 }
13218 return NULL;
13219 }
13220
13221
13222 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
13223 PyObject *resultobj;
13224 wxDC *arg1 = (wxDC *) 0 ;
13225 wxString *arg2 = 0 ;
13226 wxArrayInt result;
13227 bool temp2 = False ;
13228 PyObject * obj0 = 0 ;
13229 PyObject * obj1 = 0 ;
13230 char *kwnames[] = {
13231 (char *) "self",(char *) "text", NULL
13232 };
13233
13234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13237 {
13238 arg2 = wxString_in_helper(obj1);
13239 if (arg2 == NULL) SWIG_fail;
13240 temp2 = True;
13241 }
13242 {
13243 PyThreadState* __tstate = wxPyBeginAllowThreads();
13244 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13245
13246 wxPyEndAllowThreads(__tstate);
13247 if (PyErr_Occurred()) SWIG_fail;
13248 }
13249 {
13250 resultobj = PyList_New(0);
13251 size_t idx;
13252 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13253 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13254 PyList_Append(resultobj, val);
13255 Py_DECREF(val);
13256 }
13257 }
13258 {
13259 if (temp2)
13260 delete arg2;
13261 }
13262 return resultobj;
13263 fail:
13264 {
13265 if (temp2)
13266 delete arg2;
13267 }
13268 return NULL;
13269 }
13270
13271
13272 static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
13273 PyObject *resultobj;
13274 wxDC *arg1 = (wxDC *) 0 ;
13275 wxSize result;
13276 PyObject * obj0 = 0 ;
13277 char *kwnames[] = {
13278 (char *) "self", NULL
13279 };
13280
13281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13284 {
13285 PyThreadState* __tstate = wxPyBeginAllowThreads();
13286 result = (arg1)->GetSize();
13287
13288 wxPyEndAllowThreads(__tstate);
13289 if (PyErr_Occurred()) SWIG_fail;
13290 }
13291 {
13292 wxSize * resultptr;
13293 resultptr = new wxSize((wxSize &) result);
13294 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13295 }
13296 return resultobj;
13297 fail:
13298 return NULL;
13299 }
13300
13301
13302 static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13303 PyObject *resultobj;
13304 wxDC *arg1 = (wxDC *) 0 ;
13305 int *arg2 = (int *) 0 ;
13306 int *arg3 = (int *) 0 ;
13307 int temp2 ;
13308 int temp3 ;
13309 PyObject * obj0 = 0 ;
13310 char *kwnames[] = {
13311 (char *) "self", NULL
13312 };
13313
13314 arg2 = &temp2;
13315 arg3 = &temp3;
13316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13319 {
13320 PyThreadState* __tstate = wxPyBeginAllowThreads();
13321 (arg1)->GetSize(arg2,arg3);
13322
13323 wxPyEndAllowThreads(__tstate);
13324 if (PyErr_Occurred()) SWIG_fail;
13325 }
13326 Py_INCREF(Py_None); resultobj = Py_None;
13327 {
13328 PyObject *o = PyInt_FromLong((long) (*arg2));
13329 resultobj = t_output_helper(resultobj,o);
13330 }
13331 {
13332 PyObject *o = PyInt_FromLong((long) (*arg3));
13333 resultobj = t_output_helper(resultobj,o);
13334 }
13335 return resultobj;
13336 fail:
13337 return NULL;
13338 }
13339
13340
13341 static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
13342 PyObject *resultobj;
13343 wxDC *arg1 = (wxDC *) 0 ;
13344 wxSize result;
13345 PyObject * obj0 = 0 ;
13346 char *kwnames[] = {
13347 (char *) "self", NULL
13348 };
13349
13350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13353 {
13354 PyThreadState* __tstate = wxPyBeginAllowThreads();
13355 result = ((wxDC const *)arg1)->GetSizeMM();
13356
13357 wxPyEndAllowThreads(__tstate);
13358 if (PyErr_Occurred()) SWIG_fail;
13359 }
13360 {
13361 wxSize * resultptr;
13362 resultptr = new wxSize((wxSize &) result);
13363 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13364 }
13365 return resultobj;
13366 fail:
13367 return NULL;
13368 }
13369
13370
13371 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13372 PyObject *resultobj;
13373 wxDC *arg1 = (wxDC *) 0 ;
13374 int *arg2 = (int *) 0 ;
13375 int *arg3 = (int *) 0 ;
13376 int temp2 ;
13377 int temp3 ;
13378 PyObject * obj0 = 0 ;
13379 char *kwnames[] = {
13380 (char *) "self", NULL
13381 };
13382
13383 arg2 = &temp2;
13384 arg3 = &temp3;
13385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13388 {
13389 PyThreadState* __tstate = wxPyBeginAllowThreads();
13390 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13391
13392 wxPyEndAllowThreads(__tstate);
13393 if (PyErr_Occurred()) SWIG_fail;
13394 }
13395 Py_INCREF(Py_None); resultobj = Py_None;
13396 {
13397 PyObject *o = PyInt_FromLong((long) (*arg2));
13398 resultobj = t_output_helper(resultobj,o);
13399 }
13400 {
13401 PyObject *o = PyInt_FromLong((long) (*arg3));
13402 resultobj = t_output_helper(resultobj,o);
13403 }
13404 return resultobj;
13405 fail:
13406 return NULL;
13407 }
13408
13409
13410 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
13411 PyObject *resultobj;
13412 wxDC *arg1 = (wxDC *) 0 ;
13413 int arg2 ;
13414 int result;
13415 PyObject * obj0 = 0 ;
13416 PyObject * obj1 = 0 ;
13417 char *kwnames[] = {
13418 (char *) "self",(char *) "x", NULL
13419 };
13420
13421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13424 arg2 = (int) SWIG_AsInt(obj1);
13425 if (PyErr_Occurred()) SWIG_fail;
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13429
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 resultobj = SWIG_FromInt((int)result);
13434 return resultobj;
13435 fail:
13436 return NULL;
13437 }
13438
13439
13440 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
13441 PyObject *resultobj;
13442 wxDC *arg1 = (wxDC *) 0 ;
13443 int arg2 ;
13444 int result;
13445 PyObject * obj0 = 0 ;
13446 PyObject * obj1 = 0 ;
13447 char *kwnames[] = {
13448 (char *) "self",(char *) "y", NULL
13449 };
13450
13451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13454 arg2 = (int) SWIG_AsInt(obj1);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 {
13457 PyThreadState* __tstate = wxPyBeginAllowThreads();
13458 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13459
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 resultobj = SWIG_FromInt((int)result);
13464 return resultobj;
13465 fail:
13466 return NULL;
13467 }
13468
13469
13470 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13471 PyObject *resultobj;
13472 wxDC *arg1 = (wxDC *) 0 ;
13473 int arg2 ;
13474 int result;
13475 PyObject * obj0 = 0 ;
13476 PyObject * obj1 = 0 ;
13477 char *kwnames[] = {
13478 (char *) "self",(char *) "x", NULL
13479 };
13480
13481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13484 arg2 = (int) SWIG_AsInt(obj1);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 {
13487 PyThreadState* __tstate = wxPyBeginAllowThreads();
13488 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13489
13490 wxPyEndAllowThreads(__tstate);
13491 if (PyErr_Occurred()) SWIG_fail;
13492 }
13493 resultobj = SWIG_FromInt((int)result);
13494 return resultobj;
13495 fail:
13496 return NULL;
13497 }
13498
13499
13500 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13501 PyObject *resultobj;
13502 wxDC *arg1 = (wxDC *) 0 ;
13503 int arg2 ;
13504 int result;
13505 PyObject * obj0 = 0 ;
13506 PyObject * obj1 = 0 ;
13507 char *kwnames[] = {
13508 (char *) "self",(char *) "y", NULL
13509 };
13510
13511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13514 arg2 = (int) SWIG_AsInt(obj1);
13515 if (PyErr_Occurred()) SWIG_fail;
13516 {
13517 PyThreadState* __tstate = wxPyBeginAllowThreads();
13518 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13519
13520 wxPyEndAllowThreads(__tstate);
13521 if (PyErr_Occurred()) SWIG_fail;
13522 }
13523 resultobj = SWIG_FromInt((int)result);
13524 return resultobj;
13525 fail:
13526 return NULL;
13527 }
13528
13529
13530 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
13531 PyObject *resultobj;
13532 wxDC *arg1 = (wxDC *) 0 ;
13533 int arg2 ;
13534 int result;
13535 PyObject * obj0 = 0 ;
13536 PyObject * obj1 = 0 ;
13537 char *kwnames[] = {
13538 (char *) "self",(char *) "x", NULL
13539 };
13540
13541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13544 arg2 = (int) SWIG_AsInt(obj1);
13545 if (PyErr_Occurred()) SWIG_fail;
13546 {
13547 PyThreadState* __tstate = wxPyBeginAllowThreads();
13548 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13549
13550 wxPyEndAllowThreads(__tstate);
13551 if (PyErr_Occurred()) SWIG_fail;
13552 }
13553 resultobj = SWIG_FromInt((int)result);
13554 return resultobj;
13555 fail:
13556 return NULL;
13557 }
13558
13559
13560 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
13561 PyObject *resultobj;
13562 wxDC *arg1 = (wxDC *) 0 ;
13563 int arg2 ;
13564 int result;
13565 PyObject * obj0 = 0 ;
13566 PyObject * obj1 = 0 ;
13567 char *kwnames[] = {
13568 (char *) "self",(char *) "y", NULL
13569 };
13570
13571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13574 arg2 = (int) SWIG_AsInt(obj1);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 {
13577 PyThreadState* __tstate = wxPyBeginAllowThreads();
13578 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13579
13580 wxPyEndAllowThreads(__tstate);
13581 if (PyErr_Occurred()) SWIG_fail;
13582 }
13583 resultobj = SWIG_FromInt((int)result);
13584 return resultobj;
13585 fail:
13586 return NULL;
13587 }
13588
13589
13590 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13591 PyObject *resultobj;
13592 wxDC *arg1 = (wxDC *) 0 ;
13593 int arg2 ;
13594 int result;
13595 PyObject * obj0 = 0 ;
13596 PyObject * obj1 = 0 ;
13597 char *kwnames[] = {
13598 (char *) "self",(char *) "x", NULL
13599 };
13600
13601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13604 arg2 = (int) SWIG_AsInt(obj1);
13605 if (PyErr_Occurred()) SWIG_fail;
13606 {
13607 PyThreadState* __tstate = wxPyBeginAllowThreads();
13608 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13609
13610 wxPyEndAllowThreads(__tstate);
13611 if (PyErr_Occurred()) SWIG_fail;
13612 }
13613 resultobj = SWIG_FromInt((int)result);
13614 return resultobj;
13615 fail:
13616 return NULL;
13617 }
13618
13619
13620 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13621 PyObject *resultobj;
13622 wxDC *arg1 = (wxDC *) 0 ;
13623 int arg2 ;
13624 int result;
13625 PyObject * obj0 = 0 ;
13626 PyObject * obj1 = 0 ;
13627 char *kwnames[] = {
13628 (char *) "self",(char *) "y", NULL
13629 };
13630
13631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13634 arg2 = (int) SWIG_AsInt(obj1);
13635 if (PyErr_Occurred()) SWIG_fail;
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13639
13640 wxPyEndAllowThreads(__tstate);
13641 if (PyErr_Occurred()) SWIG_fail;
13642 }
13643 resultobj = SWIG_FromInt((int)result);
13644 return resultobj;
13645 fail:
13646 return NULL;
13647 }
13648
13649
13650 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
13651 PyObject *resultobj;
13652 wxDC *arg1 = (wxDC *) 0 ;
13653 bool result;
13654 PyObject * obj0 = 0 ;
13655 char *kwnames[] = {
13656 (char *) "self", NULL
13657 };
13658
13659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13662 {
13663 PyThreadState* __tstate = wxPyBeginAllowThreads();
13664 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13665
13666 wxPyEndAllowThreads(__tstate);
13667 if (PyErr_Occurred()) SWIG_fail;
13668 }
13669 {
13670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13671 }
13672 return resultobj;
13673 fail:
13674 return NULL;
13675 }
13676
13677
13678 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13679 PyObject *resultobj;
13680 wxDC *arg1 = (wxDC *) 0 ;
13681 bool result;
13682 PyObject * obj0 = 0 ;
13683 char *kwnames[] = {
13684 (char *) "self", NULL
13685 };
13686
13687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13690 {
13691 PyThreadState* __tstate = wxPyBeginAllowThreads();
13692 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13693
13694 wxPyEndAllowThreads(__tstate);
13695 if (PyErr_Occurred()) SWIG_fail;
13696 }
13697 {
13698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13699 }
13700 return resultobj;
13701 fail:
13702 return NULL;
13703 }
13704
13705
13706 static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
13707 PyObject *resultobj;
13708 wxDC *arg1 = (wxDC *) 0 ;
13709 int result;
13710 PyObject * obj0 = 0 ;
13711 char *kwnames[] = {
13712 (char *) "self", NULL
13713 };
13714
13715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13718 {
13719 PyThreadState* __tstate = wxPyBeginAllowThreads();
13720 result = (int)((wxDC const *)arg1)->GetDepth();
13721
13722 wxPyEndAllowThreads(__tstate);
13723 if (PyErr_Occurred()) SWIG_fail;
13724 }
13725 resultobj = SWIG_FromInt((int)result);
13726 return resultobj;
13727 fail:
13728 return NULL;
13729 }
13730
13731
13732 static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
13733 PyObject *resultobj;
13734 wxDC *arg1 = (wxDC *) 0 ;
13735 wxSize result;
13736 PyObject * obj0 = 0 ;
13737 char *kwnames[] = {
13738 (char *) "self", NULL
13739 };
13740
13741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13744 {
13745 PyThreadState* __tstate = wxPyBeginAllowThreads();
13746 result = ((wxDC const *)arg1)->GetPPI();
13747
13748 wxPyEndAllowThreads(__tstate);
13749 if (PyErr_Occurred()) SWIG_fail;
13750 }
13751 {
13752 wxSize * resultptr;
13753 resultptr = new wxSize((wxSize &) result);
13754 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13755 }
13756 return resultobj;
13757 fail:
13758 return NULL;
13759 }
13760
13761
13762 static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
13763 PyObject *resultobj;
13764 wxDC *arg1 = (wxDC *) 0 ;
13765 bool result;
13766 PyObject * obj0 = 0 ;
13767 char *kwnames[] = {
13768 (char *) "self", NULL
13769 };
13770
13771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",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 result = (bool)((wxDC const *)arg1)->Ok();
13777
13778 wxPyEndAllowThreads(__tstate);
13779 if (PyErr_Occurred()) SWIG_fail;
13780 }
13781 {
13782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13783 }
13784 return resultobj;
13785 fail:
13786 return NULL;
13787 }
13788
13789
13790 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
13791 PyObject *resultobj;
13792 wxDC *arg1 = (wxDC *) 0 ;
13793 int result;
13794 PyObject * obj0 = 0 ;
13795 char *kwnames[] = {
13796 (char *) "self", NULL
13797 };
13798
13799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13802 {
13803 PyThreadState* __tstate = wxPyBeginAllowThreads();
13804 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13805
13806 wxPyEndAllowThreads(__tstate);
13807 if (PyErr_Occurred()) SWIG_fail;
13808 }
13809 resultobj = SWIG_FromInt((int)result);
13810 return resultobj;
13811 fail:
13812 return NULL;
13813 }
13814
13815
13816 static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13817 PyObject *resultobj;
13818 wxDC *arg1 = (wxDC *) 0 ;
13819 wxBrush *result;
13820 PyObject * obj0 = 0 ;
13821 char *kwnames[] = {
13822 (char *) "self", NULL
13823 };
13824
13825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13828 {
13829 PyThreadState* __tstate = wxPyBeginAllowThreads();
13830 {
13831 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13832 result = (wxBrush *) &_result_ref;
13833 }
13834
13835 wxPyEndAllowThreads(__tstate);
13836 if (PyErr_Occurred()) SWIG_fail;
13837 }
13838 {
13839 wxBrush* resultptr = new wxBrush(*result);
13840 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13841 }
13842 return resultobj;
13843 fail:
13844 return NULL;
13845 }
13846
13847
13848 static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
13849 PyObject *resultobj;
13850 wxDC *arg1 = (wxDC *) 0 ;
13851 wxBrush *result;
13852 PyObject * obj0 = 0 ;
13853 char *kwnames[] = {
13854 (char *) "self", NULL
13855 };
13856
13857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13860 {
13861 PyThreadState* __tstate = wxPyBeginAllowThreads();
13862 {
13863 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13864 result = (wxBrush *) &_result_ref;
13865 }
13866
13867 wxPyEndAllowThreads(__tstate);
13868 if (PyErr_Occurred()) SWIG_fail;
13869 }
13870 {
13871 wxBrush* resultptr = new wxBrush(*result);
13872 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13873 }
13874 return resultobj;
13875 fail:
13876 return NULL;
13877 }
13878
13879
13880 static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
13881 PyObject *resultobj;
13882 wxDC *arg1 = (wxDC *) 0 ;
13883 wxFont *result;
13884 PyObject * obj0 = 0 ;
13885 char *kwnames[] = {
13886 (char *) "self", NULL
13887 };
13888
13889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13892 {
13893 PyThreadState* __tstate = wxPyBeginAllowThreads();
13894 {
13895 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13896 result = (wxFont *) &_result_ref;
13897 }
13898
13899 wxPyEndAllowThreads(__tstate);
13900 if (PyErr_Occurred()) SWIG_fail;
13901 }
13902 {
13903 wxFont* resultptr = new wxFont(*result);
13904 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13905 }
13906 return resultobj;
13907 fail:
13908 return NULL;
13909 }
13910
13911
13912 static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
13913 PyObject *resultobj;
13914 wxDC *arg1 = (wxDC *) 0 ;
13915 wxPen *result;
13916 PyObject * obj0 = 0 ;
13917 char *kwnames[] = {
13918 (char *) "self", NULL
13919 };
13920
13921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13924 {
13925 PyThreadState* __tstate = wxPyBeginAllowThreads();
13926 {
13927 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13928 result = (wxPen *) &_result_ref;
13929 }
13930
13931 wxPyEndAllowThreads(__tstate);
13932 if (PyErr_Occurred()) SWIG_fail;
13933 }
13934 {
13935 wxPen* resultptr = new wxPen(*result);
13936 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13937 }
13938 return resultobj;
13939 fail:
13940 return NULL;
13941 }
13942
13943
13944 static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13945 PyObject *resultobj;
13946 wxDC *arg1 = (wxDC *) 0 ;
13947 wxColour *result;
13948 PyObject * obj0 = 0 ;
13949 char *kwnames[] = {
13950 (char *) "self", NULL
13951 };
13952
13953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13956 {
13957 PyThreadState* __tstate = wxPyBeginAllowThreads();
13958 {
13959 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13960 result = (wxColour *) &_result_ref;
13961 }
13962
13963 wxPyEndAllowThreads(__tstate);
13964 if (PyErr_Occurred()) SWIG_fail;
13965 }
13966 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13967 return resultobj;
13968 fail:
13969 return NULL;
13970 }
13971
13972
13973 static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
13974 PyObject *resultobj;
13975 wxDC *arg1 = (wxDC *) 0 ;
13976 wxColour *result;
13977 PyObject * obj0 = 0 ;
13978 char *kwnames[] = {
13979 (char *) "self", NULL
13980 };
13981
13982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13985 {
13986 PyThreadState* __tstate = wxPyBeginAllowThreads();
13987 {
13988 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13989 result = (wxColour *) &_result_ref;
13990 }
13991
13992 wxPyEndAllowThreads(__tstate);
13993 if (PyErr_Occurred()) SWIG_fail;
13994 }
13995 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13996 return resultobj;
13997 fail:
13998 return NULL;
13999 }
14000
14001
14002 static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
14003 PyObject *resultobj;
14004 wxDC *arg1 = (wxDC *) 0 ;
14005 wxColour *arg2 = 0 ;
14006 wxColour temp2 ;
14007 PyObject * obj0 = 0 ;
14008 PyObject * obj1 = 0 ;
14009 char *kwnames[] = {
14010 (char *) "self",(char *) "colour", NULL
14011 };
14012
14013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14016 {
14017 arg2 = &temp2;
14018 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14019 }
14020 {
14021 PyThreadState* __tstate = wxPyBeginAllowThreads();
14022 (arg1)->SetTextForeground((wxColour const &)*arg2);
14023
14024 wxPyEndAllowThreads(__tstate);
14025 if (PyErr_Occurred()) SWIG_fail;
14026 }
14027 Py_INCREF(Py_None); resultobj = Py_None;
14028 return resultobj;
14029 fail:
14030 return NULL;
14031 }
14032
14033
14034 static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
14035 PyObject *resultobj;
14036 wxDC *arg1 = (wxDC *) 0 ;
14037 wxColour *arg2 = 0 ;
14038 wxColour temp2 ;
14039 PyObject * obj0 = 0 ;
14040 PyObject * obj1 = 0 ;
14041 char *kwnames[] = {
14042 (char *) "self",(char *) "colour", NULL
14043 };
14044
14045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14048 {
14049 arg2 = &temp2;
14050 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14051 }
14052 {
14053 PyThreadState* __tstate = wxPyBeginAllowThreads();
14054 (arg1)->SetTextBackground((wxColour const &)*arg2);
14055
14056 wxPyEndAllowThreads(__tstate);
14057 if (PyErr_Occurred()) SWIG_fail;
14058 }
14059 Py_INCREF(Py_None); resultobj = Py_None;
14060 return resultobj;
14061 fail:
14062 return NULL;
14063 }
14064
14065
14066 static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
14067 PyObject *resultobj;
14068 wxDC *arg1 = (wxDC *) 0 ;
14069 int result;
14070 PyObject * obj0 = 0 ;
14071 char *kwnames[] = {
14072 (char *) "self", NULL
14073 };
14074
14075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14078 {
14079 PyThreadState* __tstate = wxPyBeginAllowThreads();
14080 result = (int)((wxDC const *)arg1)->GetMapMode();
14081
14082 wxPyEndAllowThreads(__tstate);
14083 if (PyErr_Occurred()) SWIG_fail;
14084 }
14085 resultobj = SWIG_FromInt((int)result);
14086 return resultobj;
14087 fail:
14088 return NULL;
14089 }
14090
14091
14092 static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
14093 PyObject *resultobj;
14094 wxDC *arg1 = (wxDC *) 0 ;
14095 int arg2 ;
14096 PyObject * obj0 = 0 ;
14097 PyObject * obj1 = 0 ;
14098 char *kwnames[] = {
14099 (char *) "self",(char *) "mode", NULL
14100 };
14101
14102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14105 arg2 = (int) SWIG_AsInt(obj1);
14106 if (PyErr_Occurred()) SWIG_fail;
14107 {
14108 PyThreadState* __tstate = wxPyBeginAllowThreads();
14109 (arg1)->SetMapMode(arg2);
14110
14111 wxPyEndAllowThreads(__tstate);
14112 if (PyErr_Occurred()) SWIG_fail;
14113 }
14114 Py_INCREF(Py_None); resultobj = Py_None;
14115 return resultobj;
14116 fail:
14117 return NULL;
14118 }
14119
14120
14121 static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
14122 PyObject *resultobj;
14123 wxDC *arg1 = (wxDC *) 0 ;
14124 double *arg2 = (double *) 0 ;
14125 double *arg3 = (double *) 0 ;
14126 double temp2 ;
14127 double temp3 ;
14128 PyObject * obj0 = 0 ;
14129 char *kwnames[] = {
14130 (char *) "self", NULL
14131 };
14132
14133 arg2 = &temp2;
14134 arg3 = &temp3;
14135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14138 {
14139 PyThreadState* __tstate = wxPyBeginAllowThreads();
14140 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14141
14142 wxPyEndAllowThreads(__tstate);
14143 if (PyErr_Occurred()) SWIG_fail;
14144 }
14145 Py_INCREF(Py_None); resultobj = Py_None;
14146 {
14147 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14148 resultobj = t_output_helper(resultobj,o);
14149 }
14150 {
14151 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14152 resultobj = t_output_helper(resultobj,o);
14153 }
14154 return resultobj;
14155 fail:
14156 return NULL;
14157 }
14158
14159
14160 static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
14161 PyObject *resultobj;
14162 wxDC *arg1 = (wxDC *) 0 ;
14163 double arg2 ;
14164 double arg3 ;
14165 PyObject * obj0 = 0 ;
14166 PyObject * obj1 = 0 ;
14167 PyObject * obj2 = 0 ;
14168 char *kwnames[] = {
14169 (char *) "self",(char *) "x",(char *) "y", NULL
14170 };
14171
14172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14175 arg2 = (double) SWIG_AsDouble(obj1);
14176 if (PyErr_Occurred()) SWIG_fail;
14177 arg3 = (double) SWIG_AsDouble(obj2);
14178 if (PyErr_Occurred()) SWIG_fail;
14179 {
14180 PyThreadState* __tstate = wxPyBeginAllowThreads();
14181 (arg1)->SetUserScale(arg2,arg3);
14182
14183 wxPyEndAllowThreads(__tstate);
14184 if (PyErr_Occurred()) SWIG_fail;
14185 }
14186 Py_INCREF(Py_None); resultobj = Py_None;
14187 return resultobj;
14188 fail:
14189 return NULL;
14190 }
14191
14192
14193 static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14194 PyObject *resultobj;
14195 wxDC *arg1 = (wxDC *) 0 ;
14196 double *arg2 = (double *) 0 ;
14197 double *arg3 = (double *) 0 ;
14198 double temp2 ;
14199 double temp3 ;
14200 PyObject * obj0 = 0 ;
14201 char *kwnames[] = {
14202 (char *) "self", NULL
14203 };
14204
14205 arg2 = &temp2;
14206 arg3 = &temp3;
14207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14210 {
14211 PyThreadState* __tstate = wxPyBeginAllowThreads();
14212 (arg1)->GetLogicalScale(arg2,arg3);
14213
14214 wxPyEndAllowThreads(__tstate);
14215 if (PyErr_Occurred()) SWIG_fail;
14216 }
14217 Py_INCREF(Py_None); resultobj = Py_None;
14218 {
14219 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14220 resultobj = t_output_helper(resultobj,o);
14221 }
14222 {
14223 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14224 resultobj = t_output_helper(resultobj,o);
14225 }
14226 return resultobj;
14227 fail:
14228 return NULL;
14229 }
14230
14231
14232 static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14233 PyObject *resultobj;
14234 wxDC *arg1 = (wxDC *) 0 ;
14235 double arg2 ;
14236 double arg3 ;
14237 PyObject * obj0 = 0 ;
14238 PyObject * obj1 = 0 ;
14239 PyObject * obj2 = 0 ;
14240 char *kwnames[] = {
14241 (char *) "self",(char *) "x",(char *) "y", NULL
14242 };
14243
14244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14247 arg2 = (double) SWIG_AsDouble(obj1);
14248 if (PyErr_Occurred()) SWIG_fail;
14249 arg3 = (double) SWIG_AsDouble(obj2);
14250 if (PyErr_Occurred()) SWIG_fail;
14251 {
14252 PyThreadState* __tstate = wxPyBeginAllowThreads();
14253 (arg1)->SetLogicalScale(arg2,arg3);
14254
14255 wxPyEndAllowThreads(__tstate);
14256 if (PyErr_Occurred()) SWIG_fail;
14257 }
14258 Py_INCREF(Py_None); resultobj = Py_None;
14259 return resultobj;
14260 fail:
14261 return NULL;
14262 }
14263
14264
14265 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14266 PyObject *resultobj;
14267 wxDC *arg1 = (wxDC *) 0 ;
14268 wxPoint result;
14269 PyObject * obj0 = 0 ;
14270 char *kwnames[] = {
14271 (char *) "self", NULL
14272 };
14273
14274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14277 {
14278 PyThreadState* __tstate = wxPyBeginAllowThreads();
14279 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14280
14281 wxPyEndAllowThreads(__tstate);
14282 if (PyErr_Occurred()) SWIG_fail;
14283 }
14284 {
14285 wxPoint * resultptr;
14286 resultptr = new wxPoint((wxPoint &) result);
14287 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14288 }
14289 return resultobj;
14290 fail:
14291 return NULL;
14292 }
14293
14294
14295 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14296 PyObject *resultobj;
14297 wxDC *arg1 = (wxDC *) 0 ;
14298 int *arg2 = (int *) 0 ;
14299 int *arg3 = (int *) 0 ;
14300 int temp2 ;
14301 int temp3 ;
14302 PyObject * obj0 = 0 ;
14303 char *kwnames[] = {
14304 (char *) "self", NULL
14305 };
14306
14307 arg2 = &temp2;
14308 arg3 = &temp3;
14309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14312 {
14313 PyThreadState* __tstate = wxPyBeginAllowThreads();
14314 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14315
14316 wxPyEndAllowThreads(__tstate);
14317 if (PyErr_Occurred()) SWIG_fail;
14318 }
14319 Py_INCREF(Py_None); resultobj = Py_None;
14320 {
14321 PyObject *o = PyInt_FromLong((long) (*arg2));
14322 resultobj = t_output_helper(resultobj,o);
14323 }
14324 {
14325 PyObject *o = PyInt_FromLong((long) (*arg3));
14326 resultobj = t_output_helper(resultobj,o);
14327 }
14328 return resultobj;
14329 fail:
14330 return NULL;
14331 }
14332
14333
14334 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14335 PyObject *resultobj;
14336 wxDC *arg1 = (wxDC *) 0 ;
14337 int arg2 ;
14338 int arg3 ;
14339 PyObject * obj0 = 0 ;
14340 PyObject * obj1 = 0 ;
14341 PyObject * obj2 = 0 ;
14342 char *kwnames[] = {
14343 (char *) "self",(char *) "x",(char *) "y", NULL
14344 };
14345
14346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14349 arg2 = (int) SWIG_AsInt(obj1);
14350 if (PyErr_Occurred()) SWIG_fail;
14351 arg3 = (int) SWIG_AsInt(obj2);
14352 if (PyErr_Occurred()) SWIG_fail;
14353 {
14354 PyThreadState* __tstate = wxPyBeginAllowThreads();
14355 (arg1)->SetLogicalOrigin(arg2,arg3);
14356
14357 wxPyEndAllowThreads(__tstate);
14358 if (PyErr_Occurred()) SWIG_fail;
14359 }
14360 Py_INCREF(Py_None); resultobj = Py_None;
14361 return resultobj;
14362 fail:
14363 return NULL;
14364 }
14365
14366
14367 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14368 PyObject *resultobj;
14369 wxDC *arg1 = (wxDC *) 0 ;
14370 wxPoint result;
14371 PyObject * obj0 = 0 ;
14372 char *kwnames[] = {
14373 (char *) "self", NULL
14374 };
14375
14376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14379 {
14380 PyThreadState* __tstate = wxPyBeginAllowThreads();
14381 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14382
14383 wxPyEndAllowThreads(__tstate);
14384 if (PyErr_Occurred()) SWIG_fail;
14385 }
14386 {
14387 wxPoint * resultptr;
14388 resultptr = new wxPoint((wxPoint &) result);
14389 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14390 }
14391 return resultobj;
14392 fail:
14393 return NULL;
14394 }
14395
14396
14397 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14398 PyObject *resultobj;
14399 wxDC *arg1 = (wxDC *) 0 ;
14400 int *arg2 = (int *) 0 ;
14401 int *arg3 = (int *) 0 ;
14402 int temp2 ;
14403 int temp3 ;
14404 PyObject * obj0 = 0 ;
14405 char *kwnames[] = {
14406 (char *) "self", NULL
14407 };
14408
14409 arg2 = &temp2;
14410 arg3 = &temp3;
14411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14414 {
14415 PyThreadState* __tstate = wxPyBeginAllowThreads();
14416 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14417
14418 wxPyEndAllowThreads(__tstate);
14419 if (PyErr_Occurred()) SWIG_fail;
14420 }
14421 Py_INCREF(Py_None); resultobj = Py_None;
14422 {
14423 PyObject *o = PyInt_FromLong((long) (*arg2));
14424 resultobj = t_output_helper(resultobj,o);
14425 }
14426 {
14427 PyObject *o = PyInt_FromLong((long) (*arg3));
14428 resultobj = t_output_helper(resultobj,o);
14429 }
14430 return resultobj;
14431 fail:
14432 return NULL;
14433 }
14434
14435
14436 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14437 PyObject *resultobj;
14438 wxDC *arg1 = (wxDC *) 0 ;
14439 int arg2 ;
14440 int arg3 ;
14441 PyObject * obj0 = 0 ;
14442 PyObject * obj1 = 0 ;
14443 PyObject * obj2 = 0 ;
14444 char *kwnames[] = {
14445 (char *) "self",(char *) "x",(char *) "y", NULL
14446 };
14447
14448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14451 arg2 = (int) SWIG_AsInt(obj1);
14452 if (PyErr_Occurred()) SWIG_fail;
14453 arg3 = (int) SWIG_AsInt(obj2);
14454 if (PyErr_Occurred()) SWIG_fail;
14455 {
14456 PyThreadState* __tstate = wxPyBeginAllowThreads();
14457 (arg1)->SetDeviceOrigin(arg2,arg3);
14458
14459 wxPyEndAllowThreads(__tstate);
14460 if (PyErr_Occurred()) SWIG_fail;
14461 }
14462 Py_INCREF(Py_None); resultobj = Py_None;
14463 return resultobj;
14464 fail:
14465 return NULL;
14466 }
14467
14468
14469 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
14470 PyObject *resultobj;
14471 wxDC *arg1 = (wxDC *) 0 ;
14472 bool arg2 ;
14473 bool arg3 ;
14474 PyObject * obj0 = 0 ;
14475 PyObject * obj1 = 0 ;
14476 PyObject * obj2 = 0 ;
14477 char *kwnames[] = {
14478 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14479 };
14480
14481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) 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 arg3 = (bool) SWIG_AsBool(obj2);
14487 if (PyErr_Occurred()) SWIG_fail;
14488 {
14489 PyThreadState* __tstate = wxPyBeginAllowThreads();
14490 (arg1)->SetAxisOrientation(arg2,arg3);
14491
14492 wxPyEndAllowThreads(__tstate);
14493 if (PyErr_Occurred()) SWIG_fail;
14494 }
14495 Py_INCREF(Py_None); resultobj = Py_None;
14496 return resultobj;
14497 fail:
14498 return NULL;
14499 }
14500
14501
14502 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14503 PyObject *resultobj;
14504 wxDC *arg1 = (wxDC *) 0 ;
14505 int result;
14506 PyObject * obj0 = 0 ;
14507 char *kwnames[] = {
14508 (char *) "self", NULL
14509 };
14510
14511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14514 {
14515 PyThreadState* __tstate = wxPyBeginAllowThreads();
14516 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14517
14518 wxPyEndAllowThreads(__tstate);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 }
14521 resultobj = SWIG_FromInt((int)result);
14522 return resultobj;
14523 fail:
14524 return NULL;
14525 }
14526
14527
14528 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14529 PyObject *resultobj;
14530 wxDC *arg1 = (wxDC *) 0 ;
14531 int arg2 ;
14532 PyObject * obj0 = 0 ;
14533 PyObject * obj1 = 0 ;
14534 char *kwnames[] = {
14535 (char *) "self",(char *) "function", NULL
14536 };
14537
14538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14541 arg2 = (int) SWIG_AsInt(obj1);
14542 if (PyErr_Occurred()) SWIG_fail;
14543 {
14544 PyThreadState* __tstate = wxPyBeginAllowThreads();
14545 (arg1)->SetLogicalFunction(arg2);
14546
14547 wxPyEndAllowThreads(__tstate);
14548 if (PyErr_Occurred()) SWIG_fail;
14549 }
14550 Py_INCREF(Py_None); resultobj = Py_None;
14551 return resultobj;
14552 fail:
14553 return NULL;
14554 }
14555
14556
14557 static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14558 PyObject *resultobj;
14559 wxDC *arg1 = (wxDC *) 0 ;
14560 bool arg2 ;
14561 PyObject * obj0 = 0 ;
14562 PyObject * obj1 = 0 ;
14563 char *kwnames[] = {
14564 (char *) "self",(char *) "opt", NULL
14565 };
14566
14567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14570 arg2 = (bool) SWIG_AsBool(obj1);
14571 if (PyErr_Occurred()) SWIG_fail;
14572 {
14573 PyThreadState* __tstate = wxPyBeginAllowThreads();
14574 (arg1)->SetOptimization(arg2);
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_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14587 PyObject *resultobj;
14588 wxDC *arg1 = (wxDC *) 0 ;
14589 bool result;
14590 PyObject * obj0 = 0 ;
14591 char *kwnames[] = {
14592 (char *) "self", NULL
14593 };
14594
14595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",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 = (bool)(arg1)->GetOptimization();
14601
14602 wxPyEndAllowThreads(__tstate);
14603 if (PyErr_Occurred()) SWIG_fail;
14604 }
14605 {
14606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14607 }
14608 return resultobj;
14609 fail:
14610 return NULL;
14611 }
14612
14613
14614 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14615 PyObject *resultobj;
14616 wxDC *arg1 = (wxDC *) 0 ;
14617 int arg2 ;
14618 int arg3 ;
14619 PyObject * obj0 = 0 ;
14620 PyObject * obj1 = 0 ;
14621 PyObject * obj2 = 0 ;
14622 char *kwnames[] = {
14623 (char *) "self",(char *) "x",(char *) "y", NULL
14624 };
14625
14626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14629 arg2 = (int) SWIG_AsInt(obj1);
14630 if (PyErr_Occurred()) SWIG_fail;
14631 arg3 = (int) SWIG_AsInt(obj2);
14632 if (PyErr_Occurred()) SWIG_fail;
14633 {
14634 PyThreadState* __tstate = wxPyBeginAllowThreads();
14635 (arg1)->CalcBoundingBox(arg2,arg3);
14636
14637 wxPyEndAllowThreads(__tstate);
14638 if (PyErr_Occurred()) SWIG_fail;
14639 }
14640 Py_INCREF(Py_None); resultobj = Py_None;
14641 return resultobj;
14642 fail:
14643 return NULL;
14644 }
14645
14646
14647 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14648 PyObject *resultobj;
14649 wxDC *arg1 = (wxDC *) 0 ;
14650 PyObject * obj0 = 0 ;
14651 char *kwnames[] = {
14652 (char *) "self", NULL
14653 };
14654
14655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14658 {
14659 PyThreadState* __tstate = wxPyBeginAllowThreads();
14660 (arg1)->ResetBoundingBox();
14661
14662 wxPyEndAllowThreads(__tstate);
14663 if (PyErr_Occurred()) SWIG_fail;
14664 }
14665 Py_INCREF(Py_None); resultobj = Py_None;
14666 return resultobj;
14667 fail:
14668 return NULL;
14669 }
14670
14671
14672 static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
14673 PyObject *resultobj;
14674 wxDC *arg1 = (wxDC *) 0 ;
14675 int result;
14676 PyObject * obj0 = 0 ;
14677 char *kwnames[] = {
14678 (char *) "self", NULL
14679 };
14680
14681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14684 {
14685 PyThreadState* __tstate = wxPyBeginAllowThreads();
14686 result = (int)((wxDC const *)arg1)->MinX();
14687
14688 wxPyEndAllowThreads(__tstate);
14689 if (PyErr_Occurred()) SWIG_fail;
14690 }
14691 resultobj = SWIG_FromInt((int)result);
14692 return resultobj;
14693 fail:
14694 return NULL;
14695 }
14696
14697
14698 static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
14699 PyObject *resultobj;
14700 wxDC *arg1 = (wxDC *) 0 ;
14701 int result;
14702 PyObject * obj0 = 0 ;
14703 char *kwnames[] = {
14704 (char *) "self", NULL
14705 };
14706
14707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14710 {
14711 PyThreadState* __tstate = wxPyBeginAllowThreads();
14712 result = (int)((wxDC const *)arg1)->MaxX();
14713
14714 wxPyEndAllowThreads(__tstate);
14715 if (PyErr_Occurred()) SWIG_fail;
14716 }
14717 resultobj = SWIG_FromInt((int)result);
14718 return resultobj;
14719 fail:
14720 return NULL;
14721 }
14722
14723
14724 static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
14725 PyObject *resultobj;
14726 wxDC *arg1 = (wxDC *) 0 ;
14727 int result;
14728 PyObject * obj0 = 0 ;
14729 char *kwnames[] = {
14730 (char *) "self", NULL
14731 };
14732
14733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14736 {
14737 PyThreadState* __tstate = wxPyBeginAllowThreads();
14738 result = (int)((wxDC const *)arg1)->MinY();
14739
14740 wxPyEndAllowThreads(__tstate);
14741 if (PyErr_Occurred()) SWIG_fail;
14742 }
14743 resultobj = SWIG_FromInt((int)result);
14744 return resultobj;
14745 fail:
14746 return NULL;
14747 }
14748
14749
14750 static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
14751 PyObject *resultobj;
14752 wxDC *arg1 = (wxDC *) 0 ;
14753 int result;
14754 PyObject * obj0 = 0 ;
14755 char *kwnames[] = {
14756 (char *) "self", NULL
14757 };
14758
14759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14762 {
14763 PyThreadState* __tstate = wxPyBeginAllowThreads();
14764 result = (int)((wxDC const *)arg1)->MaxY();
14765
14766 wxPyEndAllowThreads(__tstate);
14767 if (PyErr_Occurred()) SWIG_fail;
14768 }
14769 resultobj = SWIG_FromInt((int)result);
14770 return resultobj;
14771 fail:
14772 return NULL;
14773 }
14774
14775
14776 static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14777 PyObject *resultobj;
14778 wxDC *arg1 = (wxDC *) 0 ;
14779 int *arg2 = (int *) 0 ;
14780 int *arg3 = (int *) 0 ;
14781 int *arg4 = (int *) 0 ;
14782 int *arg5 = (int *) 0 ;
14783 int temp2 ;
14784 int temp3 ;
14785 int temp4 ;
14786 int temp5 ;
14787 PyObject * obj0 = 0 ;
14788 char *kwnames[] = {
14789 (char *) "self", NULL
14790 };
14791
14792 arg2 = &temp2;
14793 arg3 = &temp3;
14794 arg4 = &temp4;
14795 arg5 = &temp5;
14796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14799 {
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14802
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 Py_INCREF(Py_None); resultobj = Py_None;
14807 {
14808 PyObject *o = PyInt_FromLong((long) (*arg2));
14809 resultobj = t_output_helper(resultobj,o);
14810 }
14811 {
14812 PyObject *o = PyInt_FromLong((long) (*arg3));
14813 resultobj = t_output_helper(resultobj,o);
14814 }
14815 {
14816 PyObject *o = PyInt_FromLong((long) (*arg4));
14817 resultobj = t_output_helper(resultobj,o);
14818 }
14819 {
14820 PyObject *o = PyInt_FromLong((long) (*arg5));
14821 resultobj = t_output_helper(resultobj,o);
14822 }
14823 return resultobj;
14824 fail:
14825 return NULL;
14826 }
14827
14828
14829 static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
14830 PyObject *resultobj;
14831 wxDC *arg1 = (wxDC *) 0 ;
14832 PyObject *arg2 = (PyObject *) 0 ;
14833 PyObject *arg3 = (PyObject *) 0 ;
14834 PyObject *arg4 = (PyObject *) 0 ;
14835 PyObject *result;
14836 PyObject * obj0 = 0 ;
14837 PyObject * obj1 = 0 ;
14838 PyObject * obj2 = 0 ;
14839 PyObject * obj3 = 0 ;
14840 char *kwnames[] = {
14841 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14842 };
14843
14844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14847 arg2 = obj1;
14848 arg3 = obj2;
14849 arg4 = obj3;
14850 {
14851 PyThreadState* __tstate = wxPyBeginAllowThreads();
14852 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14853
14854 wxPyEndAllowThreads(__tstate);
14855 if (PyErr_Occurred()) SWIG_fail;
14856 }
14857 resultobj = result;
14858 return resultobj;
14859 fail:
14860 return NULL;
14861 }
14862
14863
14864 static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
14865 PyObject *resultobj;
14866 wxDC *arg1 = (wxDC *) 0 ;
14867 PyObject *arg2 = (PyObject *) 0 ;
14868 PyObject *arg3 = (PyObject *) 0 ;
14869 PyObject *arg4 = (PyObject *) 0 ;
14870 PyObject *result;
14871 PyObject * obj0 = 0 ;
14872 PyObject * obj1 = 0 ;
14873 PyObject * obj2 = 0 ;
14874 PyObject * obj3 = 0 ;
14875 char *kwnames[] = {
14876 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14877 };
14878
14879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14882 arg2 = obj1;
14883 arg3 = obj2;
14884 arg4 = obj3;
14885 {
14886 PyThreadState* __tstate = wxPyBeginAllowThreads();
14887 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14888
14889 wxPyEndAllowThreads(__tstate);
14890 if (PyErr_Occurred()) SWIG_fail;
14891 }
14892 resultobj = result;
14893 return resultobj;
14894 fail:
14895 return NULL;
14896 }
14897
14898
14899 static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
14900 PyObject *resultobj;
14901 wxDC *arg1 = (wxDC *) 0 ;
14902 PyObject *arg2 = (PyObject *) 0 ;
14903 PyObject *arg3 = (PyObject *) 0 ;
14904 PyObject *arg4 = (PyObject *) 0 ;
14905 PyObject *result;
14906 PyObject * obj0 = 0 ;
14907 PyObject * obj1 = 0 ;
14908 PyObject * obj2 = 0 ;
14909 PyObject * obj3 = 0 ;
14910 char *kwnames[] = {
14911 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14912 };
14913
14914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14917 arg2 = obj1;
14918 arg3 = obj2;
14919 arg4 = obj3;
14920 {
14921 PyThreadState* __tstate = wxPyBeginAllowThreads();
14922 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14923
14924 wxPyEndAllowThreads(__tstate);
14925 if (PyErr_Occurred()) SWIG_fail;
14926 }
14927 resultobj = result;
14928 return resultobj;
14929 fail:
14930 return NULL;
14931 }
14932
14933
14934 static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
14935 PyObject *resultobj;
14936 wxDC *arg1 = (wxDC *) 0 ;
14937 PyObject *arg2 = (PyObject *) 0 ;
14938 PyObject *arg3 = (PyObject *) 0 ;
14939 PyObject *arg4 = (PyObject *) 0 ;
14940 PyObject *result;
14941 PyObject * obj0 = 0 ;
14942 PyObject * obj1 = 0 ;
14943 PyObject * obj2 = 0 ;
14944 PyObject * obj3 = 0 ;
14945 char *kwnames[] = {
14946 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14947 };
14948
14949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14952 arg2 = obj1;
14953 arg3 = obj2;
14954 arg4 = obj3;
14955 {
14956 PyThreadState* __tstate = wxPyBeginAllowThreads();
14957 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14958
14959 wxPyEndAllowThreads(__tstate);
14960 if (PyErr_Occurred()) SWIG_fail;
14961 }
14962 resultobj = result;
14963 return resultobj;
14964 fail:
14965 return NULL;
14966 }
14967
14968
14969 static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
14970 PyObject *resultobj;
14971 wxDC *arg1 = (wxDC *) 0 ;
14972 PyObject *arg2 = (PyObject *) 0 ;
14973 PyObject *arg3 = (PyObject *) 0 ;
14974 PyObject *arg4 = (PyObject *) 0 ;
14975 PyObject *result;
14976 PyObject * obj0 = 0 ;
14977 PyObject * obj1 = 0 ;
14978 PyObject * obj2 = 0 ;
14979 PyObject * obj3 = 0 ;
14980 char *kwnames[] = {
14981 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14982 };
14983
14984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14987 arg2 = obj1;
14988 arg3 = obj2;
14989 arg4 = obj3;
14990 {
14991 PyThreadState* __tstate = wxPyBeginAllowThreads();
14992 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14993
14994 wxPyEndAllowThreads(__tstate);
14995 if (PyErr_Occurred()) SWIG_fail;
14996 }
14997 resultobj = result;
14998 return resultobj;
14999 fail:
15000 return NULL;
15001 }
15002
15003
15004 static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
15005 PyObject *resultobj;
15006 wxDC *arg1 = (wxDC *) 0 ;
15007 PyObject *arg2 = (PyObject *) 0 ;
15008 PyObject *arg3 = (PyObject *) 0 ;
15009 PyObject *arg4 = (PyObject *) 0 ;
15010 PyObject *arg5 = (PyObject *) 0 ;
15011 PyObject *result;
15012 PyObject * obj0 = 0 ;
15013 PyObject * obj1 = 0 ;
15014 PyObject * obj2 = 0 ;
15015 PyObject * obj3 = 0 ;
15016 PyObject * obj4 = 0 ;
15017 char *kwnames[] = {
15018 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15019 };
15020
15021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15024 arg2 = obj1;
15025 arg3 = obj2;
15026 arg4 = obj3;
15027 arg5 = obj4;
15028 {
15029 PyThreadState* __tstate = wxPyBeginAllowThreads();
15030 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15031
15032 wxPyEndAllowThreads(__tstate);
15033 if (PyErr_Occurred()) SWIG_fail;
15034 }
15035 resultobj = result;
15036 return resultobj;
15037 fail:
15038 return NULL;
15039 }
15040
15041
15042 static PyObject * DC_swigregister(PyObject *, PyObject *args) {
15043 PyObject *obj;
15044 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15045 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15046 Py_INCREF(obj);
15047 return Py_BuildValue((char *)"");
15048 }
15049 static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
15050 PyObject *resultobj;
15051 wxMemoryDC *result;
15052 char *kwnames[] = {
15053 NULL
15054 };
15055
15056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15057 {
15058 PyThreadState* __tstate = wxPyBeginAllowThreads();
15059 result = (wxMemoryDC *)new wxMemoryDC();
15060
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15065 return resultobj;
15066 fail:
15067 return NULL;
15068 }
15069
15070
15071 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
15072 PyObject *resultobj;
15073 wxDC *arg1 = (wxDC *) 0 ;
15074 wxMemoryDC *result;
15075 PyObject * obj0 = 0 ;
15076 char *kwnames[] = {
15077 (char *) "oldDC", NULL
15078 };
15079
15080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15083 {
15084 PyThreadState* __tstate = wxPyBeginAllowThreads();
15085 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15086
15087 wxPyEndAllowThreads(__tstate);
15088 if (PyErr_Occurred()) SWIG_fail;
15089 }
15090 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15091 return resultobj;
15092 fail:
15093 return NULL;
15094 }
15095
15096
15097 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
15098 PyObject *resultobj;
15099 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15100 wxBitmap *arg2 = 0 ;
15101 PyObject * obj0 = 0 ;
15102 PyObject * obj1 = 0 ;
15103 char *kwnames[] = {
15104 (char *) "self",(char *) "bitmap", NULL
15105 };
15106
15107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15110 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15111 SWIG_POINTER_EXCEPTION | 0)) == -1)
15112 SWIG_fail;
15113 if (arg2 == NULL) {
15114 PyErr_SetString(PyExc_TypeError,"null reference");
15115 SWIG_fail;
15116 }
15117 {
15118 PyThreadState* __tstate = wxPyBeginAllowThreads();
15119 (arg1)->SelectObject((wxBitmap const &)*arg2);
15120
15121 wxPyEndAllowThreads(__tstate);
15122 if (PyErr_Occurred()) SWIG_fail;
15123 }
15124 Py_INCREF(Py_None); resultobj = Py_None;
15125 return resultobj;
15126 fail:
15127 return NULL;
15128 }
15129
15130
15131 static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
15132 PyObject *obj;
15133 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15134 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15135 Py_INCREF(obj);
15136 return Py_BuildValue((char *)"");
15137 }
15138 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
15139 PyObject *resultobj;
15140 wxDC *arg1 = (wxDC *) 0 ;
15141 wxBitmap *arg2 = 0 ;
15142 wxBufferedDC *result;
15143 PyObject * obj0 = 0 ;
15144 PyObject * obj1 = 0 ;
15145
15146 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15149 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15150 SWIG_POINTER_EXCEPTION | 0)) == -1)
15151 SWIG_fail;
15152 if (arg2 == NULL) {
15153 PyErr_SetString(PyExc_TypeError,"null reference");
15154 SWIG_fail;
15155 }
15156 {
15157 PyThreadState* __tstate = wxPyBeginAllowThreads();
15158 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15159
15160 wxPyEndAllowThreads(__tstate);
15161 if (PyErr_Occurred()) SWIG_fail;
15162 }
15163 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15164 return resultobj;
15165 fail:
15166 return NULL;
15167 }
15168
15169
15170 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
15171 PyObject *resultobj;
15172 wxDC *arg1 = (wxDC *) 0 ;
15173 wxSize *arg2 = 0 ;
15174 wxBufferedDC *result;
15175 wxSize temp2 ;
15176 PyObject * obj0 = 0 ;
15177 PyObject * obj1 = 0 ;
15178
15179 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15182 {
15183 arg2 = &temp2;
15184 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15185 }
15186 {
15187 PyThreadState* __tstate = wxPyBeginAllowThreads();
15188 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15189
15190 wxPyEndAllowThreads(__tstate);
15191 if (PyErr_Occurred()) SWIG_fail;
15192 }
15193 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15194 return resultobj;
15195 fail:
15196 return NULL;
15197 }
15198
15199
15200 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15201 int argc;
15202 PyObject *argv[3];
15203 int ii;
15204
15205 argc = PyObject_Length(args);
15206 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15207 argv[ii] = PyTuple_GetItem(args,ii);
15208 }
15209 if (argc == 2) {
15210 int _v;
15211 {
15212 void *ptr;
15213 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15214 _v = 0;
15215 PyErr_Clear();
15216 } else {
15217 _v = 1;
15218 }
15219 }
15220 if (_v) {
15221 {
15222 void *ptr;
15223 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15224 _v = 0;
15225 PyErr_Clear();
15226 } else {
15227 _v = 1;
15228 }
15229 }
15230 if (_v) {
15231 return _wrap_new_BufferedDC__SWIG_0(self,args);
15232 }
15233 }
15234 }
15235 if (argc == 2) {
15236 int _v;
15237 {
15238 void *ptr;
15239 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15240 _v = 0;
15241 PyErr_Clear();
15242 } else {
15243 _v = 1;
15244 }
15245 }
15246 if (_v) {
15247 {
15248 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15249 }
15250 if (_v) {
15251 return _wrap_new_BufferedDC__SWIG_1(self,args);
15252 }
15253 }
15254 }
15255
15256 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15257 return NULL;
15258 }
15259
15260
15261 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *, PyObject *args) {
15262 PyObject *resultobj;
15263 wxDC *arg1 = (wxDC *) 0 ;
15264 wxSize *arg2 = 0 ;
15265 wxBufferedDC *result;
15266 wxSize temp2 ;
15267 PyObject * obj0 = 0 ;
15268 PyObject * obj1 = 0 ;
15269
15270 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15273 {
15274 arg2 = &temp2;
15275 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15276 }
15277 {
15278 PyThreadState* __tstate = wxPyBeginAllowThreads();
15279 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15280
15281 wxPyEndAllowThreads(__tstate);
15282 if (PyErr_Occurred()) SWIG_fail;
15283 }
15284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15285 return resultobj;
15286 fail:
15287 return NULL;
15288 }
15289
15290
15291 static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
15292 PyObject *resultobj;
15293 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15294 PyObject * obj0 = 0 ;
15295 char *kwnames[] = {
15296 (char *) "self", NULL
15297 };
15298
15299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15302 {
15303 PyThreadState* __tstate = wxPyBeginAllowThreads();
15304 delete arg1;
15305
15306 wxPyEndAllowThreads(__tstate);
15307 if (PyErr_Occurred()) SWIG_fail;
15308 }
15309 Py_INCREF(Py_None); resultobj = Py_None;
15310 return resultobj;
15311 fail:
15312 return NULL;
15313 }
15314
15315
15316 static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
15317 PyObject *resultobj;
15318 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15319 PyObject * obj0 = 0 ;
15320 char *kwnames[] = {
15321 (char *) "self", NULL
15322 };
15323
15324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15327 {
15328 PyThreadState* __tstate = wxPyBeginAllowThreads();
15329 (arg1)->UnMask();
15330
15331 wxPyEndAllowThreads(__tstate);
15332 if (PyErr_Occurred()) SWIG_fail;
15333 }
15334 Py_INCREF(Py_None); resultobj = Py_None;
15335 return resultobj;
15336 fail:
15337 return NULL;
15338 }
15339
15340
15341 static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
15342 PyObject *obj;
15343 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15344 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15345 Py_INCREF(obj);
15346 return Py_BuildValue((char *)"");
15347 }
15348 static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15349 PyObject *resultobj;
15350 wxWindow *arg1 = (wxWindow *) 0 ;
15351 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15352 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15353 wxBufferedPaintDC *result;
15354 PyObject * obj0 = 0 ;
15355 PyObject * obj1 = 0 ;
15356 char *kwnames[] = {
15357 (char *) "window",(char *) "buffer", NULL
15358 };
15359
15360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15363 if (obj1) {
15364 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15365 SWIG_POINTER_EXCEPTION | 0)) == -1)
15366 SWIG_fail;
15367 if (arg2 == NULL) {
15368 PyErr_SetString(PyExc_TypeError,"null reference");
15369 SWIG_fail;
15370 }
15371 }
15372 {
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15375
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15380 return resultobj;
15381 fail:
15382 return NULL;
15383 }
15384
15385
15386 static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
15387 PyObject *obj;
15388 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15389 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15390 Py_INCREF(obj);
15391 return Py_BuildValue((char *)"");
15392 }
15393 static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
15394 PyObject *resultobj;
15395 wxScreenDC *result;
15396 char *kwnames[] = {
15397 NULL
15398 };
15399
15400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15401 {
15402 PyThreadState* __tstate = wxPyBeginAllowThreads();
15403 result = (wxScreenDC *)new wxScreenDC();
15404
15405 wxPyEndAllowThreads(__tstate);
15406 if (PyErr_Occurred()) SWIG_fail;
15407 }
15408 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15409 return resultobj;
15410 fail:
15411 return NULL;
15412 }
15413
15414
15415 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
15416 PyObject *resultobj;
15417 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15418 wxWindow *arg2 = (wxWindow *) 0 ;
15419 bool result;
15420 PyObject * obj0 = 0 ;
15421 PyObject * obj1 = 0 ;
15422 char *kwnames[] = {
15423 (char *) "self",(char *) "window", NULL
15424 };
15425
15426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15429 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15431 {
15432 PyThreadState* __tstate = wxPyBeginAllowThreads();
15433 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15434
15435 wxPyEndAllowThreads(__tstate);
15436 if (PyErr_Occurred()) SWIG_fail;
15437 }
15438 {
15439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15440 }
15441 return resultobj;
15442 fail:
15443 return NULL;
15444 }
15445
15446
15447 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15448 PyObject *resultobj;
15449 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15450 wxRect *arg2 = (wxRect *) NULL ;
15451 bool result;
15452 PyObject * obj0 = 0 ;
15453 PyObject * obj1 = 0 ;
15454 char *kwnames[] = {
15455 (char *) "self",(char *) "rect", NULL
15456 };
15457
15458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15461 if (obj1) {
15462 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15464 }
15465 {
15466 PyThreadState* __tstate = wxPyBeginAllowThreads();
15467 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15468
15469 wxPyEndAllowThreads(__tstate);
15470 if (PyErr_Occurred()) SWIG_fail;
15471 }
15472 {
15473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15474 }
15475 return resultobj;
15476 fail:
15477 return NULL;
15478 }
15479
15480
15481 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15482 PyObject *resultobj;
15483 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15484 bool result;
15485 PyObject * obj0 = 0 ;
15486 char *kwnames[] = {
15487 (char *) "self", NULL
15488 };
15489
15490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15493 {
15494 PyThreadState* __tstate = wxPyBeginAllowThreads();
15495 result = (bool)(arg1)->EndDrawingOnTop();
15496
15497 wxPyEndAllowThreads(__tstate);
15498 if (PyErr_Occurred()) SWIG_fail;
15499 }
15500 {
15501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15502 }
15503 return resultobj;
15504 fail:
15505 return NULL;
15506 }
15507
15508
15509 static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
15510 PyObject *obj;
15511 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15512 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15513 Py_INCREF(obj);
15514 return Py_BuildValue((char *)"");
15515 }
15516 static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
15517 PyObject *resultobj;
15518 wxWindow *arg1 = (wxWindow *) 0 ;
15519 wxClientDC *result;
15520 PyObject * obj0 = 0 ;
15521 char *kwnames[] = {
15522 (char *) "win", NULL
15523 };
15524
15525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15528 {
15529 PyThreadState* __tstate = wxPyBeginAllowThreads();
15530 result = (wxClientDC *)new wxClientDC(arg1);
15531
15532 wxPyEndAllowThreads(__tstate);
15533 if (PyErr_Occurred()) SWIG_fail;
15534 }
15535 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15536 return resultobj;
15537 fail:
15538 return NULL;
15539 }
15540
15541
15542 static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
15543 PyObject *obj;
15544 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15545 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15546 Py_INCREF(obj);
15547 return Py_BuildValue((char *)"");
15548 }
15549 static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15550 PyObject *resultobj;
15551 wxWindow *arg1 = (wxWindow *) 0 ;
15552 wxPaintDC *result;
15553 PyObject * obj0 = 0 ;
15554 char *kwnames[] = {
15555 (char *) "win", NULL
15556 };
15557
15558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15561 {
15562 PyThreadState* __tstate = wxPyBeginAllowThreads();
15563 result = (wxPaintDC *)new wxPaintDC(arg1);
15564
15565 wxPyEndAllowThreads(__tstate);
15566 if (PyErr_Occurred()) SWIG_fail;
15567 }
15568 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15569 return resultobj;
15570 fail:
15571 return NULL;
15572 }
15573
15574
15575 static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
15576 PyObject *obj;
15577 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15578 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15579 Py_INCREF(obj);
15580 return Py_BuildValue((char *)"");
15581 }
15582 static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
15583 PyObject *resultobj;
15584 wxWindow *arg1 = (wxWindow *) 0 ;
15585 wxWindowDC *result;
15586 PyObject * obj0 = 0 ;
15587 char *kwnames[] = {
15588 (char *) "win", NULL
15589 };
15590
15591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15594 {
15595 PyThreadState* __tstate = wxPyBeginAllowThreads();
15596 result = (wxWindowDC *)new wxWindowDC(arg1);
15597
15598 wxPyEndAllowThreads(__tstate);
15599 if (PyErr_Occurred()) SWIG_fail;
15600 }
15601 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15602 return resultobj;
15603 fail:
15604 return NULL;
15605 }
15606
15607
15608 static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
15609 PyObject *obj;
15610 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15611 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15612 Py_INCREF(obj);
15613 return Py_BuildValue((char *)"");
15614 }
15615 static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
15616 PyObject *resultobj;
15617 wxDC *arg1 = 0 ;
15618 bool arg2 ;
15619 wxMirrorDC *result;
15620 PyObject * obj0 = 0 ;
15621 PyObject * obj1 = 0 ;
15622 char *kwnames[] = {
15623 (char *) "dc",(char *) "mirror", NULL
15624 };
15625
15626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15628 SWIG_POINTER_EXCEPTION | 0)) == -1)
15629 SWIG_fail;
15630 if (arg1 == NULL) {
15631 PyErr_SetString(PyExc_TypeError,"null reference");
15632 SWIG_fail;
15633 }
15634 arg2 = (bool) SWIG_AsBool(obj1);
15635 if (PyErr_Occurred()) SWIG_fail;
15636 {
15637 PyThreadState* __tstate = wxPyBeginAllowThreads();
15638 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15639
15640 wxPyEndAllowThreads(__tstate);
15641 if (PyErr_Occurred()) SWIG_fail;
15642 }
15643 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15644 return resultobj;
15645 fail:
15646 return NULL;
15647 }
15648
15649
15650 static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
15651 PyObject *obj;
15652 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15653 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15654 Py_INCREF(obj);
15655 return Py_BuildValue((char *)"");
15656 }
15657 static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
15658 PyObject *resultobj;
15659 wxPrintData *arg1 = 0 ;
15660 wxPostScriptDC *result;
15661 PyObject * obj0 = 0 ;
15662 char *kwnames[] = {
15663 (char *) "printData", NULL
15664 };
15665
15666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15668 SWIG_POINTER_EXCEPTION | 0)) == -1)
15669 SWIG_fail;
15670 if (arg1 == NULL) {
15671 PyErr_SetString(PyExc_TypeError,"null reference");
15672 SWIG_fail;
15673 }
15674 {
15675 PyThreadState* __tstate = wxPyBeginAllowThreads();
15676 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15677
15678 wxPyEndAllowThreads(__tstate);
15679 if (PyErr_Occurred()) SWIG_fail;
15680 }
15681 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15682 return resultobj;
15683 fail:
15684 return NULL;
15685 }
15686
15687
15688 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
15689 PyObject *resultobj;
15690 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15691 wxPrintData *result;
15692 PyObject * obj0 = 0 ;
15693 char *kwnames[] = {
15694 (char *) "self", NULL
15695 };
15696
15697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15700 {
15701 PyThreadState* __tstate = wxPyBeginAllowThreads();
15702 {
15703 wxPrintData &_result_ref = (arg1)->GetPrintData();
15704 result = (wxPrintData *) &_result_ref;
15705 }
15706
15707 wxPyEndAllowThreads(__tstate);
15708 if (PyErr_Occurred()) SWIG_fail;
15709 }
15710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15711 return resultobj;
15712 fail:
15713 return NULL;
15714 }
15715
15716
15717 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
15718 PyObject *resultobj;
15719 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15720 wxPrintData *arg2 = 0 ;
15721 PyObject * obj0 = 0 ;
15722 PyObject * obj1 = 0 ;
15723 char *kwnames[] = {
15724 (char *) "self",(char *) "data", NULL
15725 };
15726
15727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15730 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15731 SWIG_POINTER_EXCEPTION | 0)) == -1)
15732 SWIG_fail;
15733 if (arg2 == NULL) {
15734 PyErr_SetString(PyExc_TypeError,"null reference");
15735 SWIG_fail;
15736 }
15737 {
15738 PyThreadState* __tstate = wxPyBeginAllowThreads();
15739 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15740
15741 wxPyEndAllowThreads(__tstate);
15742 if (PyErr_Occurred()) SWIG_fail;
15743 }
15744 Py_INCREF(Py_None); resultobj = Py_None;
15745 return resultobj;
15746 fail:
15747 return NULL;
15748 }
15749
15750
15751 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
15752 PyObject *resultobj;
15753 int arg1 ;
15754 PyObject * obj0 = 0 ;
15755 char *kwnames[] = {
15756 (char *) "ppi", NULL
15757 };
15758
15759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15760 arg1 = (int) SWIG_AsInt(obj0);
15761 if (PyErr_Occurred()) SWIG_fail;
15762 {
15763 PyThreadState* __tstate = wxPyBeginAllowThreads();
15764 wxPostScriptDC::SetResolution(arg1);
15765
15766 wxPyEndAllowThreads(__tstate);
15767 if (PyErr_Occurred()) SWIG_fail;
15768 }
15769 Py_INCREF(Py_None); resultobj = Py_None;
15770 return resultobj;
15771 fail:
15772 return NULL;
15773 }
15774
15775
15776 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
15777 PyObject *resultobj;
15778 int result;
15779 char *kwnames[] = {
15780 NULL
15781 };
15782
15783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15784 {
15785 PyThreadState* __tstate = wxPyBeginAllowThreads();
15786 result = (int)wxPostScriptDC::GetResolution();
15787
15788 wxPyEndAllowThreads(__tstate);
15789 if (PyErr_Occurred()) SWIG_fail;
15790 }
15791 resultobj = SWIG_FromInt((int)result);
15792 return resultobj;
15793 fail:
15794 return NULL;
15795 }
15796
15797
15798 static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
15799 PyObject *obj;
15800 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15801 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15802 Py_INCREF(obj);
15803 return Py_BuildValue((char *)"");
15804 }
15805 static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
15806 PyObject *resultobj;
15807 wxString const &arg1_defvalue = wxPyEmptyString ;
15808 wxString *arg1 = (wxString *) &arg1_defvalue ;
15809 wxMetaFile *result;
15810 bool temp1 = False ;
15811 PyObject * obj0 = 0 ;
15812 char *kwnames[] = {
15813 (char *) "filename", NULL
15814 };
15815
15816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15817 if (obj0) {
15818 {
15819 arg1 = wxString_in_helper(obj0);
15820 if (arg1 == NULL) SWIG_fail;
15821 temp1 = True;
15822 }
15823 }
15824 {
15825 PyThreadState* __tstate = wxPyBeginAllowThreads();
15826 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15827
15828 wxPyEndAllowThreads(__tstate);
15829 if (PyErr_Occurred()) SWIG_fail;
15830 }
15831 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15832 {
15833 if (temp1)
15834 delete arg1;
15835 }
15836 return resultobj;
15837 fail:
15838 {
15839 if (temp1)
15840 delete arg1;
15841 }
15842 return NULL;
15843 }
15844
15845
15846 static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
15847 PyObject *resultobj;
15848 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15849 PyObject * obj0 = 0 ;
15850 char *kwnames[] = {
15851 (char *) "self", NULL
15852 };
15853
15854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15857 {
15858 PyThreadState* __tstate = wxPyBeginAllowThreads();
15859 delete arg1;
15860
15861 wxPyEndAllowThreads(__tstate);
15862 if (PyErr_Occurred()) SWIG_fail;
15863 }
15864 Py_INCREF(Py_None); resultobj = Py_None;
15865 return resultobj;
15866 fail:
15867 return NULL;
15868 }
15869
15870
15871 static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
15872 PyObject *resultobj;
15873 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15874 bool result;
15875 PyObject * obj0 = 0 ;
15876 char *kwnames[] = {
15877 (char *) "self", NULL
15878 };
15879
15880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15883 {
15884 PyThreadState* __tstate = wxPyBeginAllowThreads();
15885 result = (bool)(arg1)->Ok();
15886
15887 wxPyEndAllowThreads(__tstate);
15888 if (PyErr_Occurred()) SWIG_fail;
15889 }
15890 {
15891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15892 }
15893 return resultobj;
15894 fail:
15895 return NULL;
15896 }
15897
15898
15899 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
15900 PyObject *resultobj;
15901 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15902 int arg2 = (int) 0 ;
15903 int arg3 = (int) 0 ;
15904 bool result;
15905 PyObject * obj0 = 0 ;
15906 PyObject * obj1 = 0 ;
15907 PyObject * obj2 = 0 ;
15908 char *kwnames[] = {
15909 (char *) "self",(char *) "width",(char *) "height", NULL
15910 };
15911
15912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15915 if (obj1) {
15916 arg2 = (int) SWIG_AsInt(obj1);
15917 if (PyErr_Occurred()) SWIG_fail;
15918 }
15919 if (obj2) {
15920 arg3 = (int) SWIG_AsInt(obj2);
15921 if (PyErr_Occurred()) SWIG_fail;
15922 }
15923 {
15924 PyThreadState* __tstate = wxPyBeginAllowThreads();
15925 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15926
15927 wxPyEndAllowThreads(__tstate);
15928 if (PyErr_Occurred()) SWIG_fail;
15929 }
15930 {
15931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15932 }
15933 return resultobj;
15934 fail:
15935 return NULL;
15936 }
15937
15938
15939 static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
15940 PyObject *resultobj;
15941 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15942 wxSize result;
15943 PyObject * obj0 = 0 ;
15944 char *kwnames[] = {
15945 (char *) "self", NULL
15946 };
15947
15948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
15949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15951 {
15952 PyThreadState* __tstate = wxPyBeginAllowThreads();
15953 result = (arg1)->GetSize();
15954
15955 wxPyEndAllowThreads(__tstate);
15956 if (PyErr_Occurred()) SWIG_fail;
15957 }
15958 {
15959 wxSize * resultptr;
15960 resultptr = new wxSize((wxSize &) result);
15961 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15962 }
15963 return resultobj;
15964 fail:
15965 return NULL;
15966 }
15967
15968
15969 static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
15970 PyObject *resultobj;
15971 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15972 int result;
15973 PyObject * obj0 = 0 ;
15974 char *kwnames[] = {
15975 (char *) "self", NULL
15976 };
15977
15978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
15979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15981 {
15982 PyThreadState* __tstate = wxPyBeginAllowThreads();
15983 result = (int)(arg1)->GetWidth();
15984
15985 wxPyEndAllowThreads(__tstate);
15986 if (PyErr_Occurred()) SWIG_fail;
15987 }
15988 resultobj = SWIG_FromInt((int)result);
15989 return resultobj;
15990 fail:
15991 return NULL;
15992 }
15993
15994
15995 static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
15996 PyObject *resultobj;
15997 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15998 int result;
15999 PyObject * obj0 = 0 ;
16000 char *kwnames[] = {
16001 (char *) "self", NULL
16002 };
16003
16004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16007 {
16008 PyThreadState* __tstate = wxPyBeginAllowThreads();
16009 result = (int)(arg1)->GetHeight();
16010
16011 wxPyEndAllowThreads(__tstate);
16012 if (PyErr_Occurred()) SWIG_fail;
16013 }
16014 resultobj = SWIG_FromInt((int)result);
16015 return resultobj;
16016 fail:
16017 return NULL;
16018 }
16019
16020
16021 static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
16022 PyObject *obj;
16023 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16024 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16025 Py_INCREF(obj);
16026 return Py_BuildValue((char *)"");
16027 }
16028 static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
16029 PyObject *resultobj;
16030 wxString const &arg1_defvalue = wxPyEmptyString ;
16031 wxString *arg1 = (wxString *) &arg1_defvalue ;
16032 int arg2 = (int) 0 ;
16033 int arg3 = (int) 0 ;
16034 wxString const &arg4_defvalue = wxPyEmptyString ;
16035 wxString *arg4 = (wxString *) &arg4_defvalue ;
16036 wxMetaFileDC *result;
16037 bool temp1 = False ;
16038 bool temp4 = False ;
16039 PyObject * obj0 = 0 ;
16040 PyObject * obj1 = 0 ;
16041 PyObject * obj2 = 0 ;
16042 PyObject * obj3 = 0 ;
16043 char *kwnames[] = {
16044 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16045 };
16046
16047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16048 if (obj0) {
16049 {
16050 arg1 = wxString_in_helper(obj0);
16051 if (arg1 == NULL) SWIG_fail;
16052 temp1 = True;
16053 }
16054 }
16055 if (obj1) {
16056 arg2 = (int) SWIG_AsInt(obj1);
16057 if (PyErr_Occurred()) SWIG_fail;
16058 }
16059 if (obj2) {
16060 arg3 = (int) SWIG_AsInt(obj2);
16061 if (PyErr_Occurred()) SWIG_fail;
16062 }
16063 if (obj3) {
16064 {
16065 arg4 = wxString_in_helper(obj3);
16066 if (arg4 == NULL) SWIG_fail;
16067 temp4 = True;
16068 }
16069 }
16070 {
16071 PyThreadState* __tstate = wxPyBeginAllowThreads();
16072 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16073
16074 wxPyEndAllowThreads(__tstate);
16075 if (PyErr_Occurred()) SWIG_fail;
16076 }
16077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16078 {
16079 if (temp1)
16080 delete arg1;
16081 }
16082 {
16083 if (temp4)
16084 delete arg4;
16085 }
16086 return resultobj;
16087 fail:
16088 {
16089 if (temp1)
16090 delete arg1;
16091 }
16092 {
16093 if (temp4)
16094 delete arg4;
16095 }
16096 return NULL;
16097 }
16098
16099
16100 static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
16101 PyObject *resultobj;
16102 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16103 wxMetaFile *result;
16104 PyObject * obj0 = 0 ;
16105 char *kwnames[] = {
16106 (char *) "self", NULL
16107 };
16108
16109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16112 {
16113 PyThreadState* __tstate = wxPyBeginAllowThreads();
16114 result = (wxMetaFile *)(arg1)->Close();
16115
16116 wxPyEndAllowThreads(__tstate);
16117 if (PyErr_Occurred()) SWIG_fail;
16118 }
16119 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16120 return resultobj;
16121 fail:
16122 return NULL;
16123 }
16124
16125
16126 static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
16127 PyObject *obj;
16128 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16129 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16130 Py_INCREF(obj);
16131 return Py_BuildValue((char *)"");
16132 }
16133 static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
16134 PyObject *resultobj;
16135 wxPrintData *arg1 = 0 ;
16136 wxPrinterDC *result;
16137 PyObject * obj0 = 0 ;
16138 char *kwnames[] = {
16139 (char *) "printData", NULL
16140 };
16141
16142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16144 SWIG_POINTER_EXCEPTION | 0)) == -1)
16145 SWIG_fail;
16146 if (arg1 == NULL) {
16147 PyErr_SetString(PyExc_TypeError,"null reference");
16148 SWIG_fail;
16149 }
16150 {
16151 PyThreadState* __tstate = wxPyBeginAllowThreads();
16152 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16153
16154 wxPyEndAllowThreads(__tstate);
16155 if (PyErr_Occurred()) SWIG_fail;
16156 }
16157 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16158 return resultobj;
16159 fail:
16160 return NULL;
16161 }
16162
16163
16164 static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
16165 PyObject *obj;
16166 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16167 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16168 Py_INCREF(obj);
16169 return Py_BuildValue((char *)"");
16170 }
16171 static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
16172 PyObject *resultobj;
16173 int arg1 ;
16174 int arg2 ;
16175 int arg3 = (int) True ;
16176 int arg4 = (int) 1 ;
16177 wxImageList *result;
16178 PyObject * obj0 = 0 ;
16179 PyObject * obj1 = 0 ;
16180 PyObject * obj2 = 0 ;
16181 PyObject * obj3 = 0 ;
16182 char *kwnames[] = {
16183 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16184 };
16185
16186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16187 arg1 = (int) SWIG_AsInt(obj0);
16188 if (PyErr_Occurred()) SWIG_fail;
16189 arg2 = (int) SWIG_AsInt(obj1);
16190 if (PyErr_Occurred()) SWIG_fail;
16191 if (obj2) {
16192 arg3 = (int) SWIG_AsInt(obj2);
16193 if (PyErr_Occurred()) SWIG_fail;
16194 }
16195 if (obj3) {
16196 arg4 = (int) SWIG_AsInt(obj3);
16197 if (PyErr_Occurred()) SWIG_fail;
16198 }
16199 {
16200 PyThreadState* __tstate = wxPyBeginAllowThreads();
16201 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16202
16203 wxPyEndAllowThreads(__tstate);
16204 if (PyErr_Occurred()) SWIG_fail;
16205 }
16206 {
16207 resultobj = wxPyMake_wxObject(result);
16208 }
16209 return resultobj;
16210 fail:
16211 return NULL;
16212 }
16213
16214
16215 static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
16216 PyObject *resultobj;
16217 wxImageList *arg1 = (wxImageList *) 0 ;
16218 PyObject * obj0 = 0 ;
16219 char *kwnames[] = {
16220 (char *) "self", NULL
16221 };
16222
16223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16226 {
16227 PyThreadState* __tstate = wxPyBeginAllowThreads();
16228 delete arg1;
16229
16230 wxPyEndAllowThreads(__tstate);
16231 if (PyErr_Occurred()) SWIG_fail;
16232 }
16233 Py_INCREF(Py_None); resultobj = Py_None;
16234 return resultobj;
16235 fail:
16236 return NULL;
16237 }
16238
16239
16240 static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
16241 PyObject *resultobj;
16242 wxImageList *arg1 = (wxImageList *) 0 ;
16243 wxBitmap *arg2 = 0 ;
16244 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16245 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16246 int result;
16247 PyObject * obj0 = 0 ;
16248 PyObject * obj1 = 0 ;
16249 PyObject * obj2 = 0 ;
16250 char *kwnames[] = {
16251 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16252 };
16253
16254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) 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_wxBitmap,
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 if (obj2) {
16265 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16266 SWIG_POINTER_EXCEPTION | 0)) == -1)
16267 SWIG_fail;
16268 if (arg3 == NULL) {
16269 PyErr_SetString(PyExc_TypeError,"null reference");
16270 SWIG_fail;
16271 }
16272 }
16273 {
16274 PyThreadState* __tstate = wxPyBeginAllowThreads();
16275 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16276
16277 wxPyEndAllowThreads(__tstate);
16278 if (PyErr_Occurred()) SWIG_fail;
16279 }
16280 resultobj = SWIG_FromInt((int)result);
16281 return resultobj;
16282 fail:
16283 return NULL;
16284 }
16285
16286
16287 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
16288 PyObject *resultobj;
16289 wxImageList *arg1 = (wxImageList *) 0 ;
16290 wxBitmap *arg2 = 0 ;
16291 wxColour *arg3 = 0 ;
16292 int result;
16293 wxColour temp3 ;
16294 PyObject * obj0 = 0 ;
16295 PyObject * obj1 = 0 ;
16296 PyObject * obj2 = 0 ;
16297 char *kwnames[] = {
16298 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16299 };
16300
16301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16304 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16305 SWIG_POINTER_EXCEPTION | 0)) == -1)
16306 SWIG_fail;
16307 if (arg2 == NULL) {
16308 PyErr_SetString(PyExc_TypeError,"null reference");
16309 SWIG_fail;
16310 }
16311 {
16312 arg3 = &temp3;
16313 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16314 }
16315 {
16316 PyThreadState* __tstate = wxPyBeginAllowThreads();
16317 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16318
16319 wxPyEndAllowThreads(__tstate);
16320 if (PyErr_Occurred()) SWIG_fail;
16321 }
16322 resultobj = SWIG_FromInt((int)result);
16323 return resultobj;
16324 fail:
16325 return NULL;
16326 }
16327
16328
16329 static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
16330 PyObject *resultobj;
16331 wxImageList *arg1 = (wxImageList *) 0 ;
16332 wxIcon *arg2 = 0 ;
16333 int result;
16334 PyObject * obj0 = 0 ;
16335 PyObject * obj1 = 0 ;
16336 char *kwnames[] = {
16337 (char *) "self",(char *) "icon", NULL
16338 };
16339
16340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16343 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16344 SWIG_POINTER_EXCEPTION | 0)) == -1)
16345 SWIG_fail;
16346 if (arg2 == NULL) {
16347 PyErr_SetString(PyExc_TypeError,"null reference");
16348 SWIG_fail;
16349 }
16350 {
16351 PyThreadState* __tstate = wxPyBeginAllowThreads();
16352 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16353
16354 wxPyEndAllowThreads(__tstate);
16355 if (PyErr_Occurred()) SWIG_fail;
16356 }
16357 resultobj = SWIG_FromInt((int)result);
16358 return resultobj;
16359 fail:
16360 return NULL;
16361 }
16362
16363
16364 static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
16365 PyObject *resultobj;
16366 wxImageList *arg1 = (wxImageList *) 0 ;
16367 int arg2 ;
16368 wxBitmap *arg3 = 0 ;
16369 bool result;
16370 PyObject * obj0 = 0 ;
16371 PyObject * obj1 = 0 ;
16372 PyObject * obj2 = 0 ;
16373 char *kwnames[] = {
16374 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16375 };
16376
16377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16380 arg2 = (int) SWIG_AsInt(obj1);
16381 if (PyErr_Occurred()) SWIG_fail;
16382 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16383 SWIG_POINTER_EXCEPTION | 0)) == -1)
16384 SWIG_fail;
16385 if (arg3 == NULL) {
16386 PyErr_SetString(PyExc_TypeError,"null reference");
16387 SWIG_fail;
16388 }
16389 {
16390 PyThreadState* __tstate = wxPyBeginAllowThreads();
16391 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16392
16393 wxPyEndAllowThreads(__tstate);
16394 if (PyErr_Occurred()) SWIG_fail;
16395 }
16396 {
16397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16398 }
16399 return resultobj;
16400 fail:
16401 return NULL;
16402 }
16403
16404
16405 static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
16406 PyObject *resultobj;
16407 wxImageList *arg1 = (wxImageList *) 0 ;
16408 int arg2 ;
16409 wxDC *arg3 = 0 ;
16410 int arg4 ;
16411 int arg5 ;
16412 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16413 bool arg7 = (bool) (bool)False ;
16414 bool result;
16415 PyObject * obj0 = 0 ;
16416 PyObject * obj1 = 0 ;
16417 PyObject * obj2 = 0 ;
16418 PyObject * obj3 = 0 ;
16419 PyObject * obj4 = 0 ;
16420 PyObject * obj5 = 0 ;
16421 PyObject * obj6 = 0 ;
16422 char *kwnames[] = {
16423 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16424 };
16425
16426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16429 arg2 = (int) SWIG_AsInt(obj1);
16430 if (PyErr_Occurred()) SWIG_fail;
16431 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16432 SWIG_POINTER_EXCEPTION | 0)) == -1)
16433 SWIG_fail;
16434 if (arg3 == NULL) {
16435 PyErr_SetString(PyExc_TypeError,"null reference");
16436 SWIG_fail;
16437 }
16438 arg4 = (int) SWIG_AsInt(obj3);
16439 if (PyErr_Occurred()) SWIG_fail;
16440 arg5 = (int) SWIG_AsInt(obj4);
16441 if (PyErr_Occurred()) SWIG_fail;
16442 if (obj5) {
16443 arg6 = (int) SWIG_AsInt(obj5);
16444 if (PyErr_Occurred()) SWIG_fail;
16445 }
16446 if (obj6) {
16447 arg7 = (bool const) SWIG_AsBool(obj6);
16448 if (PyErr_Occurred()) SWIG_fail;
16449 }
16450 {
16451 PyThreadState* __tstate = wxPyBeginAllowThreads();
16452 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
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_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
16467 PyObject *resultobj;
16468 wxImageList *arg1 = (wxImageList *) 0 ;
16469 int result;
16470 PyObject * obj0 = 0 ;
16471 char *kwnames[] = {
16472 (char *) "self", NULL
16473 };
16474
16475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16478 {
16479 PyThreadState* __tstate = wxPyBeginAllowThreads();
16480 result = (int)(arg1)->GetImageCount();
16481
16482 wxPyEndAllowThreads(__tstate);
16483 if (PyErr_Occurred()) SWIG_fail;
16484 }
16485 resultobj = SWIG_FromInt((int)result);
16486 return resultobj;
16487 fail:
16488 return NULL;
16489 }
16490
16491
16492 static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
16493 PyObject *resultobj;
16494 wxImageList *arg1 = (wxImageList *) 0 ;
16495 int arg2 ;
16496 bool result;
16497 PyObject * obj0 = 0 ;
16498 PyObject * obj1 = 0 ;
16499 char *kwnames[] = {
16500 (char *) "self",(char *) "index", NULL
16501 };
16502
16503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16506 arg2 = (int) SWIG_AsInt(obj1);
16507 if (PyErr_Occurred()) SWIG_fail;
16508 {
16509 PyThreadState* __tstate = wxPyBeginAllowThreads();
16510 result = (bool)(arg1)->Remove(arg2);
16511
16512 wxPyEndAllowThreads(__tstate);
16513 if (PyErr_Occurred()) SWIG_fail;
16514 }
16515 {
16516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16517 }
16518 return resultobj;
16519 fail:
16520 return NULL;
16521 }
16522
16523
16524 static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
16525 PyObject *resultobj;
16526 wxImageList *arg1 = (wxImageList *) 0 ;
16527 bool result;
16528 PyObject * obj0 = 0 ;
16529 char *kwnames[] = {
16530 (char *) "self", NULL
16531 };
16532
16533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16536 {
16537 PyThreadState* __tstate = wxPyBeginAllowThreads();
16538 result = (bool)(arg1)->RemoveAll();
16539
16540 wxPyEndAllowThreads(__tstate);
16541 if (PyErr_Occurred()) SWIG_fail;
16542 }
16543 {
16544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16545 }
16546 return resultobj;
16547 fail:
16548 return NULL;
16549 }
16550
16551
16552 static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16553 PyObject *resultobj;
16554 wxImageList *arg1 = (wxImageList *) 0 ;
16555 int arg2 ;
16556 int *arg3 = 0 ;
16557 int *arg4 = 0 ;
16558 int temp3 ;
16559 int temp4 ;
16560 PyObject * obj0 = 0 ;
16561 PyObject * obj1 = 0 ;
16562 char *kwnames[] = {
16563 (char *) "self",(char *) "index", NULL
16564 };
16565
16566 arg3 = &temp3;
16567 arg4 = &temp4;
16568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16571 arg2 = (int) SWIG_AsInt(obj1);
16572 if (PyErr_Occurred()) SWIG_fail;
16573 {
16574 PyThreadState* __tstate = wxPyBeginAllowThreads();
16575 (arg1)->GetSize(arg2,*arg3,*arg4);
16576
16577 wxPyEndAllowThreads(__tstate);
16578 if (PyErr_Occurred()) SWIG_fail;
16579 }
16580 Py_INCREF(Py_None); resultobj = Py_None;
16581 {
16582 PyObject *o = PyInt_FromLong((long) (*arg3));
16583 resultobj = t_output_helper(resultobj,o);
16584 }
16585 {
16586 PyObject *o = PyInt_FromLong((long) (*arg4));
16587 resultobj = t_output_helper(resultobj,o);
16588 }
16589 return resultobj;
16590 fail:
16591 return NULL;
16592 }
16593
16594
16595 static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
16596 PyObject *obj;
16597 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16598 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16599 Py_INCREF(obj);
16600 return Py_BuildValue((char *)"");
16601 }
16602 static int _wrap_NORMAL_FONT_set(PyObject *) {
16603 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16604 return 1;
16605 }
16606
16607
16608 static PyObject *_wrap_NORMAL_FONT_get() {
16609 PyObject *pyobj;
16610
16611 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16612 return pyobj;
16613 }
16614
16615
16616 static int _wrap_SMALL_FONT_set(PyObject *) {
16617 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16618 return 1;
16619 }
16620
16621
16622 static PyObject *_wrap_SMALL_FONT_get() {
16623 PyObject *pyobj;
16624
16625 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16626 return pyobj;
16627 }
16628
16629
16630 static int _wrap_ITALIC_FONT_set(PyObject *) {
16631 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16632 return 1;
16633 }
16634
16635
16636 static PyObject *_wrap_ITALIC_FONT_get() {
16637 PyObject *pyobj;
16638
16639 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16640 return pyobj;
16641 }
16642
16643
16644 static int _wrap_SWISS_FONT_set(PyObject *) {
16645 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16646 return 1;
16647 }
16648
16649
16650 static PyObject *_wrap_SWISS_FONT_get() {
16651 PyObject *pyobj;
16652
16653 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16654 return pyobj;
16655 }
16656
16657
16658 static int _wrap_RED_PEN_set(PyObject *) {
16659 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16660 return 1;
16661 }
16662
16663
16664 static PyObject *_wrap_RED_PEN_get() {
16665 PyObject *pyobj;
16666
16667 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16668 return pyobj;
16669 }
16670
16671
16672 static int _wrap_CYAN_PEN_set(PyObject *) {
16673 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16674 return 1;
16675 }
16676
16677
16678 static PyObject *_wrap_CYAN_PEN_get() {
16679 PyObject *pyobj;
16680
16681 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16682 return pyobj;
16683 }
16684
16685
16686 static int _wrap_GREEN_PEN_set(PyObject *) {
16687 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16688 return 1;
16689 }
16690
16691
16692 static PyObject *_wrap_GREEN_PEN_get() {
16693 PyObject *pyobj;
16694
16695 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16696 return pyobj;
16697 }
16698
16699
16700 static int _wrap_BLACK_PEN_set(PyObject *) {
16701 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16702 return 1;
16703 }
16704
16705
16706 static PyObject *_wrap_BLACK_PEN_get() {
16707 PyObject *pyobj;
16708
16709 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16710 return pyobj;
16711 }
16712
16713
16714 static int _wrap_WHITE_PEN_set(PyObject *) {
16715 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16716 return 1;
16717 }
16718
16719
16720 static PyObject *_wrap_WHITE_PEN_get() {
16721 PyObject *pyobj;
16722
16723 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16724 return pyobj;
16725 }
16726
16727
16728 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
16729 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16730 return 1;
16731 }
16732
16733
16734 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16735 PyObject *pyobj;
16736
16737 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16738 return pyobj;
16739 }
16740
16741
16742 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
16743 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16744 return 1;
16745 }
16746
16747
16748 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16749 PyObject *pyobj;
16750
16751 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16752 return pyobj;
16753 }
16754
16755
16756 static int _wrap_GREY_PEN_set(PyObject *) {
16757 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16758 return 1;
16759 }
16760
16761
16762 static PyObject *_wrap_GREY_PEN_get() {
16763 PyObject *pyobj;
16764
16765 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16766 return pyobj;
16767 }
16768
16769
16770 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
16771 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16772 return 1;
16773 }
16774
16775
16776 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16777 PyObject *pyobj;
16778
16779 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16780 return pyobj;
16781 }
16782
16783
16784 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
16785 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16786 return 1;
16787 }
16788
16789
16790 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16791 PyObject *pyobj;
16792
16793 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16794 return pyobj;
16795 }
16796
16797
16798 static int _wrap_BLUE_BRUSH_set(PyObject *) {
16799 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16800 return 1;
16801 }
16802
16803
16804 static PyObject *_wrap_BLUE_BRUSH_get() {
16805 PyObject *pyobj;
16806
16807 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16808 return pyobj;
16809 }
16810
16811
16812 static int _wrap_GREEN_BRUSH_set(PyObject *) {
16813 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16814 return 1;
16815 }
16816
16817
16818 static PyObject *_wrap_GREEN_BRUSH_get() {
16819 PyObject *pyobj;
16820
16821 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16822 return pyobj;
16823 }
16824
16825
16826 static int _wrap_WHITE_BRUSH_set(PyObject *) {
16827 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16828 return 1;
16829 }
16830
16831
16832 static PyObject *_wrap_WHITE_BRUSH_get() {
16833 PyObject *pyobj;
16834
16835 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16836 return pyobj;
16837 }
16838
16839
16840 static int _wrap_BLACK_BRUSH_set(PyObject *) {
16841 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16842 return 1;
16843 }
16844
16845
16846 static PyObject *_wrap_BLACK_BRUSH_get() {
16847 PyObject *pyobj;
16848
16849 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16850 return pyobj;
16851 }
16852
16853
16854 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
16855 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16856 return 1;
16857 }
16858
16859
16860 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16861 PyObject *pyobj;
16862
16863 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16864 return pyobj;
16865 }
16866
16867
16868 static int _wrap_CYAN_BRUSH_set(PyObject *) {
16869 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16870 return 1;
16871 }
16872
16873
16874 static PyObject *_wrap_CYAN_BRUSH_get() {
16875 PyObject *pyobj;
16876
16877 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16878 return pyobj;
16879 }
16880
16881
16882 static int _wrap_RED_BRUSH_set(PyObject *) {
16883 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16884 return 1;
16885 }
16886
16887
16888 static PyObject *_wrap_RED_BRUSH_get() {
16889 PyObject *pyobj;
16890
16891 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16892 return pyobj;
16893 }
16894
16895
16896 static int _wrap_GREY_BRUSH_set(PyObject *) {
16897 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16898 return 1;
16899 }
16900
16901
16902 static PyObject *_wrap_GREY_BRUSH_get() {
16903 PyObject *pyobj;
16904
16905 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16906 return pyobj;
16907 }
16908
16909
16910 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
16911 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16912 return 1;
16913 }
16914
16915
16916 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16917 PyObject *pyobj;
16918
16919 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16920 return pyobj;
16921 }
16922
16923
16924 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
16925 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16926 return 1;
16927 }
16928
16929
16930 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16931 PyObject *pyobj;
16932
16933 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16934 return pyobj;
16935 }
16936
16937
16938 static int _wrap_BLACK_set(PyObject *) {
16939 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16940 return 1;
16941 }
16942
16943
16944 static PyObject *_wrap_BLACK_get() {
16945 PyObject *pyobj;
16946
16947 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16948 return pyobj;
16949 }
16950
16951
16952 static int _wrap_WHITE_set(PyObject *) {
16953 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16954 return 1;
16955 }
16956
16957
16958 static PyObject *_wrap_WHITE_get() {
16959 PyObject *pyobj;
16960
16961 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16962 return pyobj;
16963 }
16964
16965
16966 static int _wrap_RED_set(PyObject *) {
16967 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16968 return 1;
16969 }
16970
16971
16972 static PyObject *_wrap_RED_get() {
16973 PyObject *pyobj;
16974
16975 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16976 return pyobj;
16977 }
16978
16979
16980 static int _wrap_BLUE_set(PyObject *) {
16981 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16982 return 1;
16983 }
16984
16985
16986 static PyObject *_wrap_BLUE_get() {
16987 PyObject *pyobj;
16988
16989 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16990 return pyobj;
16991 }
16992
16993
16994 static int _wrap_GREEN_set(PyObject *) {
16995 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16996 return 1;
16997 }
16998
16999
17000 static PyObject *_wrap_GREEN_get() {
17001 PyObject *pyobj;
17002
17003 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17004 return pyobj;
17005 }
17006
17007
17008 static int _wrap_CYAN_set(PyObject *) {
17009 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17010 return 1;
17011 }
17012
17013
17014 static PyObject *_wrap_CYAN_get() {
17015 PyObject *pyobj;
17016
17017 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17018 return pyobj;
17019 }
17020
17021
17022 static int _wrap_LIGHT_GREY_set(PyObject *) {
17023 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17024 return 1;
17025 }
17026
17027
17028 static PyObject *_wrap_LIGHT_GREY_get() {
17029 PyObject *pyobj;
17030
17031 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17032 return pyobj;
17033 }
17034
17035
17036 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
17037 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17038 return 1;
17039 }
17040
17041
17042 static PyObject *_wrap_STANDARD_CURSOR_get() {
17043 PyObject *pyobj;
17044
17045 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17046 return pyobj;
17047 }
17048
17049
17050 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
17051 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17052 return 1;
17053 }
17054
17055
17056 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17057 PyObject *pyobj;
17058
17059 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17060 return pyobj;
17061 }
17062
17063
17064 static int _wrap_CROSS_CURSOR_set(PyObject *) {
17065 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17066 return 1;
17067 }
17068
17069
17070 static PyObject *_wrap_CROSS_CURSOR_get() {
17071 PyObject *pyobj;
17072
17073 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17074 return pyobj;
17075 }
17076
17077
17078 static int _wrap_NullBitmap_set(PyObject *) {
17079 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17080 return 1;
17081 }
17082
17083
17084 static PyObject *_wrap_NullBitmap_get() {
17085 PyObject *pyobj;
17086
17087 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17088 return pyobj;
17089 }
17090
17091
17092 static int _wrap_NullIcon_set(PyObject *) {
17093 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17094 return 1;
17095 }
17096
17097
17098 static PyObject *_wrap_NullIcon_get() {
17099 PyObject *pyobj;
17100
17101 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17102 return pyobj;
17103 }
17104
17105
17106 static int _wrap_NullCursor_set(PyObject *) {
17107 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17108 return 1;
17109 }
17110
17111
17112 static PyObject *_wrap_NullCursor_get() {
17113 PyObject *pyobj;
17114
17115 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17116 return pyobj;
17117 }
17118
17119
17120 static int _wrap_NullPen_set(PyObject *) {
17121 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17122 return 1;
17123 }
17124
17125
17126 static PyObject *_wrap_NullPen_get() {
17127 PyObject *pyobj;
17128
17129 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17130 return pyobj;
17131 }
17132
17133
17134 static int _wrap_NullBrush_set(PyObject *) {
17135 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17136 return 1;
17137 }
17138
17139
17140 static PyObject *_wrap_NullBrush_get() {
17141 PyObject *pyobj;
17142
17143 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17144 return pyobj;
17145 }
17146
17147
17148 static int _wrap_NullPalette_set(PyObject *) {
17149 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17150 return 1;
17151 }
17152
17153
17154 static PyObject *_wrap_NullPalette_get() {
17155 PyObject *pyobj;
17156
17157 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17158 return pyobj;
17159 }
17160
17161
17162 static int _wrap_NullFont_set(PyObject *) {
17163 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17164 return 1;
17165 }
17166
17167
17168 static PyObject *_wrap_NullFont_get() {
17169 PyObject *pyobj;
17170
17171 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17172 return pyobj;
17173 }
17174
17175
17176 static int _wrap_NullColour_set(PyObject *) {
17177 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17178 return 1;
17179 }
17180
17181
17182 static PyObject *_wrap_NullColour_get() {
17183 PyObject *pyobj;
17184
17185 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17186 return pyobj;
17187 }
17188
17189
17190 static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
17191 PyObject *resultobj;
17192 wxPenList *arg1 = (wxPenList *) 0 ;
17193 wxPen *arg2 = (wxPen *) 0 ;
17194 PyObject * obj0 = 0 ;
17195 PyObject * obj1 = 0 ;
17196 char *kwnames[] = {
17197 (char *) "self",(char *) "pen", NULL
17198 };
17199
17200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17203 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17205 {
17206 PyThreadState* __tstate = wxPyBeginAllowThreads();
17207 (arg1)->AddPen(arg2);
17208
17209 wxPyEndAllowThreads(__tstate);
17210 if (PyErr_Occurred()) SWIG_fail;
17211 }
17212 Py_INCREF(Py_None); resultobj = Py_None;
17213 return resultobj;
17214 fail:
17215 return NULL;
17216 }
17217
17218
17219 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
17220 PyObject *resultobj;
17221 wxPenList *arg1 = (wxPenList *) 0 ;
17222 wxColour *arg2 = 0 ;
17223 int arg3 ;
17224 int arg4 ;
17225 wxPen *result;
17226 wxColour temp2 ;
17227 PyObject * obj0 = 0 ;
17228 PyObject * obj1 = 0 ;
17229 PyObject * obj2 = 0 ;
17230 PyObject * obj3 = 0 ;
17231 char *kwnames[] = {
17232 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17233 };
17234
17235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17238 {
17239 arg2 = &temp2;
17240 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17241 }
17242 arg3 = (int) SWIG_AsInt(obj2);
17243 if (PyErr_Occurred()) SWIG_fail;
17244 arg4 = (int) SWIG_AsInt(obj3);
17245 if (PyErr_Occurred()) SWIG_fail;
17246 {
17247 PyThreadState* __tstate = wxPyBeginAllowThreads();
17248 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17249
17250 wxPyEndAllowThreads(__tstate);
17251 if (PyErr_Occurred()) SWIG_fail;
17252 }
17253 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17254 return resultobj;
17255 fail:
17256 return NULL;
17257 }
17258
17259
17260 static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
17261 PyObject *resultobj;
17262 wxPenList *arg1 = (wxPenList *) 0 ;
17263 wxPen *arg2 = (wxPen *) 0 ;
17264 PyObject * obj0 = 0 ;
17265 PyObject * obj1 = 0 ;
17266 char *kwnames[] = {
17267 (char *) "self",(char *) "pen", NULL
17268 };
17269
17270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17273 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17275 {
17276 PyThreadState* __tstate = wxPyBeginAllowThreads();
17277 (arg1)->RemovePen(arg2);
17278
17279 wxPyEndAllowThreads(__tstate);
17280 if (PyErr_Occurred()) SWIG_fail;
17281 }
17282 Py_INCREF(Py_None); resultobj = Py_None;
17283 return resultobj;
17284 fail:
17285 return NULL;
17286 }
17287
17288
17289 static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17290 PyObject *resultobj;
17291 wxPenList *arg1 = (wxPenList *) 0 ;
17292 int result;
17293 PyObject * obj0 = 0 ;
17294 char *kwnames[] = {
17295 (char *) "self", NULL
17296 };
17297
17298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17301 {
17302 PyThreadState* __tstate = wxPyBeginAllowThreads();
17303 result = (int)(arg1)->GetCount();
17304
17305 wxPyEndAllowThreads(__tstate);
17306 if (PyErr_Occurred()) SWIG_fail;
17307 }
17308 resultobj = SWIG_FromInt((int)result);
17309 return resultobj;
17310 fail:
17311 return NULL;
17312 }
17313
17314
17315 static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
17316 PyObject *obj;
17317 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17318 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17319 Py_INCREF(obj);
17320 return Py_BuildValue((char *)"");
17321 }
17322 static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17323 PyObject *resultobj;
17324 wxBrushList *arg1 = (wxBrushList *) 0 ;
17325 wxBrush *arg2 = (wxBrush *) 0 ;
17326 PyObject * obj0 = 0 ;
17327 PyObject * obj1 = 0 ;
17328 char *kwnames[] = {
17329 (char *) "self",(char *) "brush", NULL
17330 };
17331
17332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17335 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17337 {
17338 PyThreadState* __tstate = wxPyBeginAllowThreads();
17339 (arg1)->AddBrush(arg2);
17340
17341 wxPyEndAllowThreads(__tstate);
17342 if (PyErr_Occurred()) SWIG_fail;
17343 }
17344 Py_INCREF(Py_None); resultobj = Py_None;
17345 return resultobj;
17346 fail:
17347 return NULL;
17348 }
17349
17350
17351 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17352 PyObject *resultobj;
17353 wxBrushList *arg1 = (wxBrushList *) 0 ;
17354 wxColour *arg2 = 0 ;
17355 int arg3 ;
17356 wxBrush *result;
17357 wxColour temp2 ;
17358 PyObject * obj0 = 0 ;
17359 PyObject * obj1 = 0 ;
17360 PyObject * obj2 = 0 ;
17361 char *kwnames[] = {
17362 (char *) "self",(char *) "colour",(char *) "style", NULL
17363 };
17364
17365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17368 {
17369 arg2 = &temp2;
17370 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17371 }
17372 arg3 = (int) SWIG_AsInt(obj2);
17373 if (PyErr_Occurred()) SWIG_fail;
17374 {
17375 PyThreadState* __tstate = wxPyBeginAllowThreads();
17376 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17377
17378 wxPyEndAllowThreads(__tstate);
17379 if (PyErr_Occurred()) SWIG_fail;
17380 }
17381 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17382 return resultobj;
17383 fail:
17384 return NULL;
17385 }
17386
17387
17388 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17389 PyObject *resultobj;
17390 wxBrushList *arg1 = (wxBrushList *) 0 ;
17391 wxBrush *arg2 = (wxBrush *) 0 ;
17392 PyObject * obj0 = 0 ;
17393 PyObject * obj1 = 0 ;
17394 char *kwnames[] = {
17395 (char *) "self",(char *) "brush", NULL
17396 };
17397
17398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17401 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17403 {
17404 PyThreadState* __tstate = wxPyBeginAllowThreads();
17405 (arg1)->RemoveBrush(arg2);
17406
17407 wxPyEndAllowThreads(__tstate);
17408 if (PyErr_Occurred()) SWIG_fail;
17409 }
17410 Py_INCREF(Py_None); resultobj = Py_None;
17411 return resultobj;
17412 fail:
17413 return NULL;
17414 }
17415
17416
17417 static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17418 PyObject *resultobj;
17419 wxBrushList *arg1 = (wxBrushList *) 0 ;
17420 int result;
17421 PyObject * obj0 = 0 ;
17422 char *kwnames[] = {
17423 (char *) "self", NULL
17424 };
17425
17426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17429 {
17430 PyThreadState* __tstate = wxPyBeginAllowThreads();
17431 result = (int)(arg1)->GetCount();
17432
17433 wxPyEndAllowThreads(__tstate);
17434 if (PyErr_Occurred()) SWIG_fail;
17435 }
17436 resultobj = SWIG_FromInt((int)result);
17437 return resultobj;
17438 fail:
17439 return NULL;
17440 }
17441
17442
17443 static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
17444 PyObject *obj;
17445 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17446 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17447 Py_INCREF(obj);
17448 return Py_BuildValue((char *)"");
17449 }
17450 static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17451 PyObject *resultobj;
17452 wxColourDatabase *result;
17453 char *kwnames[] = {
17454 NULL
17455 };
17456
17457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17458 {
17459 PyThreadState* __tstate = wxPyBeginAllowThreads();
17460 result = (wxColourDatabase *)new wxColourDatabase();
17461
17462 wxPyEndAllowThreads(__tstate);
17463 if (PyErr_Occurred()) SWIG_fail;
17464 }
17465 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17466 return resultobj;
17467 fail:
17468 return NULL;
17469 }
17470
17471
17472 static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17473 PyObject *resultobj;
17474 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17475 PyObject * obj0 = 0 ;
17476 char *kwnames[] = {
17477 (char *) "self", NULL
17478 };
17479
17480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17483 {
17484 PyThreadState* __tstate = wxPyBeginAllowThreads();
17485 delete arg1;
17486
17487 wxPyEndAllowThreads(__tstate);
17488 if (PyErr_Occurred()) SWIG_fail;
17489 }
17490 Py_INCREF(Py_None); resultobj = Py_None;
17491 return resultobj;
17492 fail:
17493 return NULL;
17494 }
17495
17496
17497 static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
17498 PyObject *resultobj;
17499 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17500 wxString *arg2 = 0 ;
17501 wxColour result;
17502 bool temp2 = False ;
17503 PyObject * obj0 = 0 ;
17504 PyObject * obj1 = 0 ;
17505 char *kwnames[] = {
17506 (char *) "self",(char *) "name", NULL
17507 };
17508
17509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17512 {
17513 arg2 = wxString_in_helper(obj1);
17514 if (arg2 == NULL) SWIG_fail;
17515 temp2 = True;
17516 }
17517 {
17518 PyThreadState* __tstate = wxPyBeginAllowThreads();
17519 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17520
17521 wxPyEndAllowThreads(__tstate);
17522 if (PyErr_Occurred()) SWIG_fail;
17523 }
17524 {
17525 wxColour * resultptr;
17526 resultptr = new wxColour((wxColour &) result);
17527 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17528 }
17529 {
17530 if (temp2)
17531 delete arg2;
17532 }
17533 return resultobj;
17534 fail:
17535 {
17536 if (temp2)
17537 delete arg2;
17538 }
17539 return NULL;
17540 }
17541
17542
17543 static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
17544 PyObject *resultobj;
17545 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17546 wxColour *arg2 = 0 ;
17547 wxString result;
17548 wxColour temp2 ;
17549 PyObject * obj0 = 0 ;
17550 PyObject * obj1 = 0 ;
17551 char *kwnames[] = {
17552 (char *) "self",(char *) "colour", NULL
17553 };
17554
17555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17558 {
17559 arg2 = &temp2;
17560 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17561 }
17562 {
17563 PyThreadState* __tstate = wxPyBeginAllowThreads();
17564 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17565
17566 wxPyEndAllowThreads(__tstate);
17567 if (PyErr_Occurred()) SWIG_fail;
17568 }
17569 {
17570 #if wxUSE_UNICODE
17571 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17572 #else
17573 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17574 #endif
17575 }
17576 return resultobj;
17577 fail:
17578 return NULL;
17579 }
17580
17581
17582 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
17583 PyObject *resultobj;
17584 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17585 wxString *arg2 = 0 ;
17586 wxColour *arg3 = 0 ;
17587 bool temp2 = False ;
17588 wxColour temp3 ;
17589 PyObject * obj0 = 0 ;
17590 PyObject * obj1 = 0 ;
17591 PyObject * obj2 = 0 ;
17592 char *kwnames[] = {
17593 (char *) "self",(char *) "name",(char *) "colour", NULL
17594 };
17595
17596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17599 {
17600 arg2 = wxString_in_helper(obj1);
17601 if (arg2 == NULL) SWIG_fail;
17602 temp2 = True;
17603 }
17604 {
17605 arg3 = &temp3;
17606 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17607 }
17608 {
17609 PyThreadState* __tstate = wxPyBeginAllowThreads();
17610 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17611
17612 wxPyEndAllowThreads(__tstate);
17613 if (PyErr_Occurred()) SWIG_fail;
17614 }
17615 Py_INCREF(Py_None); resultobj = Py_None;
17616 {
17617 if (temp2)
17618 delete arg2;
17619 }
17620 return resultobj;
17621 fail:
17622 {
17623 if (temp2)
17624 delete arg2;
17625 }
17626 return NULL;
17627 }
17628
17629
17630 static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
17631 PyObject *resultobj;
17632 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17633 wxString *arg2 = 0 ;
17634 int arg3 ;
17635 int arg4 ;
17636 int arg5 ;
17637 bool temp2 = False ;
17638 PyObject * obj0 = 0 ;
17639 PyObject * obj1 = 0 ;
17640 PyObject * obj2 = 0 ;
17641 PyObject * obj3 = 0 ;
17642 PyObject * obj4 = 0 ;
17643 char *kwnames[] = {
17644 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17645 };
17646
17647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17650 {
17651 arg2 = wxString_in_helper(obj1);
17652 if (arg2 == NULL) SWIG_fail;
17653 temp2 = True;
17654 }
17655 arg3 = (int) SWIG_AsInt(obj2);
17656 if (PyErr_Occurred()) SWIG_fail;
17657 arg4 = (int) SWIG_AsInt(obj3);
17658 if (PyErr_Occurred()) SWIG_fail;
17659 arg5 = (int) SWIG_AsInt(obj4);
17660 if (PyErr_Occurred()) SWIG_fail;
17661 {
17662 PyThreadState* __tstate = wxPyBeginAllowThreads();
17663 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17664
17665 wxPyEndAllowThreads(__tstate);
17666 if (PyErr_Occurred()) SWIG_fail;
17667 }
17668 Py_INCREF(Py_None); resultobj = Py_None;
17669 {
17670 if (temp2)
17671 delete arg2;
17672 }
17673 return resultobj;
17674 fail:
17675 {
17676 if (temp2)
17677 delete arg2;
17678 }
17679 return NULL;
17680 }
17681
17682
17683 static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
17684 PyObject *obj;
17685 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17686 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17687 Py_INCREF(obj);
17688 return Py_BuildValue((char *)"");
17689 }
17690 static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
17691 PyObject *resultobj;
17692 wxFontList *arg1 = (wxFontList *) 0 ;
17693 wxFont *arg2 = (wxFont *) 0 ;
17694 PyObject * obj0 = 0 ;
17695 PyObject * obj1 = 0 ;
17696 char *kwnames[] = {
17697 (char *) "self",(char *) "font", NULL
17698 };
17699
17700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17703 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17705 {
17706 PyThreadState* __tstate = wxPyBeginAllowThreads();
17707 (arg1)->AddFont(arg2);
17708
17709 wxPyEndAllowThreads(__tstate);
17710 if (PyErr_Occurred()) SWIG_fail;
17711 }
17712 Py_INCREF(Py_None); resultobj = Py_None;
17713 return resultobj;
17714 fail:
17715 return NULL;
17716 }
17717
17718
17719 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
17720 PyObject *resultobj;
17721 wxFontList *arg1 = (wxFontList *) 0 ;
17722 int arg2 ;
17723 int arg3 ;
17724 int arg4 ;
17725 int arg5 ;
17726 bool arg6 = (bool) False ;
17727 wxString const &arg7_defvalue = wxPyEmptyString ;
17728 wxString *arg7 = (wxString *) &arg7_defvalue ;
17729 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17730 wxFont *result;
17731 bool temp7 = False ;
17732 PyObject * obj0 = 0 ;
17733 PyObject * obj1 = 0 ;
17734 PyObject * obj2 = 0 ;
17735 PyObject * obj3 = 0 ;
17736 PyObject * obj4 = 0 ;
17737 PyObject * obj5 = 0 ;
17738 PyObject * obj6 = 0 ;
17739 PyObject * obj7 = 0 ;
17740 char *kwnames[] = {
17741 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17742 };
17743
17744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17747 arg2 = (int) SWIG_AsInt(obj1);
17748 if (PyErr_Occurred()) SWIG_fail;
17749 arg3 = (int) SWIG_AsInt(obj2);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 arg4 = (int) SWIG_AsInt(obj3);
17752 if (PyErr_Occurred()) SWIG_fail;
17753 arg5 = (int) SWIG_AsInt(obj4);
17754 if (PyErr_Occurred()) SWIG_fail;
17755 if (obj5) {
17756 arg6 = (bool) SWIG_AsBool(obj5);
17757 if (PyErr_Occurred()) SWIG_fail;
17758 }
17759 if (obj6) {
17760 {
17761 arg7 = wxString_in_helper(obj6);
17762 if (arg7 == NULL) SWIG_fail;
17763 temp7 = True;
17764 }
17765 }
17766 if (obj7) {
17767 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 }
17770 {
17771 PyThreadState* __tstate = wxPyBeginAllowThreads();
17772 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17773
17774 wxPyEndAllowThreads(__tstate);
17775 if (PyErr_Occurred()) SWIG_fail;
17776 }
17777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17778 {
17779 if (temp7)
17780 delete arg7;
17781 }
17782 return resultobj;
17783 fail:
17784 {
17785 if (temp7)
17786 delete arg7;
17787 }
17788 return NULL;
17789 }
17790
17791
17792 static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
17793 PyObject *resultobj;
17794 wxFontList *arg1 = (wxFontList *) 0 ;
17795 wxFont *arg2 = (wxFont *) 0 ;
17796 PyObject * obj0 = 0 ;
17797 PyObject * obj1 = 0 ;
17798 char *kwnames[] = {
17799 (char *) "self",(char *) "font", NULL
17800 };
17801
17802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17805 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17807 {
17808 PyThreadState* __tstate = wxPyBeginAllowThreads();
17809 (arg1)->RemoveFont(arg2);
17810
17811 wxPyEndAllowThreads(__tstate);
17812 if (PyErr_Occurred()) SWIG_fail;
17813 }
17814 Py_INCREF(Py_None); resultobj = Py_None;
17815 return resultobj;
17816 fail:
17817 return NULL;
17818 }
17819
17820
17821 static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17822 PyObject *resultobj;
17823 wxFontList *arg1 = (wxFontList *) 0 ;
17824 int result;
17825 PyObject * obj0 = 0 ;
17826 char *kwnames[] = {
17827 (char *) "self", NULL
17828 };
17829
17830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17833 {
17834 PyThreadState* __tstate = wxPyBeginAllowThreads();
17835 result = (int)(arg1)->GetCount();
17836
17837 wxPyEndAllowThreads(__tstate);
17838 if (PyErr_Occurred()) SWIG_fail;
17839 }
17840 resultobj = SWIG_FromInt((int)result);
17841 return resultobj;
17842 fail:
17843 return NULL;
17844 }
17845
17846
17847 static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
17848 PyObject *obj;
17849 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17850 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17851 Py_INCREF(obj);
17852 return Py_BuildValue((char *)"");
17853 }
17854 static int _wrap_TheFontList_set(PyObject *) {
17855 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17856 return 1;
17857 }
17858
17859
17860 static PyObject *_wrap_TheFontList_get() {
17861 PyObject *pyobj;
17862
17863 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17864 return pyobj;
17865 }
17866
17867
17868 static int _wrap_ThePenList_set(PyObject *) {
17869 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17870 return 1;
17871 }
17872
17873
17874 static PyObject *_wrap_ThePenList_get() {
17875 PyObject *pyobj;
17876
17877 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17878 return pyobj;
17879 }
17880
17881
17882 static int _wrap_TheBrushList_set(PyObject *) {
17883 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17884 return 1;
17885 }
17886
17887
17888 static PyObject *_wrap_TheBrushList_get() {
17889 PyObject *pyobj;
17890
17891 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17892 return pyobj;
17893 }
17894
17895
17896 static int _wrap_TheColourDatabase_set(PyObject *) {
17897 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17898 return 1;
17899 }
17900
17901
17902 static PyObject *_wrap_TheColourDatabase_get() {
17903 PyObject *pyobj;
17904
17905 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17906 return pyobj;
17907 }
17908
17909
17910 static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
17911 PyObject *resultobj;
17912 wxEffects *result;
17913 char *kwnames[] = {
17914 NULL
17915 };
17916
17917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17918 {
17919 PyThreadState* __tstate = wxPyBeginAllowThreads();
17920 result = (wxEffects *)new wxEffects();
17921
17922 wxPyEndAllowThreads(__tstate);
17923 if (PyErr_Occurred()) SWIG_fail;
17924 }
17925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17926 return resultobj;
17927 fail:
17928 return NULL;
17929 }
17930
17931
17932 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
17933 PyObject *resultobj;
17934 wxEffects *arg1 = (wxEffects *) 0 ;
17935 wxColour result;
17936 PyObject * obj0 = 0 ;
17937 char *kwnames[] = {
17938 (char *) "self", NULL
17939 };
17940
17941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17944 {
17945 PyThreadState* __tstate = wxPyBeginAllowThreads();
17946 result = ((wxEffects const *)arg1)->GetHighlightColour();
17947
17948 wxPyEndAllowThreads(__tstate);
17949 if (PyErr_Occurred()) SWIG_fail;
17950 }
17951 {
17952 wxColour * resultptr;
17953 resultptr = new wxColour((wxColour &) result);
17954 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17955 }
17956 return resultobj;
17957 fail:
17958 return NULL;
17959 }
17960
17961
17962 static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
17963 PyObject *resultobj;
17964 wxEffects *arg1 = (wxEffects *) 0 ;
17965 wxColour result;
17966 PyObject * obj0 = 0 ;
17967 char *kwnames[] = {
17968 (char *) "self", NULL
17969 };
17970
17971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17974 {
17975 PyThreadState* __tstate = wxPyBeginAllowThreads();
17976 result = ((wxEffects const *)arg1)->GetLightShadow();
17977
17978 wxPyEndAllowThreads(__tstate);
17979 if (PyErr_Occurred()) SWIG_fail;
17980 }
17981 {
17982 wxColour * resultptr;
17983 resultptr = new wxColour((wxColour &) result);
17984 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17985 }
17986 return resultobj;
17987 fail:
17988 return NULL;
17989 }
17990
17991
17992 static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
17993 PyObject *resultobj;
17994 wxEffects *arg1 = (wxEffects *) 0 ;
17995 wxColour result;
17996 PyObject * obj0 = 0 ;
17997 char *kwnames[] = {
17998 (char *) "self", NULL
17999 };
18000
18001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18004 {
18005 PyThreadState* __tstate = wxPyBeginAllowThreads();
18006 result = ((wxEffects const *)arg1)->GetFaceColour();
18007
18008 wxPyEndAllowThreads(__tstate);
18009 if (PyErr_Occurred()) SWIG_fail;
18010 }
18011 {
18012 wxColour * resultptr;
18013 resultptr = new wxColour((wxColour &) result);
18014 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18015 }
18016 return resultobj;
18017 fail:
18018 return NULL;
18019 }
18020
18021
18022 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18023 PyObject *resultobj;
18024 wxEffects *arg1 = (wxEffects *) 0 ;
18025 wxColour result;
18026 PyObject * obj0 = 0 ;
18027 char *kwnames[] = {
18028 (char *) "self", NULL
18029 };
18030
18031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18034 {
18035 PyThreadState* __tstate = wxPyBeginAllowThreads();
18036 result = ((wxEffects const *)arg1)->GetMediumShadow();
18037
18038 wxPyEndAllowThreads(__tstate);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 }
18041 {
18042 wxColour * resultptr;
18043 resultptr = new wxColour((wxColour &) result);
18044 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18045 }
18046 return resultobj;
18047 fail:
18048 return NULL;
18049 }
18050
18051
18052 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18053 PyObject *resultobj;
18054 wxEffects *arg1 = (wxEffects *) 0 ;
18055 wxColour result;
18056 PyObject * obj0 = 0 ;
18057 char *kwnames[] = {
18058 (char *) "self", NULL
18059 };
18060
18061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18064 {
18065 PyThreadState* __tstate = wxPyBeginAllowThreads();
18066 result = ((wxEffects const *)arg1)->GetDarkShadow();
18067
18068 wxPyEndAllowThreads(__tstate);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 }
18071 {
18072 wxColour * resultptr;
18073 resultptr = new wxColour((wxColour &) result);
18074 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18075 }
18076 return resultobj;
18077 fail:
18078 return NULL;
18079 }
18080
18081
18082 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
18083 PyObject *resultobj;
18084 wxEffects *arg1 = (wxEffects *) 0 ;
18085 wxColour *arg2 = 0 ;
18086 wxColour temp2 ;
18087 PyObject * obj0 = 0 ;
18088 PyObject * obj1 = 0 ;
18089 char *kwnames[] = {
18090 (char *) "self",(char *) "c", NULL
18091 };
18092
18093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18096 {
18097 arg2 = &temp2;
18098 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18099 }
18100 {
18101 PyThreadState* __tstate = wxPyBeginAllowThreads();
18102 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18103
18104 wxPyEndAllowThreads(__tstate);
18105 if (PyErr_Occurred()) SWIG_fail;
18106 }
18107 Py_INCREF(Py_None); resultobj = Py_None;
18108 return resultobj;
18109 fail:
18110 return NULL;
18111 }
18112
18113
18114 static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18115 PyObject *resultobj;
18116 wxEffects *arg1 = (wxEffects *) 0 ;
18117 wxColour *arg2 = 0 ;
18118 wxColour temp2 ;
18119 PyObject * obj0 = 0 ;
18120 PyObject * obj1 = 0 ;
18121 char *kwnames[] = {
18122 (char *) "self",(char *) "c", NULL
18123 };
18124
18125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18128 {
18129 arg2 = &temp2;
18130 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18131 }
18132 {
18133 PyThreadState* __tstate = wxPyBeginAllowThreads();
18134 (arg1)->SetLightShadow((wxColour const &)*arg2);
18135
18136 wxPyEndAllowThreads(__tstate);
18137 if (PyErr_Occurred()) SWIG_fail;
18138 }
18139 Py_INCREF(Py_None); resultobj = Py_None;
18140 return resultobj;
18141 fail:
18142 return NULL;
18143 }
18144
18145
18146 static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
18147 PyObject *resultobj;
18148 wxEffects *arg1 = (wxEffects *) 0 ;
18149 wxColour *arg2 = 0 ;
18150 wxColour temp2 ;
18151 PyObject * obj0 = 0 ;
18152 PyObject * obj1 = 0 ;
18153 char *kwnames[] = {
18154 (char *) "self",(char *) "c", NULL
18155 };
18156
18157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18160 {
18161 arg2 = &temp2;
18162 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18163 }
18164 {
18165 PyThreadState* __tstate = wxPyBeginAllowThreads();
18166 (arg1)->SetFaceColour((wxColour const &)*arg2);
18167
18168 wxPyEndAllowThreads(__tstate);
18169 if (PyErr_Occurred()) SWIG_fail;
18170 }
18171 Py_INCREF(Py_None); resultobj = Py_None;
18172 return resultobj;
18173 fail:
18174 return NULL;
18175 }
18176
18177
18178 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18179 PyObject *resultobj;
18180 wxEffects *arg1 = (wxEffects *) 0 ;
18181 wxColour *arg2 = 0 ;
18182 wxColour temp2 ;
18183 PyObject * obj0 = 0 ;
18184 PyObject * obj1 = 0 ;
18185 char *kwnames[] = {
18186 (char *) "self",(char *) "c", NULL
18187 };
18188
18189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18192 {
18193 arg2 = &temp2;
18194 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18195 }
18196 {
18197 PyThreadState* __tstate = wxPyBeginAllowThreads();
18198 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18199
18200 wxPyEndAllowThreads(__tstate);
18201 if (PyErr_Occurred()) SWIG_fail;
18202 }
18203 Py_INCREF(Py_None); resultobj = Py_None;
18204 return resultobj;
18205 fail:
18206 return NULL;
18207 }
18208
18209
18210 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18211 PyObject *resultobj;
18212 wxEffects *arg1 = (wxEffects *) 0 ;
18213 wxColour *arg2 = 0 ;
18214 wxColour temp2 ;
18215 PyObject * obj0 = 0 ;
18216 PyObject * obj1 = 0 ;
18217 char *kwnames[] = {
18218 (char *) "self",(char *) "c", NULL
18219 };
18220
18221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18224 {
18225 arg2 = &temp2;
18226 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18227 }
18228 {
18229 PyThreadState* __tstate = wxPyBeginAllowThreads();
18230 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18231
18232 wxPyEndAllowThreads(__tstate);
18233 if (PyErr_Occurred()) SWIG_fail;
18234 }
18235 Py_INCREF(Py_None); resultobj = Py_None;
18236 return resultobj;
18237 fail:
18238 return NULL;
18239 }
18240
18241
18242 static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
18243 PyObject *resultobj;
18244 wxEffects *arg1 = (wxEffects *) 0 ;
18245 wxColour *arg2 = 0 ;
18246 wxColour *arg3 = 0 ;
18247 wxColour *arg4 = 0 ;
18248 wxColour *arg5 = 0 ;
18249 wxColour *arg6 = 0 ;
18250 wxColour temp2 ;
18251 wxColour temp3 ;
18252 wxColour temp4 ;
18253 wxColour temp5 ;
18254 wxColour temp6 ;
18255 PyObject * obj0 = 0 ;
18256 PyObject * obj1 = 0 ;
18257 PyObject * obj2 = 0 ;
18258 PyObject * obj3 = 0 ;
18259 PyObject * obj4 = 0 ;
18260 PyObject * obj5 = 0 ;
18261 char *kwnames[] = {
18262 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18263 };
18264
18265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18268 {
18269 arg2 = &temp2;
18270 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18271 }
18272 {
18273 arg3 = &temp3;
18274 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18275 }
18276 {
18277 arg4 = &temp4;
18278 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18279 }
18280 {
18281 arg5 = &temp5;
18282 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18283 }
18284 {
18285 arg6 = &temp6;
18286 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18287 }
18288 {
18289 PyThreadState* __tstate = wxPyBeginAllowThreads();
18290 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18291
18292 wxPyEndAllowThreads(__tstate);
18293 if (PyErr_Occurred()) SWIG_fail;
18294 }
18295 Py_INCREF(Py_None); resultobj = Py_None;
18296 return resultobj;
18297 fail:
18298 return NULL;
18299 }
18300
18301
18302 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
18303 PyObject *resultobj;
18304 wxEffects *arg1 = (wxEffects *) 0 ;
18305 wxDC *arg2 = 0 ;
18306 wxRect *arg3 = 0 ;
18307 int arg4 = (int) 1 ;
18308 wxRect temp3 ;
18309 PyObject * obj0 = 0 ;
18310 PyObject * obj1 = 0 ;
18311 PyObject * obj2 = 0 ;
18312 PyObject * obj3 = 0 ;
18313 char *kwnames[] = {
18314 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18315 };
18316
18317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18320 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18321 SWIG_POINTER_EXCEPTION | 0)) == -1)
18322 SWIG_fail;
18323 if (arg2 == NULL) {
18324 PyErr_SetString(PyExc_TypeError,"null reference");
18325 SWIG_fail;
18326 }
18327 {
18328 arg3 = &temp3;
18329 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18330 }
18331 if (obj3) {
18332 arg4 = (int) SWIG_AsInt(obj3);
18333 if (PyErr_Occurred()) SWIG_fail;
18334 }
18335 {
18336 PyThreadState* __tstate = wxPyBeginAllowThreads();
18337 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18338
18339 wxPyEndAllowThreads(__tstate);
18340 if (PyErr_Occurred()) SWIG_fail;
18341 }
18342 Py_INCREF(Py_None); resultobj = Py_None;
18343 return resultobj;
18344 fail:
18345 return NULL;
18346 }
18347
18348
18349 static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
18350 PyObject *resultobj;
18351 wxEffects *arg1 = (wxEffects *) 0 ;
18352 wxRect *arg2 = 0 ;
18353 wxDC *arg3 = 0 ;
18354 wxBitmap *arg4 = 0 ;
18355 bool result;
18356 wxRect temp2 ;
18357 PyObject * obj0 = 0 ;
18358 PyObject * obj1 = 0 ;
18359 PyObject * obj2 = 0 ;
18360 PyObject * obj3 = 0 ;
18361 char *kwnames[] = {
18362 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18363 };
18364
18365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18368 {
18369 arg2 = &temp2;
18370 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18371 }
18372 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18373 SWIG_POINTER_EXCEPTION | 0)) == -1)
18374 SWIG_fail;
18375 if (arg3 == NULL) {
18376 PyErr_SetString(PyExc_TypeError,"null reference");
18377 SWIG_fail;
18378 }
18379 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18380 SWIG_POINTER_EXCEPTION | 0)) == -1)
18381 SWIG_fail;
18382 if (arg4 == NULL) {
18383 PyErr_SetString(PyExc_TypeError,"null reference");
18384 SWIG_fail;
18385 }
18386 {
18387 PyThreadState* __tstate = wxPyBeginAllowThreads();
18388 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18389
18390 wxPyEndAllowThreads(__tstate);
18391 if (PyErr_Occurred()) SWIG_fail;
18392 }
18393 {
18394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18395 }
18396 return resultobj;
18397 fail:
18398 return NULL;
18399 }
18400
18401
18402 static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
18403 PyObject *obj;
18404 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18405 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18406 Py_INCREF(obj);
18407 return Py_BuildValue((char *)"");
18408 }
18409 static PyMethodDef SwigMethods[] = {
18410 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18411 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18412 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18413 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18414 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
18415 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL },
18416 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18417 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL },
18418 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18419 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18420 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL },
18421 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL },
18422 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL },
18423 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18424 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18425 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18426 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18427 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18428 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18429 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18430 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18431 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18432 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL },
18433 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18434 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18435 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18436 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18437 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18438 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL },
18439 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18440 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18441 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18442 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18443 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18444 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18445 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18446 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18447 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18448 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18449 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18450 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18451 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18452 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18453 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18454 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18455 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18456 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL },
18457 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS, NULL },
18458 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS, NULL },
18459 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18460 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS, NULL },
18461 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18462 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18463 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18464 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18465 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18466 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18467 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18468 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18469 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18470 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18471 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18472 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL },
18473 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18474 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18475 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18476 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18477 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18478 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL },
18479 { (char *)"new_EmptyBitmap", _wrap_new_EmptyBitmap, METH_VARARGS, NULL },
18480 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18481 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18482 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18483 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18484 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18485 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL },
18486 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18487 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18488 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
18489 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18490 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
18491 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
18492 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18493 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18494 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18495 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18496 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18497 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18498 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18499 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL },
18500 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL },
18501 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL },
18502 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18503 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18504 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18505 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18506 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18507 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18508 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18509 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18510 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18511 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18512 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18513 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18514 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18515 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18516 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL },
18517 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18518 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18519 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18520 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18521 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18522 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18523 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18524 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL },
18525 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18526 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18527 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18528 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18529 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18530 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18531 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18532 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL },
18533 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18534 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18535 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL },
18536 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18537 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18538 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL },
18539 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18540 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18541 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL },
18542 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18543 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18544 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL },
18545 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18546 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL },
18547 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL },
18548 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL },
18549 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
18550 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
18551 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18552 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
18553 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL },
18554 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL },
18555 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18556 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
18557 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL },
18558 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18559 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL },
18560 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL },
18561 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18562 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18563 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18564 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL },
18565 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18566 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18567 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
18568 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
18569 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL },
18570 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18571 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL },
18572 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18573 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
18574 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL },
18575 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL },
18576 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL },
18577 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
18578 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL },
18579 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18580 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18581 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18582 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL },
18583 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18584 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18585 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18586 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18587 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18588 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18589 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18590 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18591 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18592 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18593 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18594 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18595 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18596 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18597 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18598 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18599 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL },
18600 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18601 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18602 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL },
18603 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL },
18604 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL },
18605 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL },
18606 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL },
18607 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18608 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18609 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18610 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18611 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL },
18612 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18613 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18614 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18615 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18616 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18617 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18618 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18619 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL },
18620 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18621 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18622 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL },
18623 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18624 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL },
18625 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18626 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18627 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18628 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
18629 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL },
18630 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL },
18631 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL },
18632 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18633 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18634 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18635 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL },
18636 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL },
18637 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18638 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18639 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18640 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18641 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18642 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18643 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18644 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18645 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18646 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18647 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18648 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18649 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18650 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18651 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18652 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18653 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18654 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18655 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18656 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18657 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18658 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18659 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL },
18660 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18661 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL },
18662 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL },
18663 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL },
18664 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18665 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18666 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18667 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18668 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL },
18669 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18670 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18671 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18672 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18673 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18674 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18675 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18676 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL },
18677 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL },
18678 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL },
18679 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL },
18680 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL },
18681 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL },
18682 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL },
18683 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL },
18684 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18685 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18686 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL },
18687 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL },
18688 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18689 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18690 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18691 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18692 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18693 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18694 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL },
18695 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL },
18696 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
18697 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL },
18698 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL },
18699 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18700 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL },
18701 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18702 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18703 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
18704 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
18705 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL },
18706 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18707 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL },
18708 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18709 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18710 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18711 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL },
18712 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18713 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18714 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL },
18715 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL },
18716 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL },
18717 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18718 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18719 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS, NULL },
18720 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL },
18721 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS, NULL },
18722 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18723 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS, NULL },
18724 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL },
18725 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS, NULL },
18726 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL },
18727 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS, NULL },
18728 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL },
18729 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS, NULL },
18730 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL },
18731 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS, NULL },
18732 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL },
18733 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS, NULL },
18734 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18735 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS, NULL },
18736 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18737 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18738 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS, NULL },
18739 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18740 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18741 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS, NULL },
18742 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL },
18743 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS, NULL },
18744 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL },
18745 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL },
18746 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS, NULL },
18747 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18748 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS, NULL },
18749 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18750 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS, NULL },
18751 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL },
18752 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS, NULL },
18753 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL },
18754 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS, NULL },
18755 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL },
18756 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL },
18757 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL },
18758 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL },
18759 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL },
18760 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL },
18761 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18762 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL },
18763 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL },
18764 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL },
18765 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL },
18766 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
18767 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL },
18768 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18769 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18770 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
18771 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
18772 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS, NULL },
18773 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18774 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
18775 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18776 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18777 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18778 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
18779 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18780 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18781 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18782 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18783 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18784 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL },
18785 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18786 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18787 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
18788 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18789 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL },
18790 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL },
18791 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL },
18792 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL },
18793 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL },
18794 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL },
18795 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL },
18796 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL },
18797 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18798 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18799 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18800 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL },
18801 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18802 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
18803 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18804 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18805 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
18806 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL },
18807 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18808 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
18809 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
18810 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18811 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
18812 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
18813 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
18814 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
18815 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
18816 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
18817 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18818 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18819 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18820 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18821 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18822 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18823 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
18824 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
18825 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
18826 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
18827 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
18828 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18829 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18830 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL },
18831 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL },
18832 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL },
18833 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL },
18834 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18835 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL },
18836 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL },
18837 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL },
18838 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL },
18839 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL },
18840 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL },
18841 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL },
18842 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL },
18843 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL },
18844 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL },
18845 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL },
18846 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL },
18847 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS, NULL },
18848 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL },
18849 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL },
18850 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL },
18851 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
18852 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL },
18853 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL },
18854 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL },
18855 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
18856 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
18857 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL },
18858 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL },
18859 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL },
18860 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
18861 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL },
18862 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL },
18863 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL },
18864 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL },
18865 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL },
18866 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL },
18867 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
18868 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
18869 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
18870 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
18871 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL },
18872 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
18873 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
18874 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18875 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL },
18876 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18877 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18878 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18879 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL },
18880 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL },
18881 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL },
18882 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL },
18883 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL },
18884 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL },
18885 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
18886 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
18887 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL },
18888 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL },
18889 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18890 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
18891 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL },
18892 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
18893 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
18894 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL },
18895 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18896 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL },
18897 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL },
18898 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL },
18899 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL },
18900 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18901 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL },
18902 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18903 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18904 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18905 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18906 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL },
18907 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
18908 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
18909 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL },
18910 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL },
18911 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL },
18912 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL },
18913 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL },
18914 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL },
18915 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL },
18916 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL },
18917 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18918 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL },
18919 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL },
18920 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
18921 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18922 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
18923 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18924 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18925 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
18926 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18927 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
18928 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18929 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18930 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18931 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL },
18932 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18933 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL },
18934 { NULL, NULL, 0, NULL }
18935 };
18936
18937
18938 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18939
18940 static void *_p_wxControlTo_p_wxWindow(void *x) {
18941 return (void *)((wxWindow *) ((wxControl *) x));
18942 }
18943 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18944 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18945 }
18946 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18947 return (void *)((wxWindow *) ((wxMenuBar *) x));
18948 }
18949 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18950 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18951 }
18952 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18953 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18954 }
18955 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18956 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18957 }
18958 static void *_p_wxPenTo_p_wxObject(void *x) {
18959 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18960 }
18961 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18962 return (void *)((wxObject *) ((wxRegionIterator *) x));
18963 }
18964 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18965 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18966 }
18967 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18968 return (void *)((wxObject *) ((wxSizerItem *) x));
18969 }
18970 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18971 return (void *)((wxObject *) ((wxColourDatabase *) x));
18972 }
18973 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18974 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18975 }
18976 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18977 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18978 }
18979 static void *_p_wxIconTo_p_wxObject(void *x) {
18980 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18981 }
18982 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18983 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18984 }
18985 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18986 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18987 }
18988 static void *_p_wxSizerTo_p_wxObject(void *x) {
18989 return (void *)((wxObject *) ((wxSizer *) x));
18990 }
18991 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18992 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18993 }
18994 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18995 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18996 }
18997 static void *_p_wxPenListTo_p_wxObject(void *x) {
18998 return (void *)((wxObject *) ((wxPenList *) x));
18999 }
19000 static void *_p_wxEventTo_p_wxObject(void *x) {
19001 return (void *)((wxObject *) ((wxEvent *) x));
19002 }
19003 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19004 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19005 }
19006 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19007 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19008 }
19009 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19010 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19011 }
19012 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19013 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19014 }
19015 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19016 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19017 }
19018 static void *_p_wxDCTo_p_wxObject(void *x) {
19019 return (void *)((wxObject *) ((wxDC *) x));
19020 }
19021 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19022 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19023 }
19024 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19025 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19026 }
19027 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19028 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19029 }
19030 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19031 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19032 }
19033 static void *_p_wxControlTo_p_wxObject(void *x) {
19034 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19035 }
19036 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19037 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19038 }
19039 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19040 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19041 }
19042 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19043 return (void *)((wxObject *) ((wxFSFile *) x));
19044 }
19045 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19046 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19047 }
19048 static void *_p_wxRegionTo_p_wxObject(void *x) {
19049 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19050 }
19051 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19052 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19053 }
19054 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19055 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19056 }
19057 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19058 return (void *)((wxObject *) ((wxGDIObject *) x));
19059 }
19060 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19061 return (void *)((wxObject *) ((wxEffects *) x));
19062 }
19063 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19064 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19065 }
19066 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19067 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19068 }
19069 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19070 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19071 }
19072 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19073 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19074 }
19075 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19076 return (void *)((wxObject *) ((wxMenuItem *) x));
19077 }
19078 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19079 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19080 }
19081 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19082 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19083 }
19084 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19085 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19086 }
19087 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19088 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19089 }
19090 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19091 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19092 }
19093 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19094 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19095 }
19096 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19097 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19098 }
19099 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19100 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19101 }
19102 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19103 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19104 }
19105 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19106 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19107 }
19108 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19109 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19110 }
19111 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19112 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19113 }
19114 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19115 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19116 }
19117 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19118 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19119 }
19120 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19121 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19122 }
19123 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19124 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19125 }
19126 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19127 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19128 }
19129 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19130 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19131 }
19132 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19133 return (void *)((wxObject *) ((wxImageHandler *) x));
19134 }
19135 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19136 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19137 }
19138 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19139 return (void *)((wxObject *) ((wxEvtHandler *) x));
19140 }
19141 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19142 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19143 }
19144 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19145 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19146 }
19147 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19148 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19149 }
19150 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19151 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19152 }
19153 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19154 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19155 }
19156 static void *_p_wxImageTo_p_wxObject(void *x) {
19157 return (void *)((wxObject *) ((wxImage *) x));
19158 }
19159 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19160 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19161 }
19162 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19163 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19164 }
19165 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19166 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19167 }
19168 static void *_p_wxImageListTo_p_wxObject(void *x) {
19169 return (void *)((wxObject *) ((wxImageList *) x));
19170 }
19171 static void *_p_wxCursorTo_p_wxObject(void *x) {
19172 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19173 }
19174 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19175 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19176 }
19177 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19178 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19179 }
19180 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19181 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19182 }
19183 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19184 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19185 }
19186 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19187 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19188 }
19189 static void *_p_wxWindowTo_p_wxObject(void *x) {
19190 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19191 }
19192 static void *_p_wxMenuTo_p_wxObject(void *x) {
19193 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19194 }
19195 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19196 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19197 }
19198 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19199 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19200 }
19201 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19202 return (void *)((wxObject *) ((wxBrushList *) x));
19203 }
19204 static void *_p_wxPyPenTo_p_wxObject(void *x) {
19205 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19206 }
19207 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19208 return (void *)((wxObject *) ((wxFileSystem *) x));
19209 }
19210 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19211 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19212 }
19213 static void *_p_wxMaskTo_p_wxObject(void *x) {
19214 return (void *)((wxObject *) ((wxMask *) x));
19215 }
19216 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19217 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19218 }
19219 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19220 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19221 }
19222 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19223 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19224 }
19225 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19226 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19227 }
19228 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19229 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19230 }
19231 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19232 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19233 }
19234 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19235 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19236 }
19237 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19238 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19239 }
19240 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19241 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19242 }
19243 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19244 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19245 }
19246 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19247 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19248 }
19249 static void *_p_wxFontTo_p_wxObject(void *x) {
19250 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19251 }
19252 static void *_p_wxBrushTo_p_wxObject(void *x) {
19253 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19254 }
19255 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19256 return (void *)((wxObject *) ((wxMetaFile *) x));
19257 }
19258 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19259 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19260 }
19261 static void *_p_wxColourTo_p_wxObject(void *x) {
19262 return (void *)((wxObject *) ((wxColour *) x));
19263 }
19264 static void *_p_wxFontListTo_p_wxObject(void *x) {
19265 return (void *)((wxObject *) ((wxFontList *) x));
19266 }
19267 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19268 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19269 }
19270 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19271 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19272 }
19273 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19274 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19275 }
19276 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19277 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19278 }
19279 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19280 return (void *)((wxDC *) ((wxScreenDC *) x));
19281 }
19282 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19283 return (void *)((wxDC *) ((wxMirrorDC *) x));
19284 }
19285 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19286 return (void *)((wxDC *) ((wxMemoryDC *) x));
19287 }
19288 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19289 return (void *)((wxDC *) ((wxWindowDC *) x));
19290 }
19291 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19292 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19293 }
19294 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19295 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19296 }
19297 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19298 return (void *)((wxDC *) ((wxClientDC *) x));
19299 }
19300 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19301 return (void *)((wxDC *) ((wxPaintDC *) x));
19302 }
19303 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19304 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19305 }
19306 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19307 return (void *)((wxDC *) ((wxPrinterDC *) x));
19308 }
19309 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19310 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19311 }
19312 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19313 return (void *)((wxGDIObject *) ((wxIcon *) x));
19314 }
19315 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19316 return (void *)((wxGDIObject *) ((wxPalette *) x));
19317 }
19318 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19319 return (void *)((wxGDIObject *) ((wxPen *) x));
19320 }
19321 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19322 return (void *)((wxGDIObject *) ((wxFont *) x));
19323 }
19324 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19325 return (void *)((wxGDIObject *) ((wxCursor *) x));
19326 }
19327 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19328 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19329 }
19330 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19331 return (void *)((wxGDIObject *) ((wxRegion *) x));
19332 }
19333 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19334 return (void *)((wxGDIObject *) ((wxBrush *) x));
19335 }
19336 static void *_p_wxPyPenTo_p_wxPen(void *x) {
19337 return (void *)((wxPen *) ((wxPyPen *) x));
19338 }
19339 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}};
19340 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}};
19341 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}};
19342 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}};
19343 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}};
19344 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}};
19345 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}};
19346 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}};
19347 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}};
19348 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}};
19349 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}};
19350 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}};
19351 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}};
19352 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}};
19353 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}};
19354 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}};
19355 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}};
19356 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}};
19357 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}};
19358 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}};
19359 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}};
19360 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}};
19361 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}};
19362 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}};
19363 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}};
19364 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}};
19365 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}};
19366 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}};
19367 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}};
19368 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}};
19369 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}};
19370 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}};
19371 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}};
19372 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}};
19373 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}};
19374 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}};
19375 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}};
19376 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}};
19377 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}};
19378 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}};
19379 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}};
19380 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}};
19381 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}};
19382 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}};
19383 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}};
19384 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}};
19385 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}};
19386 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}};
19387 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}};
19388 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}};
19389 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}};
19390 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}};
19391 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}};
19392 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}};
19393 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}};
19394 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}};
19395
19396 static swig_type_info *swig_types_initial[] = {
19397 _swigt__p_wxPostScriptDC,
19398 _swigt__p_wxBrush,
19399 _swigt__p_wxColour,
19400 _swigt__p_wxDC,
19401 _swigt__p_wxMirrorDC,
19402 _swigt__p_byte,
19403 _swigt__p_wxPyFontEnumerator,
19404 _swigt__p_char,
19405 _swigt__p_wxIconLocation,
19406 _swigt__p_wxImage,
19407 _swigt__p_wxMetaFileDC,
19408 _swigt__p_wxMask,
19409 _swigt__p_wxSize,
19410 _swigt__p_wxFont,
19411 _swigt__p_wxWindow,
19412 _swigt__p_double,
19413 _swigt__p_wxMemoryDC,
19414 _swigt__p_wxFontMapper,
19415 _swigt__p_wxEffects,
19416 _swigt__p_wxNativeEncodingInfo,
19417 _swigt__p_wxPalette,
19418 _swigt__p_wxBitmap,
19419 _swigt__p_wxObject,
19420 _swigt__p_wxRegionIterator,
19421 _swigt__p_wxRect,
19422 _swigt__p_wxString,
19423 _swigt__p_wxPrinterDC,
19424 _swigt__p_wxIconBundle,
19425 _swigt__p_wxPoint,
19426 _swigt__p_wxDash,
19427 _swigt__p_wxScreenDC,
19428 _swigt__p_wxCursor,
19429 _swigt__p_wxClientDC,
19430 _swigt__p_wxBufferedDC,
19431 _swigt__p_wxImageList,
19432 _swigt__p_unsigned_char,
19433 _swigt__p_wxGDIObject,
19434 _swigt__p_wxIcon,
19435 _swigt__p_wxLocale,
19436 _swigt__p_wxRegion,
19437 _swigt__p_wxConfigBase,
19438 _swigt__p_wxLanguageInfo,
19439 _swigt__p_wxWindowDC,
19440 _swigt__p_wxPrintData,
19441 _swigt__p_wxBrushList,
19442 _swigt__p_wxFontList,
19443 _swigt__p_wxPen,
19444 _swigt__p_wxBufferedPaintDC,
19445 _swigt__p_wxPaintDC,
19446 _swigt__p_wxPenList,
19447 _swigt__p_wxPyPen,
19448 _swigt__p_int,
19449 _swigt__p_wxMetaFile,
19450 _swigt__p_wxNativeFontInfo,
19451 _swigt__p_wxEncodingConverter,
19452 _swigt__p_wxColourDatabase,
19453 0
19454 };
19455
19456
19457 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19458
19459 static swig_const_info swig_const_table[] = {
19460 {0, 0, 0, 0.0, 0, 0}};
19461
19462 #ifdef __cplusplus
19463 }
19464 #endif
19465
19466 #ifdef __cplusplus
19467 extern "C"
19468 #endif
19469 SWIGEXPORT(void) SWIG_init(void) {
19470 static PyObject *SWIG_globals = 0;
19471 static int typeinit = 0;
19472 PyObject *m, *d;
19473 int i;
19474 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19475 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19476 d = PyModule_GetDict(m);
19477
19478 if (!typeinit) {
19479 for (i = 0; swig_types_initial[i]; i++) {
19480 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19481 }
19482 typeinit = 1;
19483 }
19484 SWIG_InstallConstants(d,swig_const_table);
19485
19486 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19487 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19488 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19489 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19490 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19491 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19492 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19493 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19494 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19495 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19496 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19497 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19498 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19499 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19500 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19501 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19502 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19503 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19504 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19505 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19506 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19507 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19508 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19509 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19510 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19511 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19512 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19513 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19514 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19515 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19516 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19517 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19518 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19519 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19520 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19521 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19522 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19523 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19524 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19525 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19526 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19527 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19528 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19529 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19530 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19531 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19532 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19533 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19534 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19535 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
19536 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19537 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19538 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19539 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19540 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19541 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19542 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19543 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19544 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19545 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19546 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19547 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19548 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19549 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19550 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19551 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19552 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19553 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19554 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19555 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19556 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19557 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19558 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19559 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19560 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19561 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19562 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19563 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19564 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19565 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19566 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19567 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19568 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19569 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19570 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19571 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19572 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19573 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19574 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19575 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19576 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19577 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19578 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19579 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19580 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19581 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19582 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19583 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19584 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19585 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19586 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19587 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19588 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19589 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19590 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19591 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19592 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19593 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19594 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19595 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19596 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19597 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19598 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19599 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19600 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19601 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19602 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19603 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19604 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19605 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19606 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19607 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19608 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19609 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19610 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19611 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19612 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19613
19614 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19615
19616 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19617 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19618 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19619 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19620 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19621 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19622 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19623 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19624 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19625 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19626 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19627 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19628 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19629 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19630 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19631 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19632 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19633 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19634 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19635 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19636 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19637 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19638 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19639 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19640 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19641 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19642 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19643 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19644 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19645 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19646 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19647 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19648 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19649 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19650 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19651 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19652 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19653 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19654 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19655 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19656 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19657 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19658 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19659 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19660 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19661 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19662 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19663 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19664 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19665 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19666 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19667 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19668 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19669 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19670 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19671 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19672 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19673 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19674 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19675 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19676 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19677 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19678 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19679 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19680 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19681 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19682 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19683 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19684 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19685 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19686 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19687 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19688 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19689 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19690 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19691 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19692 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19693 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19694 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19695 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19696 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19697 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19698 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19699 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19700 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19701 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19702 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19703 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19704 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19705 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19706 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19707 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19708 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19709 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19710 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19711 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19712 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19713 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19714 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19715 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19716 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19717 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19718 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19719 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19720 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19721 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19722 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19723 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19724 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19725 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19726 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19727 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19728 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19729 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19730 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19731 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19732 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19733 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19734 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19735 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19736 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19737 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19738 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19739 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19740 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19741 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19742 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19743 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19744 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19745 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19746 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19747 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19748 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19749 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19750 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19751 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19752 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19753 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19754 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19755 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19756 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19757 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19758 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19759 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19760 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19761 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19762 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19763 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19764 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19765 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19766 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19767 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19768 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19769 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19770 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19771 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19772 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19773 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19774 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19775 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19776 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19777 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19778 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19779 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19780 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19781 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19782 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19783 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19784 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19785 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19786 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19787 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19788 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19789 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19790 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19791 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19792 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19793 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19794 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19795 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19796 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19797 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19798 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19799 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19800 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19801 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19802 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19803 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19804 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19805 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19806 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19807 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19808 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19809 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19810 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19811 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19812 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19813 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19814 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19815 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19816 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19817 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19818 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19819 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19820 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19821 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19822 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19823 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19824 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19825 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19826 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19827 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19828 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19829 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19830 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19831 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19832 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19833 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19834 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19835 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19836 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19837 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19838 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19839 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19840 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19841 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19842 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19843 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19844 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19845 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19846 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19847 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19848 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19849 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19850 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19851 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19852 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19853 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19854 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19855 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19856 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19857 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19858 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19859 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19860 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19861 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19862 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19863 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19864 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19865 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19866 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19867 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19868 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19869 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19870 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19871 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19872 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19873 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19874 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19875 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19876 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19877 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19878 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19879 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19880 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19881 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19882 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19883 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19884 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19885 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19886 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19887 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19888 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19889 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19890 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19891 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19892 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19893 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19894 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19895 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19896 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19897 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19898 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19899 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19900 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19901 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19902 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19903 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19904 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19905 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19906 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19907 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19908 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19909 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19910 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19911 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19912 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19913 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19914 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19915 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19916
19917 // Work around a chicken/egg problem in drawlist.cpp
19918 wxPyDrawList_SetAPIPtr();
19919
19920 }
19921