]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi_wrap.cpp
embedded sample compiles again
[wxWidgets.git] / wxPython / src / msw / 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_wxFont swig_types[12]
222 #define SWIGTYPE_p_wxWindow swig_types[13]
223 #define SWIGTYPE_p_wxSize swig_types[14]
224 #define SWIGTYPE_p_double swig_types[15]
225 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
226 #define SWIGTYPE_p_wxFontMapper swig_types[17]
227 #define SWIGTYPE_p_wxEffects swig_types[18]
228 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
229 #define SWIGTYPE_p_wxPalette swig_types[20]
230 #define SWIGTYPE_p_wxBitmap swig_types[21]
231 #define SWIGTYPE_p_wxObject swig_types[22]
232 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
233 #define SWIGTYPE_p_wxRect swig_types[24]
234 #define SWIGTYPE_p_wxString swig_types[25]
235 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
236 #define SWIGTYPE_p_wxIconBundle swig_types[27]
237 #define SWIGTYPE_p_wxPoint swig_types[28]
238 #define SWIGTYPE_p_wxDash swig_types[29]
239 #define SWIGTYPE_p_wxScreenDC swig_types[30]
240 #define SWIGTYPE_p_wxCursor swig_types[31]
241 #define SWIGTYPE_p_wxClientDC swig_types[32]
242 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
243 #define SWIGTYPE_p_wxImageList swig_types[34]
244 #define SWIGTYPE_p_unsigned_char swig_types[35]
245 #define SWIGTYPE_p_wxGDIObject swig_types[36]
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_wxLanguageInfo swig_types[40]
250 #define SWIGTYPE_p_wxConfigBase swig_types[41]
251 #define SWIGTYPE_p_wxWindowDC swig_types[42]
252 #define SWIGTYPE_p_wxPrintData swig_types[43]
253 #define SWIGTYPE_p_wxBrushList swig_types[44]
254 #define SWIGTYPE_p_wxFontList swig_types[45]
255 #define SWIGTYPE_p_wxPen swig_types[46]
256 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
257 #define SWIGTYPE_p_wxPaintDC swig_types[48]
258 #define SWIGTYPE_p_wxPenList swig_types[49]
259 #define SWIGTYPE_p_wxPyPen swig_types[50]
260 #define SWIGTYPE_p_int swig_types[51]
261 #define SWIGTYPE_p_wxMetaFile swig_types[52]
262 #define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
263 #define SWIGTYPE_p_wxEncodingConverter swig_types[54]
264 #define SWIGTYPE_p_wxColourDatabase swig_types[55]
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 #include <wx/image.h>
566
567 static char** ConvertListOfStrings(PyObject* listOfStrings) {
568 char** cArray = NULL;
569 int count;
570
571 if (!PyList_Check(listOfStrings)) {
572 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
573 return NULL;
574 }
575 count = PyList_Size(listOfStrings);
576 cArray = new char*[count];
577
578 for(int x=0; x<count; x++) {
579 // TODO: Need some validation and error checking here
580 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
581 }
582 return cArray;
583 }
584
585
586 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
587 char** cArray = NULL;
588 wxBitmap* bmp;
589
590 cArray = ConvertListOfStrings(listOfStrings);
591 if (! cArray)
592 return NULL;
593 bmp = new wxBitmap(cArray);
594 delete [] cArray;
595 return bmp;
596 }
597 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
598 char* buf;
599 int length;
600 PyString_AsStringAndSize(bits, &buf, &length);
601 return new wxBitmap(buf, width, height, depth);
602 }
603
604 SWIGSTATICINLINE(int)
605 SWIG_CheckLong(PyObject* obj)
606 {
607 SWIG_AsLong(obj);
608 if (PyErr_Occurred()) {
609 PyErr_Clear();
610 return 0;
611 } else {
612 return 1;
613 }
614 }
615
616 void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
617 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
618 wxMask *mask = new wxMask(*self, colour);
619 self->SetMask(mask);
620 }
621 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
622 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
623 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
624 if ( !colour.Ok() )
625 return new wxMask(bitmap, *wxBLACK);
626 else
627 return new wxMask(bitmap, colour);
628 }
629
630 #include <wx/iconbndl.h>
631
632 wxIcon *new_wxIcon(wxBitmap const &bmp){
633 wxIcon* icon = new wxIcon();
634 icon->CopyFromBitmap(bmp);
635 return icon;
636 }
637 wxIcon *new_wxIcon(PyObject *listOfStrings){
638 char** cArray = NULL;
639 wxIcon* icon;
640
641 cArray = ConvertListOfStrings(listOfStrings);
642 if (! cArray)
643 return NULL;
644 icon = new wxIcon(cArray);
645 delete [] cArray;
646 return icon;
647 }
648 void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
649 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
650
651 return new wxIconLocation(*filename, num);
652
653
654
655 }
656 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
657
658 self->SetIndex(num);
659
660
661
662 }
663 int wxIconLocation_GetIndex(wxIconLocation *self){
664
665 return self->GetIndex();
666
667
668
669 }
670 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
671 #ifdef __WXGTK__
672 wxCHECK_MSG(False, NULL,
673 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
674 #else
675 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
676 #endif
677 }
678 void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
679
680
681 void wxRegionIterator_Next(wxRegionIterator *self){
682 (*self) ++;
683 }
684 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
685 return self->operator bool();
686 }
687
688 #include <wx/fontutil.h>
689 #include <wx/fontmap.h>
690 #include <wx/fontenum.h>
691
692 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
693 return self->ToString();
694 }
695
696 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
697 { wxPyRaiseNotImplemented(); return NULL; }
698
699 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
700 { wxPyRaiseNotImplemented(); return False; }
701
702 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
703 wxFontEncoding alt_enc;
704 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
705 return PyInt_FromLong(alt_enc);
706 else {
707 Py_INCREF(Py_None);
708 return Py_None;
709 }
710 }
711 wxFont *new_wxFont(wxString const &info){
712 wxNativeFontInfo nfi;
713 nfi.FromString(info);
714 return new wxFont(nfi);
715 }
716 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
717 return wxFont::New(pointSize, family, flags, face, encoding);
718 }
719 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
720 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
721
722 class wxPyFontEnumerator : public wxFontEnumerator {
723 public:
724 wxPyFontEnumerator() {}
725 ~wxPyFontEnumerator() {}
726
727 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
728 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
729
730 PYPRIVATE;
731 };
732
733 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
734 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
735
736
737 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
738 wxArrayString* arr = self->GetEncodings();
739 return wxArrayString2PyList_helper(*arr);
740 }
741 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
742 wxArrayString* arr = self->GetFacenames();
743 return wxArrayString2PyList_helper(*arr);
744 }
745
746
747
748 #include "wx/wxPython/pydrawxxx.h"
749
750 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
751 wxColour col;
752 self->GetPixel(x, y, &col);
753 return col;
754 }
755 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
756 wxColour col;
757 self->GetPixel(pt, &col);
758 return col;
759 }
760
761 SWIGSTATICINLINE(double)
762 SWIG_AsDouble(PyObject *obj)
763 {
764 if (PyNumber_Check(obj))
765 return PyFloat_AsDouble(obj);
766 else {
767 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
768 obj->ob_type->tp_name);
769 PyErr_SetObject(PyExc_TypeError, errmsg);
770 Py_DECREF(errmsg);
771 return 0;
772 }
773 }
774
775
776 SWIGSTATICINLINE(int)
777 SWIG_CheckDouble(PyObject* obj)
778 {
779 SWIG_AsDouble(obj);
780 if (PyErr_Occurred()) {
781 PyErr_Clear();
782 return 0;
783 } else {
784 return 1;
785 }
786 }
787
788 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
789 wxRect rv;
790 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
791 return rv;
792 }
793 wxRect wxDC_GetClippingRect(wxDC *self){
794 wxRect rect;
795 self->GetClippingBox(rect);
796 return rect;
797 }
798 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
799 wxArrayInt widths;
800 self->GetPartialTextExtents(text, widths);
801 return widths;
802 }
803 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
804 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
805 }
806 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
807 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
808 }
809 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
810 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
811 }
812 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
813 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
814 }
815 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
816 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
817 }
818 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
819 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
820 }
821
822 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
823 *x1 = dc->MinX();
824 *y1 = dc->MinY();
825 *x2 = dc->MaxX();
826 *y2 = dc->MaxY();
827 }
828
829
830 //-=-=-=-=-=-=-=-=-=-=-
831
832 #if 1
833 // Use the standard wxBufferedDC
834 #include <wx/dcbuffer.h>
835
836 #else
837
838 // Or, temporarily put a set of classes here similar to the old buffered DC
839 // classes until the real ones can be fixed to work "correctly" again.
840
841 class wxBufferedDC : public wxMemoryDC
842 {
843 private:
844 wxDC *m_dc;
845 wxBitmap m_buffer;
846
847 public:
848
849 wxBufferedDC() : m_dc( 0 ) {}
850
851 wxBufferedDC( wxDC *dc, const wxBitmap &buffer )
852 : m_dc( dc ), m_buffer( buffer )
853 {
854 SelectObject( m_buffer );
855 }
856
857 wxBufferedDC( wxDC *dc, const wxSize &area )
858 : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() )
859 {
860 SelectObject( m_buffer );
861 }
862
863 ~wxBufferedDC() {
864 if( m_dc != 0 )
865 UnMask();
866 }
867
868
869 void Init( wxDC *dc, const wxBitmap &buffer ) {
870 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
871 _T("wxBufferedDC already initialised") );
872 m_dc = dc;
873 m_buffer = buffer;
874 SelectObject( m_buffer );
875 }
876
877 void Init( wxDC *dc, const wxSize &area ) {
878 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
879 _T("wxBufferedDC already initialised") );
880 m_dc = dc;
881 m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() );
882 SelectObject( m_buffer );
883 }
884
885 void UnMask() {
886 wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") );
887 m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 );
888 m_dc = 0;
889 }
890 };
891
892
893 class wxBufferedPaintDC : public wxBufferedDC
894 {
895 private:
896 wxPaintDC m_paintdc;
897
898 public:
899 wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap )
900 : m_paintdc( window )
901 {
902 window->PrepareDC( m_paintdc );
903
904 if( buffer != wxNullBitmap )
905 Init( &m_paintdc, buffer );
906 else
907 Init( &m_paintdc, window->GetClientSize() );
908 }
909
910 ~wxBufferedPaintDC() {
911 UnMask();
912 }
913 };
914
915 #endif
916 //-=-=-=-=-=-=-=-=-=-=-
917
918
919 #include <wx/dcps.h>
920
921
922 #include <wx/metafile.h>
923
924
925
926 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
927 self->AddColour(name, wxColour(red, green, blue));
928 }
929
930 #include <wx/effects.h>
931
932 #ifdef __cplusplus
933 extern "C" {
934 #endif
935 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
936 PyObject *resultobj;
937 wxGDIObject *result;
938 char *kwnames[] = {
939 NULL
940 };
941
942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
943 {
944 PyThreadState* __tstate = wxPyBeginAllowThreads();
945 result = (wxGDIObject *)new wxGDIObject();
946
947 wxPyEndAllowThreads(__tstate);
948 if (PyErr_Occurred()) SWIG_fail;
949 }
950 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
951 return resultobj;
952 fail:
953 return NULL;
954 }
955
956
957 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
958 PyObject *resultobj;
959 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
960 PyObject * obj0 = 0 ;
961 char *kwnames[] = {
962 (char *) "self", NULL
963 };
964
965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
968 {
969 PyThreadState* __tstate = wxPyBeginAllowThreads();
970 delete arg1;
971
972 wxPyEndAllowThreads(__tstate);
973 if (PyErr_Occurred()) SWIG_fail;
974 }
975 Py_INCREF(Py_None); resultobj = Py_None;
976 return resultobj;
977 fail:
978 return NULL;
979 }
980
981
982 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
983 PyObject *resultobj;
984 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
985 bool result;
986 PyObject * obj0 = 0 ;
987 char *kwnames[] = {
988 (char *) "self", NULL
989 };
990
991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994 {
995 PyThreadState* __tstate = wxPyBeginAllowThreads();
996 result = (bool)(arg1)->GetVisible();
997
998 wxPyEndAllowThreads(__tstate);
999 if (PyErr_Occurred()) SWIG_fail;
1000 }
1001 {
1002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1003 }
1004 return resultobj;
1005 fail:
1006 return NULL;
1007 }
1008
1009
1010 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1011 PyObject *resultobj;
1012 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1013 bool arg2 ;
1014 PyObject * obj0 = 0 ;
1015 PyObject * obj1 = 0 ;
1016 char *kwnames[] = {
1017 (char *) "self",(char *) "visible", NULL
1018 };
1019
1020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1023 arg2 = (bool) SWIG_AsBool(obj1);
1024 if (PyErr_Occurred()) SWIG_fail;
1025 {
1026 PyThreadState* __tstate = wxPyBeginAllowThreads();
1027 (arg1)->SetVisible(arg2);
1028
1029 wxPyEndAllowThreads(__tstate);
1030 if (PyErr_Occurred()) SWIG_fail;
1031 }
1032 Py_INCREF(Py_None); resultobj = Py_None;
1033 return resultobj;
1034 fail:
1035 return NULL;
1036 }
1037
1038
1039 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1040 PyObject *resultobj;
1041 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1042 bool result;
1043 PyObject * obj0 = 0 ;
1044 char *kwnames[] = {
1045 (char *) "self", NULL
1046 };
1047
1048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1051 {
1052 PyThreadState* __tstate = wxPyBeginAllowThreads();
1053 result = (bool)(arg1)->IsNull();
1054
1055 wxPyEndAllowThreads(__tstate);
1056 if (PyErr_Occurred()) SWIG_fail;
1057 }
1058 {
1059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1060 }
1061 return resultobj;
1062 fail:
1063 return NULL;
1064 }
1065
1066
1067 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1068 PyObject *obj;
1069 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1070 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1071 Py_INCREF(obj);
1072 return Py_BuildValue((char *)"");
1073 }
1074 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1075 PyObject *resultobj;
1076 unsigned char arg1 = (unsigned char) 0 ;
1077 unsigned char arg2 = (unsigned char) 0 ;
1078 unsigned char arg3 = (unsigned char) 0 ;
1079 wxColour *result;
1080 PyObject * obj0 = 0 ;
1081 PyObject * obj1 = 0 ;
1082 PyObject * obj2 = 0 ;
1083 char *kwnames[] = {
1084 (char *) "red",(char *) "green",(char *) "blue", NULL
1085 };
1086
1087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1088 if (obj0) {
1089 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1090 if (PyErr_Occurred()) SWIG_fail;
1091 }
1092 if (obj1) {
1093 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1094 if (PyErr_Occurred()) SWIG_fail;
1095 }
1096 if (obj2) {
1097 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1098 if (PyErr_Occurred()) SWIG_fail;
1099 }
1100 {
1101 PyThreadState* __tstate = wxPyBeginAllowThreads();
1102 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1103
1104 wxPyEndAllowThreads(__tstate);
1105 if (PyErr_Occurred()) SWIG_fail;
1106 }
1107 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1108 return resultobj;
1109 fail:
1110 return NULL;
1111 }
1112
1113
1114 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1115 PyObject *resultobj;
1116 wxString *arg1 = 0 ;
1117 wxColour *result;
1118 bool temp1 = False ;
1119 PyObject * obj0 = 0 ;
1120 char *kwnames[] = {
1121 (char *) "colorName", NULL
1122 };
1123
1124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1125 {
1126 arg1 = wxString_in_helper(obj0);
1127 if (arg1 == NULL) SWIG_fail;
1128 temp1 = True;
1129 }
1130 {
1131 PyThreadState* __tstate = wxPyBeginAllowThreads();
1132 result = (wxColour *)new wxColour((wxString const &)*arg1);
1133
1134 wxPyEndAllowThreads(__tstate);
1135 if (PyErr_Occurred()) SWIG_fail;
1136 }
1137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1138 {
1139 if (temp1)
1140 delete arg1;
1141 }
1142 return resultobj;
1143 fail:
1144 {
1145 if (temp1)
1146 delete arg1;
1147 }
1148 return NULL;
1149 }
1150
1151
1152 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1153 PyObject *resultobj;
1154 unsigned long arg1 ;
1155 wxColour *result;
1156 PyObject * obj0 = 0 ;
1157 char *kwnames[] = {
1158 (char *) "colRGB", NULL
1159 };
1160
1161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1162 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1163 if (PyErr_Occurred()) SWIG_fail;
1164 {
1165 PyThreadState* __tstate = wxPyBeginAllowThreads();
1166 result = (wxColour *)new wxColour(arg1);
1167
1168 wxPyEndAllowThreads(__tstate);
1169 if (PyErr_Occurred()) SWIG_fail;
1170 }
1171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1172 return resultobj;
1173 fail:
1174 return NULL;
1175 }
1176
1177
1178 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1179 PyObject *resultobj;
1180 wxColour *arg1 = (wxColour *) 0 ;
1181 PyObject * obj0 = 0 ;
1182 char *kwnames[] = {
1183 (char *) "self", NULL
1184 };
1185
1186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1189 {
1190 PyThreadState* __tstate = wxPyBeginAllowThreads();
1191 delete arg1;
1192
1193 wxPyEndAllowThreads(__tstate);
1194 if (PyErr_Occurred()) SWIG_fail;
1195 }
1196 Py_INCREF(Py_None); resultobj = Py_None;
1197 return resultobj;
1198 fail:
1199 return NULL;
1200 }
1201
1202
1203 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1204 PyObject *resultobj;
1205 wxColour *arg1 = (wxColour *) 0 ;
1206 unsigned char result;
1207 PyObject * obj0 = 0 ;
1208 char *kwnames[] = {
1209 (char *) "self", NULL
1210 };
1211
1212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1215 {
1216 PyThreadState* __tstate = wxPyBeginAllowThreads();
1217 result = (unsigned char)(arg1)->Red();
1218
1219 wxPyEndAllowThreads(__tstate);
1220 if (PyErr_Occurred()) SWIG_fail;
1221 }
1222 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1223 return resultobj;
1224 fail:
1225 return NULL;
1226 }
1227
1228
1229 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1230 PyObject *resultobj;
1231 wxColour *arg1 = (wxColour *) 0 ;
1232 unsigned char result;
1233 PyObject * obj0 = 0 ;
1234 char *kwnames[] = {
1235 (char *) "self", NULL
1236 };
1237
1238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1241 {
1242 PyThreadState* __tstate = wxPyBeginAllowThreads();
1243 result = (unsigned char)(arg1)->Green();
1244
1245 wxPyEndAllowThreads(__tstate);
1246 if (PyErr_Occurred()) SWIG_fail;
1247 }
1248 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1249 return resultobj;
1250 fail:
1251 return NULL;
1252 }
1253
1254
1255 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1256 PyObject *resultobj;
1257 wxColour *arg1 = (wxColour *) 0 ;
1258 unsigned char result;
1259 PyObject * obj0 = 0 ;
1260 char *kwnames[] = {
1261 (char *) "self", NULL
1262 };
1263
1264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1267 {
1268 PyThreadState* __tstate = wxPyBeginAllowThreads();
1269 result = (unsigned char)(arg1)->Blue();
1270
1271 wxPyEndAllowThreads(__tstate);
1272 if (PyErr_Occurred()) SWIG_fail;
1273 }
1274 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1275 return resultobj;
1276 fail:
1277 return NULL;
1278 }
1279
1280
1281 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1282 PyObject *resultobj;
1283 wxColour *arg1 = (wxColour *) 0 ;
1284 bool result;
1285 PyObject * obj0 = 0 ;
1286 char *kwnames[] = {
1287 (char *) "self", NULL
1288 };
1289
1290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1293 {
1294 PyThreadState* __tstate = wxPyBeginAllowThreads();
1295 result = (bool)(arg1)->Ok();
1296
1297 wxPyEndAllowThreads(__tstate);
1298 if (PyErr_Occurred()) SWIG_fail;
1299 }
1300 {
1301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1302 }
1303 return resultobj;
1304 fail:
1305 return NULL;
1306 }
1307
1308
1309 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1310 PyObject *resultobj;
1311 wxColour *arg1 = (wxColour *) 0 ;
1312 unsigned char arg2 ;
1313 unsigned char arg3 ;
1314 unsigned char arg4 ;
1315 PyObject * obj0 = 0 ;
1316 PyObject * obj1 = 0 ;
1317 PyObject * obj2 = 0 ;
1318 PyObject * obj3 = 0 ;
1319 char *kwnames[] = {
1320 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1321 };
1322
1323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1326 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1327 if (PyErr_Occurred()) SWIG_fail;
1328 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1329 if (PyErr_Occurred()) SWIG_fail;
1330 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1331 if (PyErr_Occurred()) SWIG_fail;
1332 {
1333 PyThreadState* __tstate = wxPyBeginAllowThreads();
1334 (arg1)->Set(arg2,arg3,arg4);
1335
1336 wxPyEndAllowThreads(__tstate);
1337 if (PyErr_Occurred()) SWIG_fail;
1338 }
1339 Py_INCREF(Py_None); resultobj = Py_None;
1340 return resultobj;
1341 fail:
1342 return NULL;
1343 }
1344
1345
1346 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1347 PyObject *resultobj;
1348 wxColour *arg1 = (wxColour *) 0 ;
1349 unsigned long arg2 ;
1350 PyObject * obj0 = 0 ;
1351 PyObject * obj1 = 0 ;
1352 char *kwnames[] = {
1353 (char *) "self",(char *) "colRGB", NULL
1354 };
1355
1356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1359 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1360 if (PyErr_Occurred()) SWIG_fail;
1361 {
1362 PyThreadState* __tstate = wxPyBeginAllowThreads();
1363 (arg1)->Set(arg2);
1364
1365 wxPyEndAllowThreads(__tstate);
1366 if (PyErr_Occurred()) SWIG_fail;
1367 }
1368 Py_INCREF(Py_None); resultobj = Py_None;
1369 return resultobj;
1370 fail:
1371 return NULL;
1372 }
1373
1374
1375 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1376 PyObject *resultobj;
1377 wxColour *arg1 = (wxColour *) 0 ;
1378 wxString *arg2 = 0 ;
1379 bool temp2 = False ;
1380 PyObject * obj0 = 0 ;
1381 PyObject * obj1 = 0 ;
1382 char *kwnames[] = {
1383 (char *) "self",(char *) "colourName", NULL
1384 };
1385
1386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1389 {
1390 arg2 = wxString_in_helper(obj1);
1391 if (arg2 == NULL) SWIG_fail;
1392 temp2 = True;
1393 }
1394 {
1395 PyThreadState* __tstate = wxPyBeginAllowThreads();
1396 (arg1)->InitFromName((wxString const &)*arg2);
1397
1398 wxPyEndAllowThreads(__tstate);
1399 if (PyErr_Occurred()) SWIG_fail;
1400 }
1401 Py_INCREF(Py_None); resultobj = Py_None;
1402 {
1403 if (temp2)
1404 delete arg2;
1405 }
1406 return resultobj;
1407 fail:
1408 {
1409 if (temp2)
1410 delete arg2;
1411 }
1412 return NULL;
1413 }
1414
1415
1416 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1417 PyObject *resultobj;
1418 wxColour *arg1 = (wxColour *) 0 ;
1419 long result;
1420 PyObject * obj0 = 0 ;
1421 char *kwnames[] = {
1422 (char *) "self", NULL
1423 };
1424
1425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1428 {
1429 PyThreadState* __tstate = wxPyBeginAllowThreads();
1430 result = (long)((wxColour const *)arg1)->GetPixel();
1431
1432 wxPyEndAllowThreads(__tstate);
1433 if (PyErr_Occurred()) SWIG_fail;
1434 }
1435 resultobj = SWIG_FromLong((long)result);
1436 return resultobj;
1437 fail:
1438 return NULL;
1439 }
1440
1441
1442 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1443 PyObject *resultobj;
1444 wxColour *arg1 = (wxColour *) 0 ;
1445 wxColour *arg2 = 0 ;
1446 bool result;
1447 wxColour temp2 ;
1448 PyObject * obj0 = 0 ;
1449 PyObject * obj1 = 0 ;
1450 char *kwnames[] = {
1451 (char *) "self",(char *) "colour", NULL
1452 };
1453
1454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1457 {
1458 arg2 = &temp2;
1459 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1460 }
1461 {
1462 PyThreadState* __tstate = wxPyBeginAllowThreads();
1463 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1464
1465 wxPyEndAllowThreads(__tstate);
1466 if (PyErr_Occurred()) SWIG_fail;
1467 }
1468 {
1469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1470 }
1471 return resultobj;
1472 fail:
1473 return NULL;
1474 }
1475
1476
1477 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1478 PyObject *resultobj;
1479 wxColour *arg1 = (wxColour *) 0 ;
1480 wxColour *arg2 = 0 ;
1481 bool result;
1482 wxColour temp2 ;
1483 PyObject * obj0 = 0 ;
1484 PyObject * obj1 = 0 ;
1485 char *kwnames[] = {
1486 (char *) "self",(char *) "colour", NULL
1487 };
1488
1489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1492 {
1493 arg2 = &temp2;
1494 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1495 }
1496 {
1497 PyThreadState* __tstate = wxPyBeginAllowThreads();
1498 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1499
1500 wxPyEndAllowThreads(__tstate);
1501 if (PyErr_Occurred()) SWIG_fail;
1502 }
1503 {
1504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1505 }
1506 return resultobj;
1507 fail:
1508 return NULL;
1509 }
1510
1511
1512 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1513 PyObject *resultobj;
1514 wxColour *arg1 = (wxColour *) 0 ;
1515 PyObject *result;
1516 PyObject * obj0 = 0 ;
1517 char *kwnames[] = {
1518 (char *) "self", NULL
1519 };
1520
1521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1524 {
1525 PyThreadState* __tstate = wxPyBeginAllowThreads();
1526 result = (PyObject *)wxColour_Get(arg1);
1527
1528 wxPyEndAllowThreads(__tstate);
1529 if (PyErr_Occurred()) SWIG_fail;
1530 }
1531 resultobj = result;
1532 return resultobj;
1533 fail:
1534 return NULL;
1535 }
1536
1537
1538 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1539 PyObject *resultobj;
1540 wxColour *arg1 = (wxColour *) 0 ;
1541 unsigned long result;
1542 PyObject * obj0 = 0 ;
1543 char *kwnames[] = {
1544 (char *) "self", NULL
1545 };
1546
1547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1550 {
1551 PyThreadState* __tstate = wxPyBeginAllowThreads();
1552 result = (unsigned long)wxColour_GetRGB(arg1);
1553
1554 wxPyEndAllowThreads(__tstate);
1555 if (PyErr_Occurred()) SWIG_fail;
1556 }
1557 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1558 return resultobj;
1559 fail:
1560 return NULL;
1561 }
1562
1563
1564 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1565 PyObject *obj;
1566 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1567 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1568 Py_INCREF(obj);
1569 return Py_BuildValue((char *)"");
1570 }
1571 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1572 PyObject *resultobj;
1573 int arg1 ;
1574 unsigned char *arg2 = (unsigned char *) 0 ;
1575 unsigned char *arg3 = (unsigned char *) 0 ;
1576 unsigned char *arg4 = (unsigned char *) 0 ;
1577 wxPalette *result;
1578 PyObject * obj0 = 0 ;
1579 PyObject * obj1 = 0 ;
1580 PyObject * obj2 = 0 ;
1581 PyObject * obj3 = 0 ;
1582 char *kwnames[] = {
1583 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1584 };
1585
1586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1587 arg1 = (int) SWIG_AsInt(obj0);
1588 if (PyErr_Occurred()) SWIG_fail;
1589 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1591 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1593 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1595 {
1596 PyThreadState* __tstate = wxPyBeginAllowThreads();
1597 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1598
1599 wxPyEndAllowThreads(__tstate);
1600 if (PyErr_Occurred()) SWIG_fail;
1601 }
1602 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1603 return resultobj;
1604 fail:
1605 return NULL;
1606 }
1607
1608
1609 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1610 PyObject *resultobj;
1611 wxPalette *arg1 = (wxPalette *) 0 ;
1612 PyObject * obj0 = 0 ;
1613 char *kwnames[] = {
1614 (char *) "self", NULL
1615 };
1616
1617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1620 {
1621 PyThreadState* __tstate = wxPyBeginAllowThreads();
1622 delete arg1;
1623
1624 wxPyEndAllowThreads(__tstate);
1625 if (PyErr_Occurred()) SWIG_fail;
1626 }
1627 Py_INCREF(Py_None); resultobj = Py_None;
1628 return resultobj;
1629 fail:
1630 return NULL;
1631 }
1632
1633
1634 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1635 PyObject *resultobj;
1636 wxPalette *arg1 = (wxPalette *) 0 ;
1637 byte arg2 ;
1638 byte arg3 ;
1639 byte arg4 ;
1640 int result;
1641 PyObject * obj0 = 0 ;
1642 PyObject * obj1 = 0 ;
1643 PyObject * obj2 = 0 ;
1644 PyObject * obj3 = 0 ;
1645 char *kwnames[] = {
1646 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1647 };
1648
1649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1652 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1653 if (PyErr_Occurred()) SWIG_fail;
1654 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1655 if (PyErr_Occurred()) SWIG_fail;
1656 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1657 if (PyErr_Occurred()) SWIG_fail;
1658 {
1659 PyThreadState* __tstate = wxPyBeginAllowThreads();
1660 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1661
1662 wxPyEndAllowThreads(__tstate);
1663 if (PyErr_Occurred()) SWIG_fail;
1664 }
1665 resultobj = SWIG_FromInt((int)result);
1666 return resultobj;
1667 fail:
1668 return NULL;
1669 }
1670
1671
1672 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1673 PyObject *resultobj;
1674 wxPalette *arg1 = (wxPalette *) 0 ;
1675 int arg2 ;
1676 byte *arg3 = (byte *) 0 ;
1677 byte *arg4 = (byte *) 0 ;
1678 byte *arg5 = (byte *) 0 ;
1679 bool result;
1680 byte temp3 ;
1681 byte temp4 ;
1682 byte temp5 ;
1683 PyObject * obj0 = 0 ;
1684 PyObject * obj1 = 0 ;
1685 char *kwnames[] = {
1686 (char *) "self",(char *) "pixel", NULL
1687 };
1688
1689 arg3 = &temp3;
1690 arg4 = &temp4;
1691 arg5 = &temp5;
1692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1695 arg2 = (int) SWIG_AsInt(obj1);
1696 if (PyErr_Occurred()) SWIG_fail;
1697 {
1698 PyThreadState* __tstate = wxPyBeginAllowThreads();
1699 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1700
1701 wxPyEndAllowThreads(__tstate);
1702 if (PyErr_Occurred()) SWIG_fail;
1703 }
1704 {
1705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1706 }
1707 {
1708 PyObject *o = PyInt_FromLong((long) (*arg3));
1709 resultobj = t_output_helper(resultobj,o);
1710 }
1711 {
1712 PyObject *o = PyInt_FromLong((long) (*arg4));
1713 resultobj = t_output_helper(resultobj,o);
1714 }
1715 {
1716 PyObject *o = PyInt_FromLong((long) (*arg5));
1717 resultobj = t_output_helper(resultobj,o);
1718 }
1719 return resultobj;
1720 fail:
1721 return NULL;
1722 }
1723
1724
1725 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1726 PyObject *resultobj;
1727 wxPalette *arg1 = (wxPalette *) 0 ;
1728 bool result;
1729 PyObject * obj0 = 0 ;
1730 char *kwnames[] = {
1731 (char *) "self", NULL
1732 };
1733
1734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1737 {
1738 PyThreadState* __tstate = wxPyBeginAllowThreads();
1739 result = (bool)(arg1)->Ok();
1740
1741 wxPyEndAllowThreads(__tstate);
1742 if (PyErr_Occurred()) SWIG_fail;
1743 }
1744 {
1745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1746 }
1747 return resultobj;
1748 fail:
1749 return NULL;
1750 }
1751
1752
1753 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1754 PyObject *obj;
1755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1756 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1757 Py_INCREF(obj);
1758 return Py_BuildValue((char *)"");
1759 }
1760 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1761 PyObject *resultobj;
1762 wxColour *arg1 = 0 ;
1763 int arg2 = (int) 1 ;
1764 int arg3 = (int) wxSOLID ;
1765 wxPen *result;
1766 wxColour temp1 ;
1767 PyObject * obj0 = 0 ;
1768 PyObject * obj1 = 0 ;
1769 PyObject * obj2 = 0 ;
1770 char *kwnames[] = {
1771 (char *) "colour",(char *) "width",(char *) "style", NULL
1772 };
1773
1774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1775 {
1776 arg1 = &temp1;
1777 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1778 }
1779 if (obj1) {
1780 arg2 = (int) SWIG_AsInt(obj1);
1781 if (PyErr_Occurred()) SWIG_fail;
1782 }
1783 if (obj2) {
1784 arg3 = (int) SWIG_AsInt(obj2);
1785 if (PyErr_Occurred()) SWIG_fail;
1786 }
1787 {
1788 PyThreadState* __tstate = wxPyBeginAllowThreads();
1789 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1790
1791 wxPyEndAllowThreads(__tstate);
1792 if (PyErr_Occurred()) SWIG_fail;
1793 }
1794 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1795 return resultobj;
1796 fail:
1797 return NULL;
1798 }
1799
1800
1801 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1802 PyObject *resultobj;
1803 wxPen *arg1 = (wxPen *) 0 ;
1804 PyObject * obj0 = 0 ;
1805 char *kwnames[] = {
1806 (char *) "self", NULL
1807 };
1808
1809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1812 {
1813 PyThreadState* __tstate = wxPyBeginAllowThreads();
1814 delete arg1;
1815
1816 wxPyEndAllowThreads(__tstate);
1817 if (PyErr_Occurred()) SWIG_fail;
1818 }
1819 Py_INCREF(Py_None); resultobj = Py_None;
1820 return resultobj;
1821 fail:
1822 return NULL;
1823 }
1824
1825
1826 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1827 PyObject *resultobj;
1828 wxPen *arg1 = (wxPen *) 0 ;
1829 int result;
1830 PyObject * obj0 = 0 ;
1831 char *kwnames[] = {
1832 (char *) "self", NULL
1833 };
1834
1835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1838 {
1839 PyThreadState* __tstate = wxPyBeginAllowThreads();
1840 result = (int)(arg1)->GetCap();
1841
1842 wxPyEndAllowThreads(__tstate);
1843 if (PyErr_Occurred()) SWIG_fail;
1844 }
1845 resultobj = SWIG_FromInt((int)result);
1846 return resultobj;
1847 fail:
1848 return NULL;
1849 }
1850
1851
1852 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1853 PyObject *resultobj;
1854 wxPen *arg1 = (wxPen *) 0 ;
1855 wxColour result;
1856 PyObject * obj0 = 0 ;
1857 char *kwnames[] = {
1858 (char *) "self", NULL
1859 };
1860
1861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1864 {
1865 PyThreadState* __tstate = wxPyBeginAllowThreads();
1866 result = (arg1)->GetColour();
1867
1868 wxPyEndAllowThreads(__tstate);
1869 if (PyErr_Occurred()) SWIG_fail;
1870 }
1871 {
1872 wxColour * resultptr;
1873 resultptr = new wxColour((wxColour &) result);
1874 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1875 }
1876 return resultobj;
1877 fail:
1878 return NULL;
1879 }
1880
1881
1882 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1883 PyObject *resultobj;
1884 wxPen *arg1 = (wxPen *) 0 ;
1885 int result;
1886 PyObject * obj0 = 0 ;
1887 char *kwnames[] = {
1888 (char *) "self", NULL
1889 };
1890
1891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1894 {
1895 PyThreadState* __tstate = wxPyBeginAllowThreads();
1896 result = (int)(arg1)->GetJoin();
1897
1898 wxPyEndAllowThreads(__tstate);
1899 if (PyErr_Occurred()) SWIG_fail;
1900 }
1901 resultobj = SWIG_FromInt((int)result);
1902 return resultobj;
1903 fail:
1904 return NULL;
1905 }
1906
1907
1908 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1909 PyObject *resultobj;
1910 wxPen *arg1 = (wxPen *) 0 ;
1911 int result;
1912 PyObject * obj0 = 0 ;
1913 char *kwnames[] = {
1914 (char *) "self", NULL
1915 };
1916
1917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1920 {
1921 PyThreadState* __tstate = wxPyBeginAllowThreads();
1922 result = (int)(arg1)->GetStyle();
1923
1924 wxPyEndAllowThreads(__tstate);
1925 if (PyErr_Occurred()) SWIG_fail;
1926 }
1927 resultobj = SWIG_FromInt((int)result);
1928 return resultobj;
1929 fail:
1930 return NULL;
1931 }
1932
1933
1934 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1935 PyObject *resultobj;
1936 wxPen *arg1 = (wxPen *) 0 ;
1937 int result;
1938 PyObject * obj0 = 0 ;
1939 char *kwnames[] = {
1940 (char *) "self", NULL
1941 };
1942
1943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1946 {
1947 PyThreadState* __tstate = wxPyBeginAllowThreads();
1948 result = (int)(arg1)->GetWidth();
1949
1950 wxPyEndAllowThreads(__tstate);
1951 if (PyErr_Occurred()) SWIG_fail;
1952 }
1953 resultobj = SWIG_FromInt((int)result);
1954 return resultobj;
1955 fail:
1956 return NULL;
1957 }
1958
1959
1960 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1961 PyObject *resultobj;
1962 wxPen *arg1 = (wxPen *) 0 ;
1963 bool result;
1964 PyObject * obj0 = 0 ;
1965 char *kwnames[] = {
1966 (char *) "self", NULL
1967 };
1968
1969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1972 {
1973 PyThreadState* __tstate = wxPyBeginAllowThreads();
1974 result = (bool)(arg1)->Ok();
1975
1976 wxPyEndAllowThreads(__tstate);
1977 if (PyErr_Occurred()) SWIG_fail;
1978 }
1979 {
1980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1981 }
1982 return resultobj;
1983 fail:
1984 return NULL;
1985 }
1986
1987
1988 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1989 PyObject *resultobj;
1990 wxPen *arg1 = (wxPen *) 0 ;
1991 int arg2 ;
1992 PyObject * obj0 = 0 ;
1993 PyObject * obj1 = 0 ;
1994 char *kwnames[] = {
1995 (char *) "self",(char *) "cap_style", NULL
1996 };
1997
1998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2001 arg2 = (int) SWIG_AsInt(obj1);
2002 if (PyErr_Occurred()) SWIG_fail;
2003 {
2004 PyThreadState* __tstate = wxPyBeginAllowThreads();
2005 (arg1)->SetCap(arg2);
2006
2007 wxPyEndAllowThreads(__tstate);
2008 if (PyErr_Occurred()) SWIG_fail;
2009 }
2010 Py_INCREF(Py_None); resultobj = Py_None;
2011 return resultobj;
2012 fail:
2013 return NULL;
2014 }
2015
2016
2017 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2018 PyObject *resultobj;
2019 wxPen *arg1 = (wxPen *) 0 ;
2020 wxColour *arg2 = 0 ;
2021 wxColour temp2 ;
2022 PyObject * obj0 = 0 ;
2023 PyObject * obj1 = 0 ;
2024 char *kwnames[] = {
2025 (char *) "self",(char *) "colour", NULL
2026 };
2027
2028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2031 {
2032 arg2 = &temp2;
2033 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2034 }
2035 {
2036 PyThreadState* __tstate = wxPyBeginAllowThreads();
2037 (arg1)->SetColour(*arg2);
2038
2039 wxPyEndAllowThreads(__tstate);
2040 if (PyErr_Occurred()) SWIG_fail;
2041 }
2042 Py_INCREF(Py_None); resultobj = Py_None;
2043 return resultobj;
2044 fail:
2045 return NULL;
2046 }
2047
2048
2049 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2050 PyObject *resultobj;
2051 wxPen *arg1 = (wxPen *) 0 ;
2052 int arg2 ;
2053 PyObject * obj0 = 0 ;
2054 PyObject * obj1 = 0 ;
2055 char *kwnames[] = {
2056 (char *) "self",(char *) "join_style", NULL
2057 };
2058
2059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2062 arg2 = (int) SWIG_AsInt(obj1);
2063 if (PyErr_Occurred()) SWIG_fail;
2064 {
2065 PyThreadState* __tstate = wxPyBeginAllowThreads();
2066 (arg1)->SetJoin(arg2);
2067
2068 wxPyEndAllowThreads(__tstate);
2069 if (PyErr_Occurred()) SWIG_fail;
2070 }
2071 Py_INCREF(Py_None); resultobj = Py_None;
2072 return resultobj;
2073 fail:
2074 return NULL;
2075 }
2076
2077
2078 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2079 PyObject *resultobj;
2080 wxPen *arg1 = (wxPen *) 0 ;
2081 int arg2 ;
2082 PyObject * obj0 = 0 ;
2083 PyObject * obj1 = 0 ;
2084 char *kwnames[] = {
2085 (char *) "self",(char *) "style", NULL
2086 };
2087
2088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2091 arg2 = (int) SWIG_AsInt(obj1);
2092 if (PyErr_Occurred()) SWIG_fail;
2093 {
2094 PyThreadState* __tstate = wxPyBeginAllowThreads();
2095 (arg1)->SetStyle(arg2);
2096
2097 wxPyEndAllowThreads(__tstate);
2098 if (PyErr_Occurred()) SWIG_fail;
2099 }
2100 Py_INCREF(Py_None); resultobj = Py_None;
2101 return resultobj;
2102 fail:
2103 return NULL;
2104 }
2105
2106
2107 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2108 PyObject *resultobj;
2109 wxPen *arg1 = (wxPen *) 0 ;
2110 int arg2 ;
2111 PyObject * obj0 = 0 ;
2112 PyObject * obj1 = 0 ;
2113 char *kwnames[] = {
2114 (char *) "self",(char *) "width", NULL
2115 };
2116
2117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2120 arg2 = (int) SWIG_AsInt(obj1);
2121 if (PyErr_Occurred()) SWIG_fail;
2122 {
2123 PyThreadState* __tstate = wxPyBeginAllowThreads();
2124 (arg1)->SetWidth(arg2);
2125
2126 wxPyEndAllowThreads(__tstate);
2127 if (PyErr_Occurred()) SWIG_fail;
2128 }
2129 Py_INCREF(Py_None); resultobj = Py_None;
2130 return resultobj;
2131 fail:
2132 return NULL;
2133 }
2134
2135
2136 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2137 PyObject *resultobj;
2138 wxPen *arg1 = (wxPen *) 0 ;
2139 int arg2 ;
2140 wxDash *arg3 = (wxDash *) 0 ;
2141 PyObject * obj0 = 0 ;
2142 PyObject * obj1 = 0 ;
2143 char *kwnames[] = {
2144 (char *) "self",(char *) "dashes", NULL
2145 };
2146
2147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2150 {
2151 arg2 = PyList_Size(obj1);
2152 arg3 = (wxDash*)byte_LIST_helper(obj1);
2153 if (arg3 == NULL) SWIG_fail;
2154 }
2155 {
2156 PyThreadState* __tstate = wxPyBeginAllowThreads();
2157 (arg1)->SetDashes(arg2,arg3);
2158
2159 wxPyEndAllowThreads(__tstate);
2160 if (PyErr_Occurred()) SWIG_fail;
2161 }
2162 Py_INCREF(Py_None); resultobj = Py_None;
2163 {
2164 if (arg3) delete [] arg3;
2165 }
2166 return resultobj;
2167 fail:
2168 {
2169 if (arg3) delete [] arg3;
2170 }
2171 return NULL;
2172 }
2173
2174
2175 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2176 PyObject *resultobj;
2177 wxPen *arg1 = (wxPen *) 0 ;
2178 PyObject *result;
2179 PyObject * obj0 = 0 ;
2180 char *kwnames[] = {
2181 (char *) "self", NULL
2182 };
2183
2184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2187 {
2188 PyThreadState* __tstate = wxPyBeginAllowThreads();
2189 result = (PyObject *)wxPen_GetDashes(arg1);
2190
2191 wxPyEndAllowThreads(__tstate);
2192 if (PyErr_Occurred()) SWIG_fail;
2193 }
2194 resultobj = result;
2195 return resultobj;
2196 fail:
2197 return NULL;
2198 }
2199
2200
2201 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2202 PyObject *resultobj;
2203 wxPen *arg1 = (wxPen *) 0 ;
2204 wxPen *arg2 = (wxPen *) 0 ;
2205 bool result;
2206 PyObject * obj0 = 0 ;
2207 PyObject * obj1 = 0 ;
2208 char *kwnames[] = {
2209 (char *) "self",(char *) "other", NULL
2210 };
2211
2212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2215 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2217 {
2218 PyThreadState* __tstate = wxPyBeginAllowThreads();
2219 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2220
2221 wxPyEndAllowThreads(__tstate);
2222 if (PyErr_Occurred()) SWIG_fail;
2223 }
2224 {
2225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2226 }
2227 return resultobj;
2228 fail:
2229 return NULL;
2230 }
2231
2232
2233 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2234 PyObject *resultobj;
2235 wxPen *arg1 = (wxPen *) 0 ;
2236 wxPen *arg2 = (wxPen *) 0 ;
2237 bool result;
2238 PyObject * obj0 = 0 ;
2239 PyObject * obj1 = 0 ;
2240 char *kwnames[] = {
2241 (char *) "self",(char *) "other", NULL
2242 };
2243
2244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2247 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2249 {
2250 PyThreadState* __tstate = wxPyBeginAllowThreads();
2251 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2252
2253 wxPyEndAllowThreads(__tstate);
2254 if (PyErr_Occurred()) SWIG_fail;
2255 }
2256 {
2257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2258 }
2259 return resultobj;
2260 fail:
2261 return NULL;
2262 }
2263
2264
2265 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2266 PyObject *resultobj;
2267 wxPen *arg1 = (wxPen *) 0 ;
2268 int result;
2269 PyObject * obj0 = 0 ;
2270 char *kwnames[] = {
2271 (char *) "self", NULL
2272 };
2273
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2277 {
2278 PyThreadState* __tstate = wxPyBeginAllowThreads();
2279 result = (int)((wxPen const *)arg1)->GetDashCount();
2280
2281 wxPyEndAllowThreads(__tstate);
2282 if (PyErr_Occurred()) SWIG_fail;
2283 }
2284 resultobj = SWIG_FromInt((int)result);
2285 return resultobj;
2286 fail:
2287 return NULL;
2288 }
2289
2290
2291 static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2292 PyObject *resultobj;
2293 wxPen *arg1 = (wxPen *) 0 ;
2294 wxBitmap *result;
2295 PyObject * obj0 = 0 ;
2296 char *kwnames[] = {
2297 (char *) "self", NULL
2298 };
2299
2300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
2301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2303 {
2304 PyThreadState* __tstate = wxPyBeginAllowThreads();
2305 result = (wxBitmap *)(arg1)->GetStipple();
2306
2307 wxPyEndAllowThreads(__tstate);
2308 if (PyErr_Occurred()) SWIG_fail;
2309 }
2310 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2311 return resultobj;
2312 fail:
2313 return NULL;
2314 }
2315
2316
2317 static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2318 PyObject *resultobj;
2319 wxPen *arg1 = (wxPen *) 0 ;
2320 wxBitmap *arg2 = 0 ;
2321 PyObject * obj0 = 0 ;
2322 PyObject * obj1 = 0 ;
2323 char *kwnames[] = {
2324 (char *) "self",(char *) "stipple", NULL
2325 };
2326
2327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2330 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2331 SWIG_POINTER_EXCEPTION | 0)) == -1)
2332 SWIG_fail;
2333 if (arg2 == NULL) {
2334 PyErr_SetString(PyExc_TypeError,"null reference");
2335 SWIG_fail;
2336 }
2337 {
2338 PyThreadState* __tstate = wxPyBeginAllowThreads();
2339 (arg1)->SetStipple(*arg2);
2340
2341 wxPyEndAllowThreads(__tstate);
2342 if (PyErr_Occurred()) SWIG_fail;
2343 }
2344 Py_INCREF(Py_None); resultobj = Py_None;
2345 return resultobj;
2346 fail:
2347 return NULL;
2348 }
2349
2350
2351 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2352 PyObject *obj;
2353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2354 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2355 Py_INCREF(obj);
2356 return Py_BuildValue((char *)"");
2357 }
2358 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2359 PyObject *resultobj;
2360 wxColour *arg1 = 0 ;
2361 int arg2 = (int) 1 ;
2362 int arg3 = (int) wxSOLID ;
2363 wxPyPen *result;
2364 wxColour temp1 ;
2365 PyObject * obj0 = 0 ;
2366 PyObject * obj1 = 0 ;
2367 PyObject * obj2 = 0 ;
2368 char *kwnames[] = {
2369 (char *) "colour",(char *) "width",(char *) "style", NULL
2370 };
2371
2372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2373 {
2374 arg1 = &temp1;
2375 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2376 }
2377 if (obj1) {
2378 arg2 = (int) SWIG_AsInt(obj1);
2379 if (PyErr_Occurred()) SWIG_fail;
2380 }
2381 if (obj2) {
2382 arg3 = (int) SWIG_AsInt(obj2);
2383 if (PyErr_Occurred()) SWIG_fail;
2384 }
2385 {
2386 PyThreadState* __tstate = wxPyBeginAllowThreads();
2387 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2388
2389 wxPyEndAllowThreads(__tstate);
2390 if (PyErr_Occurred()) SWIG_fail;
2391 }
2392 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
2393 return resultobj;
2394 fail:
2395 return NULL;
2396 }
2397
2398
2399 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2400 PyObject *resultobj;
2401 wxPyPen *arg1 = (wxPyPen *) 0 ;
2402 PyObject * obj0 = 0 ;
2403 char *kwnames[] = {
2404 (char *) "self", NULL
2405 };
2406
2407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2410 {
2411 PyThreadState* __tstate = wxPyBeginAllowThreads();
2412 delete arg1;
2413
2414 wxPyEndAllowThreads(__tstate);
2415 if (PyErr_Occurred()) SWIG_fail;
2416 }
2417 Py_INCREF(Py_None); resultobj = Py_None;
2418 return resultobj;
2419 fail:
2420 return NULL;
2421 }
2422
2423
2424 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2425 PyObject *resultobj;
2426 wxPyPen *arg1 = (wxPyPen *) 0 ;
2427 int arg2 ;
2428 wxDash *arg3 = (wxDash *) 0 ;
2429 PyObject * obj0 = 0 ;
2430 PyObject * obj1 = 0 ;
2431 char *kwnames[] = {
2432 (char *) "self",(char *) "dashes", NULL
2433 };
2434
2435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2438 {
2439 arg2 = PyList_Size(obj1);
2440 arg3 = (wxDash*)byte_LIST_helper(obj1);
2441 if (arg3 == NULL) SWIG_fail;
2442 }
2443 {
2444 PyThreadState* __tstate = wxPyBeginAllowThreads();
2445 (arg1)->SetDashes(arg2,arg3);
2446
2447 wxPyEndAllowThreads(__tstate);
2448 if (PyErr_Occurred()) SWIG_fail;
2449 }
2450 Py_INCREF(Py_None); resultobj = Py_None;
2451 {
2452 if (arg3) delete [] arg3;
2453 }
2454 return resultobj;
2455 fail:
2456 {
2457 if (arg3) delete [] arg3;
2458 }
2459 return NULL;
2460 }
2461
2462
2463 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2464 PyObject *obj;
2465 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2466 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2467 Py_INCREF(obj);
2468 return Py_BuildValue((char *)"");
2469 }
2470 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2471 PyObject *resultobj;
2472 wxColour *arg1 = 0 ;
2473 int arg2 = (int) wxSOLID ;
2474 wxBrush *result;
2475 wxColour temp1 ;
2476 PyObject * obj0 = 0 ;
2477 PyObject * obj1 = 0 ;
2478 char *kwnames[] = {
2479 (char *) "colour",(char *) "style", NULL
2480 };
2481
2482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2483 {
2484 arg1 = &temp1;
2485 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2486 }
2487 if (obj1) {
2488 arg2 = (int) SWIG_AsInt(obj1);
2489 if (PyErr_Occurred()) SWIG_fail;
2490 }
2491 {
2492 PyThreadState* __tstate = wxPyBeginAllowThreads();
2493 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2494
2495 wxPyEndAllowThreads(__tstate);
2496 if (PyErr_Occurred()) SWIG_fail;
2497 }
2498 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2499 return resultobj;
2500 fail:
2501 return NULL;
2502 }
2503
2504
2505 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2506 PyObject *resultobj;
2507 wxBrush *arg1 = (wxBrush *) 0 ;
2508 PyObject * obj0 = 0 ;
2509 char *kwnames[] = {
2510 (char *) "self", NULL
2511 };
2512
2513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2516 {
2517 PyThreadState* __tstate = wxPyBeginAllowThreads();
2518 delete arg1;
2519
2520 wxPyEndAllowThreads(__tstate);
2521 if (PyErr_Occurred()) SWIG_fail;
2522 }
2523 Py_INCREF(Py_None); resultobj = Py_None;
2524 return resultobj;
2525 fail:
2526 return NULL;
2527 }
2528
2529
2530 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2531 PyObject *resultobj;
2532 wxBrush *arg1 = (wxBrush *) 0 ;
2533 wxColour *arg2 = 0 ;
2534 wxColour temp2 ;
2535 PyObject * obj0 = 0 ;
2536 PyObject * obj1 = 0 ;
2537 char *kwnames[] = {
2538 (char *) "self",(char *) "col", NULL
2539 };
2540
2541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2544 {
2545 arg2 = &temp2;
2546 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2547 }
2548 {
2549 PyThreadState* __tstate = wxPyBeginAllowThreads();
2550 (arg1)->SetColour((wxColour const &)*arg2);
2551
2552 wxPyEndAllowThreads(__tstate);
2553 if (PyErr_Occurred()) SWIG_fail;
2554 }
2555 Py_INCREF(Py_None); resultobj = Py_None;
2556 return resultobj;
2557 fail:
2558 return NULL;
2559 }
2560
2561
2562 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2563 PyObject *resultobj;
2564 wxBrush *arg1 = (wxBrush *) 0 ;
2565 int arg2 ;
2566 PyObject * obj0 = 0 ;
2567 PyObject * obj1 = 0 ;
2568 char *kwnames[] = {
2569 (char *) "self",(char *) "style", NULL
2570 };
2571
2572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2575 arg2 = (int) SWIG_AsInt(obj1);
2576 if (PyErr_Occurred()) SWIG_fail;
2577 {
2578 PyThreadState* __tstate = wxPyBeginAllowThreads();
2579 (arg1)->SetStyle(arg2);
2580
2581 wxPyEndAllowThreads(__tstate);
2582 if (PyErr_Occurred()) SWIG_fail;
2583 }
2584 Py_INCREF(Py_None); resultobj = Py_None;
2585 return resultobj;
2586 fail:
2587 return NULL;
2588 }
2589
2590
2591 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2592 PyObject *resultobj;
2593 wxBrush *arg1 = (wxBrush *) 0 ;
2594 wxBitmap *arg2 = 0 ;
2595 PyObject * obj0 = 0 ;
2596 PyObject * obj1 = 0 ;
2597 char *kwnames[] = {
2598 (char *) "self",(char *) "stipple", NULL
2599 };
2600
2601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2604 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2605 SWIG_POINTER_EXCEPTION | 0)) == -1)
2606 SWIG_fail;
2607 if (arg2 == NULL) {
2608 PyErr_SetString(PyExc_TypeError,"null reference");
2609 SWIG_fail;
2610 }
2611 {
2612 PyThreadState* __tstate = wxPyBeginAllowThreads();
2613 (arg1)->SetStipple((wxBitmap const &)*arg2);
2614
2615 wxPyEndAllowThreads(__tstate);
2616 if (PyErr_Occurred()) SWIG_fail;
2617 }
2618 Py_INCREF(Py_None); resultobj = Py_None;
2619 return resultobj;
2620 fail:
2621 return NULL;
2622 }
2623
2624
2625 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2626 PyObject *resultobj;
2627 wxBrush *arg1 = (wxBrush *) 0 ;
2628 wxColour result;
2629 PyObject * obj0 = 0 ;
2630 char *kwnames[] = {
2631 (char *) "self", NULL
2632 };
2633
2634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2637 {
2638 PyThreadState* __tstate = wxPyBeginAllowThreads();
2639 result = ((wxBrush const *)arg1)->GetColour();
2640
2641 wxPyEndAllowThreads(__tstate);
2642 if (PyErr_Occurred()) SWIG_fail;
2643 }
2644 {
2645 wxColour * resultptr;
2646 resultptr = new wxColour((wxColour &) result);
2647 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2648 }
2649 return resultobj;
2650 fail:
2651 return NULL;
2652 }
2653
2654
2655 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2656 PyObject *resultobj;
2657 wxBrush *arg1 = (wxBrush *) 0 ;
2658 int result;
2659 PyObject * obj0 = 0 ;
2660 char *kwnames[] = {
2661 (char *) "self", NULL
2662 };
2663
2664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2667 {
2668 PyThreadState* __tstate = wxPyBeginAllowThreads();
2669 result = (int)((wxBrush const *)arg1)->GetStyle();
2670
2671 wxPyEndAllowThreads(__tstate);
2672 if (PyErr_Occurred()) SWIG_fail;
2673 }
2674 resultobj = SWIG_FromInt((int)result);
2675 return resultobj;
2676 fail:
2677 return NULL;
2678 }
2679
2680
2681 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2682 PyObject *resultobj;
2683 wxBrush *arg1 = (wxBrush *) 0 ;
2684 wxBitmap *result;
2685 PyObject * obj0 = 0 ;
2686 char *kwnames[] = {
2687 (char *) "self", NULL
2688 };
2689
2690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2693 {
2694 PyThreadState* __tstate = wxPyBeginAllowThreads();
2695 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2696
2697 wxPyEndAllowThreads(__tstate);
2698 if (PyErr_Occurred()) SWIG_fail;
2699 }
2700 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2701 return resultobj;
2702 fail:
2703 return NULL;
2704 }
2705
2706
2707 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2708 PyObject *resultobj;
2709 wxBrush *arg1 = (wxBrush *) 0 ;
2710 bool result;
2711 PyObject * obj0 = 0 ;
2712 char *kwnames[] = {
2713 (char *) "self", NULL
2714 };
2715
2716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2719 {
2720 PyThreadState* __tstate = wxPyBeginAllowThreads();
2721 result = (bool)(arg1)->Ok();
2722
2723 wxPyEndAllowThreads(__tstate);
2724 if (PyErr_Occurred()) SWIG_fail;
2725 }
2726 {
2727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2728 }
2729 return resultobj;
2730 fail:
2731 return NULL;
2732 }
2733
2734
2735 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2736 PyObject *obj;
2737 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2738 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2739 Py_INCREF(obj);
2740 return Py_BuildValue((char *)"");
2741 }
2742 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2743 PyObject *resultobj;
2744 wxString *arg1 = 0 ;
2745 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2746 wxBitmap *result;
2747 bool temp1 = False ;
2748 PyObject * obj0 = 0 ;
2749 PyObject * obj1 = 0 ;
2750 char *kwnames[] = {
2751 (char *) "name",(char *) "type", NULL
2752 };
2753
2754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2755 {
2756 arg1 = wxString_in_helper(obj0);
2757 if (arg1 == NULL) SWIG_fail;
2758 temp1 = True;
2759 }
2760 if (obj1) {
2761 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2762 if (PyErr_Occurred()) SWIG_fail;
2763 }
2764 {
2765 PyThreadState* __tstate = wxPyBeginAllowThreads();
2766 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2767
2768 wxPyEndAllowThreads(__tstate);
2769 if (PyErr_Occurred()) SWIG_fail;
2770 }
2771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2772 {
2773 if (temp1)
2774 delete arg1;
2775 }
2776 return resultobj;
2777 fail:
2778 {
2779 if (temp1)
2780 delete arg1;
2781 }
2782 return NULL;
2783 }
2784
2785
2786 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2787 PyObject *resultobj;
2788 wxBitmap *arg1 = (wxBitmap *) 0 ;
2789 PyObject * obj0 = 0 ;
2790 char *kwnames[] = {
2791 (char *) "self", NULL
2792 };
2793
2794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2797 {
2798 PyThreadState* __tstate = wxPyBeginAllowThreads();
2799 delete arg1;
2800
2801 wxPyEndAllowThreads(__tstate);
2802 if (PyErr_Occurred()) SWIG_fail;
2803 }
2804 Py_INCREF(Py_None); resultobj = Py_None;
2805 return resultobj;
2806 fail:
2807 return NULL;
2808 }
2809
2810
2811 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2812 PyObject *resultobj;
2813 int arg1 ;
2814 int arg2 ;
2815 int arg3 = (int) -1 ;
2816 wxBitmap *result;
2817 PyObject * obj0 = 0 ;
2818 PyObject * obj1 = 0 ;
2819 PyObject * obj2 = 0 ;
2820 char *kwnames[] = {
2821 (char *) "width",(char *) "height",(char *) "depth", NULL
2822 };
2823
2824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2825 arg1 = (int) SWIG_AsInt(obj0);
2826 if (PyErr_Occurred()) SWIG_fail;
2827 arg2 = (int) SWIG_AsInt(obj1);
2828 if (PyErr_Occurred()) SWIG_fail;
2829 if (obj2) {
2830 arg3 = (int) SWIG_AsInt(obj2);
2831 if (PyErr_Occurred()) SWIG_fail;
2832 }
2833 {
2834 PyThreadState* __tstate = wxPyBeginAllowThreads();
2835 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2836
2837 wxPyEndAllowThreads(__tstate);
2838 if (PyErr_Occurred()) SWIG_fail;
2839 }
2840 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2841 return resultobj;
2842 fail:
2843 return NULL;
2844 }
2845
2846
2847 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2848 PyObject *resultobj;
2849 wxIcon *arg1 = 0 ;
2850 wxBitmap *result;
2851 PyObject * obj0 = 0 ;
2852 char *kwnames[] = {
2853 (char *) "icon", NULL
2854 };
2855
2856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2858 SWIG_POINTER_EXCEPTION | 0)) == -1)
2859 SWIG_fail;
2860 if (arg1 == NULL) {
2861 PyErr_SetString(PyExc_TypeError,"null reference");
2862 SWIG_fail;
2863 }
2864 {
2865 PyThreadState* __tstate = wxPyBeginAllowThreads();
2866 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2867
2868 wxPyEndAllowThreads(__tstate);
2869 if (PyErr_Occurred()) SWIG_fail;
2870 }
2871 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2872 return resultobj;
2873 fail:
2874 return NULL;
2875 }
2876
2877
2878 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2879 PyObject *resultobj;
2880 wxImage *arg1 = 0 ;
2881 int arg2 = (int) -1 ;
2882 wxBitmap *result;
2883 PyObject * obj0 = 0 ;
2884 PyObject * obj1 = 0 ;
2885 char *kwnames[] = {
2886 (char *) "image",(char *) "depth", NULL
2887 };
2888
2889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2891 SWIG_POINTER_EXCEPTION | 0)) == -1)
2892 SWIG_fail;
2893 if (arg1 == NULL) {
2894 PyErr_SetString(PyExc_TypeError,"null reference");
2895 SWIG_fail;
2896 }
2897 if (obj1) {
2898 arg2 = (int) SWIG_AsInt(obj1);
2899 if (PyErr_Occurred()) SWIG_fail;
2900 }
2901 {
2902 PyThreadState* __tstate = wxPyBeginAllowThreads();
2903 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2904
2905 wxPyEndAllowThreads(__tstate);
2906 if (PyErr_Occurred()) SWIG_fail;
2907 }
2908 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2909 return resultobj;
2910 fail:
2911 return NULL;
2912 }
2913
2914
2915 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2916 PyObject *resultobj;
2917 PyObject *arg1 = (PyObject *) 0 ;
2918 wxBitmap *result;
2919 PyObject * obj0 = 0 ;
2920 char *kwnames[] = {
2921 (char *) "listOfStrings", NULL
2922 };
2923
2924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2925 arg1 = obj0;
2926 {
2927 PyThreadState* __tstate = wxPyBeginAllowThreads();
2928 result = (wxBitmap *)new_wxBitmap(arg1);
2929
2930 wxPyEndAllowThreads(__tstate);
2931 if (PyErr_Occurred()) SWIG_fail;
2932 }
2933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2934 return resultobj;
2935 fail:
2936 return NULL;
2937 }
2938
2939
2940 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2941 PyObject *resultobj;
2942 PyObject *arg1 = (PyObject *) 0 ;
2943 int arg2 ;
2944 int arg3 ;
2945 int arg4 = (int) 1 ;
2946 wxBitmap *result;
2947 PyObject * obj0 = 0 ;
2948 PyObject * obj1 = 0 ;
2949 PyObject * obj2 = 0 ;
2950 PyObject * obj3 = 0 ;
2951 char *kwnames[] = {
2952 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2953 };
2954
2955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2956 arg1 = obj0;
2957 arg2 = (int) SWIG_AsInt(obj1);
2958 if (PyErr_Occurred()) SWIG_fail;
2959 arg3 = (int) SWIG_AsInt(obj2);
2960 if (PyErr_Occurred()) SWIG_fail;
2961 if (obj3) {
2962 arg4 = (int) SWIG_AsInt(obj3);
2963 if (PyErr_Occurred()) SWIG_fail;
2964 }
2965 {
2966 PyThreadState* __tstate = wxPyBeginAllowThreads();
2967 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2968
2969 wxPyEndAllowThreads(__tstate);
2970 if (PyErr_Occurred()) SWIG_fail;
2971 }
2972 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2973 return resultobj;
2974 fail:
2975 return NULL;
2976 }
2977
2978
2979 static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2980 PyObject *resultobj;
2981 wxBitmap *arg1 = (wxBitmap *) 0 ;
2982 wxPalette *arg2 = 0 ;
2983 PyObject * obj0 = 0 ;
2984 PyObject * obj1 = 0 ;
2985 char *kwnames[] = {
2986 (char *) "self",(char *) "palette", NULL
2987 };
2988
2989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2992 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
2993 SWIG_POINTER_EXCEPTION | 0)) == -1)
2994 SWIG_fail;
2995 if (arg2 == NULL) {
2996 PyErr_SetString(PyExc_TypeError,"null reference");
2997 SWIG_fail;
2998 }
2999 {
3000 PyThreadState* __tstate = wxPyBeginAllowThreads();
3001 (arg1)->SetPalette(*arg2);
3002
3003 wxPyEndAllowThreads(__tstate);
3004 if (PyErr_Occurred()) SWIG_fail;
3005 }
3006 Py_INCREF(Py_None); resultobj = Py_None;
3007 return resultobj;
3008 fail:
3009 return NULL;
3010 }
3011
3012
3013 static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3014 PyObject *resultobj;
3015 wxBitmap *arg1 = (wxBitmap *) 0 ;
3016 long result;
3017 PyObject * obj0 = 0 ;
3018 char *kwnames[] = {
3019 (char *) "self", NULL
3020 };
3021
3022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
3023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3025 {
3026 PyThreadState* __tstate = wxPyBeginAllowThreads();
3027 result = (long)(arg1)->GetHandle();
3028
3029 wxPyEndAllowThreads(__tstate);
3030 if (PyErr_Occurred()) SWIG_fail;
3031 }
3032 resultobj = SWIG_FromLong((long)result);
3033 return resultobj;
3034 fail:
3035 return NULL;
3036 }
3037
3038
3039 static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3040 PyObject *resultobj;
3041 wxBitmap *arg1 = (wxBitmap *) 0 ;
3042 long arg2 ;
3043 PyObject * obj0 = 0 ;
3044 PyObject * obj1 = 0 ;
3045 char *kwnames[] = {
3046 (char *) "self",(char *) "handle", NULL
3047 };
3048
3049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3052 arg2 = (long) SWIG_AsLong(obj1);
3053 if (PyErr_Occurred()) SWIG_fail;
3054 {
3055 PyThreadState* __tstate = wxPyBeginAllowThreads();
3056 wxBitmap_SetHandle(arg1,arg2);
3057
3058 wxPyEndAllowThreads(__tstate);
3059 if (PyErr_Occurred()) SWIG_fail;
3060 }
3061 Py_INCREF(Py_None); resultobj = Py_None;
3062 return resultobj;
3063 fail:
3064 return NULL;
3065 }
3066
3067
3068 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3069 PyObject *resultobj;
3070 wxBitmap *arg1 = (wxBitmap *) 0 ;
3071 bool result;
3072 PyObject * obj0 = 0 ;
3073 char *kwnames[] = {
3074 (char *) "self", NULL
3075 };
3076
3077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
3078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3080 {
3081 PyThreadState* __tstate = wxPyBeginAllowThreads();
3082 result = (bool)(arg1)->Ok();
3083
3084 wxPyEndAllowThreads(__tstate);
3085 if (PyErr_Occurred()) SWIG_fail;
3086 }
3087 {
3088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3089 }
3090 return resultobj;
3091 fail:
3092 return NULL;
3093 }
3094
3095
3096 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3097 PyObject *resultobj;
3098 wxBitmap *arg1 = (wxBitmap *) 0 ;
3099 int result;
3100 PyObject * obj0 = 0 ;
3101 char *kwnames[] = {
3102 (char *) "self", NULL
3103 };
3104
3105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3108 {
3109 PyThreadState* __tstate = wxPyBeginAllowThreads();
3110 result = (int)(arg1)->GetWidth();
3111
3112 wxPyEndAllowThreads(__tstate);
3113 if (PyErr_Occurred()) SWIG_fail;
3114 }
3115 resultobj = SWIG_FromInt((int)result);
3116 return resultobj;
3117 fail:
3118 return NULL;
3119 }
3120
3121
3122 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3123 PyObject *resultobj;
3124 wxBitmap *arg1 = (wxBitmap *) 0 ;
3125 int result;
3126 PyObject * obj0 = 0 ;
3127 char *kwnames[] = {
3128 (char *) "self", NULL
3129 };
3130
3131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3134 {
3135 PyThreadState* __tstate = wxPyBeginAllowThreads();
3136 result = (int)(arg1)->GetHeight();
3137
3138 wxPyEndAllowThreads(__tstate);
3139 if (PyErr_Occurred()) SWIG_fail;
3140 }
3141 resultobj = SWIG_FromInt((int)result);
3142 return resultobj;
3143 fail:
3144 return NULL;
3145 }
3146
3147
3148 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3149 PyObject *resultobj;
3150 wxBitmap *arg1 = (wxBitmap *) 0 ;
3151 int result;
3152 PyObject * obj0 = 0 ;
3153 char *kwnames[] = {
3154 (char *) "self", NULL
3155 };
3156
3157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3160 {
3161 PyThreadState* __tstate = wxPyBeginAllowThreads();
3162 result = (int)(arg1)->GetDepth();
3163
3164 wxPyEndAllowThreads(__tstate);
3165 if (PyErr_Occurred()) SWIG_fail;
3166 }
3167 resultobj = SWIG_FromInt((int)result);
3168 return resultobj;
3169 fail:
3170 return NULL;
3171 }
3172
3173
3174 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3175 PyObject *resultobj;
3176 wxBitmap *arg1 = (wxBitmap *) 0 ;
3177 SwigValueWrapper< wxImage > result;
3178 PyObject * obj0 = 0 ;
3179 char *kwnames[] = {
3180 (char *) "self", NULL
3181 };
3182
3183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3186 {
3187 PyThreadState* __tstate = wxPyBeginAllowThreads();
3188 result = ((wxBitmap const *)arg1)->ConvertToImage();
3189
3190 wxPyEndAllowThreads(__tstate);
3191 if (PyErr_Occurred()) SWIG_fail;
3192 }
3193 {
3194 wxImage * resultptr;
3195 resultptr = new wxImage((wxImage &) result);
3196 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3197 }
3198 return resultobj;
3199 fail:
3200 return NULL;
3201 }
3202
3203
3204 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3205 PyObject *resultobj;
3206 wxBitmap *arg1 = (wxBitmap *) 0 ;
3207 wxMask *result;
3208 PyObject * obj0 = 0 ;
3209 char *kwnames[] = {
3210 (char *) "self", NULL
3211 };
3212
3213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3216 {
3217 PyThreadState* __tstate = wxPyBeginAllowThreads();
3218 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3219
3220 wxPyEndAllowThreads(__tstate);
3221 if (PyErr_Occurred()) SWIG_fail;
3222 }
3223 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3224 return resultobj;
3225 fail:
3226 return NULL;
3227 }
3228
3229
3230 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3231 PyObject *resultobj;
3232 wxBitmap *arg1 = (wxBitmap *) 0 ;
3233 wxMask *arg2 = (wxMask *) 0 ;
3234 PyObject * obj0 = 0 ;
3235 PyObject * obj1 = 0 ;
3236 char *kwnames[] = {
3237 (char *) "self",(char *) "mask", NULL
3238 };
3239
3240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3243 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3245 {
3246 PyThreadState* __tstate = wxPyBeginAllowThreads();
3247 (arg1)->SetMask(arg2);
3248
3249 wxPyEndAllowThreads(__tstate);
3250 if (PyErr_Occurred()) SWIG_fail;
3251 }
3252 Py_INCREF(Py_None); resultobj = Py_None;
3253 return resultobj;
3254 fail:
3255 return NULL;
3256 }
3257
3258
3259 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3260 PyObject *resultobj;
3261 wxBitmap *arg1 = (wxBitmap *) 0 ;
3262 wxColour *arg2 = 0 ;
3263 wxColour temp2 ;
3264 PyObject * obj0 = 0 ;
3265 PyObject * obj1 = 0 ;
3266 char *kwnames[] = {
3267 (char *) "self",(char *) "colour", NULL
3268 };
3269
3270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3273 {
3274 arg2 = &temp2;
3275 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3276 }
3277 {
3278 PyThreadState* __tstate = wxPyBeginAllowThreads();
3279 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3280
3281 wxPyEndAllowThreads(__tstate);
3282 if (PyErr_Occurred()) SWIG_fail;
3283 }
3284 Py_INCREF(Py_None); resultobj = Py_None;
3285 return resultobj;
3286 fail:
3287 return NULL;
3288 }
3289
3290
3291 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3292 PyObject *resultobj;
3293 wxBitmap *arg1 = (wxBitmap *) 0 ;
3294 wxRect *arg2 = 0 ;
3295 SwigValueWrapper< wxBitmap > result;
3296 wxRect temp2 ;
3297 PyObject * obj0 = 0 ;
3298 PyObject * obj1 = 0 ;
3299 char *kwnames[] = {
3300 (char *) "self",(char *) "rect", NULL
3301 };
3302
3303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3306 {
3307 arg2 = &temp2;
3308 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3309 }
3310 {
3311 PyThreadState* __tstate = wxPyBeginAllowThreads();
3312 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3313
3314 wxPyEndAllowThreads(__tstate);
3315 if (PyErr_Occurred()) SWIG_fail;
3316 }
3317 {
3318 wxBitmap * resultptr;
3319 resultptr = new wxBitmap((wxBitmap &) result);
3320 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3321 }
3322 return resultobj;
3323 fail:
3324 return NULL;
3325 }
3326
3327
3328 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3329 PyObject *resultobj;
3330 wxBitmap *arg1 = (wxBitmap *) 0 ;
3331 wxString *arg2 = 0 ;
3332 int arg3 ;
3333 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3334 bool result;
3335 bool temp2 = False ;
3336 PyObject * obj0 = 0 ;
3337 PyObject * obj1 = 0 ;
3338 PyObject * obj2 = 0 ;
3339 PyObject * obj3 = 0 ;
3340 char *kwnames[] = {
3341 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3342 };
3343
3344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3347 {
3348 arg2 = wxString_in_helper(obj1);
3349 if (arg2 == NULL) SWIG_fail;
3350 temp2 = True;
3351 }
3352 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3353 if (PyErr_Occurred()) SWIG_fail;
3354 if (obj3) {
3355 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3357 }
3358 {
3359 PyThreadState* __tstate = wxPyBeginAllowThreads();
3360 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3361
3362 wxPyEndAllowThreads(__tstate);
3363 if (PyErr_Occurred()) SWIG_fail;
3364 }
3365 {
3366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3367 }
3368 {
3369 if (temp2)
3370 delete arg2;
3371 }
3372 return resultobj;
3373 fail:
3374 {
3375 if (temp2)
3376 delete arg2;
3377 }
3378 return NULL;
3379 }
3380
3381
3382 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3383 PyObject *resultobj;
3384 wxBitmap *arg1 = (wxBitmap *) 0 ;
3385 wxString *arg2 = 0 ;
3386 int arg3 ;
3387 bool result;
3388 bool temp2 = False ;
3389 PyObject * obj0 = 0 ;
3390 PyObject * obj1 = 0 ;
3391 PyObject * obj2 = 0 ;
3392 char *kwnames[] = {
3393 (char *) "self",(char *) "name",(char *) "type", NULL
3394 };
3395
3396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3399 {
3400 arg2 = wxString_in_helper(obj1);
3401 if (arg2 == NULL) SWIG_fail;
3402 temp2 = True;
3403 }
3404 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3405 if (PyErr_Occurred()) SWIG_fail;
3406 {
3407 PyThreadState* __tstate = wxPyBeginAllowThreads();
3408 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3409
3410 wxPyEndAllowThreads(__tstate);
3411 if (PyErr_Occurred()) SWIG_fail;
3412 }
3413 {
3414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3415 }
3416 {
3417 if (temp2)
3418 delete arg2;
3419 }
3420 return resultobj;
3421 fail:
3422 {
3423 if (temp2)
3424 delete arg2;
3425 }
3426 return NULL;
3427 }
3428
3429
3430 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3431 PyObject *resultobj;
3432 wxBitmap *arg1 = (wxBitmap *) 0 ;
3433 wxIcon *arg2 = 0 ;
3434 bool result;
3435 PyObject * obj0 = 0 ;
3436 PyObject * obj1 = 0 ;
3437 char *kwnames[] = {
3438 (char *) "self",(char *) "icon", NULL
3439 };
3440
3441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3444 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3445 SWIG_POINTER_EXCEPTION | 0)) == -1)
3446 SWIG_fail;
3447 if (arg2 == NULL) {
3448 PyErr_SetString(PyExc_TypeError,"null reference");
3449 SWIG_fail;
3450 }
3451 {
3452 PyThreadState* __tstate = wxPyBeginAllowThreads();
3453 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3454
3455 wxPyEndAllowThreads(__tstate);
3456 if (PyErr_Occurred()) SWIG_fail;
3457 }
3458 {
3459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3460 }
3461 return resultobj;
3462 fail:
3463 return NULL;
3464 }
3465
3466
3467 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3468 PyObject *resultobj;
3469 wxBitmap *arg1 = (wxBitmap *) 0 ;
3470 int arg2 ;
3471 PyObject * obj0 = 0 ;
3472 PyObject * obj1 = 0 ;
3473 char *kwnames[] = {
3474 (char *) "self",(char *) "height", NULL
3475 };
3476
3477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3480 arg2 = (int) SWIG_AsInt(obj1);
3481 if (PyErr_Occurred()) SWIG_fail;
3482 {
3483 PyThreadState* __tstate = wxPyBeginAllowThreads();
3484 (arg1)->SetHeight(arg2);
3485
3486 wxPyEndAllowThreads(__tstate);
3487 if (PyErr_Occurred()) SWIG_fail;
3488 }
3489 Py_INCREF(Py_None); resultobj = Py_None;
3490 return resultobj;
3491 fail:
3492 return NULL;
3493 }
3494
3495
3496 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3497 PyObject *resultobj;
3498 wxBitmap *arg1 = (wxBitmap *) 0 ;
3499 int arg2 ;
3500 PyObject * obj0 = 0 ;
3501 PyObject * obj1 = 0 ;
3502 char *kwnames[] = {
3503 (char *) "self",(char *) "width", NULL
3504 };
3505
3506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3509 arg2 = (int) SWIG_AsInt(obj1);
3510 if (PyErr_Occurred()) SWIG_fail;
3511 {
3512 PyThreadState* __tstate = wxPyBeginAllowThreads();
3513 (arg1)->SetWidth(arg2);
3514
3515 wxPyEndAllowThreads(__tstate);
3516 if (PyErr_Occurred()) SWIG_fail;
3517 }
3518 Py_INCREF(Py_None); resultobj = Py_None;
3519 return resultobj;
3520 fail:
3521 return NULL;
3522 }
3523
3524
3525 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3526 PyObject *resultobj;
3527 wxBitmap *arg1 = (wxBitmap *) 0 ;
3528 int arg2 ;
3529 PyObject * obj0 = 0 ;
3530 PyObject * obj1 = 0 ;
3531 char *kwnames[] = {
3532 (char *) "self",(char *) "depth", NULL
3533 };
3534
3535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3538 arg2 = (int) SWIG_AsInt(obj1);
3539 if (PyErr_Occurred()) SWIG_fail;
3540 {
3541 PyThreadState* __tstate = wxPyBeginAllowThreads();
3542 (arg1)->SetDepth(arg2);
3543
3544 wxPyEndAllowThreads(__tstate);
3545 if (PyErr_Occurred()) SWIG_fail;
3546 }
3547 Py_INCREF(Py_None); resultobj = Py_None;
3548 return resultobj;
3549 fail:
3550 return NULL;
3551 }
3552
3553
3554 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3555 PyObject *resultobj;
3556 wxBitmap *arg1 = (wxBitmap *) 0 ;
3557 wxCursor *arg2 = 0 ;
3558 bool result;
3559 PyObject * obj0 = 0 ;
3560 PyObject * obj1 = 0 ;
3561 char *kwnames[] = {
3562 (char *) "self",(char *) "cursor", NULL
3563 };
3564
3565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3568 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
3569 SWIG_POINTER_EXCEPTION | 0)) == -1)
3570 SWIG_fail;
3571 if (arg2 == NULL) {
3572 PyErr_SetString(PyExc_TypeError,"null reference");
3573 SWIG_fail;
3574 }
3575 {
3576 PyThreadState* __tstate = wxPyBeginAllowThreads();
3577 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3578
3579 wxPyEndAllowThreads(__tstate);
3580 if (PyErr_Occurred()) SWIG_fail;
3581 }
3582 {
3583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3584 }
3585 return resultobj;
3586 fail:
3587 return NULL;
3588 }
3589
3590
3591 static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3592 PyObject *resultobj;
3593 wxBitmap *arg1 = (wxBitmap *) 0 ;
3594 int result;
3595 PyObject * obj0 = 0 ;
3596 char *kwnames[] = {
3597 (char *) "self", NULL
3598 };
3599
3600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
3605 result = (int)(arg1)->GetQuality();
3606
3607 wxPyEndAllowThreads(__tstate);
3608 if (PyErr_Occurred()) SWIG_fail;
3609 }
3610 resultobj = SWIG_FromInt((int)result);
3611 return resultobj;
3612 fail:
3613 return NULL;
3614 }
3615
3616
3617 static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3618 PyObject *resultobj;
3619 wxBitmap *arg1 = (wxBitmap *) 0 ;
3620 int arg2 ;
3621 PyObject * obj0 = 0 ;
3622 PyObject * obj1 = 0 ;
3623 char *kwnames[] = {
3624 (char *) "self",(char *) "q", NULL
3625 };
3626
3627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3630 arg2 = (int) SWIG_AsInt(obj1);
3631 if (PyErr_Occurred()) SWIG_fail;
3632 {
3633 PyThreadState* __tstate = wxPyBeginAllowThreads();
3634 (arg1)->SetQuality(arg2);
3635
3636 wxPyEndAllowThreads(__tstate);
3637 if (PyErr_Occurred()) SWIG_fail;
3638 }
3639 Py_INCREF(Py_None); resultobj = Py_None;
3640 return resultobj;
3641 fail:
3642 return NULL;
3643 }
3644
3645
3646 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3647 PyObject *resultobj;
3648 wxBitmap *arg1 = (wxBitmap *) 0 ;
3649 wxBitmap *arg2 = (wxBitmap *) 0 ;
3650 bool result;
3651 PyObject * obj0 = 0 ;
3652 PyObject * obj1 = 0 ;
3653 char *kwnames[] = {
3654 (char *) "self",(char *) "other", NULL
3655 };
3656
3657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3660 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3662 {
3663 PyThreadState* __tstate = wxPyBeginAllowThreads();
3664 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3665
3666 wxPyEndAllowThreads(__tstate);
3667 if (PyErr_Occurred()) SWIG_fail;
3668 }
3669 {
3670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3671 }
3672 return resultobj;
3673 fail:
3674 return NULL;
3675 }
3676
3677
3678 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3679 PyObject *resultobj;
3680 wxBitmap *arg1 = (wxBitmap *) 0 ;
3681 wxBitmap *arg2 = (wxBitmap *) 0 ;
3682 bool result;
3683 PyObject * obj0 = 0 ;
3684 PyObject * obj1 = 0 ;
3685 char *kwnames[] = {
3686 (char *) "self",(char *) "other", NULL
3687 };
3688
3689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3692 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3694 {
3695 PyThreadState* __tstate = wxPyBeginAllowThreads();
3696 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3697
3698 wxPyEndAllowThreads(__tstate);
3699 if (PyErr_Occurred()) SWIG_fail;
3700 }
3701 {
3702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3703 }
3704 return resultobj;
3705 fail:
3706 return NULL;
3707 }
3708
3709
3710 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3711 PyObject *obj;
3712 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3713 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3714 Py_INCREF(obj);
3715 return Py_BuildValue((char *)"");
3716 }
3717 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3718 PyObject *resultobj;
3719 wxBitmap *arg1 = 0 ;
3720 wxColour const &arg2_defvalue = wxNullColour ;
3721 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3722 wxMask *result;
3723 wxColour temp2 ;
3724 PyObject * obj0 = 0 ;
3725 PyObject * obj1 = 0 ;
3726 char *kwnames[] = {
3727 (char *) "bitmap",(char *) "colour", NULL
3728 };
3729
3730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3732 SWIG_POINTER_EXCEPTION | 0)) == -1)
3733 SWIG_fail;
3734 if (arg1 == NULL) {
3735 PyErr_SetString(PyExc_TypeError,"null reference");
3736 SWIG_fail;
3737 }
3738 if (obj1) {
3739 {
3740 arg2 = &temp2;
3741 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3742 }
3743 }
3744 {
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3747
3748 wxPyEndAllowThreads(__tstate);
3749 if (PyErr_Occurred()) SWIG_fail;
3750 }
3751 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3752 return resultobj;
3753 fail:
3754 return NULL;
3755 }
3756
3757
3758 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3759 PyObject *obj;
3760 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3761 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3762 Py_INCREF(obj);
3763 return Py_BuildValue((char *)"");
3764 }
3765 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3766 PyObject *resultobj;
3767 wxString *arg1 = 0 ;
3768 int arg2 ;
3769 int arg3 = (int) -1 ;
3770 int arg4 = (int) -1 ;
3771 wxIcon *result;
3772 bool temp1 = False ;
3773 PyObject * obj0 = 0 ;
3774 PyObject * obj1 = 0 ;
3775 PyObject * obj2 = 0 ;
3776 PyObject * obj3 = 0 ;
3777 char *kwnames[] = {
3778 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3779 };
3780
3781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3782 {
3783 arg1 = wxString_in_helper(obj0);
3784 if (arg1 == NULL) SWIG_fail;
3785 temp1 = True;
3786 }
3787 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3788 if (PyErr_Occurred()) SWIG_fail;
3789 if (obj2) {
3790 arg3 = (int) SWIG_AsInt(obj2);
3791 if (PyErr_Occurred()) SWIG_fail;
3792 }
3793 if (obj3) {
3794 arg4 = (int) SWIG_AsInt(obj3);
3795 if (PyErr_Occurred()) SWIG_fail;
3796 }
3797 {
3798 PyThreadState* __tstate = wxPyBeginAllowThreads();
3799 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3800
3801 wxPyEndAllowThreads(__tstate);
3802 if (PyErr_Occurred()) SWIG_fail;
3803 }
3804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3805 {
3806 if (temp1)
3807 delete arg1;
3808 }
3809 return resultobj;
3810 fail:
3811 {
3812 if (temp1)
3813 delete arg1;
3814 }
3815 return NULL;
3816 }
3817
3818
3819 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3820 PyObject *resultobj;
3821 wxIcon *arg1 = (wxIcon *) 0 ;
3822 PyObject * obj0 = 0 ;
3823 char *kwnames[] = {
3824 (char *) "self", NULL
3825 };
3826
3827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3830 {
3831 PyThreadState* __tstate = wxPyBeginAllowThreads();
3832 delete arg1;
3833
3834 wxPyEndAllowThreads(__tstate);
3835 if (PyErr_Occurred()) SWIG_fail;
3836 }
3837 Py_INCREF(Py_None); resultobj = Py_None;
3838 return resultobj;
3839 fail:
3840 return NULL;
3841 }
3842
3843
3844 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3845 PyObject *resultobj;
3846 wxIcon *result;
3847 char *kwnames[] = {
3848 NULL
3849 };
3850
3851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3852 {
3853 PyThreadState* __tstate = wxPyBeginAllowThreads();
3854 result = (wxIcon *)new wxIcon();
3855
3856 wxPyEndAllowThreads(__tstate);
3857 if (PyErr_Occurred()) SWIG_fail;
3858 }
3859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3860 return resultobj;
3861 fail:
3862 return NULL;
3863 }
3864
3865
3866 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3867 PyObject *resultobj;
3868 wxIconLocation *arg1 = 0 ;
3869 wxIcon *result;
3870 PyObject * obj0 = 0 ;
3871 char *kwnames[] = {
3872 (char *) "loc", NULL
3873 };
3874
3875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3877 SWIG_POINTER_EXCEPTION | 0)) == -1)
3878 SWIG_fail;
3879 if (arg1 == NULL) {
3880 PyErr_SetString(PyExc_TypeError,"null reference");
3881 SWIG_fail;
3882 }
3883 {
3884 PyThreadState* __tstate = wxPyBeginAllowThreads();
3885 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3886
3887 wxPyEndAllowThreads(__tstate);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 }
3890 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3891 return resultobj;
3892 fail:
3893 return NULL;
3894 }
3895
3896
3897 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3898 PyObject *resultobj;
3899 wxBitmap *arg1 = 0 ;
3900 wxIcon *result;
3901 PyObject * obj0 = 0 ;
3902 char *kwnames[] = {
3903 (char *) "bmp", NULL
3904 };
3905
3906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3908 SWIG_POINTER_EXCEPTION | 0)) == -1)
3909 SWIG_fail;
3910 if (arg1 == NULL) {
3911 PyErr_SetString(PyExc_TypeError,"null reference");
3912 SWIG_fail;
3913 }
3914 {
3915 PyThreadState* __tstate = wxPyBeginAllowThreads();
3916 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3917
3918 wxPyEndAllowThreads(__tstate);
3919 if (PyErr_Occurred()) SWIG_fail;
3920 }
3921 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3922 return resultobj;
3923 fail:
3924 return NULL;
3925 }
3926
3927
3928 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3929 PyObject *resultobj;
3930 PyObject *arg1 = (PyObject *) 0 ;
3931 wxIcon *result;
3932 PyObject * obj0 = 0 ;
3933 char *kwnames[] = {
3934 (char *) "listOfStrings", NULL
3935 };
3936
3937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3938 arg1 = obj0;
3939 {
3940 PyThreadState* __tstate = wxPyBeginAllowThreads();
3941 result = (wxIcon *)new_wxIcon(arg1);
3942
3943 wxPyEndAllowThreads(__tstate);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
3946 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3947 return resultobj;
3948 fail:
3949 return NULL;
3950 }
3951
3952
3953 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3954 PyObject *resultobj;
3955 wxIcon *arg1 = (wxIcon *) 0 ;
3956 wxString *arg2 = 0 ;
3957 int arg3 ;
3958 bool result;
3959 bool temp2 = False ;
3960 PyObject * obj0 = 0 ;
3961 PyObject * obj1 = 0 ;
3962 PyObject * obj2 = 0 ;
3963 char *kwnames[] = {
3964 (char *) "self",(char *) "name",(char *) "type", NULL
3965 };
3966
3967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3970 {
3971 arg2 = wxString_in_helper(obj1);
3972 if (arg2 == NULL) SWIG_fail;
3973 temp2 = True;
3974 }
3975 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3976 if (PyErr_Occurred()) SWIG_fail;
3977 {
3978 PyThreadState* __tstate = wxPyBeginAllowThreads();
3979 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3980
3981 wxPyEndAllowThreads(__tstate);
3982 if (PyErr_Occurred()) SWIG_fail;
3983 }
3984 {
3985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3986 }
3987 {
3988 if (temp2)
3989 delete arg2;
3990 }
3991 return resultobj;
3992 fail:
3993 {
3994 if (temp2)
3995 delete arg2;
3996 }
3997 return NULL;
3998 }
3999
4000
4001 static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4002 PyObject *resultobj;
4003 wxIcon *arg1 = (wxIcon *) 0 ;
4004 long result;
4005 PyObject * obj0 = 0 ;
4006 char *kwnames[] = {
4007 (char *) "self", NULL
4008 };
4009
4010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
4011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4013 {
4014 PyThreadState* __tstate = wxPyBeginAllowThreads();
4015 result = (long)(arg1)->GetHandle();
4016
4017 wxPyEndAllowThreads(__tstate);
4018 if (PyErr_Occurred()) SWIG_fail;
4019 }
4020 resultobj = SWIG_FromLong((long)result);
4021 return resultobj;
4022 fail:
4023 return NULL;
4024 }
4025
4026
4027 static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4028 PyObject *resultobj;
4029 wxIcon *arg1 = (wxIcon *) 0 ;
4030 long arg2 ;
4031 PyObject * obj0 = 0 ;
4032 PyObject * obj1 = 0 ;
4033 char *kwnames[] = {
4034 (char *) "self",(char *) "handle", NULL
4035 };
4036
4037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4040 arg2 = (long) SWIG_AsLong(obj1);
4041 if (PyErr_Occurred()) SWIG_fail;
4042 {
4043 PyThreadState* __tstate = wxPyBeginAllowThreads();
4044 wxIcon_SetHandle(arg1,arg2);
4045
4046 wxPyEndAllowThreads(__tstate);
4047 if (PyErr_Occurred()) SWIG_fail;
4048 }
4049 Py_INCREF(Py_None); resultobj = Py_None;
4050 return resultobj;
4051 fail:
4052 return NULL;
4053 }
4054
4055
4056 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4057 PyObject *resultobj;
4058 wxIcon *arg1 = (wxIcon *) 0 ;
4059 bool result;
4060 PyObject * obj0 = 0 ;
4061 char *kwnames[] = {
4062 (char *) "self", NULL
4063 };
4064
4065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
4066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4068 {
4069 PyThreadState* __tstate = wxPyBeginAllowThreads();
4070 result = (bool)(arg1)->Ok();
4071
4072 wxPyEndAllowThreads(__tstate);
4073 if (PyErr_Occurred()) SWIG_fail;
4074 }
4075 {
4076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4077 }
4078 return resultobj;
4079 fail:
4080 return NULL;
4081 }
4082
4083
4084 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4085 PyObject *resultobj;
4086 wxIcon *arg1 = (wxIcon *) 0 ;
4087 int result;
4088 PyObject * obj0 = 0 ;
4089 char *kwnames[] = {
4090 (char *) "self", NULL
4091 };
4092
4093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
4094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4096 {
4097 PyThreadState* __tstate = wxPyBeginAllowThreads();
4098 result = (int)(arg1)->GetWidth();
4099
4100 wxPyEndAllowThreads(__tstate);
4101 if (PyErr_Occurred()) SWIG_fail;
4102 }
4103 resultobj = SWIG_FromInt((int)result);
4104 return resultobj;
4105 fail:
4106 return NULL;
4107 }
4108
4109
4110 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4111 PyObject *resultobj;
4112 wxIcon *arg1 = (wxIcon *) 0 ;
4113 int result;
4114 PyObject * obj0 = 0 ;
4115 char *kwnames[] = {
4116 (char *) "self", NULL
4117 };
4118
4119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
4120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4122 {
4123 PyThreadState* __tstate = wxPyBeginAllowThreads();
4124 result = (int)(arg1)->GetHeight();
4125
4126 wxPyEndAllowThreads(__tstate);
4127 if (PyErr_Occurred()) SWIG_fail;
4128 }
4129 resultobj = SWIG_FromInt((int)result);
4130 return resultobj;
4131 fail:
4132 return NULL;
4133 }
4134
4135
4136 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4137 PyObject *resultobj;
4138 wxIcon *arg1 = (wxIcon *) 0 ;
4139 int result;
4140 PyObject * obj0 = 0 ;
4141 char *kwnames[] = {
4142 (char *) "self", NULL
4143 };
4144
4145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4148 {
4149 PyThreadState* __tstate = wxPyBeginAllowThreads();
4150 result = (int)(arg1)->GetDepth();
4151
4152 wxPyEndAllowThreads(__tstate);
4153 if (PyErr_Occurred()) SWIG_fail;
4154 }
4155 resultobj = SWIG_FromInt((int)result);
4156 return resultobj;
4157 fail:
4158 return NULL;
4159 }
4160
4161
4162 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4163 PyObject *resultobj;
4164 wxIcon *arg1 = (wxIcon *) 0 ;
4165 int arg2 ;
4166 PyObject * obj0 = 0 ;
4167 PyObject * obj1 = 0 ;
4168 char *kwnames[] = {
4169 (char *) "self",(char *) "w", NULL
4170 };
4171
4172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4175 arg2 = (int) SWIG_AsInt(obj1);
4176 if (PyErr_Occurred()) SWIG_fail;
4177 {
4178 PyThreadState* __tstate = wxPyBeginAllowThreads();
4179 (arg1)->SetWidth(arg2);
4180
4181 wxPyEndAllowThreads(__tstate);
4182 if (PyErr_Occurred()) SWIG_fail;
4183 }
4184 Py_INCREF(Py_None); resultobj = Py_None;
4185 return resultobj;
4186 fail:
4187 return NULL;
4188 }
4189
4190
4191 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4192 PyObject *resultobj;
4193 wxIcon *arg1 = (wxIcon *) 0 ;
4194 int arg2 ;
4195 PyObject * obj0 = 0 ;
4196 PyObject * obj1 = 0 ;
4197 char *kwnames[] = {
4198 (char *) "self",(char *) "h", NULL
4199 };
4200
4201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4204 arg2 = (int) SWIG_AsInt(obj1);
4205 if (PyErr_Occurred()) SWIG_fail;
4206 {
4207 PyThreadState* __tstate = wxPyBeginAllowThreads();
4208 (arg1)->SetHeight(arg2);
4209
4210 wxPyEndAllowThreads(__tstate);
4211 if (PyErr_Occurred()) SWIG_fail;
4212 }
4213 Py_INCREF(Py_None); resultobj = Py_None;
4214 return resultobj;
4215 fail:
4216 return NULL;
4217 }
4218
4219
4220 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4221 PyObject *resultobj;
4222 wxIcon *arg1 = (wxIcon *) 0 ;
4223 int arg2 ;
4224 PyObject * obj0 = 0 ;
4225 PyObject * obj1 = 0 ;
4226 char *kwnames[] = {
4227 (char *) "self",(char *) "d", NULL
4228 };
4229
4230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4233 arg2 = (int) SWIG_AsInt(obj1);
4234 if (PyErr_Occurred()) SWIG_fail;
4235 {
4236 PyThreadState* __tstate = wxPyBeginAllowThreads();
4237 (arg1)->SetDepth(arg2);
4238
4239 wxPyEndAllowThreads(__tstate);
4240 if (PyErr_Occurred()) SWIG_fail;
4241 }
4242 Py_INCREF(Py_None); resultobj = Py_None;
4243 return resultobj;
4244 fail:
4245 return NULL;
4246 }
4247
4248
4249 static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4250 PyObject *resultobj;
4251 wxIcon *arg1 = (wxIcon *) 0 ;
4252 wxSize *arg2 = 0 ;
4253 wxSize temp2 ;
4254 PyObject * obj0 = 0 ;
4255 PyObject * obj1 = 0 ;
4256 char *kwnames[] = {
4257 (char *) "self",(char *) "size", NULL
4258 };
4259
4260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
4261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4263 {
4264 arg2 = &temp2;
4265 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4266 }
4267 {
4268 PyThreadState* __tstate = wxPyBeginAllowThreads();
4269 (arg1)->SetSize((wxSize const &)*arg2);
4270
4271 wxPyEndAllowThreads(__tstate);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 }
4274 Py_INCREF(Py_None); resultobj = Py_None;
4275 return resultobj;
4276 fail:
4277 return NULL;
4278 }
4279
4280
4281 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4282 PyObject *resultobj;
4283 wxIcon *arg1 = (wxIcon *) 0 ;
4284 wxBitmap *arg2 = 0 ;
4285 PyObject * obj0 = 0 ;
4286 PyObject * obj1 = 0 ;
4287 char *kwnames[] = {
4288 (char *) "self",(char *) "bmp", NULL
4289 };
4290
4291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4294 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4295 SWIG_POINTER_EXCEPTION | 0)) == -1)
4296 SWIG_fail;
4297 if (arg2 == NULL) {
4298 PyErr_SetString(PyExc_TypeError,"null reference");
4299 SWIG_fail;
4300 }
4301 {
4302 PyThreadState* __tstate = wxPyBeginAllowThreads();
4303 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4304
4305 wxPyEndAllowThreads(__tstate);
4306 if (PyErr_Occurred()) SWIG_fail;
4307 }
4308 Py_INCREF(Py_None); resultobj = Py_None;
4309 return resultobj;
4310 fail:
4311 return NULL;
4312 }
4313
4314
4315 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4316 PyObject *obj;
4317 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4318 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4319 Py_INCREF(obj);
4320 return Py_BuildValue((char *)"");
4321 }
4322 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4323 PyObject *resultobj;
4324 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4325 int arg2 = (int) 0 ;
4326 wxIconLocation *result;
4327 bool temp1 = False ;
4328 PyObject * obj0 = 0 ;
4329 PyObject * obj1 = 0 ;
4330 char *kwnames[] = {
4331 (char *) "filename",(char *) "num", NULL
4332 };
4333
4334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4335 if (obj0) {
4336 {
4337 arg1 = wxString_in_helper(obj0);
4338 if (arg1 == NULL) SWIG_fail;
4339 temp1 = True;
4340 }
4341 }
4342 if (obj1) {
4343 arg2 = (int) SWIG_AsInt(obj1);
4344 if (PyErr_Occurred()) SWIG_fail;
4345 }
4346 {
4347 PyThreadState* __tstate = wxPyBeginAllowThreads();
4348 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4349
4350 wxPyEndAllowThreads(__tstate);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
4353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4354 {
4355 if (temp1)
4356 delete arg1;
4357 }
4358 return resultobj;
4359 fail:
4360 {
4361 if (temp1)
4362 delete arg1;
4363 }
4364 return NULL;
4365 }
4366
4367
4368 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4369 PyObject *resultobj;
4370 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4371 PyObject * obj0 = 0 ;
4372 char *kwnames[] = {
4373 (char *) "self", NULL
4374 };
4375
4376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4379 {
4380 PyThreadState* __tstate = wxPyBeginAllowThreads();
4381 delete arg1;
4382
4383 wxPyEndAllowThreads(__tstate);
4384 if (PyErr_Occurred()) SWIG_fail;
4385 }
4386 Py_INCREF(Py_None); resultobj = Py_None;
4387 return resultobj;
4388 fail:
4389 return NULL;
4390 }
4391
4392
4393 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4394 PyObject *resultobj;
4395 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4396 bool result;
4397 PyObject * obj0 = 0 ;
4398 char *kwnames[] = {
4399 (char *) "self", NULL
4400 };
4401
4402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4405 {
4406 PyThreadState* __tstate = wxPyBeginAllowThreads();
4407 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4408
4409 wxPyEndAllowThreads(__tstate);
4410 if (PyErr_Occurred()) SWIG_fail;
4411 }
4412 {
4413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4414 }
4415 return resultobj;
4416 fail:
4417 return NULL;
4418 }
4419
4420
4421 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4422 PyObject *resultobj;
4423 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4424 wxString *arg2 = 0 ;
4425 bool temp2 = False ;
4426 PyObject * obj0 = 0 ;
4427 PyObject * obj1 = 0 ;
4428 char *kwnames[] = {
4429 (char *) "self",(char *) "filename", NULL
4430 };
4431
4432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4435 {
4436 arg2 = wxString_in_helper(obj1);
4437 if (arg2 == NULL) SWIG_fail;
4438 temp2 = True;
4439 }
4440 {
4441 PyThreadState* __tstate = wxPyBeginAllowThreads();
4442 (arg1)->SetFileName((wxString const &)*arg2);
4443
4444 wxPyEndAllowThreads(__tstate);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 }
4447 Py_INCREF(Py_None); resultobj = Py_None;
4448 {
4449 if (temp2)
4450 delete arg2;
4451 }
4452 return resultobj;
4453 fail:
4454 {
4455 if (temp2)
4456 delete arg2;
4457 }
4458 return NULL;
4459 }
4460
4461
4462 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4463 PyObject *resultobj;
4464 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4465 wxString *result;
4466 PyObject * obj0 = 0 ;
4467 char *kwnames[] = {
4468 (char *) "self", NULL
4469 };
4470
4471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4474 {
4475 PyThreadState* __tstate = wxPyBeginAllowThreads();
4476 {
4477 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4478 result = (wxString *) &_result_ref;
4479 }
4480
4481 wxPyEndAllowThreads(__tstate);
4482 if (PyErr_Occurred()) SWIG_fail;
4483 }
4484 {
4485 #if wxUSE_UNICODE
4486 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4487 #else
4488 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4489 #endif
4490 }
4491 return resultobj;
4492 fail:
4493 return NULL;
4494 }
4495
4496
4497 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4498 PyObject *resultobj;
4499 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4500 int arg2 ;
4501 PyObject * obj0 = 0 ;
4502 PyObject * obj1 = 0 ;
4503 char *kwnames[] = {
4504 (char *) "self",(char *) "num", NULL
4505 };
4506
4507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4510 arg2 = (int) SWIG_AsInt(obj1);
4511 if (PyErr_Occurred()) SWIG_fail;
4512 {
4513 PyThreadState* __tstate = wxPyBeginAllowThreads();
4514 wxIconLocation_SetIndex(arg1,arg2);
4515
4516 wxPyEndAllowThreads(__tstate);
4517 if (PyErr_Occurred()) SWIG_fail;
4518 }
4519 Py_INCREF(Py_None); resultobj = Py_None;
4520 return resultobj;
4521 fail:
4522 return NULL;
4523 }
4524
4525
4526 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4527 PyObject *resultobj;
4528 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4529 int result;
4530 PyObject * obj0 = 0 ;
4531 char *kwnames[] = {
4532 (char *) "self", NULL
4533 };
4534
4535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4538 {
4539 PyThreadState* __tstate = wxPyBeginAllowThreads();
4540 result = (int)wxIconLocation_GetIndex(arg1);
4541
4542 wxPyEndAllowThreads(__tstate);
4543 if (PyErr_Occurred()) SWIG_fail;
4544 }
4545 resultobj = SWIG_FromInt((int)result);
4546 return resultobj;
4547 fail:
4548 return NULL;
4549 }
4550
4551
4552 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4553 PyObject *obj;
4554 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4555 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4556 Py_INCREF(obj);
4557 return Py_BuildValue((char *)"");
4558 }
4559 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4560 PyObject *resultobj;
4561 wxIconBundle *result;
4562 char *kwnames[] = {
4563 NULL
4564 };
4565
4566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4567 {
4568 PyThreadState* __tstate = wxPyBeginAllowThreads();
4569 result = (wxIconBundle *)new wxIconBundle();
4570
4571 wxPyEndAllowThreads(__tstate);
4572 if (PyErr_Occurred()) SWIG_fail;
4573 }
4574 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4575 return resultobj;
4576 fail:
4577 return NULL;
4578 }
4579
4580
4581 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4582 PyObject *resultobj;
4583 wxString *arg1 = 0 ;
4584 long arg2 ;
4585 wxIconBundle *result;
4586 bool temp1 = False ;
4587 PyObject * obj0 = 0 ;
4588 PyObject * obj1 = 0 ;
4589 char *kwnames[] = {
4590 (char *) "file",(char *) "type", NULL
4591 };
4592
4593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4594 {
4595 arg1 = wxString_in_helper(obj0);
4596 if (arg1 == NULL) SWIG_fail;
4597 temp1 = True;
4598 }
4599 arg2 = (long) SWIG_AsLong(obj1);
4600 if (PyErr_Occurred()) SWIG_fail;
4601 {
4602 PyThreadState* __tstate = wxPyBeginAllowThreads();
4603 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4604
4605 wxPyEndAllowThreads(__tstate);
4606 if (PyErr_Occurred()) SWIG_fail;
4607 }
4608 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4609 {
4610 if (temp1)
4611 delete arg1;
4612 }
4613 return resultobj;
4614 fail:
4615 {
4616 if (temp1)
4617 delete arg1;
4618 }
4619 return NULL;
4620 }
4621
4622
4623 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4624 PyObject *resultobj;
4625 wxIcon *arg1 = 0 ;
4626 wxIconBundle *result;
4627 PyObject * obj0 = 0 ;
4628 char *kwnames[] = {
4629 (char *) "icon", NULL
4630 };
4631
4632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4634 SWIG_POINTER_EXCEPTION | 0)) == -1)
4635 SWIG_fail;
4636 if (arg1 == NULL) {
4637 PyErr_SetString(PyExc_TypeError,"null reference");
4638 SWIG_fail;
4639 }
4640 {
4641 PyThreadState* __tstate = wxPyBeginAllowThreads();
4642 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4643
4644 wxPyEndAllowThreads(__tstate);
4645 if (PyErr_Occurred()) SWIG_fail;
4646 }
4647 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4648 return resultobj;
4649 fail:
4650 return NULL;
4651 }
4652
4653
4654 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4655 PyObject *resultobj;
4656 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4657 PyObject * obj0 = 0 ;
4658 char *kwnames[] = {
4659 (char *) "self", NULL
4660 };
4661
4662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4665 {
4666 PyThreadState* __tstate = wxPyBeginAllowThreads();
4667 delete arg1;
4668
4669 wxPyEndAllowThreads(__tstate);
4670 if (PyErr_Occurred()) SWIG_fail;
4671 }
4672 Py_INCREF(Py_None); resultobj = Py_None;
4673 return resultobj;
4674 fail:
4675 return NULL;
4676 }
4677
4678
4679 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4680 PyObject *resultobj;
4681 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4682 wxIcon *arg2 = 0 ;
4683 PyObject * obj0 = 0 ;
4684 PyObject * obj1 = 0 ;
4685 char *kwnames[] = {
4686 (char *) "self",(char *) "icon", NULL
4687 };
4688
4689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4692 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4693 SWIG_POINTER_EXCEPTION | 0)) == -1)
4694 SWIG_fail;
4695 if (arg2 == NULL) {
4696 PyErr_SetString(PyExc_TypeError,"null reference");
4697 SWIG_fail;
4698 }
4699 {
4700 PyThreadState* __tstate = wxPyBeginAllowThreads();
4701 (arg1)->AddIcon((wxIcon const &)*arg2);
4702
4703 wxPyEndAllowThreads(__tstate);
4704 if (PyErr_Occurred()) SWIG_fail;
4705 }
4706 Py_INCREF(Py_None); resultobj = Py_None;
4707 return resultobj;
4708 fail:
4709 return NULL;
4710 }
4711
4712
4713 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4714 PyObject *resultobj;
4715 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4716 wxString *arg2 = 0 ;
4717 long arg3 ;
4718 bool temp2 = False ;
4719 PyObject * obj0 = 0 ;
4720 PyObject * obj1 = 0 ;
4721 PyObject * obj2 = 0 ;
4722 char *kwnames[] = {
4723 (char *) "self",(char *) "file",(char *) "type", NULL
4724 };
4725
4726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4729 {
4730 arg2 = wxString_in_helper(obj1);
4731 if (arg2 == NULL) SWIG_fail;
4732 temp2 = True;
4733 }
4734 arg3 = (long) SWIG_AsLong(obj2);
4735 if (PyErr_Occurred()) SWIG_fail;
4736 {
4737 PyThreadState* __tstate = wxPyBeginAllowThreads();
4738 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4739
4740 wxPyEndAllowThreads(__tstate);
4741 if (PyErr_Occurred()) SWIG_fail;
4742 }
4743 Py_INCREF(Py_None); resultobj = Py_None;
4744 {
4745 if (temp2)
4746 delete arg2;
4747 }
4748 return resultobj;
4749 fail:
4750 {
4751 if (temp2)
4752 delete arg2;
4753 }
4754 return NULL;
4755 }
4756
4757
4758 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4759 PyObject *resultobj;
4760 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4761 wxSize *arg2 = 0 ;
4762 wxIcon *result;
4763 wxSize temp2 ;
4764 PyObject * obj0 = 0 ;
4765 PyObject * obj1 = 0 ;
4766 char *kwnames[] = {
4767 (char *) "self",(char *) "size", NULL
4768 };
4769
4770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4773 {
4774 arg2 = &temp2;
4775 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4776 }
4777 {
4778 PyThreadState* __tstate = wxPyBeginAllowThreads();
4779 {
4780 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4781 result = (wxIcon *) &_result_ref;
4782 }
4783
4784 wxPyEndAllowThreads(__tstate);
4785 if (PyErr_Occurred()) SWIG_fail;
4786 }
4787 {
4788 wxIcon* resultptr = new wxIcon(*result);
4789 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4790 }
4791 return resultobj;
4792 fail:
4793 return NULL;
4794 }
4795
4796
4797 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4798 PyObject *obj;
4799 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4800 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4801 Py_INCREF(obj);
4802 return Py_BuildValue((char *)"");
4803 }
4804 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4805 PyObject *resultobj;
4806 wxString *arg1 = (wxString *) 0 ;
4807 long arg2 ;
4808 int arg3 = (int) 0 ;
4809 int arg4 = (int) 0 ;
4810 wxCursor *result;
4811 bool temp1 = False ;
4812 PyObject * obj0 = 0 ;
4813 PyObject * obj1 = 0 ;
4814 PyObject * obj2 = 0 ;
4815 PyObject * obj3 = 0 ;
4816 char *kwnames[] = {
4817 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4818 };
4819
4820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4821 {
4822 arg1 = wxString_in_helper(obj0);
4823 if (arg1 == NULL) SWIG_fail;
4824 temp1 = True;
4825 }
4826 arg2 = (long) SWIG_AsLong(obj1);
4827 if (PyErr_Occurred()) SWIG_fail;
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 = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4839
4840 wxPyEndAllowThreads(__tstate);
4841 if (PyErr_Occurred()) SWIG_fail;
4842 }
4843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4844 {
4845 if (temp1)
4846 delete arg1;
4847 }
4848 return resultobj;
4849 fail:
4850 {
4851 if (temp1)
4852 delete arg1;
4853 }
4854 return NULL;
4855 }
4856
4857
4858 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4859 PyObject *resultobj;
4860 wxCursor *arg1 = (wxCursor *) 0 ;
4861 PyObject * obj0 = 0 ;
4862 char *kwnames[] = {
4863 (char *) "self", NULL
4864 };
4865
4866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4869 {
4870 PyThreadState* __tstate = wxPyBeginAllowThreads();
4871 delete arg1;
4872
4873 wxPyEndAllowThreads(__tstate);
4874 if (PyErr_Occurred()) SWIG_fail;
4875 }
4876 Py_INCREF(Py_None); resultobj = Py_None;
4877 return resultobj;
4878 fail:
4879 return NULL;
4880 }
4881
4882
4883 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4884 PyObject *resultobj;
4885 int arg1 ;
4886 wxCursor *result;
4887 PyObject * obj0 = 0 ;
4888 char *kwnames[] = {
4889 (char *) "id", NULL
4890 };
4891
4892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4893 arg1 = (int) SWIG_AsInt(obj0);
4894 if (PyErr_Occurred()) SWIG_fail;
4895 {
4896 PyThreadState* __tstate = wxPyBeginAllowThreads();
4897 result = (wxCursor *)new wxCursor(arg1);
4898
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
4902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4903 return resultobj;
4904 fail:
4905 return NULL;
4906 }
4907
4908
4909 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4910 PyObject *resultobj;
4911 wxImage *arg1 = 0 ;
4912 wxCursor *result;
4913 PyObject * obj0 = 0 ;
4914 char *kwnames[] = {
4915 (char *) "image", NULL
4916 };
4917
4918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4920 SWIG_POINTER_EXCEPTION | 0)) == -1)
4921 SWIG_fail;
4922 if (arg1 == NULL) {
4923 PyErr_SetString(PyExc_TypeError,"null reference");
4924 SWIG_fail;
4925 }
4926 {
4927 PyThreadState* __tstate = wxPyBeginAllowThreads();
4928 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4929
4930 wxPyEndAllowThreads(__tstate);
4931 if (PyErr_Occurred()) SWIG_fail;
4932 }
4933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4934 return resultobj;
4935 fail:
4936 return NULL;
4937 }
4938
4939
4940 static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4941 PyObject *resultobj;
4942 wxCursor *arg1 = (wxCursor *) 0 ;
4943 long result;
4944 PyObject * obj0 = 0 ;
4945 char *kwnames[] = {
4946 (char *) "self", NULL
4947 };
4948
4949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
4950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 result = (long)(arg1)->GetHandle();
4955
4956 wxPyEndAllowThreads(__tstate);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 }
4959 resultobj = SWIG_FromLong((long)result);
4960 return resultobj;
4961 fail:
4962 return NULL;
4963 }
4964
4965
4966 static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4967 PyObject *resultobj;
4968 wxCursor *arg1 = (wxCursor *) 0 ;
4969 long arg2 ;
4970 PyObject * obj0 = 0 ;
4971 PyObject * obj1 = 0 ;
4972 char *kwnames[] = {
4973 (char *) "self",(char *) "handle", NULL
4974 };
4975
4976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4979 arg2 = (long) SWIG_AsLong(obj1);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 {
4982 PyThreadState* __tstate = wxPyBeginAllowThreads();
4983 wxCursor_SetHandle(arg1,arg2);
4984
4985 wxPyEndAllowThreads(__tstate);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 }
4988 Py_INCREF(Py_None); resultobj = Py_None;
4989 return resultobj;
4990 fail:
4991 return NULL;
4992 }
4993
4994
4995 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4996 PyObject *resultobj;
4997 wxCursor *arg1 = (wxCursor *) 0 ;
4998 bool result;
4999 PyObject * obj0 = 0 ;
5000 char *kwnames[] = {
5001 (char *) "self", NULL
5002 };
5003
5004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
5005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5007 {
5008 PyThreadState* __tstate = wxPyBeginAllowThreads();
5009 result = (bool)(arg1)->Ok();
5010
5011 wxPyEndAllowThreads(__tstate);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 }
5014 {
5015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5016 }
5017 return resultobj;
5018 fail:
5019 return NULL;
5020 }
5021
5022
5023 static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5024 PyObject *resultobj;
5025 wxCursor *arg1 = (wxCursor *) 0 ;
5026 int result;
5027 PyObject * obj0 = 0 ;
5028 char *kwnames[] = {
5029 (char *) "self", NULL
5030 };
5031
5032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
5033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5035 {
5036 PyThreadState* __tstate = wxPyBeginAllowThreads();
5037 result = (int)(arg1)->GetWidth();
5038
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
5042 resultobj = SWIG_FromInt((int)result);
5043 return resultobj;
5044 fail:
5045 return NULL;
5046 }
5047
5048
5049 static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5050 PyObject *resultobj;
5051 wxCursor *arg1 = (wxCursor *) 0 ;
5052 int result;
5053 PyObject * obj0 = 0 ;
5054 char *kwnames[] = {
5055 (char *) "self", NULL
5056 };
5057
5058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
5059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5061 {
5062 PyThreadState* __tstate = wxPyBeginAllowThreads();
5063 result = (int)(arg1)->GetHeight();
5064
5065 wxPyEndAllowThreads(__tstate);
5066 if (PyErr_Occurred()) SWIG_fail;
5067 }
5068 resultobj = SWIG_FromInt((int)result);
5069 return resultobj;
5070 fail:
5071 return NULL;
5072 }
5073
5074
5075 static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5076 PyObject *resultobj;
5077 wxCursor *arg1 = (wxCursor *) 0 ;
5078 int result;
5079 PyObject * obj0 = 0 ;
5080 char *kwnames[] = {
5081 (char *) "self", NULL
5082 };
5083
5084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
5085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5087 {
5088 PyThreadState* __tstate = wxPyBeginAllowThreads();
5089 result = (int)(arg1)->GetDepth();
5090
5091 wxPyEndAllowThreads(__tstate);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 }
5094 resultobj = SWIG_FromInt((int)result);
5095 return resultobj;
5096 fail:
5097 return NULL;
5098 }
5099
5100
5101 static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5102 PyObject *resultobj;
5103 wxCursor *arg1 = (wxCursor *) 0 ;
5104 int arg2 ;
5105 PyObject * obj0 = 0 ;
5106 PyObject * obj1 = 0 ;
5107 char *kwnames[] = {
5108 (char *) "self",(char *) "w", NULL
5109 };
5110
5111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5114 arg2 = (int) SWIG_AsInt(obj1);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 {
5117 PyThreadState* __tstate = wxPyBeginAllowThreads();
5118 (arg1)->SetWidth(arg2);
5119
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 Py_INCREF(Py_None); resultobj = Py_None;
5124 return resultobj;
5125 fail:
5126 return NULL;
5127 }
5128
5129
5130 static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5131 PyObject *resultobj;
5132 wxCursor *arg1 = (wxCursor *) 0 ;
5133 int arg2 ;
5134 PyObject * obj0 = 0 ;
5135 PyObject * obj1 = 0 ;
5136 char *kwnames[] = {
5137 (char *) "self",(char *) "h", NULL
5138 };
5139
5140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5143 arg2 = (int) SWIG_AsInt(obj1);
5144 if (PyErr_Occurred()) SWIG_fail;
5145 {
5146 PyThreadState* __tstate = wxPyBeginAllowThreads();
5147 (arg1)->SetHeight(arg2);
5148
5149 wxPyEndAllowThreads(__tstate);
5150 if (PyErr_Occurred()) SWIG_fail;
5151 }
5152 Py_INCREF(Py_None); resultobj = Py_None;
5153 return resultobj;
5154 fail:
5155 return NULL;
5156 }
5157
5158
5159 static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5160 PyObject *resultobj;
5161 wxCursor *arg1 = (wxCursor *) 0 ;
5162 int arg2 ;
5163 PyObject * obj0 = 0 ;
5164 PyObject * obj1 = 0 ;
5165 char *kwnames[] = {
5166 (char *) "self",(char *) "d", NULL
5167 };
5168
5169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5172 arg2 = (int) SWIG_AsInt(obj1);
5173 if (PyErr_Occurred()) SWIG_fail;
5174 {
5175 PyThreadState* __tstate = wxPyBeginAllowThreads();
5176 (arg1)->SetDepth(arg2);
5177
5178 wxPyEndAllowThreads(__tstate);
5179 if (PyErr_Occurred()) SWIG_fail;
5180 }
5181 Py_INCREF(Py_None); resultobj = Py_None;
5182 return resultobj;
5183 fail:
5184 return NULL;
5185 }
5186
5187
5188 static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5189 PyObject *resultobj;
5190 wxCursor *arg1 = (wxCursor *) 0 ;
5191 wxSize *arg2 = 0 ;
5192 wxSize temp2 ;
5193 PyObject * obj0 = 0 ;
5194 PyObject * obj1 = 0 ;
5195 char *kwnames[] = {
5196 (char *) "self",(char *) "size", NULL
5197 };
5198
5199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
5200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5202 {
5203 arg2 = &temp2;
5204 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5205 }
5206 {
5207 PyThreadState* __tstate = wxPyBeginAllowThreads();
5208 (arg1)->SetSize((wxSize const &)*arg2);
5209
5210 wxPyEndAllowThreads(__tstate);
5211 if (PyErr_Occurred()) SWIG_fail;
5212 }
5213 Py_INCREF(Py_None); resultobj = Py_None;
5214 return resultobj;
5215 fail:
5216 return NULL;
5217 }
5218
5219
5220 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
5221 PyObject *obj;
5222 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5223 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
5224 Py_INCREF(obj);
5225 return Py_BuildValue((char *)"");
5226 }
5227 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5228 PyObject *resultobj;
5229 int arg1 = (int) 0 ;
5230 int arg2 = (int) 0 ;
5231 int arg3 = (int) 0 ;
5232 int arg4 = (int) 0 ;
5233 wxRegion *result;
5234 PyObject * obj0 = 0 ;
5235 PyObject * obj1 = 0 ;
5236 PyObject * obj2 = 0 ;
5237 PyObject * obj3 = 0 ;
5238 char *kwnames[] = {
5239 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5240 };
5241
5242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5243 if (obj0) {
5244 arg1 = (int) SWIG_AsInt(obj0);
5245 if (PyErr_Occurred()) SWIG_fail;
5246 }
5247 if (obj1) {
5248 arg2 = (int) SWIG_AsInt(obj1);
5249 if (PyErr_Occurred()) SWIG_fail;
5250 }
5251 if (obj2) {
5252 arg3 = (int) SWIG_AsInt(obj2);
5253 if (PyErr_Occurred()) SWIG_fail;
5254 }
5255 if (obj3) {
5256 arg4 = (int) SWIG_AsInt(obj3);
5257 if (PyErr_Occurred()) SWIG_fail;
5258 }
5259 {
5260 PyThreadState* __tstate = wxPyBeginAllowThreads();
5261 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
5262
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
5266 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5267 return resultobj;
5268 fail:
5269 return NULL;
5270 }
5271
5272
5273 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5274 PyObject *resultobj;
5275 wxBitmap *arg1 = 0 ;
5276 wxColour const &arg2_defvalue = wxNullColour ;
5277 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5278 int arg3 = (int) 0 ;
5279 wxRegion *result;
5280 wxColour temp2 ;
5281 PyObject * obj0 = 0 ;
5282 PyObject * obj1 = 0 ;
5283 PyObject * obj2 = 0 ;
5284 char *kwnames[] = {
5285 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5286 };
5287
5288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
5289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5290 SWIG_POINTER_EXCEPTION | 0)) == -1)
5291 SWIG_fail;
5292 if (arg1 == NULL) {
5293 PyErr_SetString(PyExc_TypeError,"null reference");
5294 SWIG_fail;
5295 }
5296 if (obj1) {
5297 {
5298 arg2 = &temp2;
5299 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5300 }
5301 }
5302 if (obj2) {
5303 arg3 = (int) SWIG_AsInt(obj2);
5304 if (PyErr_Occurred()) SWIG_fail;
5305 }
5306 {
5307 PyThreadState* __tstate = wxPyBeginAllowThreads();
5308 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
5309
5310 wxPyEndAllowThreads(__tstate);
5311 if (PyErr_Occurred()) SWIG_fail;
5312 }
5313 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5314 return resultobj;
5315 fail:
5316 return NULL;
5317 }
5318
5319
5320 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
5321 PyObject *resultobj;
5322 int arg1 ;
5323 wxPoint *arg2 = (wxPoint *) 0 ;
5324 int arg3 = (int) wxWINDING_RULE ;
5325 wxRegion *result;
5326 PyObject * obj0 = 0 ;
5327 PyObject * obj1 = 0 ;
5328 char *kwnames[] = {
5329 (char *) "points",(char *) "fillStyle", NULL
5330 };
5331
5332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
5333 {
5334 arg2 = wxPoint_LIST_helper(obj0, &arg1);
5335 if (arg2 == NULL) SWIG_fail;
5336 }
5337 if (obj1) {
5338 arg3 = (int) SWIG_AsInt(obj1);
5339 if (PyErr_Occurred()) SWIG_fail;
5340 }
5341 {
5342 PyThreadState* __tstate = wxPyBeginAllowThreads();
5343 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
5344
5345 wxPyEndAllowThreads(__tstate);
5346 if (PyErr_Occurred()) SWIG_fail;
5347 }
5348 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5349 {
5350 if (arg2) delete [] arg2;
5351 }
5352 return resultobj;
5353 fail:
5354 {
5355 if (arg2) delete [] arg2;
5356 }
5357 return NULL;
5358 }
5359
5360
5361 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5362 PyObject *resultobj;
5363 wxRegion *arg1 = (wxRegion *) 0 ;
5364 PyObject * obj0 = 0 ;
5365 char *kwnames[] = {
5366 (char *) "self", NULL
5367 };
5368
5369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5372 {
5373 PyThreadState* __tstate = wxPyBeginAllowThreads();
5374 delete arg1;
5375
5376 wxPyEndAllowThreads(__tstate);
5377 if (PyErr_Occurred()) SWIG_fail;
5378 }
5379 Py_INCREF(Py_None); resultobj = Py_None;
5380 return resultobj;
5381 fail:
5382 return NULL;
5383 }
5384
5385
5386 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5387 PyObject *resultobj;
5388 wxRegion *arg1 = (wxRegion *) 0 ;
5389 PyObject * obj0 = 0 ;
5390 char *kwnames[] = {
5391 (char *) "self", NULL
5392 };
5393
5394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5397 {
5398 PyThreadState* __tstate = wxPyBeginAllowThreads();
5399 (arg1)->Clear();
5400
5401 wxPyEndAllowThreads(__tstate);
5402 if (PyErr_Occurred()) SWIG_fail;
5403 }
5404 Py_INCREF(Py_None); resultobj = Py_None;
5405 return resultobj;
5406 fail:
5407 return NULL;
5408 }
5409
5410
5411 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5412 PyObject *resultobj;
5413 wxRegion *arg1 = (wxRegion *) 0 ;
5414 int arg2 ;
5415 int arg3 ;
5416 bool result;
5417 PyObject * obj0 = 0 ;
5418 PyObject * obj1 = 0 ;
5419 PyObject * obj2 = 0 ;
5420 char *kwnames[] = {
5421 (char *) "self",(char *) "x",(char *) "y", NULL
5422 };
5423
5424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5427 arg2 = (int) SWIG_AsInt(obj1);
5428 if (PyErr_Occurred()) SWIG_fail;
5429 arg3 = (int) SWIG_AsInt(obj2);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 {
5432 PyThreadState* __tstate = wxPyBeginAllowThreads();
5433 result = (bool)(arg1)->Offset(arg2,arg3);
5434
5435 wxPyEndAllowThreads(__tstate);
5436 if (PyErr_Occurred()) SWIG_fail;
5437 }
5438 {
5439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5440 }
5441 return resultobj;
5442 fail:
5443 return NULL;
5444 }
5445
5446
5447 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5448 PyObject *resultobj;
5449 wxRegion *arg1 = (wxRegion *) 0 ;
5450 int arg2 ;
5451 int arg3 ;
5452 int result;
5453 PyObject * obj0 = 0 ;
5454 PyObject * obj1 = 0 ;
5455 PyObject * obj2 = 0 ;
5456 char *kwnames[] = {
5457 (char *) "self",(char *) "x",(char *) "y", NULL
5458 };
5459
5460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5463 arg2 = (int) SWIG_AsInt(obj1);
5464 if (PyErr_Occurred()) SWIG_fail;
5465 arg3 = (int) SWIG_AsInt(obj2);
5466 if (PyErr_Occurred()) SWIG_fail;
5467 {
5468 PyThreadState* __tstate = wxPyBeginAllowThreads();
5469 result = (int)(arg1)->Contains(arg2,arg3);
5470
5471 wxPyEndAllowThreads(__tstate);
5472 if (PyErr_Occurred()) SWIG_fail;
5473 }
5474 resultobj = SWIG_FromInt((int)result);
5475 return resultobj;
5476 fail:
5477 return NULL;
5478 }
5479
5480
5481 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5482 PyObject *resultobj;
5483 wxRegion *arg1 = (wxRegion *) 0 ;
5484 wxPoint *arg2 = 0 ;
5485 int result;
5486 wxPoint temp2 ;
5487 PyObject * obj0 = 0 ;
5488 PyObject * obj1 = 0 ;
5489 char *kwnames[] = {
5490 (char *) "self",(char *) "pt", NULL
5491 };
5492
5493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5496 {
5497 arg2 = &temp2;
5498 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5499 }
5500 {
5501 PyThreadState* __tstate = wxPyBeginAllowThreads();
5502 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5503
5504 wxPyEndAllowThreads(__tstate);
5505 if (PyErr_Occurred()) SWIG_fail;
5506 }
5507 resultobj = SWIG_FromInt((int)result);
5508 return resultobj;
5509 fail:
5510 return NULL;
5511 }
5512
5513
5514 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5515 PyObject *resultobj;
5516 wxRegion *arg1 = (wxRegion *) 0 ;
5517 wxRect *arg2 = 0 ;
5518 int result;
5519 wxRect temp2 ;
5520 PyObject * obj0 = 0 ;
5521 PyObject * obj1 = 0 ;
5522 char *kwnames[] = {
5523 (char *) "self",(char *) "rect", NULL
5524 };
5525
5526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5529 {
5530 arg2 = &temp2;
5531 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5532 }
5533 {
5534 PyThreadState* __tstate = wxPyBeginAllowThreads();
5535 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5536
5537 wxPyEndAllowThreads(__tstate);
5538 if (PyErr_Occurred()) SWIG_fail;
5539 }
5540 resultobj = SWIG_FromInt((int)result);
5541 return resultobj;
5542 fail:
5543 return NULL;
5544 }
5545
5546
5547 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5548 PyObject *resultobj;
5549 wxRegion *arg1 = (wxRegion *) 0 ;
5550 int arg2 ;
5551 int arg3 ;
5552 int arg4 ;
5553 int arg5 ;
5554 int result;
5555 PyObject * obj0 = 0 ;
5556 PyObject * obj1 = 0 ;
5557 PyObject * obj2 = 0 ;
5558 PyObject * obj3 = 0 ;
5559 PyObject * obj4 = 0 ;
5560 char *kwnames[] = {
5561 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5562 };
5563
5564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5567 arg2 = (int) SWIG_AsInt(obj1);
5568 if (PyErr_Occurred()) SWIG_fail;
5569 arg3 = (int) SWIG_AsInt(obj2);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 arg4 = (int) SWIG_AsInt(obj3);
5572 if (PyErr_Occurred()) SWIG_fail;
5573 arg5 = (int) SWIG_AsInt(obj4);
5574 if (PyErr_Occurred()) SWIG_fail;
5575 {
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5578
5579 wxPyEndAllowThreads(__tstate);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 }
5582 resultobj = SWIG_FromInt((int)result);
5583 return resultobj;
5584 fail:
5585 return NULL;
5586 }
5587
5588
5589 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5590 PyObject *resultobj;
5591 wxRegion *arg1 = (wxRegion *) 0 ;
5592 wxRect result;
5593 PyObject * obj0 = 0 ;
5594 char *kwnames[] = {
5595 (char *) "self", NULL
5596 };
5597
5598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5601 {
5602 PyThreadState* __tstate = wxPyBeginAllowThreads();
5603 result = (arg1)->GetBox();
5604
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 {
5609 wxRect * resultptr;
5610 resultptr = new wxRect((wxRect &) result);
5611 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5612 }
5613 return resultobj;
5614 fail:
5615 return NULL;
5616 }
5617
5618
5619 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5620 PyObject *resultobj;
5621 wxRegion *arg1 = (wxRegion *) 0 ;
5622 int arg2 ;
5623 int arg3 ;
5624 int arg4 ;
5625 int arg5 ;
5626 bool result;
5627 PyObject * obj0 = 0 ;
5628 PyObject * obj1 = 0 ;
5629 PyObject * obj2 = 0 ;
5630 PyObject * obj3 = 0 ;
5631 PyObject * obj4 = 0 ;
5632 char *kwnames[] = {
5633 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5634 };
5635
5636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5639 arg2 = (int) SWIG_AsInt(obj1);
5640 if (PyErr_Occurred()) SWIG_fail;
5641 arg3 = (int) SWIG_AsInt(obj2);
5642 if (PyErr_Occurred()) SWIG_fail;
5643 arg4 = (int) SWIG_AsInt(obj3);
5644 if (PyErr_Occurred()) SWIG_fail;
5645 arg5 = (int) SWIG_AsInt(obj4);
5646 if (PyErr_Occurred()) SWIG_fail;
5647 {
5648 PyThreadState* __tstate = wxPyBeginAllowThreads();
5649 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5650
5651 wxPyEndAllowThreads(__tstate);
5652 if (PyErr_Occurred()) SWIG_fail;
5653 }
5654 {
5655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5656 }
5657 return resultobj;
5658 fail:
5659 return NULL;
5660 }
5661
5662
5663 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5664 PyObject *resultobj;
5665 wxRegion *arg1 = (wxRegion *) 0 ;
5666 wxRect *arg2 = 0 ;
5667 bool result;
5668 wxRect temp2 ;
5669 PyObject * obj0 = 0 ;
5670 PyObject * obj1 = 0 ;
5671 char *kwnames[] = {
5672 (char *) "self",(char *) "rect", NULL
5673 };
5674
5675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5678 {
5679 arg2 = &temp2;
5680 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5681 }
5682 {
5683 PyThreadState* __tstate = wxPyBeginAllowThreads();
5684 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5685
5686 wxPyEndAllowThreads(__tstate);
5687 if (PyErr_Occurred()) SWIG_fail;
5688 }
5689 {
5690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5691 }
5692 return resultobj;
5693 fail:
5694 return NULL;
5695 }
5696
5697
5698 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5699 PyObject *resultobj;
5700 wxRegion *arg1 = (wxRegion *) 0 ;
5701 wxRegion *arg2 = 0 ;
5702 bool result;
5703 PyObject * obj0 = 0 ;
5704 PyObject * obj1 = 0 ;
5705 char *kwnames[] = {
5706 (char *) "self",(char *) "region", NULL
5707 };
5708
5709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5712 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5713 SWIG_POINTER_EXCEPTION | 0)) == -1)
5714 SWIG_fail;
5715 if (arg2 == NULL) {
5716 PyErr_SetString(PyExc_TypeError,"null reference");
5717 SWIG_fail;
5718 }
5719 {
5720 PyThreadState* __tstate = wxPyBeginAllowThreads();
5721 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
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 *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5736 PyObject *resultobj;
5737 wxRegion *arg1 = (wxRegion *) 0 ;
5738 bool result;
5739 PyObject * obj0 = 0 ;
5740 char *kwnames[] = {
5741 (char *) "self", NULL
5742 };
5743
5744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5747 {
5748 PyThreadState* __tstate = wxPyBeginAllowThreads();
5749 result = (bool)(arg1)->IsEmpty();
5750
5751 wxPyEndAllowThreads(__tstate);
5752 if (PyErr_Occurred()) SWIG_fail;
5753 }
5754 {
5755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5756 }
5757 return resultobj;
5758 fail:
5759 return NULL;
5760 }
5761
5762
5763 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj;
5765 wxRegion *arg1 = (wxRegion *) 0 ;
5766 int arg2 ;
5767 int arg3 ;
5768 int arg4 ;
5769 int arg5 ;
5770 bool result;
5771 PyObject * obj0 = 0 ;
5772 PyObject * obj1 = 0 ;
5773 PyObject * obj2 = 0 ;
5774 PyObject * obj3 = 0 ;
5775 PyObject * obj4 = 0 ;
5776 char *kwnames[] = {
5777 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5778 };
5779
5780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5783 arg2 = (int) SWIG_AsInt(obj1);
5784 if (PyErr_Occurred()) SWIG_fail;
5785 arg3 = (int) SWIG_AsInt(obj2);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 arg4 = (int) SWIG_AsInt(obj3);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 arg5 = (int) SWIG_AsInt(obj4);
5790 if (PyErr_Occurred()) SWIG_fail;
5791 {
5792 PyThreadState* __tstate = wxPyBeginAllowThreads();
5793 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5794
5795 wxPyEndAllowThreads(__tstate);
5796 if (PyErr_Occurred()) SWIG_fail;
5797 }
5798 {
5799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5800 }
5801 return resultobj;
5802 fail:
5803 return NULL;
5804 }
5805
5806
5807 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5808 PyObject *resultobj;
5809 wxRegion *arg1 = (wxRegion *) 0 ;
5810 wxRect *arg2 = 0 ;
5811 bool result;
5812 wxRect temp2 ;
5813 PyObject * obj0 = 0 ;
5814 PyObject * obj1 = 0 ;
5815 char *kwnames[] = {
5816 (char *) "self",(char *) "rect", NULL
5817 };
5818
5819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5822 {
5823 arg2 = &temp2;
5824 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5825 }
5826 {
5827 PyThreadState* __tstate = wxPyBeginAllowThreads();
5828 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5829
5830 wxPyEndAllowThreads(__tstate);
5831 if (PyErr_Occurred()) SWIG_fail;
5832 }
5833 {
5834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5835 }
5836 return resultobj;
5837 fail:
5838 return NULL;
5839 }
5840
5841
5842 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5843 PyObject *resultobj;
5844 wxRegion *arg1 = (wxRegion *) 0 ;
5845 wxRegion *arg2 = 0 ;
5846 bool result;
5847 PyObject * obj0 = 0 ;
5848 PyObject * obj1 = 0 ;
5849 char *kwnames[] = {
5850 (char *) "self",(char *) "region", NULL
5851 };
5852
5853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5856 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5857 SWIG_POINTER_EXCEPTION | 0)) == -1)
5858 SWIG_fail;
5859 if (arg2 == NULL) {
5860 PyErr_SetString(PyExc_TypeError,"null reference");
5861 SWIG_fail;
5862 }
5863 {
5864 PyThreadState* __tstate = wxPyBeginAllowThreads();
5865 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5866
5867 wxPyEndAllowThreads(__tstate);
5868 if (PyErr_Occurred()) SWIG_fail;
5869 }
5870 {
5871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5872 }
5873 return resultobj;
5874 fail:
5875 return NULL;
5876 }
5877
5878
5879 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5880 PyObject *resultobj;
5881 wxRegion *arg1 = (wxRegion *) 0 ;
5882 int arg2 ;
5883 int arg3 ;
5884 int arg4 ;
5885 int arg5 ;
5886 bool result;
5887 PyObject * obj0 = 0 ;
5888 PyObject * obj1 = 0 ;
5889 PyObject * obj2 = 0 ;
5890 PyObject * obj3 = 0 ;
5891 PyObject * obj4 = 0 ;
5892 char *kwnames[] = {
5893 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5894 };
5895
5896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5899 arg2 = (int) SWIG_AsInt(obj1);
5900 if (PyErr_Occurred()) SWIG_fail;
5901 arg3 = (int) SWIG_AsInt(obj2);
5902 if (PyErr_Occurred()) SWIG_fail;
5903 arg4 = (int) SWIG_AsInt(obj3);
5904 if (PyErr_Occurred()) SWIG_fail;
5905 arg5 = (int) SWIG_AsInt(obj4);
5906 if (PyErr_Occurred()) SWIG_fail;
5907 {
5908 PyThreadState* __tstate = wxPyBeginAllowThreads();
5909 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5910
5911 wxPyEndAllowThreads(__tstate);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 {
5915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5916 }
5917 return resultobj;
5918 fail:
5919 return NULL;
5920 }
5921
5922
5923 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5924 PyObject *resultobj;
5925 wxRegion *arg1 = (wxRegion *) 0 ;
5926 wxRect *arg2 = 0 ;
5927 bool result;
5928 wxRect temp2 ;
5929 PyObject * obj0 = 0 ;
5930 PyObject * obj1 = 0 ;
5931 char *kwnames[] = {
5932 (char *) "self",(char *) "rect", NULL
5933 };
5934
5935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5938 {
5939 arg2 = &temp2;
5940 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5941 }
5942 {
5943 PyThreadState* __tstate = wxPyBeginAllowThreads();
5944 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5945
5946 wxPyEndAllowThreads(__tstate);
5947 if (PyErr_Occurred()) SWIG_fail;
5948 }
5949 {
5950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5951 }
5952 return resultobj;
5953 fail:
5954 return NULL;
5955 }
5956
5957
5958 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5959 PyObject *resultobj;
5960 wxRegion *arg1 = (wxRegion *) 0 ;
5961 wxRegion *arg2 = 0 ;
5962 bool result;
5963 PyObject * obj0 = 0 ;
5964 PyObject * obj1 = 0 ;
5965 char *kwnames[] = {
5966 (char *) "self",(char *) "region", NULL
5967 };
5968
5969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5972 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5973 SWIG_POINTER_EXCEPTION | 0)) == -1)
5974 SWIG_fail;
5975 if (arg2 == NULL) {
5976 PyErr_SetString(PyExc_TypeError,"null reference");
5977 SWIG_fail;
5978 }
5979 {
5980 PyThreadState* __tstate = wxPyBeginAllowThreads();
5981 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5982
5983 wxPyEndAllowThreads(__tstate);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
5986 {
5987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5988 }
5989 return resultobj;
5990 fail:
5991 return NULL;
5992 }
5993
5994
5995 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5996 PyObject *resultobj;
5997 wxRegion *arg1 = (wxRegion *) 0 ;
5998 int arg2 ;
5999 int arg3 ;
6000 int arg4 ;
6001 int arg5 ;
6002 bool result;
6003 PyObject * obj0 = 0 ;
6004 PyObject * obj1 = 0 ;
6005 PyObject * obj2 = 0 ;
6006 PyObject * obj3 = 0 ;
6007 PyObject * obj4 = 0 ;
6008 char *kwnames[] = {
6009 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6010 };
6011
6012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6015 arg2 = (int) SWIG_AsInt(obj1);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 arg3 = (int) SWIG_AsInt(obj2);
6018 if (PyErr_Occurred()) SWIG_fail;
6019 arg4 = (int) SWIG_AsInt(obj3);
6020 if (PyErr_Occurred()) SWIG_fail;
6021 arg5 = (int) SWIG_AsInt(obj4);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 {
6024 PyThreadState* __tstate = wxPyBeginAllowThreads();
6025 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
6026
6027 wxPyEndAllowThreads(__tstate);
6028 if (PyErr_Occurred()) SWIG_fail;
6029 }
6030 {
6031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6032 }
6033 return resultobj;
6034 fail:
6035 return NULL;
6036 }
6037
6038
6039 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6040 PyObject *resultobj;
6041 wxRegion *arg1 = (wxRegion *) 0 ;
6042 wxRect *arg2 = 0 ;
6043 bool result;
6044 wxRect temp2 ;
6045 PyObject * obj0 = 0 ;
6046 PyObject * obj1 = 0 ;
6047 char *kwnames[] = {
6048 (char *) "self",(char *) "rect", NULL
6049 };
6050
6051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
6052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6054 {
6055 arg2 = &temp2;
6056 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6057 }
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
6061
6062 wxPyEndAllowThreads(__tstate);
6063 if (PyErr_Occurred()) SWIG_fail;
6064 }
6065 {
6066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6067 }
6068 return resultobj;
6069 fail:
6070 return NULL;
6071 }
6072
6073
6074 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj;
6076 wxRegion *arg1 = (wxRegion *) 0 ;
6077 wxRegion *arg2 = 0 ;
6078 bool result;
6079 PyObject * obj0 = 0 ;
6080 PyObject * obj1 = 0 ;
6081 char *kwnames[] = {
6082 (char *) "self",(char *) "region", NULL
6083 };
6084
6085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
6086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6088 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6089 SWIG_POINTER_EXCEPTION | 0)) == -1)
6090 SWIG_fail;
6091 if (arg2 == NULL) {
6092 PyErr_SetString(PyExc_TypeError,"null reference");
6093 SWIG_fail;
6094 }
6095 {
6096 PyThreadState* __tstate = wxPyBeginAllowThreads();
6097 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
6098
6099 wxPyEndAllowThreads(__tstate);
6100 if (PyErr_Occurred()) SWIG_fail;
6101 }
6102 {
6103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6104 }
6105 return resultobj;
6106 fail:
6107 return NULL;
6108 }
6109
6110
6111 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6112 PyObject *resultobj;
6113 wxRegion *arg1 = (wxRegion *) 0 ;
6114 SwigValueWrapper< wxBitmap > result;
6115 PyObject * obj0 = 0 ;
6116 char *kwnames[] = {
6117 (char *) "self", NULL
6118 };
6119
6120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
6121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6123 {
6124 PyThreadState* __tstate = wxPyBeginAllowThreads();
6125 result = (arg1)->ConvertToBitmap();
6126
6127 wxPyEndAllowThreads(__tstate);
6128 if (PyErr_Occurred()) SWIG_fail;
6129 }
6130 {
6131 wxBitmap * resultptr;
6132 resultptr = new wxBitmap((wxBitmap &) result);
6133 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
6134 }
6135 return resultobj;
6136 fail:
6137 return NULL;
6138 }
6139
6140
6141 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6142 PyObject *resultobj;
6143 wxRegion *arg1 = (wxRegion *) 0 ;
6144 wxBitmap *arg2 = 0 ;
6145 wxColour const &arg3_defvalue = wxNullColour ;
6146 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
6147 int arg4 = (int) 0 ;
6148 bool result;
6149 wxColour temp3 ;
6150 PyObject * obj0 = 0 ;
6151 PyObject * obj1 = 0 ;
6152 PyObject * obj2 = 0 ;
6153 PyObject * obj3 = 0 ;
6154 char *kwnames[] = {
6155 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6156 };
6157
6158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6161 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6162 SWIG_POINTER_EXCEPTION | 0)) == -1)
6163 SWIG_fail;
6164 if (arg2 == NULL) {
6165 PyErr_SetString(PyExc_TypeError,"null reference");
6166 SWIG_fail;
6167 }
6168 if (obj2) {
6169 {
6170 arg3 = &temp3;
6171 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6172 }
6173 }
6174 if (obj3) {
6175 arg4 = (int) SWIG_AsInt(obj3);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 {
6179 PyThreadState* __tstate = wxPyBeginAllowThreads();
6180 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
6181
6182 wxPyEndAllowThreads(__tstate);
6183 if (PyErr_Occurred()) SWIG_fail;
6184 }
6185 {
6186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6187 }
6188 return resultobj;
6189 fail:
6190 return NULL;
6191 }
6192
6193
6194 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
6195 PyObject *obj;
6196 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6197 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
6198 Py_INCREF(obj);
6199 return Py_BuildValue((char *)"");
6200 }
6201 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6202 PyObject *resultobj;
6203 wxRegion *arg1 = 0 ;
6204 wxRegionIterator *result;
6205 PyObject * obj0 = 0 ;
6206 char *kwnames[] = {
6207 (char *) "region", NULL
6208 };
6209
6210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
6211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6212 SWIG_POINTER_EXCEPTION | 0)) == -1)
6213 SWIG_fail;
6214 if (arg1 == NULL) {
6215 PyErr_SetString(PyExc_TypeError,"null reference");
6216 SWIG_fail;
6217 }
6218 {
6219 PyThreadState* __tstate = wxPyBeginAllowThreads();
6220 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
6221
6222 wxPyEndAllowThreads(__tstate);
6223 if (PyErr_Occurred()) SWIG_fail;
6224 }
6225 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
6226 return resultobj;
6227 fail:
6228 return NULL;
6229 }
6230
6231
6232 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6233 PyObject *resultobj;
6234 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6235 PyObject * obj0 = 0 ;
6236 char *kwnames[] = {
6237 (char *) "self", NULL
6238 };
6239
6240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
6241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6243 {
6244 PyThreadState* __tstate = wxPyBeginAllowThreads();
6245 delete arg1;
6246
6247 wxPyEndAllowThreads(__tstate);
6248 if (PyErr_Occurred()) SWIG_fail;
6249 }
6250 Py_INCREF(Py_None); resultobj = Py_None;
6251 return resultobj;
6252 fail:
6253 return NULL;
6254 }
6255
6256
6257 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
6258 PyObject *resultobj;
6259 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6260 int result;
6261 PyObject * obj0 = 0 ;
6262 char *kwnames[] = {
6263 (char *) "self", NULL
6264 };
6265
6266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
6267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6269 {
6270 PyThreadState* __tstate = wxPyBeginAllowThreads();
6271 result = (int)(arg1)->GetX();
6272
6273 wxPyEndAllowThreads(__tstate);
6274 if (PyErr_Occurred()) SWIG_fail;
6275 }
6276 resultobj = SWIG_FromInt((int)result);
6277 return resultobj;
6278 fail:
6279 return NULL;
6280 }
6281
6282
6283 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
6284 PyObject *resultobj;
6285 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6286 int result;
6287 PyObject * obj0 = 0 ;
6288 char *kwnames[] = {
6289 (char *) "self", NULL
6290 };
6291
6292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
6293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6295 {
6296 PyThreadState* __tstate = wxPyBeginAllowThreads();
6297 result = (int)(arg1)->GetY();
6298
6299 wxPyEndAllowThreads(__tstate);
6300 if (PyErr_Occurred()) SWIG_fail;
6301 }
6302 resultobj = SWIG_FromInt((int)result);
6303 return resultobj;
6304 fail:
6305 return NULL;
6306 }
6307
6308
6309 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
6310 PyObject *resultobj;
6311 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6312 int result;
6313 PyObject * obj0 = 0 ;
6314 char *kwnames[] = {
6315 (char *) "self", NULL
6316 };
6317
6318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
6319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6321 {
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
6323 result = (int)(arg1)->GetW();
6324
6325 wxPyEndAllowThreads(__tstate);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
6328 resultobj = SWIG_FromInt((int)result);
6329 return resultobj;
6330 fail:
6331 return NULL;
6332 }
6333
6334
6335 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6336 PyObject *resultobj;
6337 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6338 int result;
6339 PyObject * obj0 = 0 ;
6340 char *kwnames[] = {
6341 (char *) "self", NULL
6342 };
6343
6344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
6345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6347 {
6348 PyThreadState* __tstate = wxPyBeginAllowThreads();
6349 result = (int)(arg1)->GetWidth();
6350
6351 wxPyEndAllowThreads(__tstate);
6352 if (PyErr_Occurred()) SWIG_fail;
6353 }
6354 resultobj = SWIG_FromInt((int)result);
6355 return resultobj;
6356 fail:
6357 return NULL;
6358 }
6359
6360
6361 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
6362 PyObject *resultobj;
6363 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6364 int result;
6365 PyObject * obj0 = 0 ;
6366 char *kwnames[] = {
6367 (char *) "self", NULL
6368 };
6369
6370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6373 {
6374 PyThreadState* __tstate = wxPyBeginAllowThreads();
6375 result = (int)(arg1)->GetH();
6376
6377 wxPyEndAllowThreads(__tstate);
6378 if (PyErr_Occurred()) SWIG_fail;
6379 }
6380 resultobj = SWIG_FromInt((int)result);
6381 return resultobj;
6382 fail:
6383 return NULL;
6384 }
6385
6386
6387 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6388 PyObject *resultobj;
6389 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6390 int result;
6391 PyObject * obj0 = 0 ;
6392 char *kwnames[] = {
6393 (char *) "self", NULL
6394 };
6395
6396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6399 {
6400 PyThreadState* __tstate = wxPyBeginAllowThreads();
6401 result = (int)(arg1)->GetHeight();
6402
6403 wxPyEndAllowThreads(__tstate);
6404 if (PyErr_Occurred()) SWIG_fail;
6405 }
6406 resultobj = SWIG_FromInt((int)result);
6407 return resultobj;
6408 fail:
6409 return NULL;
6410 }
6411
6412
6413 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6414 PyObject *resultobj;
6415 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6416 wxRect result;
6417 PyObject * obj0 = 0 ;
6418 char *kwnames[] = {
6419 (char *) "self", NULL
6420 };
6421
6422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6425 {
6426 PyThreadState* __tstate = wxPyBeginAllowThreads();
6427 result = (arg1)->GetRect();
6428
6429 wxPyEndAllowThreads(__tstate);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 {
6433 wxRect * resultptr;
6434 resultptr = new wxRect((wxRect &) result);
6435 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6436 }
6437 return resultobj;
6438 fail:
6439 return NULL;
6440 }
6441
6442
6443 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6444 PyObject *resultobj;
6445 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6446 bool result;
6447 PyObject * obj0 = 0 ;
6448 char *kwnames[] = {
6449 (char *) "self", NULL
6450 };
6451
6452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6455 {
6456 PyThreadState* __tstate = wxPyBeginAllowThreads();
6457 result = (bool)(arg1)->HaveRects();
6458
6459 wxPyEndAllowThreads(__tstate);
6460 if (PyErr_Occurred()) SWIG_fail;
6461 }
6462 {
6463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6464 }
6465 return resultobj;
6466 fail:
6467 return NULL;
6468 }
6469
6470
6471 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6472 PyObject *resultobj;
6473 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6474 PyObject * obj0 = 0 ;
6475 char *kwnames[] = {
6476 (char *) "self", NULL
6477 };
6478
6479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6482 {
6483 PyThreadState* __tstate = wxPyBeginAllowThreads();
6484 (arg1)->Reset();
6485
6486 wxPyEndAllowThreads(__tstate);
6487 if (PyErr_Occurred()) SWIG_fail;
6488 }
6489 Py_INCREF(Py_None); resultobj = Py_None;
6490 return resultobj;
6491 fail:
6492 return NULL;
6493 }
6494
6495
6496 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6497 PyObject *resultobj;
6498 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6499 PyObject * obj0 = 0 ;
6500 char *kwnames[] = {
6501 (char *) "self", NULL
6502 };
6503
6504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6507 {
6508 PyThreadState* __tstate = wxPyBeginAllowThreads();
6509 wxRegionIterator_Next(arg1);
6510
6511 wxPyEndAllowThreads(__tstate);
6512 if (PyErr_Occurred()) SWIG_fail;
6513 }
6514 Py_INCREF(Py_None); resultobj = Py_None;
6515 return resultobj;
6516 fail:
6517 return NULL;
6518 }
6519
6520
6521 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6522 PyObject *resultobj;
6523 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6524 bool result;
6525 PyObject * obj0 = 0 ;
6526 char *kwnames[] = {
6527 (char *) "self", NULL
6528 };
6529
6530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6533 {
6534 PyThreadState* __tstate = wxPyBeginAllowThreads();
6535 result = (bool)wxRegionIterator___nonzero__(arg1);
6536
6537 wxPyEndAllowThreads(__tstate);
6538 if (PyErr_Occurred()) SWIG_fail;
6539 }
6540 {
6541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6542 }
6543 return resultobj;
6544 fail:
6545 return NULL;
6546 }
6547
6548
6549 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6550 PyObject *obj;
6551 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6552 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6553 Py_INCREF(obj);
6554 return Py_BuildValue((char *)"");
6555 }
6556 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6557 PyObject *resultobj;
6558 wxNativeFontInfo *result;
6559 char *kwnames[] = {
6560 NULL
6561 };
6562
6563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6564 {
6565 PyThreadState* __tstate = wxPyBeginAllowThreads();
6566 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6567
6568 wxPyEndAllowThreads(__tstate);
6569 if (PyErr_Occurred()) SWIG_fail;
6570 }
6571 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6572 return resultobj;
6573 fail:
6574 return NULL;
6575 }
6576
6577
6578 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6579 PyObject *resultobj;
6580 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6581 PyObject * obj0 = 0 ;
6582 char *kwnames[] = {
6583 (char *) "self", NULL
6584 };
6585
6586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6589 {
6590 PyThreadState* __tstate = wxPyBeginAllowThreads();
6591 delete arg1;
6592
6593 wxPyEndAllowThreads(__tstate);
6594 if (PyErr_Occurred()) SWIG_fail;
6595 }
6596 Py_INCREF(Py_None); resultobj = Py_None;
6597 return resultobj;
6598 fail:
6599 return NULL;
6600 }
6601
6602
6603 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6604 PyObject *resultobj;
6605 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6606 PyObject * obj0 = 0 ;
6607 char *kwnames[] = {
6608 (char *) "self", NULL
6609 };
6610
6611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6614 {
6615 PyThreadState* __tstate = wxPyBeginAllowThreads();
6616 (arg1)->Init();
6617
6618 wxPyEndAllowThreads(__tstate);
6619 if (PyErr_Occurred()) SWIG_fail;
6620 }
6621 Py_INCREF(Py_None); resultobj = Py_None;
6622 return resultobj;
6623 fail:
6624 return NULL;
6625 }
6626
6627
6628 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6629 PyObject *resultobj;
6630 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6631 wxFont *arg2 = 0 ;
6632 PyObject * obj0 = 0 ;
6633 PyObject * obj1 = 0 ;
6634 char *kwnames[] = {
6635 (char *) "self",(char *) "font", NULL
6636 };
6637
6638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6641 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6642 SWIG_POINTER_EXCEPTION | 0)) == -1)
6643 SWIG_fail;
6644 if (arg2 == NULL) {
6645 PyErr_SetString(PyExc_TypeError,"null reference");
6646 SWIG_fail;
6647 }
6648 {
6649 PyThreadState* __tstate = wxPyBeginAllowThreads();
6650 (arg1)->InitFromFont((wxFont const &)*arg2);
6651
6652 wxPyEndAllowThreads(__tstate);
6653 if (PyErr_Occurred()) SWIG_fail;
6654 }
6655 Py_INCREF(Py_None); resultobj = Py_None;
6656 return resultobj;
6657 fail:
6658 return NULL;
6659 }
6660
6661
6662 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6663 PyObject *resultobj;
6664 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6665 int result;
6666 PyObject * obj0 = 0 ;
6667 char *kwnames[] = {
6668 (char *) "self", NULL
6669 };
6670
6671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6674 {
6675 PyThreadState* __tstate = wxPyBeginAllowThreads();
6676 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6677
6678 wxPyEndAllowThreads(__tstate);
6679 if (PyErr_Occurred()) SWIG_fail;
6680 }
6681 resultobj = SWIG_FromInt((int)result);
6682 return resultobj;
6683 fail:
6684 return NULL;
6685 }
6686
6687
6688 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6689 PyObject *resultobj;
6690 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6691 int result;
6692 PyObject * obj0 = 0 ;
6693 char *kwnames[] = {
6694 (char *) "self", NULL
6695 };
6696
6697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6700 {
6701 PyThreadState* __tstate = wxPyBeginAllowThreads();
6702 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6703
6704 wxPyEndAllowThreads(__tstate);
6705 if (PyErr_Occurred()) SWIG_fail;
6706 }
6707 resultobj = SWIG_FromInt((int)result);
6708 return resultobj;
6709 fail:
6710 return NULL;
6711 }
6712
6713
6714 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6715 PyObject *resultobj;
6716 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6717 int result;
6718 PyObject * obj0 = 0 ;
6719 char *kwnames[] = {
6720 (char *) "self", NULL
6721 };
6722
6723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6726 {
6727 PyThreadState* __tstate = wxPyBeginAllowThreads();
6728 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6729
6730 wxPyEndAllowThreads(__tstate);
6731 if (PyErr_Occurred()) SWIG_fail;
6732 }
6733 resultobj = SWIG_FromInt((int)result);
6734 return resultobj;
6735 fail:
6736 return NULL;
6737 }
6738
6739
6740 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6741 PyObject *resultobj;
6742 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6743 bool result;
6744 PyObject * obj0 = 0 ;
6745 char *kwnames[] = {
6746 (char *) "self", NULL
6747 };
6748
6749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6752 {
6753 PyThreadState* __tstate = wxPyBeginAllowThreads();
6754 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6755
6756 wxPyEndAllowThreads(__tstate);
6757 if (PyErr_Occurred()) SWIG_fail;
6758 }
6759 {
6760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6761 }
6762 return resultobj;
6763 fail:
6764 return NULL;
6765 }
6766
6767
6768 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6769 PyObject *resultobj;
6770 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6771 wxString result;
6772 PyObject * obj0 = 0 ;
6773 char *kwnames[] = {
6774 (char *) "self", NULL
6775 };
6776
6777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6780 {
6781 PyThreadState* __tstate = wxPyBeginAllowThreads();
6782 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6783
6784 wxPyEndAllowThreads(__tstate);
6785 if (PyErr_Occurred()) SWIG_fail;
6786 }
6787 {
6788 #if wxUSE_UNICODE
6789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6790 #else
6791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6792 #endif
6793 }
6794 return resultobj;
6795 fail:
6796 return NULL;
6797 }
6798
6799
6800 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6801 PyObject *resultobj;
6802 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6803 int result;
6804 PyObject * obj0 = 0 ;
6805 char *kwnames[] = {
6806 (char *) "self", NULL
6807 };
6808
6809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6812 {
6813 PyThreadState* __tstate = wxPyBeginAllowThreads();
6814 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6815
6816 wxPyEndAllowThreads(__tstate);
6817 if (PyErr_Occurred()) SWIG_fail;
6818 }
6819 resultobj = SWIG_FromInt((int)result);
6820 return resultobj;
6821 fail:
6822 return NULL;
6823 }
6824
6825
6826 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6827 PyObject *resultobj;
6828 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6829 int result;
6830 PyObject * obj0 = 0 ;
6831 char *kwnames[] = {
6832 (char *) "self", NULL
6833 };
6834
6835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6838 {
6839 PyThreadState* __tstate = wxPyBeginAllowThreads();
6840 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6841
6842 wxPyEndAllowThreads(__tstate);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 resultobj = SWIG_FromInt((int)result);
6846 return resultobj;
6847 fail:
6848 return NULL;
6849 }
6850
6851
6852 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6853 PyObject *resultobj;
6854 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6855 int arg2 ;
6856 PyObject * obj0 = 0 ;
6857 PyObject * obj1 = 0 ;
6858 char *kwnames[] = {
6859 (char *) "self",(char *) "pointsize", NULL
6860 };
6861
6862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6865 arg2 = (int) SWIG_AsInt(obj1);
6866 if (PyErr_Occurred()) SWIG_fail;
6867 {
6868 PyThreadState* __tstate = wxPyBeginAllowThreads();
6869 (arg1)->SetPointSize(arg2);
6870
6871 wxPyEndAllowThreads(__tstate);
6872 if (PyErr_Occurred()) SWIG_fail;
6873 }
6874 Py_INCREF(Py_None); resultobj = Py_None;
6875 return resultobj;
6876 fail:
6877 return NULL;
6878 }
6879
6880
6881 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6882 PyObject *resultobj;
6883 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6884 int arg2 ;
6885 PyObject * obj0 = 0 ;
6886 PyObject * obj1 = 0 ;
6887 char *kwnames[] = {
6888 (char *) "self",(char *) "style", NULL
6889 };
6890
6891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6894 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6895 if (PyErr_Occurred()) SWIG_fail;
6896 {
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 (arg1)->SetStyle((wxFontStyle )arg2);
6899
6900 wxPyEndAllowThreads(__tstate);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 }
6903 Py_INCREF(Py_None); resultobj = Py_None;
6904 return resultobj;
6905 fail:
6906 return NULL;
6907 }
6908
6909
6910 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6911 PyObject *resultobj;
6912 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6913 int arg2 ;
6914 PyObject * obj0 = 0 ;
6915 PyObject * obj1 = 0 ;
6916 char *kwnames[] = {
6917 (char *) "self",(char *) "weight", NULL
6918 };
6919
6920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6923 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6924 if (PyErr_Occurred()) SWIG_fail;
6925 {
6926 PyThreadState* __tstate = wxPyBeginAllowThreads();
6927 (arg1)->SetWeight((wxFontWeight )arg2);
6928
6929 wxPyEndAllowThreads(__tstate);
6930 if (PyErr_Occurred()) SWIG_fail;
6931 }
6932 Py_INCREF(Py_None); resultobj = Py_None;
6933 return resultobj;
6934 fail:
6935 return NULL;
6936 }
6937
6938
6939 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6940 PyObject *resultobj;
6941 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6942 bool arg2 ;
6943 PyObject * obj0 = 0 ;
6944 PyObject * obj1 = 0 ;
6945 char *kwnames[] = {
6946 (char *) "self",(char *) "underlined", NULL
6947 };
6948
6949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6952 arg2 = (bool) SWIG_AsBool(obj1);
6953 if (PyErr_Occurred()) SWIG_fail;
6954 {
6955 PyThreadState* __tstate = wxPyBeginAllowThreads();
6956 (arg1)->SetUnderlined(arg2);
6957
6958 wxPyEndAllowThreads(__tstate);
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 Py_INCREF(Py_None); resultobj = Py_None;
6962 return resultobj;
6963 fail:
6964 return NULL;
6965 }
6966
6967
6968 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6969 PyObject *resultobj;
6970 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6971 wxString arg2 ;
6972 PyObject * obj0 = 0 ;
6973 PyObject * obj1 = 0 ;
6974 char *kwnames[] = {
6975 (char *) "self",(char *) "facename", NULL
6976 };
6977
6978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6981 {
6982 wxString* sptr = wxString_in_helper(obj1);
6983 if (sptr == NULL) SWIG_fail;
6984 arg2 = *sptr;
6985 delete sptr;
6986 }
6987 {
6988 PyThreadState* __tstate = wxPyBeginAllowThreads();
6989 (arg1)->SetFaceName(arg2);
6990
6991 wxPyEndAllowThreads(__tstate);
6992 if (PyErr_Occurred()) SWIG_fail;
6993 }
6994 Py_INCREF(Py_None); resultobj = Py_None;
6995 return resultobj;
6996 fail:
6997 return NULL;
6998 }
6999
7000
7001 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7002 PyObject *resultobj;
7003 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7004 int arg2 ;
7005 PyObject * obj0 = 0 ;
7006 PyObject * obj1 = 0 ;
7007 char *kwnames[] = {
7008 (char *) "self",(char *) "family", NULL
7009 };
7010
7011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
7012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7014 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7015 if (PyErr_Occurred()) SWIG_fail;
7016 {
7017 PyThreadState* __tstate = wxPyBeginAllowThreads();
7018 (arg1)->SetFamily((wxFontFamily )arg2);
7019
7020 wxPyEndAllowThreads(__tstate);
7021 if (PyErr_Occurred()) SWIG_fail;
7022 }
7023 Py_INCREF(Py_None); resultobj = Py_None;
7024 return resultobj;
7025 fail:
7026 return NULL;
7027 }
7028
7029
7030 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7031 PyObject *resultobj;
7032 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7033 int arg2 ;
7034 PyObject * obj0 = 0 ;
7035 PyObject * obj1 = 0 ;
7036 char *kwnames[] = {
7037 (char *) "self",(char *) "encoding", NULL
7038 };
7039
7040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
7041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7043 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7044 if (PyErr_Occurred()) SWIG_fail;
7045 {
7046 PyThreadState* __tstate = wxPyBeginAllowThreads();
7047 (arg1)->SetEncoding((wxFontEncoding )arg2);
7048
7049 wxPyEndAllowThreads(__tstate);
7050 if (PyErr_Occurred()) SWIG_fail;
7051 }
7052 Py_INCREF(Py_None); resultobj = Py_None;
7053 return resultobj;
7054 fail:
7055 return NULL;
7056 }
7057
7058
7059 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7060 PyObject *resultobj;
7061 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7062 wxString *arg2 = 0 ;
7063 bool result;
7064 bool temp2 = False ;
7065 PyObject * obj0 = 0 ;
7066 PyObject * obj1 = 0 ;
7067 char *kwnames[] = {
7068 (char *) "self",(char *) "s", NULL
7069 };
7070
7071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7074 {
7075 arg2 = wxString_in_helper(obj1);
7076 if (arg2 == NULL) SWIG_fail;
7077 temp2 = True;
7078 }
7079 {
7080 PyThreadState* __tstate = wxPyBeginAllowThreads();
7081 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7082
7083 wxPyEndAllowThreads(__tstate);
7084 if (PyErr_Occurred()) SWIG_fail;
7085 }
7086 {
7087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7088 }
7089 {
7090 if (temp2)
7091 delete arg2;
7092 }
7093 return resultobj;
7094 fail:
7095 {
7096 if (temp2)
7097 delete arg2;
7098 }
7099 return NULL;
7100 }
7101
7102
7103 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7104 PyObject *resultobj;
7105 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7106 wxString result;
7107 PyObject * obj0 = 0 ;
7108 char *kwnames[] = {
7109 (char *) "self", NULL
7110 };
7111
7112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
7113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7115 {
7116 PyThreadState* __tstate = wxPyBeginAllowThreads();
7117 result = ((wxNativeFontInfo const *)arg1)->ToString();
7118
7119 wxPyEndAllowThreads(__tstate);
7120 if (PyErr_Occurred()) SWIG_fail;
7121 }
7122 {
7123 #if wxUSE_UNICODE
7124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7125 #else
7126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7127 #endif
7128 }
7129 return resultobj;
7130 fail:
7131 return NULL;
7132 }
7133
7134
7135 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
7136 PyObject *resultobj;
7137 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7138 wxString result;
7139 PyObject * obj0 = 0 ;
7140 char *kwnames[] = {
7141 (char *) "self", NULL
7142 };
7143
7144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
7145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7147 {
7148 PyThreadState* __tstate = wxPyBeginAllowThreads();
7149 result = wxNativeFontInfo___str__(arg1);
7150
7151 wxPyEndAllowThreads(__tstate);
7152 if (PyErr_Occurred()) SWIG_fail;
7153 }
7154 {
7155 #if wxUSE_UNICODE
7156 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7157 #else
7158 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7159 #endif
7160 }
7161 return resultobj;
7162 fail:
7163 return NULL;
7164 }
7165
7166
7167 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7168 PyObject *resultobj;
7169 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7170 wxString *arg2 = 0 ;
7171 bool result;
7172 bool temp2 = False ;
7173 PyObject * obj0 = 0 ;
7174 PyObject * obj1 = 0 ;
7175 char *kwnames[] = {
7176 (char *) "self",(char *) "s", NULL
7177 };
7178
7179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
7180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7182 {
7183 arg2 = wxString_in_helper(obj1);
7184 if (arg2 == NULL) SWIG_fail;
7185 temp2 = True;
7186 }
7187 {
7188 PyThreadState* __tstate = wxPyBeginAllowThreads();
7189 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
7190
7191 wxPyEndAllowThreads(__tstate);
7192 if (PyErr_Occurred()) SWIG_fail;
7193 }
7194 {
7195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7196 }
7197 {
7198 if (temp2)
7199 delete arg2;
7200 }
7201 return resultobj;
7202 fail:
7203 {
7204 if (temp2)
7205 delete arg2;
7206 }
7207 return NULL;
7208 }
7209
7210
7211 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7212 PyObject *resultobj;
7213 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7214 wxString result;
7215 PyObject * obj0 = 0 ;
7216 char *kwnames[] = {
7217 (char *) "self", NULL
7218 };
7219
7220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
7221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7223 {
7224 PyThreadState* __tstate = wxPyBeginAllowThreads();
7225 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
7226
7227 wxPyEndAllowThreads(__tstate);
7228 if (PyErr_Occurred()) SWIG_fail;
7229 }
7230 {
7231 #if wxUSE_UNICODE
7232 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7233 #else
7234 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7235 #endif
7236 }
7237 return resultobj;
7238 fail:
7239 return NULL;
7240 }
7241
7242
7243 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
7244 PyObject *obj;
7245 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7246 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
7247 Py_INCREF(obj);
7248 return Py_BuildValue((char *)"");
7249 }
7250 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7251 PyObject *resultobj;
7252 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7253 wxString *arg2 = (wxString *) 0 ;
7254 bool temp2 = False ;
7255 PyObject * obj0 = 0 ;
7256 PyObject * obj1 = 0 ;
7257 char *kwnames[] = {
7258 (char *) "self",(char *) "facename", NULL
7259 };
7260
7261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
7262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7264 {
7265 arg2 = wxString_in_helper(obj1);
7266 if (arg2 == NULL) SWIG_fail;
7267 temp2 = True;
7268 }
7269 if (arg1) (arg1)->facename = *arg2;
7270
7271 Py_INCREF(Py_None); resultobj = Py_None;
7272 {
7273 if (temp2)
7274 delete arg2;
7275 }
7276 return resultobj;
7277 fail:
7278 {
7279 if (temp2)
7280 delete arg2;
7281 }
7282 return NULL;
7283 }
7284
7285
7286 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7287 PyObject *resultobj;
7288 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7289 wxString *result;
7290 PyObject * obj0 = 0 ;
7291 char *kwnames[] = {
7292 (char *) "self", NULL
7293 };
7294
7295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
7296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7298 result = (wxString *)& ((arg1)->facename);
7299
7300 {
7301 #if wxUSE_UNICODE
7302 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7303 #else
7304 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7305 #endif
7306 }
7307 return resultobj;
7308 fail:
7309 return NULL;
7310 }
7311
7312
7313 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7314 PyObject *resultobj;
7315 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7316 int arg2 ;
7317 PyObject * obj0 = 0 ;
7318 PyObject * obj1 = 0 ;
7319 char *kwnames[] = {
7320 (char *) "self",(char *) "encoding", NULL
7321 };
7322
7323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
7324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7326 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7327 if (PyErr_Occurred()) SWIG_fail;
7328 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
7329
7330 Py_INCREF(Py_None); resultobj = Py_None;
7331 return resultobj;
7332 fail:
7333 return NULL;
7334 }
7335
7336
7337 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7338 PyObject *resultobj;
7339 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7340 int result;
7341 PyObject * obj0 = 0 ;
7342 char *kwnames[] = {
7343 (char *) "self", NULL
7344 };
7345
7346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
7347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7349 result = (int) ((arg1)->encoding);
7350
7351 resultobj = SWIG_FromInt((int)result);
7352 return resultobj;
7353 fail:
7354 return NULL;
7355 }
7356
7357
7358 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7359 PyObject *resultobj;
7360 wxNativeEncodingInfo *result;
7361 char *kwnames[] = {
7362 NULL
7363 };
7364
7365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7366 {
7367 PyThreadState* __tstate = wxPyBeginAllowThreads();
7368 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7369
7370 wxPyEndAllowThreads(__tstate);
7371 if (PyErr_Occurred()) SWIG_fail;
7372 }
7373 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7374 return resultobj;
7375 fail:
7376 return NULL;
7377 }
7378
7379
7380 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7381 PyObject *resultobj;
7382 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7383 PyObject * obj0 = 0 ;
7384 char *kwnames[] = {
7385 (char *) "self", NULL
7386 };
7387
7388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7391 {
7392 PyThreadState* __tstate = wxPyBeginAllowThreads();
7393 delete arg1;
7394
7395 wxPyEndAllowThreads(__tstate);
7396 if (PyErr_Occurred()) SWIG_fail;
7397 }
7398 Py_INCREF(Py_None); resultobj = Py_None;
7399 return resultobj;
7400 fail:
7401 return NULL;
7402 }
7403
7404
7405 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7406 PyObject *resultobj;
7407 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7408 wxString *arg2 = 0 ;
7409 bool result;
7410 bool temp2 = False ;
7411 PyObject * obj0 = 0 ;
7412 PyObject * obj1 = 0 ;
7413 char *kwnames[] = {
7414 (char *) "self",(char *) "s", NULL
7415 };
7416
7417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7420 {
7421 arg2 = wxString_in_helper(obj1);
7422 if (arg2 == NULL) SWIG_fail;
7423 temp2 = True;
7424 }
7425 {
7426 PyThreadState* __tstate = wxPyBeginAllowThreads();
7427 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7428
7429 wxPyEndAllowThreads(__tstate);
7430 if (PyErr_Occurred()) SWIG_fail;
7431 }
7432 {
7433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7434 }
7435 {
7436 if (temp2)
7437 delete arg2;
7438 }
7439 return resultobj;
7440 fail:
7441 {
7442 if (temp2)
7443 delete arg2;
7444 }
7445 return NULL;
7446 }
7447
7448
7449 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7450 PyObject *resultobj;
7451 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7452 wxString result;
7453 PyObject * obj0 = 0 ;
7454 char *kwnames[] = {
7455 (char *) "self", NULL
7456 };
7457
7458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7461 {
7462 PyThreadState* __tstate = wxPyBeginAllowThreads();
7463 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7464
7465 wxPyEndAllowThreads(__tstate);
7466 if (PyErr_Occurred()) SWIG_fail;
7467 }
7468 {
7469 #if wxUSE_UNICODE
7470 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7471 #else
7472 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7473 #endif
7474 }
7475 return resultobj;
7476 fail:
7477 return NULL;
7478 }
7479
7480
7481 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7482 PyObject *obj;
7483 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7484 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7485 Py_INCREF(obj);
7486 return Py_BuildValue((char *)"");
7487 }
7488 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7489 PyObject *resultobj;
7490 int arg1 ;
7491 wxNativeEncodingInfo *result;
7492 PyObject * obj0 = 0 ;
7493 char *kwnames[] = {
7494 (char *) "encoding", NULL
7495 };
7496
7497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7498 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7499 if (PyErr_Occurred()) SWIG_fail;
7500 {
7501 PyThreadState* __tstate = wxPyBeginAllowThreads();
7502 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7503
7504 wxPyEndAllowThreads(__tstate);
7505 if (PyErr_Occurred()) SWIG_fail;
7506 }
7507 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7508 return resultobj;
7509 fail:
7510 return NULL;
7511 }
7512
7513
7514 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7515 PyObject *resultobj;
7516 wxNativeEncodingInfo *arg1 = 0 ;
7517 bool result;
7518 PyObject * obj0 = 0 ;
7519 char *kwnames[] = {
7520 (char *) "info", NULL
7521 };
7522
7523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7525 SWIG_POINTER_EXCEPTION | 0)) == -1)
7526 SWIG_fail;
7527 if (arg1 == NULL) {
7528 PyErr_SetString(PyExc_TypeError,"null reference");
7529 SWIG_fail;
7530 }
7531 {
7532 PyThreadState* __tstate = wxPyBeginAllowThreads();
7533 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7534
7535 wxPyEndAllowThreads(__tstate);
7536 if (PyErr_Occurred()) SWIG_fail;
7537 }
7538 {
7539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7540 }
7541 return resultobj;
7542 fail:
7543 return NULL;
7544 }
7545
7546
7547 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7548 PyObject *resultobj;
7549 wxFontMapper *result;
7550 char *kwnames[] = {
7551 NULL
7552 };
7553
7554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7555 {
7556 PyThreadState* __tstate = wxPyBeginAllowThreads();
7557 result = (wxFontMapper *)new wxFontMapper();
7558
7559 wxPyEndAllowThreads(__tstate);
7560 if (PyErr_Occurred()) SWIG_fail;
7561 }
7562 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7563 return resultobj;
7564 fail:
7565 return NULL;
7566 }
7567
7568
7569 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7570 PyObject *resultobj;
7571 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7572 PyObject * obj0 = 0 ;
7573 char *kwnames[] = {
7574 (char *) "self", NULL
7575 };
7576
7577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7580 {
7581 PyThreadState* __tstate = wxPyBeginAllowThreads();
7582 delete arg1;
7583
7584 wxPyEndAllowThreads(__tstate);
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 Py_INCREF(Py_None); resultobj = Py_None;
7588 return resultobj;
7589 fail:
7590 return NULL;
7591 }
7592
7593
7594 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7595 PyObject *resultobj;
7596 wxFontMapper *result;
7597 char *kwnames[] = {
7598 NULL
7599 };
7600
7601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7602 {
7603 PyThreadState* __tstate = wxPyBeginAllowThreads();
7604 result = (wxFontMapper *)wxFontMapper::Get();
7605
7606 wxPyEndAllowThreads(__tstate);
7607 if (PyErr_Occurred()) SWIG_fail;
7608 }
7609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7610 return resultobj;
7611 fail:
7612 return NULL;
7613 }
7614
7615
7616 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7617 PyObject *resultobj;
7618 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7619 wxFontMapper *result;
7620 PyObject * obj0 = 0 ;
7621 char *kwnames[] = {
7622 (char *) "mapper", NULL
7623 };
7624
7625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7628 {
7629 PyThreadState* __tstate = wxPyBeginAllowThreads();
7630 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7631
7632 wxPyEndAllowThreads(__tstate);
7633 if (PyErr_Occurred()) SWIG_fail;
7634 }
7635 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7636 return resultobj;
7637 fail:
7638 return NULL;
7639 }
7640
7641
7642 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7643 PyObject *resultobj;
7644 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7645 wxString *arg2 = 0 ;
7646 bool arg3 = (bool) True ;
7647 int result;
7648 bool temp2 = False ;
7649 PyObject * obj0 = 0 ;
7650 PyObject * obj1 = 0 ;
7651 PyObject * obj2 = 0 ;
7652 char *kwnames[] = {
7653 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7654 };
7655
7656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7659 {
7660 arg2 = wxString_in_helper(obj1);
7661 if (arg2 == NULL) SWIG_fail;
7662 temp2 = True;
7663 }
7664 if (obj2) {
7665 arg3 = (bool) SWIG_AsBool(obj2);
7666 if (PyErr_Occurred()) SWIG_fail;
7667 }
7668 {
7669 PyThreadState* __tstate = wxPyBeginAllowThreads();
7670 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7671
7672 wxPyEndAllowThreads(__tstate);
7673 if (PyErr_Occurred()) SWIG_fail;
7674 }
7675 resultobj = SWIG_FromInt((int)result);
7676 {
7677 if (temp2)
7678 delete arg2;
7679 }
7680 return resultobj;
7681 fail:
7682 {
7683 if (temp2)
7684 delete arg2;
7685 }
7686 return NULL;
7687 }
7688
7689
7690 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7691 PyObject *resultobj;
7692 size_t result;
7693 char *kwnames[] = {
7694 NULL
7695 };
7696
7697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7698 {
7699 PyThreadState* __tstate = wxPyBeginAllowThreads();
7700 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7701
7702 wxPyEndAllowThreads(__tstate);
7703 if (PyErr_Occurred()) SWIG_fail;
7704 }
7705 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7706 return resultobj;
7707 fail:
7708 return NULL;
7709 }
7710
7711
7712 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7713 PyObject *resultobj;
7714 size_t arg1 ;
7715 int result;
7716 PyObject * obj0 = 0 ;
7717 char *kwnames[] = {
7718 (char *) "n", NULL
7719 };
7720
7721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7722 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7723 if (PyErr_Occurred()) SWIG_fail;
7724 {
7725 PyThreadState* __tstate = wxPyBeginAllowThreads();
7726 result = (int)wxFontMapper::GetEncoding(arg1);
7727
7728 wxPyEndAllowThreads(__tstate);
7729 if (PyErr_Occurred()) SWIG_fail;
7730 }
7731 resultobj = SWIG_FromInt((int)result);
7732 return resultobj;
7733 fail:
7734 return NULL;
7735 }
7736
7737
7738 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7739 PyObject *resultobj;
7740 int arg1 ;
7741 wxString result;
7742 PyObject * obj0 = 0 ;
7743 char *kwnames[] = {
7744 (char *) "encoding", NULL
7745 };
7746
7747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7748 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7749 if (PyErr_Occurred()) SWIG_fail;
7750 {
7751 PyThreadState* __tstate = wxPyBeginAllowThreads();
7752 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7753
7754 wxPyEndAllowThreads(__tstate);
7755 if (PyErr_Occurred()) SWIG_fail;
7756 }
7757 {
7758 #if wxUSE_UNICODE
7759 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7760 #else
7761 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7762 #endif
7763 }
7764 return resultobj;
7765 fail:
7766 return NULL;
7767 }
7768
7769
7770 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7771 PyObject *resultobj;
7772 int arg1 ;
7773 wxString result;
7774 PyObject * obj0 = 0 ;
7775 char *kwnames[] = {
7776 (char *) "encoding", NULL
7777 };
7778
7779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7780 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7781 if (PyErr_Occurred()) SWIG_fail;
7782 {
7783 PyThreadState* __tstate = wxPyBeginAllowThreads();
7784 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7785
7786 wxPyEndAllowThreads(__tstate);
7787 if (PyErr_Occurred()) SWIG_fail;
7788 }
7789 {
7790 #if wxUSE_UNICODE
7791 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7792 #else
7793 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7794 #endif
7795 }
7796 return resultobj;
7797 fail:
7798 return NULL;
7799 }
7800
7801
7802 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7803 PyObject *resultobj;
7804 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7805 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7806 PyObject * obj0 = 0 ;
7807 PyObject * obj1 = 0 ;
7808 char *kwnames[] = {
7809 (char *) "self",(char *) "config", NULL
7810 };
7811
7812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7815 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7817 {
7818 PyThreadState* __tstate = wxPyBeginAllowThreads();
7819 (arg1)->SetConfig(arg2);
7820
7821 wxPyEndAllowThreads(__tstate);
7822 if (PyErr_Occurred()) SWIG_fail;
7823 }
7824 Py_INCREF(Py_None); resultobj = Py_None;
7825 return resultobj;
7826 fail:
7827 return NULL;
7828 }
7829
7830
7831 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7832 PyObject *resultobj;
7833 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7834 wxString *arg2 = 0 ;
7835 bool temp2 = False ;
7836 PyObject * obj0 = 0 ;
7837 PyObject * obj1 = 0 ;
7838 char *kwnames[] = {
7839 (char *) "self",(char *) "prefix", NULL
7840 };
7841
7842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7845 {
7846 arg2 = wxString_in_helper(obj1);
7847 if (arg2 == NULL) SWIG_fail;
7848 temp2 = True;
7849 }
7850 {
7851 PyThreadState* __tstate = wxPyBeginAllowThreads();
7852 (arg1)->SetConfigPath((wxString const &)*arg2);
7853
7854 wxPyEndAllowThreads(__tstate);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 Py_INCREF(Py_None); resultobj = Py_None;
7858 {
7859 if (temp2)
7860 delete arg2;
7861 }
7862 return resultobj;
7863 fail:
7864 {
7865 if (temp2)
7866 delete arg2;
7867 }
7868 return NULL;
7869 }
7870
7871
7872 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7873 PyObject *resultobj;
7874 wxString result;
7875 char *kwnames[] = {
7876 NULL
7877 };
7878
7879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7880 {
7881 PyThreadState* __tstate = wxPyBeginAllowThreads();
7882 result = wxFontMapper::GetDefaultConfigPath();
7883
7884 wxPyEndAllowThreads(__tstate);
7885 if (PyErr_Occurred()) SWIG_fail;
7886 }
7887 {
7888 #if wxUSE_UNICODE
7889 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7890 #else
7891 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7892 #endif
7893 }
7894 return resultobj;
7895 fail:
7896 return NULL;
7897 }
7898
7899
7900 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7901 PyObject *resultobj;
7902 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7903 int arg2 ;
7904 wxString const &arg3_defvalue = wxPyEmptyString ;
7905 wxString *arg3 = (wxString *) &arg3_defvalue ;
7906 bool arg4 = (bool) True ;
7907 PyObject *result;
7908 bool temp3 = False ;
7909 PyObject * obj0 = 0 ;
7910 PyObject * obj1 = 0 ;
7911 PyObject * obj2 = 0 ;
7912 PyObject * obj3 = 0 ;
7913 char *kwnames[] = {
7914 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7915 };
7916
7917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7920 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7921 if (PyErr_Occurred()) SWIG_fail;
7922 if (obj2) {
7923 {
7924 arg3 = wxString_in_helper(obj2);
7925 if (arg3 == NULL) SWIG_fail;
7926 temp3 = True;
7927 }
7928 }
7929 if (obj3) {
7930 arg4 = (bool) SWIG_AsBool(obj3);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 {
7934 PyThreadState* __tstate = wxPyBeginAllowThreads();
7935 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7936
7937 wxPyEndAllowThreads(__tstate);
7938 if (PyErr_Occurred()) SWIG_fail;
7939 }
7940 resultobj = result;
7941 {
7942 if (temp3)
7943 delete arg3;
7944 }
7945 return resultobj;
7946 fail:
7947 {
7948 if (temp3)
7949 delete arg3;
7950 }
7951 return NULL;
7952 }
7953
7954
7955 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7956 PyObject *resultobj;
7957 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7958 int arg2 ;
7959 wxString const &arg3_defvalue = wxPyEmptyString ;
7960 wxString *arg3 = (wxString *) &arg3_defvalue ;
7961 bool result;
7962 bool temp3 = False ;
7963 PyObject * obj0 = 0 ;
7964 PyObject * obj1 = 0 ;
7965 PyObject * obj2 = 0 ;
7966 char *kwnames[] = {
7967 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7968 };
7969
7970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7973 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7974 if (PyErr_Occurred()) SWIG_fail;
7975 if (obj2) {
7976 {
7977 arg3 = wxString_in_helper(obj2);
7978 if (arg3 == NULL) SWIG_fail;
7979 temp3 = True;
7980 }
7981 }
7982 {
7983 PyThreadState* __tstate = wxPyBeginAllowThreads();
7984 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7985
7986 wxPyEndAllowThreads(__tstate);
7987 if (PyErr_Occurred()) SWIG_fail;
7988 }
7989 {
7990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7991 }
7992 {
7993 if (temp3)
7994 delete arg3;
7995 }
7996 return resultobj;
7997 fail:
7998 {
7999 if (temp3)
8000 delete arg3;
8001 }
8002 return NULL;
8003 }
8004
8005
8006 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
8007 PyObject *resultobj;
8008 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8009 wxWindow *arg2 = (wxWindow *) 0 ;
8010 PyObject * obj0 = 0 ;
8011 PyObject * obj1 = 0 ;
8012 char *kwnames[] = {
8013 (char *) "self",(char *) "parent", NULL
8014 };
8015
8016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
8017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8019 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8021 {
8022 PyThreadState* __tstate = wxPyBeginAllowThreads();
8023 (arg1)->SetDialogParent(arg2);
8024
8025 wxPyEndAllowThreads(__tstate);
8026 if (PyErr_Occurred()) SWIG_fail;
8027 }
8028 Py_INCREF(Py_None); resultobj = Py_None;
8029 return resultobj;
8030 fail:
8031 return NULL;
8032 }
8033
8034
8035 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
8036 PyObject *resultobj;
8037 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8038 wxString *arg2 = 0 ;
8039 bool temp2 = False ;
8040 PyObject * obj0 = 0 ;
8041 PyObject * obj1 = 0 ;
8042 char *kwnames[] = {
8043 (char *) "self",(char *) "title", NULL
8044 };
8045
8046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
8047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8049 {
8050 arg2 = wxString_in_helper(obj1);
8051 if (arg2 == NULL) SWIG_fail;
8052 temp2 = True;
8053 }
8054 {
8055 PyThreadState* __tstate = wxPyBeginAllowThreads();
8056 (arg1)->SetDialogTitle((wxString const &)*arg2);
8057
8058 wxPyEndAllowThreads(__tstate);
8059 if (PyErr_Occurred()) SWIG_fail;
8060 }
8061 Py_INCREF(Py_None); resultobj = Py_None;
8062 {
8063 if (temp2)
8064 delete arg2;
8065 }
8066 return resultobj;
8067 fail:
8068 {
8069 if (temp2)
8070 delete arg2;
8071 }
8072 return NULL;
8073 }
8074
8075
8076 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
8077 PyObject *obj;
8078 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8079 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
8080 Py_INCREF(obj);
8081 return Py_BuildValue((char *)"");
8082 }
8083 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8084 PyObject *resultobj;
8085 int arg1 ;
8086 int arg2 ;
8087 int arg3 ;
8088 int arg4 ;
8089 bool arg5 = (bool) False ;
8090 wxString const &arg6_defvalue = wxPyEmptyString ;
8091 wxString *arg6 = (wxString *) &arg6_defvalue ;
8092 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8093 wxFont *result;
8094 bool temp6 = False ;
8095 PyObject * obj0 = 0 ;
8096 PyObject * obj1 = 0 ;
8097 PyObject * obj2 = 0 ;
8098 PyObject * obj3 = 0 ;
8099 PyObject * obj4 = 0 ;
8100 PyObject * obj5 = 0 ;
8101 PyObject * obj6 = 0 ;
8102 char *kwnames[] = {
8103 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
8104 };
8105
8106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8107 arg1 = (int) SWIG_AsInt(obj0);
8108 if (PyErr_Occurred()) SWIG_fail;
8109 arg2 = (int) SWIG_AsInt(obj1);
8110 if (PyErr_Occurred()) SWIG_fail;
8111 arg3 = (int) SWIG_AsInt(obj2);
8112 if (PyErr_Occurred()) SWIG_fail;
8113 arg4 = (int) SWIG_AsInt(obj3);
8114 if (PyErr_Occurred()) SWIG_fail;
8115 if (obj4) {
8116 arg5 = (bool) SWIG_AsBool(obj4);
8117 if (PyErr_Occurred()) SWIG_fail;
8118 }
8119 if (obj5) {
8120 {
8121 arg6 = wxString_in_helper(obj5);
8122 if (arg6 == NULL) SWIG_fail;
8123 temp6 = True;
8124 }
8125 }
8126 if (obj6) {
8127 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
8128 if (PyErr_Occurred()) SWIG_fail;
8129 }
8130 {
8131 PyThreadState* __tstate = wxPyBeginAllowThreads();
8132 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8133
8134 wxPyEndAllowThreads(__tstate);
8135 if (PyErr_Occurred()) SWIG_fail;
8136 }
8137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8138 {
8139 if (temp6)
8140 delete arg6;
8141 }
8142 return resultobj;
8143 fail:
8144 {
8145 if (temp6)
8146 delete arg6;
8147 }
8148 return NULL;
8149 }
8150
8151
8152 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8153 PyObject *resultobj;
8154 wxFont *arg1 = (wxFont *) 0 ;
8155 PyObject * obj0 = 0 ;
8156 char *kwnames[] = {
8157 (char *) "self", NULL
8158 };
8159
8160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
8161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8163 {
8164 PyThreadState* __tstate = wxPyBeginAllowThreads();
8165 delete arg1;
8166
8167 wxPyEndAllowThreads(__tstate);
8168 if (PyErr_Occurred()) SWIG_fail;
8169 }
8170 Py_INCREF(Py_None); resultobj = Py_None;
8171 return resultobj;
8172 fail:
8173 return NULL;
8174 }
8175
8176
8177 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8178 PyObject *resultobj;
8179 wxNativeFontInfo *arg1 = 0 ;
8180 wxFont *result;
8181 PyObject * obj0 = 0 ;
8182 char *kwnames[] = {
8183 (char *) "info", NULL
8184 };
8185
8186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
8187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
8188 SWIG_POINTER_EXCEPTION | 0)) == -1)
8189 SWIG_fail;
8190 if (arg1 == NULL) {
8191 PyErr_SetString(PyExc_TypeError,"null reference");
8192 SWIG_fail;
8193 }
8194 {
8195 PyThreadState* __tstate = wxPyBeginAllowThreads();
8196 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
8197
8198 wxPyEndAllowThreads(__tstate);
8199 if (PyErr_Occurred()) SWIG_fail;
8200 }
8201 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8202 return resultobj;
8203 fail:
8204 return NULL;
8205 }
8206
8207
8208 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
8209 PyObject *resultobj;
8210 wxString *arg1 = 0 ;
8211 wxFont *result;
8212 bool temp1 = False ;
8213 PyObject * obj0 = 0 ;
8214 char *kwnames[] = {
8215 (char *) "info", NULL
8216 };
8217
8218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
8219 {
8220 arg1 = wxString_in_helper(obj0);
8221 if (arg1 == NULL) SWIG_fail;
8222 temp1 = True;
8223 }
8224 {
8225 PyThreadState* __tstate = wxPyBeginAllowThreads();
8226 result = (wxFont *)new_wxFont((wxString const &)*arg1);
8227
8228 wxPyEndAllowThreads(__tstate);
8229 if (PyErr_Occurred()) SWIG_fail;
8230 }
8231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8232 {
8233 if (temp1)
8234 delete arg1;
8235 }
8236 return resultobj;
8237 fail:
8238 {
8239 if (temp1)
8240 delete arg1;
8241 }
8242 return NULL;
8243 }
8244
8245
8246 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
8247 PyObject *resultobj;
8248 int arg1 ;
8249 int arg2 ;
8250 int arg3 = (int) wxFONTFLAG_DEFAULT ;
8251 wxString const &arg4_defvalue = wxPyEmptyString ;
8252 wxString *arg4 = (wxString *) &arg4_defvalue ;
8253 int arg5 = (int) wxFONTENCODING_DEFAULT ;
8254 wxFont *result;
8255 bool temp4 = False ;
8256 PyObject * obj0 = 0 ;
8257 PyObject * obj1 = 0 ;
8258 PyObject * obj2 = 0 ;
8259 PyObject * obj3 = 0 ;
8260 PyObject * obj4 = 0 ;
8261 char *kwnames[] = {
8262 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
8263 };
8264
8265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
8266 arg1 = (int) SWIG_AsInt(obj0);
8267 if (PyErr_Occurred()) SWIG_fail;
8268 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
8269 if (PyErr_Occurred()) SWIG_fail;
8270 if (obj2) {
8271 arg3 = (int) SWIG_AsInt(obj2);
8272 if (PyErr_Occurred()) SWIG_fail;
8273 }
8274 if (obj3) {
8275 {
8276 arg4 = wxString_in_helper(obj3);
8277 if (arg4 == NULL) SWIG_fail;
8278 temp4 = True;
8279 }
8280 }
8281 if (obj4) {
8282 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
8283 if (PyErr_Occurred()) SWIG_fail;
8284 }
8285 {
8286 PyThreadState* __tstate = wxPyBeginAllowThreads();
8287 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8288
8289 wxPyEndAllowThreads(__tstate);
8290 if (PyErr_Occurred()) SWIG_fail;
8291 }
8292 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8293 {
8294 if (temp4)
8295 delete arg4;
8296 }
8297 return resultobj;
8298 fail:
8299 {
8300 if (temp4)
8301 delete arg4;
8302 }
8303 return NULL;
8304 }
8305
8306
8307 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8308 PyObject *resultobj;
8309 wxFont *arg1 = (wxFont *) 0 ;
8310 bool result;
8311 PyObject * obj0 = 0 ;
8312 char *kwnames[] = {
8313 (char *) "self", NULL
8314 };
8315
8316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8319 {
8320 PyThreadState* __tstate = wxPyBeginAllowThreads();
8321 result = (bool)((wxFont const *)arg1)->Ok();
8322
8323 wxPyEndAllowThreads(__tstate);
8324 if (PyErr_Occurred()) SWIG_fail;
8325 }
8326 {
8327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8328 }
8329 return resultobj;
8330 fail:
8331 return NULL;
8332 }
8333
8334
8335 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
8336 PyObject *resultobj;
8337 wxFont *arg1 = (wxFont *) 0 ;
8338 wxFont *arg2 = (wxFont *) 0 ;
8339 bool result;
8340 PyObject * obj0 = 0 ;
8341 PyObject * obj1 = 0 ;
8342 char *kwnames[] = {
8343 (char *) "self",(char *) "other", NULL
8344 };
8345
8346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8351 {
8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
8353 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8354
8355 wxPyEndAllowThreads(__tstate);
8356 if (PyErr_Occurred()) SWIG_fail;
8357 }
8358 {
8359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8360 }
8361 return resultobj;
8362 fail:
8363 return NULL;
8364 }
8365
8366
8367 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
8368 PyObject *resultobj;
8369 wxFont *arg1 = (wxFont *) 0 ;
8370 wxFont *arg2 = (wxFont *) 0 ;
8371 bool result;
8372 PyObject * obj0 = 0 ;
8373 PyObject * obj1 = 0 ;
8374 char *kwnames[] = {
8375 (char *) "self",(char *) "other", NULL
8376 };
8377
8378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8381 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8383 {
8384 PyThreadState* __tstate = wxPyBeginAllowThreads();
8385 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8386
8387 wxPyEndAllowThreads(__tstate);
8388 if (PyErr_Occurred()) SWIG_fail;
8389 }
8390 {
8391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8392 }
8393 return resultobj;
8394 fail:
8395 return NULL;
8396 }
8397
8398
8399 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8400 PyObject *resultobj;
8401 wxFont *arg1 = (wxFont *) 0 ;
8402 int result;
8403 PyObject * obj0 = 0 ;
8404 char *kwnames[] = {
8405 (char *) "self", NULL
8406 };
8407
8408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8411 {
8412 PyThreadState* __tstate = wxPyBeginAllowThreads();
8413 result = (int)((wxFont const *)arg1)->GetPointSize();
8414
8415 wxPyEndAllowThreads(__tstate);
8416 if (PyErr_Occurred()) SWIG_fail;
8417 }
8418 resultobj = SWIG_FromInt((int)result);
8419 return resultobj;
8420 fail:
8421 return NULL;
8422 }
8423
8424
8425 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8426 PyObject *resultobj;
8427 wxFont *arg1 = (wxFont *) 0 ;
8428 int result;
8429 PyObject * obj0 = 0 ;
8430 char *kwnames[] = {
8431 (char *) "self", NULL
8432 };
8433
8434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8437 {
8438 PyThreadState* __tstate = wxPyBeginAllowThreads();
8439 result = (int)((wxFont const *)arg1)->GetFamily();
8440
8441 wxPyEndAllowThreads(__tstate);
8442 if (PyErr_Occurred()) SWIG_fail;
8443 }
8444 resultobj = SWIG_FromInt((int)result);
8445 return resultobj;
8446 fail:
8447 return NULL;
8448 }
8449
8450
8451 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8452 PyObject *resultobj;
8453 wxFont *arg1 = (wxFont *) 0 ;
8454 int result;
8455 PyObject * obj0 = 0 ;
8456 char *kwnames[] = {
8457 (char *) "self", NULL
8458 };
8459
8460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8463 {
8464 PyThreadState* __tstate = wxPyBeginAllowThreads();
8465 result = (int)((wxFont const *)arg1)->GetStyle();
8466
8467 wxPyEndAllowThreads(__tstate);
8468 if (PyErr_Occurred()) SWIG_fail;
8469 }
8470 resultobj = SWIG_FromInt((int)result);
8471 return resultobj;
8472 fail:
8473 return NULL;
8474 }
8475
8476
8477 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8478 PyObject *resultobj;
8479 wxFont *arg1 = (wxFont *) 0 ;
8480 int result;
8481 PyObject * obj0 = 0 ;
8482 char *kwnames[] = {
8483 (char *) "self", NULL
8484 };
8485
8486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8489 {
8490 PyThreadState* __tstate = wxPyBeginAllowThreads();
8491 result = (int)((wxFont const *)arg1)->GetWeight();
8492
8493 wxPyEndAllowThreads(__tstate);
8494 if (PyErr_Occurred()) SWIG_fail;
8495 }
8496 resultobj = SWIG_FromInt((int)result);
8497 return resultobj;
8498 fail:
8499 return NULL;
8500 }
8501
8502
8503 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8504 PyObject *resultobj;
8505 wxFont *arg1 = (wxFont *) 0 ;
8506 bool result;
8507 PyObject * obj0 = 0 ;
8508 char *kwnames[] = {
8509 (char *) "self", NULL
8510 };
8511
8512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8515 {
8516 PyThreadState* __tstate = wxPyBeginAllowThreads();
8517 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8518
8519 wxPyEndAllowThreads(__tstate);
8520 if (PyErr_Occurred()) SWIG_fail;
8521 }
8522 {
8523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8524 }
8525 return resultobj;
8526 fail:
8527 return NULL;
8528 }
8529
8530
8531 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8532 PyObject *resultobj;
8533 wxFont *arg1 = (wxFont *) 0 ;
8534 wxString result;
8535 PyObject * obj0 = 0 ;
8536 char *kwnames[] = {
8537 (char *) "self", NULL
8538 };
8539
8540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8543 {
8544 PyThreadState* __tstate = wxPyBeginAllowThreads();
8545 result = ((wxFont const *)arg1)->GetFaceName();
8546
8547 wxPyEndAllowThreads(__tstate);
8548 if (PyErr_Occurred()) SWIG_fail;
8549 }
8550 {
8551 #if wxUSE_UNICODE
8552 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8553 #else
8554 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8555 #endif
8556 }
8557 return resultobj;
8558 fail:
8559 return NULL;
8560 }
8561
8562
8563 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8564 PyObject *resultobj;
8565 wxFont *arg1 = (wxFont *) 0 ;
8566 int result;
8567 PyObject * obj0 = 0 ;
8568 char *kwnames[] = {
8569 (char *) "self", NULL
8570 };
8571
8572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8575 {
8576 PyThreadState* __tstate = wxPyBeginAllowThreads();
8577 result = (int)((wxFont const *)arg1)->GetEncoding();
8578
8579 wxPyEndAllowThreads(__tstate);
8580 if (PyErr_Occurred()) SWIG_fail;
8581 }
8582 resultobj = SWIG_FromInt((int)result);
8583 return resultobj;
8584 fail:
8585 return NULL;
8586 }
8587
8588
8589 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8590 PyObject *resultobj;
8591 wxFont *arg1 = (wxFont *) 0 ;
8592 wxNativeFontInfo *result;
8593 PyObject * obj0 = 0 ;
8594 char *kwnames[] = {
8595 (char *) "self", NULL
8596 };
8597
8598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8601 {
8602 PyThreadState* __tstate = wxPyBeginAllowThreads();
8603 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8604
8605 wxPyEndAllowThreads(__tstate);
8606 if (PyErr_Occurred()) SWIG_fail;
8607 }
8608 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8609 return resultobj;
8610 fail:
8611 return NULL;
8612 }
8613
8614
8615 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8616 PyObject *resultobj;
8617 wxFont *arg1 = (wxFont *) 0 ;
8618 bool result;
8619 PyObject * obj0 = 0 ;
8620 char *kwnames[] = {
8621 (char *) "self", NULL
8622 };
8623
8624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8627 {
8628 PyThreadState* __tstate = wxPyBeginAllowThreads();
8629 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8630
8631 wxPyEndAllowThreads(__tstate);
8632 if (PyErr_Occurred()) SWIG_fail;
8633 }
8634 {
8635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8636 }
8637 return resultobj;
8638 fail:
8639 return NULL;
8640 }
8641
8642
8643 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8644 PyObject *resultobj;
8645 wxFont *arg1 = (wxFont *) 0 ;
8646 wxString result;
8647 PyObject * obj0 = 0 ;
8648 char *kwnames[] = {
8649 (char *) "self", NULL
8650 };
8651
8652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8655 {
8656 PyThreadState* __tstate = wxPyBeginAllowThreads();
8657 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8658
8659 wxPyEndAllowThreads(__tstate);
8660 if (PyErr_Occurred()) SWIG_fail;
8661 }
8662 {
8663 #if wxUSE_UNICODE
8664 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8665 #else
8666 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8667 #endif
8668 }
8669 return resultobj;
8670 fail:
8671 return NULL;
8672 }
8673
8674
8675 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8676 PyObject *resultobj;
8677 wxFont *arg1 = (wxFont *) 0 ;
8678 wxString result;
8679 PyObject * obj0 = 0 ;
8680 char *kwnames[] = {
8681 (char *) "self", NULL
8682 };
8683
8684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8687 {
8688 PyThreadState* __tstate = wxPyBeginAllowThreads();
8689 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8690
8691 wxPyEndAllowThreads(__tstate);
8692 if (PyErr_Occurred()) SWIG_fail;
8693 }
8694 {
8695 #if wxUSE_UNICODE
8696 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8697 #else
8698 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8699 #endif
8700 }
8701 return resultobj;
8702 fail:
8703 return NULL;
8704 }
8705
8706
8707 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8708 PyObject *resultobj;
8709 wxFont *arg1 = (wxFont *) 0 ;
8710 int arg2 ;
8711 PyObject * obj0 = 0 ;
8712 PyObject * obj1 = 0 ;
8713 char *kwnames[] = {
8714 (char *) "self",(char *) "pointSize", NULL
8715 };
8716
8717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8720 arg2 = (int) SWIG_AsInt(obj1);
8721 if (PyErr_Occurred()) SWIG_fail;
8722 {
8723 PyThreadState* __tstate = wxPyBeginAllowThreads();
8724 (arg1)->SetPointSize(arg2);
8725
8726 wxPyEndAllowThreads(__tstate);
8727 if (PyErr_Occurred()) SWIG_fail;
8728 }
8729 Py_INCREF(Py_None); resultobj = Py_None;
8730 return resultobj;
8731 fail:
8732 return NULL;
8733 }
8734
8735
8736 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8737 PyObject *resultobj;
8738 wxFont *arg1 = (wxFont *) 0 ;
8739 int arg2 ;
8740 PyObject * obj0 = 0 ;
8741 PyObject * obj1 = 0 ;
8742 char *kwnames[] = {
8743 (char *) "self",(char *) "family", NULL
8744 };
8745
8746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8749 arg2 = (int) SWIG_AsInt(obj1);
8750 if (PyErr_Occurred()) SWIG_fail;
8751 {
8752 PyThreadState* __tstate = wxPyBeginAllowThreads();
8753 (arg1)->SetFamily(arg2);
8754
8755 wxPyEndAllowThreads(__tstate);
8756 if (PyErr_Occurred()) SWIG_fail;
8757 }
8758 Py_INCREF(Py_None); resultobj = Py_None;
8759 return resultobj;
8760 fail:
8761 return NULL;
8762 }
8763
8764
8765 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8766 PyObject *resultobj;
8767 wxFont *arg1 = (wxFont *) 0 ;
8768 int arg2 ;
8769 PyObject * obj0 = 0 ;
8770 PyObject * obj1 = 0 ;
8771 char *kwnames[] = {
8772 (char *) "self",(char *) "style", NULL
8773 };
8774
8775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8778 arg2 = (int) SWIG_AsInt(obj1);
8779 if (PyErr_Occurred()) SWIG_fail;
8780 {
8781 PyThreadState* __tstate = wxPyBeginAllowThreads();
8782 (arg1)->SetStyle(arg2);
8783
8784 wxPyEndAllowThreads(__tstate);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 Py_INCREF(Py_None); resultobj = Py_None;
8788 return resultobj;
8789 fail:
8790 return NULL;
8791 }
8792
8793
8794 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8795 PyObject *resultobj;
8796 wxFont *arg1 = (wxFont *) 0 ;
8797 int arg2 ;
8798 PyObject * obj0 = 0 ;
8799 PyObject * obj1 = 0 ;
8800 char *kwnames[] = {
8801 (char *) "self",(char *) "weight", NULL
8802 };
8803
8804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8807 arg2 = (int) SWIG_AsInt(obj1);
8808 if (PyErr_Occurred()) SWIG_fail;
8809 {
8810 PyThreadState* __tstate = wxPyBeginAllowThreads();
8811 (arg1)->SetWeight(arg2);
8812
8813 wxPyEndAllowThreads(__tstate);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 }
8816 Py_INCREF(Py_None); resultobj = Py_None;
8817 return resultobj;
8818 fail:
8819 return NULL;
8820 }
8821
8822
8823 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8824 PyObject *resultobj;
8825 wxFont *arg1 = (wxFont *) 0 ;
8826 wxString *arg2 = 0 ;
8827 bool temp2 = False ;
8828 PyObject * obj0 = 0 ;
8829 PyObject * obj1 = 0 ;
8830 char *kwnames[] = {
8831 (char *) "self",(char *) "faceName", NULL
8832 };
8833
8834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8837 {
8838 arg2 = wxString_in_helper(obj1);
8839 if (arg2 == NULL) SWIG_fail;
8840 temp2 = True;
8841 }
8842 {
8843 PyThreadState* __tstate = wxPyBeginAllowThreads();
8844 (arg1)->SetFaceName((wxString const &)*arg2);
8845
8846 wxPyEndAllowThreads(__tstate);
8847 if (PyErr_Occurred()) SWIG_fail;
8848 }
8849 Py_INCREF(Py_None); resultobj = Py_None;
8850 {
8851 if (temp2)
8852 delete arg2;
8853 }
8854 return resultobj;
8855 fail:
8856 {
8857 if (temp2)
8858 delete arg2;
8859 }
8860 return NULL;
8861 }
8862
8863
8864 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8865 PyObject *resultobj;
8866 wxFont *arg1 = (wxFont *) 0 ;
8867 bool arg2 ;
8868 PyObject * obj0 = 0 ;
8869 PyObject * obj1 = 0 ;
8870 char *kwnames[] = {
8871 (char *) "self",(char *) "underlined", NULL
8872 };
8873
8874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8877 arg2 = (bool) SWIG_AsBool(obj1);
8878 if (PyErr_Occurred()) SWIG_fail;
8879 {
8880 PyThreadState* __tstate = wxPyBeginAllowThreads();
8881 (arg1)->SetUnderlined(arg2);
8882
8883 wxPyEndAllowThreads(__tstate);
8884 if (PyErr_Occurred()) SWIG_fail;
8885 }
8886 Py_INCREF(Py_None); resultobj = Py_None;
8887 return resultobj;
8888 fail:
8889 return NULL;
8890 }
8891
8892
8893 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8894 PyObject *resultobj;
8895 wxFont *arg1 = (wxFont *) 0 ;
8896 int arg2 ;
8897 PyObject * obj0 = 0 ;
8898 PyObject * obj1 = 0 ;
8899 char *kwnames[] = {
8900 (char *) "self",(char *) "encoding", NULL
8901 };
8902
8903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8906 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8907 if (PyErr_Occurred()) SWIG_fail;
8908 {
8909 PyThreadState* __tstate = wxPyBeginAllowThreads();
8910 (arg1)->SetEncoding((wxFontEncoding )arg2);
8911
8912 wxPyEndAllowThreads(__tstate);
8913 if (PyErr_Occurred()) SWIG_fail;
8914 }
8915 Py_INCREF(Py_None); resultobj = Py_None;
8916 return resultobj;
8917 fail:
8918 return NULL;
8919 }
8920
8921
8922 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8923 PyObject *resultobj;
8924 wxFont *arg1 = (wxFont *) 0 ;
8925 wxNativeFontInfo *arg2 = 0 ;
8926 PyObject * obj0 = 0 ;
8927 PyObject * obj1 = 0 ;
8928 char *kwnames[] = {
8929 (char *) "self",(char *) "info", NULL
8930 };
8931
8932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8935 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8936 SWIG_POINTER_EXCEPTION | 0)) == -1)
8937 SWIG_fail;
8938 if (arg2 == NULL) {
8939 PyErr_SetString(PyExc_TypeError,"null reference");
8940 SWIG_fail;
8941 }
8942 {
8943 PyThreadState* __tstate = wxPyBeginAllowThreads();
8944 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8945
8946 wxPyEndAllowThreads(__tstate);
8947 if (PyErr_Occurred()) SWIG_fail;
8948 }
8949 Py_INCREF(Py_None); resultobj = Py_None;
8950 return resultobj;
8951 fail:
8952 return NULL;
8953 }
8954
8955
8956 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8957 PyObject *resultobj;
8958 wxFont *arg1 = (wxFont *) 0 ;
8959 wxString *arg2 = 0 ;
8960 bool temp2 = False ;
8961 PyObject * obj0 = 0 ;
8962 PyObject * obj1 = 0 ;
8963 char *kwnames[] = {
8964 (char *) "self",(char *) "info", NULL
8965 };
8966
8967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8970 {
8971 arg2 = wxString_in_helper(obj1);
8972 if (arg2 == NULL) SWIG_fail;
8973 temp2 = True;
8974 }
8975 {
8976 PyThreadState* __tstate = wxPyBeginAllowThreads();
8977 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8978
8979 wxPyEndAllowThreads(__tstate);
8980 if (PyErr_Occurred()) SWIG_fail;
8981 }
8982 Py_INCREF(Py_None); resultobj = Py_None;
8983 {
8984 if (temp2)
8985 delete arg2;
8986 }
8987 return resultobj;
8988 fail:
8989 {
8990 if (temp2)
8991 delete arg2;
8992 }
8993 return NULL;
8994 }
8995
8996
8997 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj;
8999 wxFont *arg1 = (wxFont *) 0 ;
9000 wxString *arg2 = 0 ;
9001 bool temp2 = False ;
9002 PyObject * obj0 = 0 ;
9003 PyObject * obj1 = 0 ;
9004 char *kwnames[] = {
9005 (char *) "self",(char *) "info", NULL
9006 };
9007
9008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
9009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9011 {
9012 arg2 = wxString_in_helper(obj1);
9013 if (arg2 == NULL) SWIG_fail;
9014 temp2 = True;
9015 }
9016 {
9017 PyThreadState* __tstate = wxPyBeginAllowThreads();
9018 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
9019
9020 wxPyEndAllowThreads(__tstate);
9021 if (PyErr_Occurred()) SWIG_fail;
9022 }
9023 Py_INCREF(Py_None); resultobj = Py_None;
9024 {
9025 if (temp2)
9026 delete arg2;
9027 }
9028 return resultobj;
9029 fail:
9030 {
9031 if (temp2)
9032 delete arg2;
9033 }
9034 return NULL;
9035 }
9036
9037
9038 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
9039 PyObject *resultobj;
9040 wxFont *arg1 = (wxFont *) 0 ;
9041 wxString result;
9042 PyObject * obj0 = 0 ;
9043 char *kwnames[] = {
9044 (char *) "self", NULL
9045 };
9046
9047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
9048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9050 {
9051 PyThreadState* __tstate = wxPyBeginAllowThreads();
9052 result = ((wxFont const *)arg1)->GetFamilyString();
9053
9054 wxPyEndAllowThreads(__tstate);
9055 if (PyErr_Occurred()) SWIG_fail;
9056 }
9057 {
9058 #if wxUSE_UNICODE
9059 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9060 #else
9061 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9062 #endif
9063 }
9064 return resultobj;
9065 fail:
9066 return NULL;
9067 }
9068
9069
9070 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
9071 PyObject *resultobj;
9072 wxFont *arg1 = (wxFont *) 0 ;
9073 wxString result;
9074 PyObject * obj0 = 0 ;
9075 char *kwnames[] = {
9076 (char *) "self", NULL
9077 };
9078
9079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
9080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9082 {
9083 PyThreadState* __tstate = wxPyBeginAllowThreads();
9084 result = ((wxFont const *)arg1)->GetStyleString();
9085
9086 wxPyEndAllowThreads(__tstate);
9087 if (PyErr_Occurred()) SWIG_fail;
9088 }
9089 {
9090 #if wxUSE_UNICODE
9091 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9092 #else
9093 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9094 #endif
9095 }
9096 return resultobj;
9097 fail:
9098 return NULL;
9099 }
9100
9101
9102 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
9103 PyObject *resultobj;
9104 wxFont *arg1 = (wxFont *) 0 ;
9105 wxString result;
9106 PyObject * obj0 = 0 ;
9107 char *kwnames[] = {
9108 (char *) "self", NULL
9109 };
9110
9111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
9112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9114 {
9115 PyThreadState* __tstate = wxPyBeginAllowThreads();
9116 result = ((wxFont const *)arg1)->GetWeightString();
9117
9118 wxPyEndAllowThreads(__tstate);
9119 if (PyErr_Occurred()) SWIG_fail;
9120 }
9121 {
9122 #if wxUSE_UNICODE
9123 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9124 #else
9125 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9126 #endif
9127 }
9128 return resultobj;
9129 fail:
9130 return NULL;
9131 }
9132
9133
9134 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9135 PyObject *resultobj;
9136 wxFont *arg1 = (wxFont *) 0 ;
9137 bool arg2 = (bool) True ;
9138 PyObject * obj0 = 0 ;
9139 PyObject * obj1 = 0 ;
9140 char *kwnames[] = {
9141 (char *) "self",(char *) "no", NULL
9142 };
9143
9144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
9145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9147 if (obj1) {
9148 arg2 = (bool) SWIG_AsBool(obj1);
9149 if (PyErr_Occurred()) SWIG_fail;
9150 }
9151 {
9152 PyThreadState* __tstate = wxPyBeginAllowThreads();
9153 (arg1)->SetNoAntiAliasing(arg2);
9154
9155 wxPyEndAllowThreads(__tstate);
9156 if (PyErr_Occurred()) SWIG_fail;
9157 }
9158 Py_INCREF(Py_None); resultobj = Py_None;
9159 return resultobj;
9160 fail:
9161 return NULL;
9162 }
9163
9164
9165 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9166 PyObject *resultobj;
9167 wxFont *arg1 = (wxFont *) 0 ;
9168 bool result;
9169 PyObject * obj0 = 0 ;
9170 char *kwnames[] = {
9171 (char *) "self", NULL
9172 };
9173
9174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9177 {
9178 PyThreadState* __tstate = wxPyBeginAllowThreads();
9179 result = (bool)(arg1)->GetNoAntiAliasing();
9180
9181 wxPyEndAllowThreads(__tstate);
9182 if (PyErr_Occurred()) SWIG_fail;
9183 }
9184 {
9185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9186 }
9187 return resultobj;
9188 fail:
9189 return NULL;
9190 }
9191
9192
9193 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9194 PyObject *resultobj;
9195 int result;
9196 char *kwnames[] = {
9197 NULL
9198 };
9199
9200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9201 {
9202 PyThreadState* __tstate = wxPyBeginAllowThreads();
9203 result = (int)wxFont::GetDefaultEncoding();
9204
9205 wxPyEndAllowThreads(__tstate);
9206 if (PyErr_Occurred()) SWIG_fail;
9207 }
9208 resultobj = SWIG_FromInt((int)result);
9209 return resultobj;
9210 fail:
9211 return NULL;
9212 }
9213
9214
9215 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9216 PyObject *resultobj;
9217 int arg1 ;
9218 PyObject * obj0 = 0 ;
9219 char *kwnames[] = {
9220 (char *) "encoding", NULL
9221 };
9222
9223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
9224 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
9225 if (PyErr_Occurred()) SWIG_fail;
9226 {
9227 PyThreadState* __tstate = wxPyBeginAllowThreads();
9228 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9229
9230 wxPyEndAllowThreads(__tstate);
9231 if (PyErr_Occurred()) SWIG_fail;
9232 }
9233 Py_INCREF(Py_None); resultobj = Py_None;
9234 return resultobj;
9235 fail:
9236 return NULL;
9237 }
9238
9239
9240 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
9241 PyObject *obj;
9242 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9243 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9244 Py_INCREF(obj);
9245 return Py_BuildValue((char *)"");
9246 }
9247 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9248 PyObject *resultobj;
9249 wxPyFontEnumerator *result;
9250 char *kwnames[] = {
9251 NULL
9252 };
9253
9254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9255 {
9256 PyThreadState* __tstate = wxPyBeginAllowThreads();
9257 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9258
9259 wxPyEndAllowThreads(__tstate);
9260 if (PyErr_Occurred()) SWIG_fail;
9261 }
9262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9263 return resultobj;
9264 fail:
9265 return NULL;
9266 }
9267
9268
9269 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9270 PyObject *resultobj;
9271 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9272 PyObject * obj0 = 0 ;
9273 char *kwnames[] = {
9274 (char *) "self", NULL
9275 };
9276
9277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9280 {
9281 PyThreadState* __tstate = wxPyBeginAllowThreads();
9282 delete arg1;
9283
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 Py_INCREF(Py_None); resultobj = Py_None;
9288 return resultobj;
9289 fail:
9290 return NULL;
9291 }
9292
9293
9294 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9295 PyObject *resultobj;
9296 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9297 PyObject *arg2 = (PyObject *) 0 ;
9298 PyObject *arg3 = (PyObject *) 0 ;
9299 bool arg4 ;
9300 PyObject * obj0 = 0 ;
9301 PyObject * obj1 = 0 ;
9302 PyObject * obj2 = 0 ;
9303 PyObject * obj3 = 0 ;
9304 char *kwnames[] = {
9305 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9306 };
9307
9308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9311 arg2 = obj1;
9312 arg3 = obj2;
9313 arg4 = (bool) SWIG_AsBool(obj3);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9318
9319 wxPyEndAllowThreads(__tstate);
9320 if (PyErr_Occurred()) SWIG_fail;
9321 }
9322 Py_INCREF(Py_None); resultobj = Py_None;
9323 return resultobj;
9324 fail:
9325 return NULL;
9326 }
9327
9328
9329 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9330 PyObject *resultobj;
9331 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9332 int arg2 = (int) wxFONTENCODING_SYSTEM ;
9333 bool arg3 = (bool) False ;
9334 bool result;
9335 PyObject * obj0 = 0 ;
9336 PyObject * obj1 = 0 ;
9337 PyObject * obj2 = 0 ;
9338 char *kwnames[] = {
9339 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9340 };
9341
9342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9345 if (obj1) {
9346 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9347 if (PyErr_Occurred()) SWIG_fail;
9348 }
9349 if (obj2) {
9350 arg3 = (bool) SWIG_AsBool(obj2);
9351 if (PyErr_Occurred()) SWIG_fail;
9352 }
9353 {
9354 PyThreadState* __tstate = wxPyBeginAllowThreads();
9355 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9356
9357 wxPyEndAllowThreads(__tstate);
9358 if (PyErr_Occurred()) SWIG_fail;
9359 }
9360 {
9361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9362 }
9363 return resultobj;
9364 fail:
9365 return NULL;
9366 }
9367
9368
9369 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9370 PyObject *resultobj;
9371 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9372 wxString const &arg2_defvalue = wxPyEmptyString ;
9373 wxString *arg2 = (wxString *) &arg2_defvalue ;
9374 bool result;
9375 bool temp2 = False ;
9376 PyObject * obj0 = 0 ;
9377 PyObject * obj1 = 0 ;
9378 char *kwnames[] = {
9379 (char *) "self",(char *) "facename", NULL
9380 };
9381
9382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9385 if (obj1) {
9386 {
9387 arg2 = wxString_in_helper(obj1);
9388 if (arg2 == NULL) SWIG_fail;
9389 temp2 = True;
9390 }
9391 }
9392 {
9393 PyThreadState* __tstate = wxPyBeginAllowThreads();
9394 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9395
9396 wxPyEndAllowThreads(__tstate);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 }
9399 {
9400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9401 }
9402 {
9403 if (temp2)
9404 delete arg2;
9405 }
9406 return resultobj;
9407 fail:
9408 {
9409 if (temp2)
9410 delete arg2;
9411 }
9412 return NULL;
9413 }
9414
9415
9416 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9417 PyObject *resultobj;
9418 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9419 PyObject *result;
9420 PyObject * obj0 = 0 ;
9421 char *kwnames[] = {
9422 (char *) "self", NULL
9423 };
9424
9425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9428 {
9429 PyThreadState* __tstate = wxPyBeginAllowThreads();
9430 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9431
9432 wxPyEndAllowThreads(__tstate);
9433 if (PyErr_Occurred()) SWIG_fail;
9434 }
9435 resultobj = result;
9436 return resultobj;
9437 fail:
9438 return NULL;
9439 }
9440
9441
9442 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9443 PyObject *resultobj;
9444 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9445 PyObject *result;
9446 PyObject * obj0 = 0 ;
9447 char *kwnames[] = {
9448 (char *) "self", NULL
9449 };
9450
9451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9454 {
9455 PyThreadState* __tstate = wxPyBeginAllowThreads();
9456 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9457
9458 wxPyEndAllowThreads(__tstate);
9459 if (PyErr_Occurred()) SWIG_fail;
9460 }
9461 resultobj = result;
9462 return resultobj;
9463 fail:
9464 return NULL;
9465 }
9466
9467
9468 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9469 PyObject *obj;
9470 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9471 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9472 Py_INCREF(obj);
9473 return Py_BuildValue((char *)"");
9474 }
9475 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9476 PyObject *resultobj;
9477 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9478 int arg2 ;
9479 PyObject * obj0 = 0 ;
9480 PyObject * obj1 = 0 ;
9481 char *kwnames[] = {
9482 (char *) "self",(char *) "Language", NULL
9483 };
9484
9485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9488 arg2 = (int) SWIG_AsInt(obj1);
9489 if (PyErr_Occurred()) SWIG_fail;
9490 if (arg1) (arg1)->Language = arg2;
9491
9492 Py_INCREF(Py_None); resultobj = Py_None;
9493 return resultobj;
9494 fail:
9495 return NULL;
9496 }
9497
9498
9499 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9500 PyObject *resultobj;
9501 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9502 int result;
9503 PyObject * obj0 = 0 ;
9504 char *kwnames[] = {
9505 (char *) "self", NULL
9506 };
9507
9508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9511 result = (int) ((arg1)->Language);
9512
9513 resultobj = SWIG_FromInt((int)result);
9514 return resultobj;
9515 fail:
9516 return NULL;
9517 }
9518
9519
9520 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9521 PyObject *resultobj;
9522 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9523 wxString *arg2 = (wxString *) 0 ;
9524 bool temp2 = False ;
9525 PyObject * obj0 = 0 ;
9526 PyObject * obj1 = 0 ;
9527 char *kwnames[] = {
9528 (char *) "self",(char *) "CanonicalName", NULL
9529 };
9530
9531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9534 {
9535 arg2 = wxString_in_helper(obj1);
9536 if (arg2 == NULL) SWIG_fail;
9537 temp2 = True;
9538 }
9539 if (arg1) (arg1)->CanonicalName = *arg2;
9540
9541 Py_INCREF(Py_None); resultobj = Py_None;
9542 {
9543 if (temp2)
9544 delete arg2;
9545 }
9546 return resultobj;
9547 fail:
9548 {
9549 if (temp2)
9550 delete arg2;
9551 }
9552 return NULL;
9553 }
9554
9555
9556 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9557 PyObject *resultobj;
9558 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9559 wxString *result;
9560 PyObject * obj0 = 0 ;
9561 char *kwnames[] = {
9562 (char *) "self", NULL
9563 };
9564
9565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9568 result = (wxString *)& ((arg1)->CanonicalName);
9569
9570 {
9571 #if wxUSE_UNICODE
9572 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9573 #else
9574 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9575 #endif
9576 }
9577 return resultobj;
9578 fail:
9579 return NULL;
9580 }
9581
9582
9583 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9584 PyObject *resultobj;
9585 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9586 wxString *arg2 = (wxString *) 0 ;
9587 bool temp2 = False ;
9588 PyObject * obj0 = 0 ;
9589 PyObject * obj1 = 0 ;
9590 char *kwnames[] = {
9591 (char *) "self",(char *) "Description", NULL
9592 };
9593
9594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9597 {
9598 arg2 = wxString_in_helper(obj1);
9599 if (arg2 == NULL) SWIG_fail;
9600 temp2 = True;
9601 }
9602 if (arg1) (arg1)->Description = *arg2;
9603
9604 Py_INCREF(Py_None); resultobj = Py_None;
9605 {
9606 if (temp2)
9607 delete arg2;
9608 }
9609 return resultobj;
9610 fail:
9611 {
9612 if (temp2)
9613 delete arg2;
9614 }
9615 return NULL;
9616 }
9617
9618
9619 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9620 PyObject *resultobj;
9621 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9622 wxString *result;
9623 PyObject * obj0 = 0 ;
9624 char *kwnames[] = {
9625 (char *) "self", NULL
9626 };
9627
9628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9631 result = (wxString *)& ((arg1)->Description);
9632
9633 {
9634 #if wxUSE_UNICODE
9635 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9636 #else
9637 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9638 #endif
9639 }
9640 return resultobj;
9641 fail:
9642 return NULL;
9643 }
9644
9645
9646 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9647 PyObject *obj;
9648 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9649 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9650 Py_INCREF(obj);
9651 return Py_BuildValue((char *)"");
9652 }
9653 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9654 PyObject *resultobj;
9655 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9656 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9657 wxLocale *result;
9658 PyObject * obj0 = 0 ;
9659 PyObject * obj1 = 0 ;
9660 char *kwnames[] = {
9661 (char *) "language",(char *) "flags", NULL
9662 };
9663
9664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9665 if (obj0) {
9666 arg1 = (int) SWIG_AsInt(obj0);
9667 if (PyErr_Occurred()) SWIG_fail;
9668 }
9669 if (obj1) {
9670 arg2 = (int) SWIG_AsInt(obj1);
9671 if (PyErr_Occurred()) SWIG_fail;
9672 }
9673 {
9674 PyThreadState* __tstate = wxPyBeginAllowThreads();
9675 result = (wxLocale *)new wxLocale(arg1,arg2);
9676
9677 wxPyEndAllowThreads(__tstate);
9678 if (PyErr_Occurred()) SWIG_fail;
9679 }
9680 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9681 return resultobj;
9682 fail:
9683 return NULL;
9684 }
9685
9686
9687 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9688 PyObject *resultobj;
9689 wxLocale *arg1 = (wxLocale *) 0 ;
9690 PyObject * obj0 = 0 ;
9691 char *kwnames[] = {
9692 (char *) "self", NULL
9693 };
9694
9695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 delete arg1;
9701
9702 wxPyEndAllowThreads(__tstate);
9703 if (PyErr_Occurred()) SWIG_fail;
9704 }
9705 Py_INCREF(Py_None); resultobj = Py_None;
9706 return resultobj;
9707 fail:
9708 return NULL;
9709 }
9710
9711
9712 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9713 PyObject *resultobj;
9714 wxLocale *arg1 = (wxLocale *) 0 ;
9715 wxString *arg2 = 0 ;
9716 wxString const &arg3_defvalue = wxPyEmptyString ;
9717 wxString *arg3 = (wxString *) &arg3_defvalue ;
9718 wxString const &arg4_defvalue = wxPyEmptyString ;
9719 wxString *arg4 = (wxString *) &arg4_defvalue ;
9720 bool arg5 = (bool) True ;
9721 bool arg6 = (bool) False ;
9722 bool result;
9723 bool temp2 = False ;
9724 bool temp3 = False ;
9725 bool temp4 = False ;
9726 PyObject * obj0 = 0 ;
9727 PyObject * obj1 = 0 ;
9728 PyObject * obj2 = 0 ;
9729 PyObject * obj3 = 0 ;
9730 PyObject * obj4 = 0 ;
9731 PyObject * obj5 = 0 ;
9732 char *kwnames[] = {
9733 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9734 };
9735
9736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9739 {
9740 arg2 = wxString_in_helper(obj1);
9741 if (arg2 == NULL) SWIG_fail;
9742 temp2 = True;
9743 }
9744 if (obj2) {
9745 {
9746 arg3 = wxString_in_helper(obj2);
9747 if (arg3 == NULL) SWIG_fail;
9748 temp3 = True;
9749 }
9750 }
9751 if (obj3) {
9752 {
9753 arg4 = wxString_in_helper(obj3);
9754 if (arg4 == NULL) SWIG_fail;
9755 temp4 = True;
9756 }
9757 }
9758 if (obj4) {
9759 arg5 = (bool) SWIG_AsBool(obj4);
9760 if (PyErr_Occurred()) SWIG_fail;
9761 }
9762 if (obj5) {
9763 arg6 = (bool) SWIG_AsBool(obj5);
9764 if (PyErr_Occurred()) SWIG_fail;
9765 }
9766 {
9767 PyThreadState* __tstate = wxPyBeginAllowThreads();
9768 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9769
9770 wxPyEndAllowThreads(__tstate);
9771 if (PyErr_Occurred()) SWIG_fail;
9772 }
9773 {
9774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9775 }
9776 {
9777 if (temp2)
9778 delete arg2;
9779 }
9780 {
9781 if (temp3)
9782 delete arg3;
9783 }
9784 {
9785 if (temp4)
9786 delete arg4;
9787 }
9788 return resultobj;
9789 fail:
9790 {
9791 if (temp2)
9792 delete arg2;
9793 }
9794 {
9795 if (temp3)
9796 delete arg3;
9797 }
9798 {
9799 if (temp4)
9800 delete arg4;
9801 }
9802 return NULL;
9803 }
9804
9805
9806 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9807 PyObject *resultobj;
9808 wxLocale *arg1 = (wxLocale *) 0 ;
9809 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9810 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9811 bool result;
9812 PyObject * obj0 = 0 ;
9813 PyObject * obj1 = 0 ;
9814 PyObject * obj2 = 0 ;
9815 char *kwnames[] = {
9816 (char *) "self",(char *) "language",(char *) "flags", NULL
9817 };
9818
9819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9822 if (obj1) {
9823 arg2 = (int) SWIG_AsInt(obj1);
9824 if (PyErr_Occurred()) SWIG_fail;
9825 }
9826 if (obj2) {
9827 arg3 = (int) SWIG_AsInt(obj2);
9828 if (PyErr_Occurred()) SWIG_fail;
9829 }
9830 {
9831 PyThreadState* __tstate = wxPyBeginAllowThreads();
9832 result = (bool)(arg1)->Init(arg2,arg3);
9833
9834 wxPyEndAllowThreads(__tstate);
9835 if (PyErr_Occurred()) SWIG_fail;
9836 }
9837 {
9838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9839 }
9840 return resultobj;
9841 fail:
9842 return NULL;
9843 }
9844
9845
9846 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9847 PyObject *resultobj;
9848 int result;
9849 char *kwnames[] = {
9850 NULL
9851 };
9852
9853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9854 {
9855 PyThreadState* __tstate = wxPyBeginAllowThreads();
9856 result = (int)wxLocale::GetSystemLanguage();
9857
9858 wxPyEndAllowThreads(__tstate);
9859 if (PyErr_Occurred()) SWIG_fail;
9860 }
9861 resultobj = SWIG_FromInt((int)result);
9862 return resultobj;
9863 fail:
9864 return NULL;
9865 }
9866
9867
9868 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9869 PyObject *resultobj;
9870 int result;
9871 char *kwnames[] = {
9872 NULL
9873 };
9874
9875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9876 {
9877 PyThreadState* __tstate = wxPyBeginAllowThreads();
9878 result = (int)wxLocale::GetSystemEncoding();
9879
9880 wxPyEndAllowThreads(__tstate);
9881 if (PyErr_Occurred()) SWIG_fail;
9882 }
9883 resultobj = SWIG_FromInt((int)result);
9884 return resultobj;
9885 fail:
9886 return NULL;
9887 }
9888
9889
9890 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9891 PyObject *resultobj;
9892 wxString result;
9893 char *kwnames[] = {
9894 NULL
9895 };
9896
9897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9898 {
9899 PyThreadState* __tstate = wxPyBeginAllowThreads();
9900 result = wxLocale::GetSystemEncodingName();
9901
9902 wxPyEndAllowThreads(__tstate);
9903 if (PyErr_Occurred()) SWIG_fail;
9904 }
9905 {
9906 #if wxUSE_UNICODE
9907 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9908 #else
9909 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9910 #endif
9911 }
9912 return resultobj;
9913 fail:
9914 return NULL;
9915 }
9916
9917
9918 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9919 PyObject *resultobj;
9920 wxLocale *arg1 = (wxLocale *) 0 ;
9921 bool result;
9922 PyObject * obj0 = 0 ;
9923 char *kwnames[] = {
9924 (char *) "self", NULL
9925 };
9926
9927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9930 {
9931 PyThreadState* __tstate = wxPyBeginAllowThreads();
9932 result = (bool)((wxLocale const *)arg1)->IsOk();
9933
9934 wxPyEndAllowThreads(__tstate);
9935 if (PyErr_Occurred()) SWIG_fail;
9936 }
9937 {
9938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9939 }
9940 return resultobj;
9941 fail:
9942 return NULL;
9943 }
9944
9945
9946 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9947 PyObject *resultobj;
9948 wxLocale *arg1 = (wxLocale *) 0 ;
9949 wxString result;
9950 PyObject * obj0 = 0 ;
9951 char *kwnames[] = {
9952 (char *) "self", NULL
9953 };
9954
9955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9958 {
9959 PyThreadState* __tstate = wxPyBeginAllowThreads();
9960 result = ((wxLocale const *)arg1)->GetLocale();
9961
9962 wxPyEndAllowThreads(__tstate);
9963 if (PyErr_Occurred()) SWIG_fail;
9964 }
9965 {
9966 #if wxUSE_UNICODE
9967 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9968 #else
9969 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9970 #endif
9971 }
9972 return resultobj;
9973 fail:
9974 return NULL;
9975 }
9976
9977
9978 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9979 PyObject *resultobj;
9980 wxLocale *arg1 = (wxLocale *) 0 ;
9981 int result;
9982 PyObject * obj0 = 0 ;
9983 char *kwnames[] = {
9984 (char *) "self", NULL
9985 };
9986
9987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9990 {
9991 PyThreadState* __tstate = wxPyBeginAllowThreads();
9992 result = (int)((wxLocale const *)arg1)->GetLanguage();
9993
9994 wxPyEndAllowThreads(__tstate);
9995 if (PyErr_Occurred()) SWIG_fail;
9996 }
9997 resultobj = SWIG_FromInt((int)result);
9998 return resultobj;
9999 fail:
10000 return NULL;
10001 }
10002
10003
10004 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
10005 PyObject *resultobj;
10006 wxLocale *arg1 = (wxLocale *) 0 ;
10007 wxString result;
10008 PyObject * obj0 = 0 ;
10009 char *kwnames[] = {
10010 (char *) "self", NULL
10011 };
10012
10013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
10014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10016 {
10017 PyThreadState* __tstate = wxPyBeginAllowThreads();
10018 result = ((wxLocale const *)arg1)->GetSysName();
10019
10020 wxPyEndAllowThreads(__tstate);
10021 if (PyErr_Occurred()) SWIG_fail;
10022 }
10023 {
10024 #if wxUSE_UNICODE
10025 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10026 #else
10027 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10028 #endif
10029 }
10030 return resultobj;
10031 fail:
10032 return NULL;
10033 }
10034
10035
10036 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
10037 PyObject *resultobj;
10038 wxLocale *arg1 = (wxLocale *) 0 ;
10039 wxString result;
10040 PyObject * obj0 = 0 ;
10041 char *kwnames[] = {
10042 (char *) "self", NULL
10043 };
10044
10045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
10046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10048 {
10049 PyThreadState* __tstate = wxPyBeginAllowThreads();
10050 result = ((wxLocale const *)arg1)->GetCanonicalName();
10051
10052 wxPyEndAllowThreads(__tstate);
10053 if (PyErr_Occurred()) SWIG_fail;
10054 }
10055 {
10056 #if wxUSE_UNICODE
10057 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10058 #else
10059 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10060 #endif
10061 }
10062 return resultobj;
10063 fail:
10064 return NULL;
10065 }
10066
10067
10068 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
10069 PyObject *resultobj;
10070 wxString *arg1 = 0 ;
10071 bool temp1 = False ;
10072 PyObject * obj0 = 0 ;
10073 char *kwnames[] = {
10074 (char *) "prefix", NULL
10075 };
10076
10077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
10078 {
10079 arg1 = wxString_in_helper(obj0);
10080 if (arg1 == NULL) SWIG_fail;
10081 temp1 = True;
10082 }
10083 {
10084 PyThreadState* __tstate = wxPyBeginAllowThreads();
10085 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
10086
10087 wxPyEndAllowThreads(__tstate);
10088 if (PyErr_Occurred()) SWIG_fail;
10089 }
10090 Py_INCREF(Py_None); resultobj = Py_None;
10091 {
10092 if (temp1)
10093 delete arg1;
10094 }
10095 return resultobj;
10096 fail:
10097 {
10098 if (temp1)
10099 delete arg1;
10100 }
10101 return NULL;
10102 }
10103
10104
10105 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
10106 PyObject *resultobj;
10107 wxLocale *arg1 = (wxLocale *) 0 ;
10108 wxString *arg2 = 0 ;
10109 bool result;
10110 bool temp2 = False ;
10111 PyObject * obj0 = 0 ;
10112 PyObject * obj1 = 0 ;
10113 char *kwnames[] = {
10114 (char *) "self",(char *) "szDomain", NULL
10115 };
10116
10117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
10118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10120 {
10121 arg2 = wxString_in_helper(obj1);
10122 if (arg2 == NULL) SWIG_fail;
10123 temp2 = True;
10124 }
10125 {
10126 PyThreadState* __tstate = wxPyBeginAllowThreads();
10127 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10128
10129 wxPyEndAllowThreads(__tstate);
10130 if (PyErr_Occurred()) SWIG_fail;
10131 }
10132 {
10133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10134 }
10135 {
10136 if (temp2)
10137 delete arg2;
10138 }
10139 return resultobj;
10140 fail:
10141 {
10142 if (temp2)
10143 delete arg2;
10144 }
10145 return NULL;
10146 }
10147
10148
10149 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
10150 PyObject *resultobj;
10151 wxLocale *arg1 = (wxLocale *) 0 ;
10152 wxString *arg2 = 0 ;
10153 bool result;
10154 bool temp2 = False ;
10155 PyObject * obj0 = 0 ;
10156 PyObject * obj1 = 0 ;
10157 char *kwnames[] = {
10158 (char *) "self",(char *) "szDomain", NULL
10159 };
10160
10161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
10162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10164 {
10165 arg2 = wxString_in_helper(obj1);
10166 if (arg2 == NULL) SWIG_fail;
10167 temp2 = True;
10168 }
10169 {
10170 PyThreadState* __tstate = wxPyBeginAllowThreads();
10171 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10172
10173 wxPyEndAllowThreads(__tstate);
10174 if (PyErr_Occurred()) SWIG_fail;
10175 }
10176 {
10177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10178 }
10179 {
10180 if (temp2)
10181 delete arg2;
10182 }
10183 return resultobj;
10184 fail:
10185 {
10186 if (temp2)
10187 delete arg2;
10188 }
10189 return NULL;
10190 }
10191
10192
10193 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10194 PyObject *resultobj;
10195 int arg1 ;
10196 wxLanguageInfo *result;
10197 PyObject * obj0 = 0 ;
10198 char *kwnames[] = {
10199 (char *) "lang", NULL
10200 };
10201
10202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
10203 arg1 = (int) SWIG_AsInt(obj0);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 {
10206 PyThreadState* __tstate = wxPyBeginAllowThreads();
10207 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10208
10209 wxPyEndAllowThreads(__tstate);
10210 if (PyErr_Occurred()) SWIG_fail;
10211 }
10212 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10213 return resultobj;
10214 fail:
10215 return NULL;
10216 }
10217
10218
10219 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
10220 PyObject *resultobj;
10221 int arg1 ;
10222 wxString result;
10223 PyObject * obj0 = 0 ;
10224 char *kwnames[] = {
10225 (char *) "lang", NULL
10226 };
10227
10228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
10229 arg1 = (int) SWIG_AsInt(obj0);
10230 if (PyErr_Occurred()) SWIG_fail;
10231 {
10232 PyThreadState* __tstate = wxPyBeginAllowThreads();
10233 result = wxLocale::GetLanguageName(arg1);
10234
10235 wxPyEndAllowThreads(__tstate);
10236 if (PyErr_Occurred()) SWIG_fail;
10237 }
10238 {
10239 #if wxUSE_UNICODE
10240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10241 #else
10242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10243 #endif
10244 }
10245 return resultobj;
10246 fail:
10247 return NULL;
10248 }
10249
10250
10251 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10252 PyObject *resultobj;
10253 wxString *arg1 = 0 ;
10254 wxLanguageInfo *result;
10255 bool temp1 = False ;
10256 PyObject * obj0 = 0 ;
10257 char *kwnames[] = {
10258 (char *) "locale", NULL
10259 };
10260
10261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10262 {
10263 arg1 = wxString_in_helper(obj0);
10264 if (arg1 == NULL) SWIG_fail;
10265 temp1 = True;
10266 }
10267 {
10268 PyThreadState* __tstate = wxPyBeginAllowThreads();
10269 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10270
10271 wxPyEndAllowThreads(__tstate);
10272 if (PyErr_Occurred()) SWIG_fail;
10273 }
10274 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10275 {
10276 if (temp1)
10277 delete arg1;
10278 }
10279 return resultobj;
10280 fail:
10281 {
10282 if (temp1)
10283 delete arg1;
10284 }
10285 return NULL;
10286 }
10287
10288
10289 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10290 PyObject *resultobj;
10291 wxLanguageInfo *arg1 = 0 ;
10292 PyObject * obj0 = 0 ;
10293 char *kwnames[] = {
10294 (char *) "info", NULL
10295 };
10296
10297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10299 SWIG_POINTER_EXCEPTION | 0)) == -1)
10300 SWIG_fail;
10301 if (arg1 == NULL) {
10302 PyErr_SetString(PyExc_TypeError,"null reference");
10303 SWIG_fail;
10304 }
10305 {
10306 PyThreadState* __tstate = wxPyBeginAllowThreads();
10307 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10308
10309 wxPyEndAllowThreads(__tstate);
10310 if (PyErr_Occurred()) SWIG_fail;
10311 }
10312 Py_INCREF(Py_None); resultobj = Py_None;
10313 return resultobj;
10314 fail:
10315 return NULL;
10316 }
10317
10318
10319 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
10320 PyObject *resultobj;
10321 wxLocale *arg1 = (wxLocale *) 0 ;
10322 wxString *arg2 = 0 ;
10323 wxString const &arg3_defvalue = wxPyEmptyString ;
10324 wxString *arg3 = (wxString *) &arg3_defvalue ;
10325 wxString result;
10326 bool temp2 = False ;
10327 bool temp3 = False ;
10328 PyObject * obj0 = 0 ;
10329 PyObject * obj1 = 0 ;
10330 PyObject * obj2 = 0 ;
10331 char *kwnames[] = {
10332 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10333 };
10334
10335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10338 {
10339 arg2 = wxString_in_helper(obj1);
10340 if (arg2 == NULL) SWIG_fail;
10341 temp2 = True;
10342 }
10343 if (obj2) {
10344 {
10345 arg3 = wxString_in_helper(obj2);
10346 if (arg3 == NULL) SWIG_fail;
10347 temp3 = True;
10348 }
10349 }
10350 {
10351 PyThreadState* __tstate = wxPyBeginAllowThreads();
10352 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10353
10354 wxPyEndAllowThreads(__tstate);
10355 if (PyErr_Occurred()) SWIG_fail;
10356 }
10357 {
10358 #if wxUSE_UNICODE
10359 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10360 #else
10361 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10362 #endif
10363 }
10364 {
10365 if (temp2)
10366 delete arg2;
10367 }
10368 {
10369 if (temp3)
10370 delete arg3;
10371 }
10372 return resultobj;
10373 fail:
10374 {
10375 if (temp2)
10376 delete arg2;
10377 }
10378 {
10379 if (temp3)
10380 delete arg3;
10381 }
10382 return NULL;
10383 }
10384
10385
10386 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
10387 PyObject *resultobj;
10388 wxLocale *arg1 = (wxLocale *) 0 ;
10389 wxString *result;
10390 PyObject * obj0 = 0 ;
10391 char *kwnames[] = {
10392 (char *) "self", NULL
10393 };
10394
10395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10398 {
10399 PyThreadState* __tstate = wxPyBeginAllowThreads();
10400 {
10401 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10402 result = (wxString *) &_result_ref;
10403 }
10404
10405 wxPyEndAllowThreads(__tstate);
10406 if (PyErr_Occurred()) SWIG_fail;
10407 }
10408 {
10409 #if wxUSE_UNICODE
10410 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10411 #else
10412 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10413 #endif
10414 }
10415 return resultobj;
10416 fail:
10417 return NULL;
10418 }
10419
10420
10421 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
10422 PyObject *obj;
10423 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10424 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10425 Py_INCREF(obj);
10426 return Py_BuildValue((char *)"");
10427 }
10428 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10429 PyObject *resultobj;
10430 wxLocale *result;
10431 char *kwnames[] = {
10432 NULL
10433 };
10434
10435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10436 {
10437 PyThreadState* __tstate = wxPyBeginAllowThreads();
10438 result = (wxLocale *)wxGetLocale();
10439
10440 wxPyEndAllowThreads(__tstate);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
10443 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10444 return resultobj;
10445 fail:
10446 return NULL;
10447 }
10448
10449
10450 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
10451 PyObject *resultobj;
10452 wxString *arg1 = 0 ;
10453 wxString result;
10454 bool temp1 = False ;
10455 PyObject * obj0 = 0 ;
10456
10457 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10458 {
10459 arg1 = wxString_in_helper(obj0);
10460 if (arg1 == NULL) SWIG_fail;
10461 temp1 = True;
10462 }
10463 {
10464 PyThreadState* __tstate = wxPyBeginAllowThreads();
10465 result = wxGetTranslation((wxString const &)*arg1);
10466
10467 wxPyEndAllowThreads(__tstate);
10468 if (PyErr_Occurred()) SWIG_fail;
10469 }
10470 {
10471 #if wxUSE_UNICODE
10472 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10473 #else
10474 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10475 #endif
10476 }
10477 {
10478 if (temp1)
10479 delete arg1;
10480 }
10481 return resultobj;
10482 fail:
10483 {
10484 if (temp1)
10485 delete arg1;
10486 }
10487 return NULL;
10488 }
10489
10490
10491 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10492 PyObject *resultobj;
10493 wxString *arg1 = 0 ;
10494 wxString *arg2 = 0 ;
10495 size_t arg3 ;
10496 wxString result;
10497 bool temp1 = False ;
10498 bool temp2 = False ;
10499 PyObject * obj0 = 0 ;
10500 PyObject * obj1 = 0 ;
10501 PyObject * obj2 = 0 ;
10502
10503 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10504 {
10505 arg1 = wxString_in_helper(obj0);
10506 if (arg1 == NULL) SWIG_fail;
10507 temp1 = True;
10508 }
10509 {
10510 arg2 = wxString_in_helper(obj1);
10511 if (arg2 == NULL) SWIG_fail;
10512 temp2 = True;
10513 }
10514 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10515 if (PyErr_Occurred()) SWIG_fail;
10516 {
10517 PyThreadState* __tstate = wxPyBeginAllowThreads();
10518 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10519
10520 wxPyEndAllowThreads(__tstate);
10521 if (PyErr_Occurred()) SWIG_fail;
10522 }
10523 {
10524 #if wxUSE_UNICODE
10525 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10526 #else
10527 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10528 #endif
10529 }
10530 {
10531 if (temp1)
10532 delete arg1;
10533 }
10534 {
10535 if (temp2)
10536 delete arg2;
10537 }
10538 return resultobj;
10539 fail:
10540 {
10541 if (temp1)
10542 delete arg1;
10543 }
10544 {
10545 if (temp2)
10546 delete arg2;
10547 }
10548 return NULL;
10549 }
10550
10551
10552 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10553 int argc;
10554 PyObject *argv[4];
10555 int ii;
10556
10557 argc = PyObject_Length(args);
10558 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10559 argv[ii] = PyTuple_GetItem(args,ii);
10560 }
10561 if (argc == 1) {
10562 int _v;
10563 {
10564 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10565 }
10566 if (_v) {
10567 return _wrap_GetTranslation__SWIG_0(self,args);
10568 }
10569 }
10570 if (argc == 3) {
10571 int _v;
10572 {
10573 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10574 }
10575 if (_v) {
10576 {
10577 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10578 }
10579 if (_v) {
10580 _v = SWIG_CheckUnsignedLong(argv[2]);
10581 if (_v) {
10582 return _wrap_GetTranslation__SWIG_1(self,args);
10583 }
10584 }
10585 }
10586 }
10587
10588 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10589 return NULL;
10590 }
10591
10592
10593 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10594 PyObject *resultobj;
10595 wxEncodingConverter *result;
10596 char *kwnames[] = {
10597 NULL
10598 };
10599
10600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10601 {
10602 PyThreadState* __tstate = wxPyBeginAllowThreads();
10603 result = (wxEncodingConverter *)new wxEncodingConverter();
10604
10605 wxPyEndAllowThreads(__tstate);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
10608 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10609 return resultobj;
10610 fail:
10611 return NULL;
10612 }
10613
10614
10615 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10616 PyObject *resultobj;
10617 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10618 PyObject * obj0 = 0 ;
10619 char *kwnames[] = {
10620 (char *) "self", NULL
10621 };
10622
10623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10626 {
10627 PyThreadState* __tstate = wxPyBeginAllowThreads();
10628 delete arg1;
10629
10630 wxPyEndAllowThreads(__tstate);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 }
10633 Py_INCREF(Py_None); resultobj = Py_None;
10634 return resultobj;
10635 fail:
10636 return NULL;
10637 }
10638
10639
10640 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10641 PyObject *resultobj;
10642 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10643 int arg2 ;
10644 int arg3 ;
10645 int arg4 = (int) wxCONVERT_STRICT ;
10646 bool result;
10647 PyObject * obj0 = 0 ;
10648 PyObject * obj1 = 0 ;
10649 PyObject * obj2 = 0 ;
10650 PyObject * obj3 = 0 ;
10651 char *kwnames[] = {
10652 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10653 };
10654
10655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10658 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10659 if (PyErr_Occurred()) SWIG_fail;
10660 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10661 if (PyErr_Occurred()) SWIG_fail;
10662 if (obj3) {
10663 arg4 = (int) SWIG_AsInt(obj3);
10664 if (PyErr_Occurred()) SWIG_fail;
10665 }
10666 {
10667 PyThreadState* __tstate = wxPyBeginAllowThreads();
10668 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10669
10670 wxPyEndAllowThreads(__tstate);
10671 if (PyErr_Occurred()) SWIG_fail;
10672 }
10673 {
10674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10675 }
10676 return resultobj;
10677 fail:
10678 return NULL;
10679 }
10680
10681
10682 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10683 PyObject *resultobj;
10684 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10685 wxString *arg2 = 0 ;
10686 wxString result;
10687 bool temp2 = False ;
10688 PyObject * obj0 = 0 ;
10689 PyObject * obj1 = 0 ;
10690 char *kwnames[] = {
10691 (char *) "self",(char *) "input", NULL
10692 };
10693
10694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10697 {
10698 arg2 = wxString_in_helper(obj1);
10699 if (arg2 == NULL) SWIG_fail;
10700 temp2 = True;
10701 }
10702 {
10703 PyThreadState* __tstate = wxPyBeginAllowThreads();
10704 result = (arg1)->Convert((wxString const &)*arg2);
10705
10706 wxPyEndAllowThreads(__tstate);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 }
10709 {
10710 #if wxUSE_UNICODE
10711 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10712 #else
10713 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10714 #endif
10715 }
10716 {
10717 if (temp2)
10718 delete arg2;
10719 }
10720 return resultobj;
10721 fail:
10722 {
10723 if (temp2)
10724 delete arg2;
10725 }
10726 return NULL;
10727 }
10728
10729
10730 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10731 PyObject *resultobj;
10732 int arg1 ;
10733 int arg2 = (int) wxPLATFORM_CURRENT ;
10734 wxFontEncodingArray result;
10735 PyObject * obj0 = 0 ;
10736 PyObject * obj1 = 0 ;
10737 char *kwnames[] = {
10738 (char *) "enc",(char *) "platform", NULL
10739 };
10740
10741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10742 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10743 if (PyErr_Occurred()) SWIG_fail;
10744 if (obj1) {
10745 arg2 = (int) SWIG_AsInt(obj1);
10746 if (PyErr_Occurred()) SWIG_fail;
10747 }
10748 {
10749 PyThreadState* __tstate = wxPyBeginAllowThreads();
10750 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10751
10752 wxPyEndAllowThreads(__tstate);
10753 if (PyErr_Occurred()) SWIG_fail;
10754 }
10755 {
10756 resultobj = PyList_New(0);
10757 for (size_t i=0; i < (&result)->GetCount(); i++) {
10758 PyObject* number = PyInt_FromLong((&result)->Item(i));
10759 PyList_Append(resultobj, number);
10760 Py_DECREF(number);
10761 }
10762 }
10763 return resultobj;
10764 fail:
10765 return NULL;
10766 }
10767
10768
10769 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10770 PyObject *resultobj;
10771 int arg1 ;
10772 wxFontEncodingArray result;
10773 PyObject * obj0 = 0 ;
10774 char *kwnames[] = {
10775 (char *) "enc", NULL
10776 };
10777
10778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10779 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10780 if (PyErr_Occurred()) SWIG_fail;
10781 {
10782 PyThreadState* __tstate = wxPyBeginAllowThreads();
10783 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10784
10785 wxPyEndAllowThreads(__tstate);
10786 if (PyErr_Occurred()) SWIG_fail;
10787 }
10788 {
10789 resultobj = PyList_New(0);
10790 for (size_t i=0; i < (&result)->GetCount(); i++) {
10791 PyObject* number = PyInt_FromLong((&result)->Item(i));
10792 PyList_Append(resultobj, number);
10793 Py_DECREF(number);
10794 }
10795 }
10796 return resultobj;
10797 fail:
10798 return NULL;
10799 }
10800
10801
10802 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10803 PyObject *resultobj;
10804 int arg1 ;
10805 int arg2 ;
10806 bool result;
10807 PyObject * obj0 = 0 ;
10808 PyObject * obj1 = 0 ;
10809 char *kwnames[] = {
10810 (char *) "encIn",(char *) "encOut", NULL
10811 };
10812
10813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10814 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10815 if (PyErr_Occurred()) SWIG_fail;
10816 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 {
10819 PyThreadState* __tstate = wxPyBeginAllowThreads();
10820 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10821
10822 wxPyEndAllowThreads(__tstate);
10823 if (PyErr_Occurred()) SWIG_fail;
10824 }
10825 {
10826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10827 }
10828 return resultobj;
10829 fail:
10830 return NULL;
10831 }
10832
10833
10834 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10835 PyObject *obj;
10836 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10837 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10838 Py_INCREF(obj);
10839 return Py_BuildValue((char *)"");
10840 }
10841 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10842 PyObject *resultobj;
10843 wxDC *arg1 = (wxDC *) 0 ;
10844 PyObject * obj0 = 0 ;
10845 char *kwnames[] = {
10846 (char *) "self", NULL
10847 };
10848
10849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10852 {
10853 PyThreadState* __tstate = wxPyBeginAllowThreads();
10854 delete arg1;
10855
10856 wxPyEndAllowThreads(__tstate);
10857 if (PyErr_Occurred()) SWIG_fail;
10858 }
10859 Py_INCREF(Py_None); resultobj = Py_None;
10860 return resultobj;
10861 fail:
10862 return NULL;
10863 }
10864
10865
10866 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10867 PyObject *resultobj;
10868 wxDC *arg1 = (wxDC *) 0 ;
10869 PyObject * obj0 = 0 ;
10870 char *kwnames[] = {
10871 (char *) "self", NULL
10872 };
10873
10874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10877 {
10878 PyThreadState* __tstate = wxPyBeginAllowThreads();
10879 (arg1)->BeginDrawing();
10880
10881 wxPyEndAllowThreads(__tstate);
10882 if (PyErr_Occurred()) SWIG_fail;
10883 }
10884 Py_INCREF(Py_None); resultobj = Py_None;
10885 return resultobj;
10886 fail:
10887 return NULL;
10888 }
10889
10890
10891 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10892 PyObject *resultobj;
10893 wxDC *arg1 = (wxDC *) 0 ;
10894 PyObject * obj0 = 0 ;
10895 char *kwnames[] = {
10896 (char *) "self", NULL
10897 };
10898
10899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10902 {
10903 PyThreadState* __tstate = wxPyBeginAllowThreads();
10904 (arg1)->EndDrawing();
10905
10906 wxPyEndAllowThreads(__tstate);
10907 if (PyErr_Occurred()) SWIG_fail;
10908 }
10909 Py_INCREF(Py_None); resultobj = Py_None;
10910 return resultobj;
10911 fail:
10912 return NULL;
10913 }
10914
10915
10916 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10917 PyObject *resultobj;
10918 wxDC *arg1 = (wxDC *) 0 ;
10919 int arg2 ;
10920 int arg3 ;
10921 wxColour *arg4 = 0 ;
10922 int arg5 = (int) wxFLOOD_SURFACE ;
10923 bool result;
10924 wxColour temp4 ;
10925 PyObject * obj0 = 0 ;
10926 PyObject * obj1 = 0 ;
10927 PyObject * obj2 = 0 ;
10928 PyObject * obj3 = 0 ;
10929 PyObject * obj4 = 0 ;
10930 char *kwnames[] = {
10931 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10932 };
10933
10934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10937 arg2 = (int) SWIG_AsInt(obj1);
10938 if (PyErr_Occurred()) SWIG_fail;
10939 arg3 = (int) SWIG_AsInt(obj2);
10940 if (PyErr_Occurred()) SWIG_fail;
10941 {
10942 arg4 = &temp4;
10943 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10944 }
10945 if (obj4) {
10946 arg5 = (int) SWIG_AsInt(obj4);
10947 if (PyErr_Occurred()) SWIG_fail;
10948 }
10949 {
10950 PyThreadState* __tstate = wxPyBeginAllowThreads();
10951 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10952
10953 wxPyEndAllowThreads(__tstate);
10954 if (PyErr_Occurred()) SWIG_fail;
10955 }
10956 {
10957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10958 }
10959 return resultobj;
10960 fail:
10961 return NULL;
10962 }
10963
10964
10965 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10966 PyObject *resultobj;
10967 wxDC *arg1 = (wxDC *) 0 ;
10968 wxPoint *arg2 = 0 ;
10969 wxColour *arg3 = 0 ;
10970 int arg4 = (int) wxFLOOD_SURFACE ;
10971 bool result;
10972 wxPoint temp2 ;
10973 wxColour temp3 ;
10974 PyObject * obj0 = 0 ;
10975 PyObject * obj1 = 0 ;
10976 PyObject * obj2 = 0 ;
10977 PyObject * obj3 = 0 ;
10978 char *kwnames[] = {
10979 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10980 };
10981
10982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10985 {
10986 arg2 = &temp2;
10987 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10988 }
10989 {
10990 arg3 = &temp3;
10991 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10992 }
10993 if (obj3) {
10994 arg4 = (int) SWIG_AsInt(obj3);
10995 if (PyErr_Occurred()) SWIG_fail;
10996 }
10997 {
10998 PyThreadState* __tstate = wxPyBeginAllowThreads();
10999 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
11000
11001 wxPyEndAllowThreads(__tstate);
11002 if (PyErr_Occurred()) SWIG_fail;
11003 }
11004 {
11005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11006 }
11007 return resultobj;
11008 fail:
11009 return NULL;
11010 }
11011
11012
11013 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11014 PyObject *resultobj;
11015 wxDC *arg1 = (wxDC *) 0 ;
11016 int arg2 ;
11017 int arg3 ;
11018 wxColour result;
11019 PyObject * obj0 = 0 ;
11020 PyObject * obj1 = 0 ;
11021 PyObject * obj2 = 0 ;
11022 char *kwnames[] = {
11023 (char *) "self",(char *) "x",(char *) "y", NULL
11024 };
11025
11026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11029 arg2 = (int) SWIG_AsInt(obj1);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 arg3 = (int) SWIG_AsInt(obj2);
11032 if (PyErr_Occurred()) SWIG_fail;
11033 {
11034 PyThreadState* __tstate = wxPyBeginAllowThreads();
11035 result = wxDC_GetPixelXY(arg1,arg2,arg3);
11036
11037 wxPyEndAllowThreads(__tstate);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 }
11040 {
11041 wxColour * resultptr;
11042 resultptr = new wxColour((wxColour &) result);
11043 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11044 }
11045 return resultobj;
11046 fail:
11047 return NULL;
11048 }
11049
11050
11051 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
11052 PyObject *resultobj;
11053 wxDC *arg1 = (wxDC *) 0 ;
11054 wxPoint *arg2 = 0 ;
11055 wxColour result;
11056 wxPoint temp2 ;
11057 PyObject * obj0 = 0 ;
11058 PyObject * obj1 = 0 ;
11059 char *kwnames[] = {
11060 (char *) "self",(char *) "pt", NULL
11061 };
11062
11063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
11064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11066 {
11067 arg2 = &temp2;
11068 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11069 }
11070 {
11071 PyThreadState* __tstate = wxPyBeginAllowThreads();
11072 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
11073
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 {
11078 wxColour * resultptr;
11079 resultptr = new wxColour((wxColour &) result);
11080 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11081 }
11082 return resultobj;
11083 fail:
11084 return NULL;
11085 }
11086
11087
11088 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11089 PyObject *resultobj;
11090 wxDC *arg1 = (wxDC *) 0 ;
11091 int arg2 ;
11092 int arg3 ;
11093 int arg4 ;
11094 int arg5 ;
11095 PyObject * obj0 = 0 ;
11096 PyObject * obj1 = 0 ;
11097 PyObject * obj2 = 0 ;
11098 PyObject * obj3 = 0 ;
11099 PyObject * obj4 = 0 ;
11100 char *kwnames[] = {
11101 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
11102 };
11103
11104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11107 arg2 = (int) SWIG_AsInt(obj1);
11108 if (PyErr_Occurred()) SWIG_fail;
11109 arg3 = (int) SWIG_AsInt(obj2);
11110 if (PyErr_Occurred()) SWIG_fail;
11111 arg4 = (int) SWIG_AsInt(obj3);
11112 if (PyErr_Occurred()) SWIG_fail;
11113 arg5 = (int) SWIG_AsInt(obj4);
11114 if (PyErr_Occurred()) SWIG_fail;
11115 {
11116 PyThreadState* __tstate = wxPyBeginAllowThreads();
11117 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
11118
11119 wxPyEndAllowThreads(__tstate);
11120 if (PyErr_Occurred()) SWIG_fail;
11121 }
11122 Py_INCREF(Py_None); resultobj = Py_None;
11123 return resultobj;
11124 fail:
11125 return NULL;
11126 }
11127
11128
11129 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
11130 PyObject *resultobj;
11131 wxDC *arg1 = (wxDC *) 0 ;
11132 wxPoint *arg2 = 0 ;
11133 wxPoint *arg3 = 0 ;
11134 wxPoint temp2 ;
11135 wxPoint temp3 ;
11136 PyObject * obj0 = 0 ;
11137 PyObject * obj1 = 0 ;
11138 PyObject * obj2 = 0 ;
11139 char *kwnames[] = {
11140 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11141 };
11142
11143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
11144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11146 {
11147 arg2 = &temp2;
11148 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11149 }
11150 {
11151 arg3 = &temp3;
11152 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11153 }
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11157
11158 wxPyEndAllowThreads(__tstate);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 Py_INCREF(Py_None); resultobj = Py_None;
11162 return resultobj;
11163 fail:
11164 return NULL;
11165 }
11166
11167
11168 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11169 PyObject *resultobj;
11170 wxDC *arg1 = (wxDC *) 0 ;
11171 int arg2 ;
11172 int arg3 ;
11173 PyObject * obj0 = 0 ;
11174 PyObject * obj1 = 0 ;
11175 PyObject * obj2 = 0 ;
11176 char *kwnames[] = {
11177 (char *) "self",(char *) "x",(char *) "y", NULL
11178 };
11179
11180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11183 arg2 = (int) SWIG_AsInt(obj1);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 arg3 = (int) SWIG_AsInt(obj2);
11186 if (PyErr_Occurred()) SWIG_fail;
11187 {
11188 PyThreadState* __tstate = wxPyBeginAllowThreads();
11189 (arg1)->CrossHair(arg2,arg3);
11190
11191 wxPyEndAllowThreads(__tstate);
11192 if (PyErr_Occurred()) SWIG_fail;
11193 }
11194 Py_INCREF(Py_None); resultobj = Py_None;
11195 return resultobj;
11196 fail:
11197 return NULL;
11198 }
11199
11200
11201 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
11202 PyObject *resultobj;
11203 wxDC *arg1 = (wxDC *) 0 ;
11204 wxPoint *arg2 = 0 ;
11205 wxPoint temp2 ;
11206 PyObject * obj0 = 0 ;
11207 PyObject * obj1 = 0 ;
11208 char *kwnames[] = {
11209 (char *) "self",(char *) "pt", NULL
11210 };
11211
11212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
11213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11215 {
11216 arg2 = &temp2;
11217 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11218 }
11219 {
11220 PyThreadState* __tstate = wxPyBeginAllowThreads();
11221 (arg1)->CrossHair((wxPoint const &)*arg2);
11222
11223 wxPyEndAllowThreads(__tstate);
11224 if (PyErr_Occurred()) SWIG_fail;
11225 }
11226 Py_INCREF(Py_None); resultobj = Py_None;
11227 return resultobj;
11228 fail:
11229 return NULL;
11230 }
11231
11232
11233 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11234 PyObject *resultobj;
11235 wxDC *arg1 = (wxDC *) 0 ;
11236 int arg2 ;
11237 int arg3 ;
11238 int arg4 ;
11239 int arg5 ;
11240 int arg6 ;
11241 int arg7 ;
11242 PyObject * obj0 = 0 ;
11243 PyObject * obj1 = 0 ;
11244 PyObject * obj2 = 0 ;
11245 PyObject * obj3 = 0 ;
11246 PyObject * obj4 = 0 ;
11247 PyObject * obj5 = 0 ;
11248 PyObject * obj6 = 0 ;
11249 char *kwnames[] = {
11250 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11251 };
11252
11253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11256 arg2 = (int) SWIG_AsInt(obj1);
11257 if (PyErr_Occurred()) SWIG_fail;
11258 arg3 = (int) SWIG_AsInt(obj2);
11259 if (PyErr_Occurred()) SWIG_fail;
11260 arg4 = (int) SWIG_AsInt(obj3);
11261 if (PyErr_Occurred()) SWIG_fail;
11262 arg5 = (int) SWIG_AsInt(obj4);
11263 if (PyErr_Occurred()) SWIG_fail;
11264 arg6 = (int) SWIG_AsInt(obj5);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 arg7 = (int) SWIG_AsInt(obj6);
11267 if (PyErr_Occurred()) SWIG_fail;
11268 {
11269 PyThreadState* __tstate = wxPyBeginAllowThreads();
11270 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11271
11272 wxPyEndAllowThreads(__tstate);
11273 if (PyErr_Occurred()) SWIG_fail;
11274 }
11275 Py_INCREF(Py_None); resultobj = Py_None;
11276 return resultobj;
11277 fail:
11278 return NULL;
11279 }
11280
11281
11282 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11283 PyObject *resultobj;
11284 wxDC *arg1 = (wxDC *) 0 ;
11285 wxPoint *arg2 = 0 ;
11286 wxPoint *arg3 = 0 ;
11287 wxPoint *arg4 = 0 ;
11288 wxPoint temp2 ;
11289 wxPoint temp3 ;
11290 wxPoint temp4 ;
11291 PyObject * obj0 = 0 ;
11292 PyObject * obj1 = 0 ;
11293 PyObject * obj2 = 0 ;
11294 PyObject * obj3 = 0 ;
11295 char *kwnames[] = {
11296 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
11297 };
11298
11299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11302 {
11303 arg2 = &temp2;
11304 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11305 }
11306 {
11307 arg3 = &temp3;
11308 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11309 }
11310 {
11311 arg4 = &temp4;
11312 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11313 }
11314 {
11315 PyThreadState* __tstate = wxPyBeginAllowThreads();
11316 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11317
11318 wxPyEndAllowThreads(__tstate);
11319 if (PyErr_Occurred()) SWIG_fail;
11320 }
11321 Py_INCREF(Py_None); resultobj = Py_None;
11322 return resultobj;
11323 fail:
11324 return NULL;
11325 }
11326
11327
11328 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11329 PyObject *resultobj;
11330 wxDC *arg1 = (wxDC *) 0 ;
11331 int arg2 ;
11332 int arg3 ;
11333 int arg4 ;
11334 int arg5 ;
11335 PyObject * obj0 = 0 ;
11336 PyObject * obj1 = 0 ;
11337 PyObject * obj2 = 0 ;
11338 PyObject * obj3 = 0 ;
11339 PyObject * obj4 = 0 ;
11340 char *kwnames[] = {
11341 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11342 };
11343
11344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11347 arg2 = (int) SWIG_AsInt(obj1);
11348 if (PyErr_Occurred()) SWIG_fail;
11349 arg3 = (int) SWIG_AsInt(obj2);
11350 if (PyErr_Occurred()) SWIG_fail;
11351 arg4 = (int) SWIG_AsInt(obj3);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 arg5 = (int) SWIG_AsInt(obj4);
11354 if (PyErr_Occurred()) SWIG_fail;
11355 {
11356 PyThreadState* __tstate = wxPyBeginAllowThreads();
11357 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11358
11359 wxPyEndAllowThreads(__tstate);
11360 if (PyErr_Occurred()) SWIG_fail;
11361 }
11362 Py_INCREF(Py_None); resultobj = Py_None;
11363 return resultobj;
11364 fail:
11365 return NULL;
11366 }
11367
11368
11369 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
11370 PyObject *resultobj;
11371 wxDC *arg1 = (wxDC *) 0 ;
11372 wxRect *arg2 = 0 ;
11373 wxRect temp2 ;
11374 PyObject * obj0 = 0 ;
11375 PyObject * obj1 = 0 ;
11376 char *kwnames[] = {
11377 (char *) "self",(char *) "rect", NULL
11378 };
11379
11380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
11381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11383 {
11384 arg2 = &temp2;
11385 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11386 }
11387 {
11388 PyThreadState* __tstate = wxPyBeginAllowThreads();
11389 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11390
11391 wxPyEndAllowThreads(__tstate);
11392 if (PyErr_Occurred()) SWIG_fail;
11393 }
11394 Py_INCREF(Py_None); resultobj = Py_None;
11395 return resultobj;
11396 fail:
11397 return NULL;
11398 }
11399
11400
11401 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11402 PyObject *resultobj;
11403 wxDC *arg1 = (wxDC *) 0 ;
11404 int arg2 ;
11405 int arg3 ;
11406 int arg4 ;
11407 int arg5 ;
11408 double arg6 ;
11409 double arg7 ;
11410 PyObject * obj0 = 0 ;
11411 PyObject * obj1 = 0 ;
11412 PyObject * obj2 = 0 ;
11413 PyObject * obj3 = 0 ;
11414 PyObject * obj4 = 0 ;
11415 PyObject * obj5 = 0 ;
11416 PyObject * obj6 = 0 ;
11417 char *kwnames[] = {
11418 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
11419 };
11420
11421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11424 arg2 = (int) SWIG_AsInt(obj1);
11425 if (PyErr_Occurred()) SWIG_fail;
11426 arg3 = (int) SWIG_AsInt(obj2);
11427 if (PyErr_Occurred()) SWIG_fail;
11428 arg4 = (int) SWIG_AsInt(obj3);
11429 if (PyErr_Occurred()) SWIG_fail;
11430 arg5 = (int) SWIG_AsInt(obj4);
11431 if (PyErr_Occurred()) SWIG_fail;
11432 arg6 = (double) SWIG_AsDouble(obj5);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 arg7 = (double) SWIG_AsDouble(obj6);
11435 if (PyErr_Occurred()) SWIG_fail;
11436 {
11437 PyThreadState* __tstate = wxPyBeginAllowThreads();
11438 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
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_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11451 PyObject *resultobj;
11452 wxDC *arg1 = (wxDC *) 0 ;
11453 wxPoint *arg2 = 0 ;
11454 wxSize *arg3 = 0 ;
11455 double arg4 ;
11456 double arg5 ;
11457 wxPoint temp2 ;
11458 wxSize temp3 ;
11459 PyObject * obj0 = 0 ;
11460 PyObject * obj1 = 0 ;
11461 PyObject * obj2 = 0 ;
11462 PyObject * obj3 = 0 ;
11463 PyObject * obj4 = 0 ;
11464 char *kwnames[] = {
11465 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11466 };
11467
11468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11471 {
11472 arg2 = &temp2;
11473 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11474 }
11475 {
11476 arg3 = &temp3;
11477 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11478 }
11479 arg4 = (double) SWIG_AsDouble(obj3);
11480 if (PyErr_Occurred()) SWIG_fail;
11481 arg5 = (double) SWIG_AsDouble(obj4);
11482 if (PyErr_Occurred()) SWIG_fail;
11483 {
11484 PyThreadState* __tstate = wxPyBeginAllowThreads();
11485 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11486
11487 wxPyEndAllowThreads(__tstate);
11488 if (PyErr_Occurred()) SWIG_fail;
11489 }
11490 Py_INCREF(Py_None); resultobj = Py_None;
11491 return resultobj;
11492 fail:
11493 return NULL;
11494 }
11495
11496
11497 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11498 PyObject *resultobj;
11499 wxDC *arg1 = (wxDC *) 0 ;
11500 int arg2 ;
11501 int arg3 ;
11502 PyObject * obj0 = 0 ;
11503 PyObject * obj1 = 0 ;
11504 PyObject * obj2 = 0 ;
11505 char *kwnames[] = {
11506 (char *) "self",(char *) "x",(char *) "y", NULL
11507 };
11508
11509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11512 arg2 = (int) SWIG_AsInt(obj1);
11513 if (PyErr_Occurred()) SWIG_fail;
11514 arg3 = (int) SWIG_AsInt(obj2);
11515 if (PyErr_Occurred()) SWIG_fail;
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 (arg1)->DrawPoint(arg2,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_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11531 PyObject *resultobj;
11532 wxDC *arg1 = (wxDC *) 0 ;
11533 wxPoint *arg2 = 0 ;
11534 wxPoint temp2 ;
11535 PyObject * obj0 = 0 ;
11536 PyObject * obj1 = 0 ;
11537 char *kwnames[] = {
11538 (char *) "self",(char *) "pt", NULL
11539 };
11540
11541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",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 ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11547 }
11548 {
11549 PyThreadState* __tstate = wxPyBeginAllowThreads();
11550 (arg1)->DrawPoint((wxPoint 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_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11563 PyObject *resultobj;
11564 wxDC *arg1 = (wxDC *) 0 ;
11565 int arg2 ;
11566 int arg3 ;
11567 int arg4 ;
11568 int arg5 ;
11569 PyObject * obj0 = 0 ;
11570 PyObject * obj1 = 0 ;
11571 PyObject * obj2 = 0 ;
11572 PyObject * obj3 = 0 ;
11573 PyObject * obj4 = 0 ;
11574 char *kwnames[] = {
11575 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11576 };
11577
11578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11581 arg2 = (int) SWIG_AsInt(obj1);
11582 if (PyErr_Occurred()) SWIG_fail;
11583 arg3 = (int) SWIG_AsInt(obj2);
11584 if (PyErr_Occurred()) SWIG_fail;
11585 arg4 = (int) SWIG_AsInt(obj3);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 arg5 = (int) SWIG_AsInt(obj4);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 {
11590 PyThreadState* __tstate = wxPyBeginAllowThreads();
11591 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11592
11593 wxPyEndAllowThreads(__tstate);
11594 if (PyErr_Occurred()) SWIG_fail;
11595 }
11596 Py_INCREF(Py_None); resultobj = Py_None;
11597 return resultobj;
11598 fail:
11599 return NULL;
11600 }
11601
11602
11603 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11604 PyObject *resultobj;
11605 wxDC *arg1 = (wxDC *) 0 ;
11606 wxPoint *arg2 = 0 ;
11607 wxSize *arg3 = 0 ;
11608 wxPoint temp2 ;
11609 wxSize temp3 ;
11610 PyObject * obj0 = 0 ;
11611 PyObject * obj1 = 0 ;
11612 PyObject * obj2 = 0 ;
11613 char *kwnames[] = {
11614 (char *) "self",(char *) "pt",(char *) "sz", NULL
11615 };
11616
11617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",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 {
11621 arg2 = &temp2;
11622 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11623 }
11624 {
11625 arg3 = &temp3;
11626 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11627 }
11628 {
11629 PyThreadState* __tstate = wxPyBeginAllowThreads();
11630 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11631
11632 wxPyEndAllowThreads(__tstate);
11633 if (PyErr_Occurred()) SWIG_fail;
11634 }
11635 Py_INCREF(Py_None); resultobj = Py_None;
11636 return resultobj;
11637 fail:
11638 return NULL;
11639 }
11640
11641
11642 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11643 PyObject *resultobj;
11644 wxDC *arg1 = (wxDC *) 0 ;
11645 wxRect *arg2 = 0 ;
11646 wxRect temp2 ;
11647 PyObject * obj0 = 0 ;
11648 PyObject * obj1 = 0 ;
11649 char *kwnames[] = {
11650 (char *) "self",(char *) "rect", NULL
11651 };
11652
11653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11656 {
11657 arg2 = &temp2;
11658 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11659 }
11660 {
11661 PyThreadState* __tstate = wxPyBeginAllowThreads();
11662 (arg1)->DrawRectangle((wxRect const &)*arg2);
11663
11664 wxPyEndAllowThreads(__tstate);
11665 if (PyErr_Occurred()) SWIG_fail;
11666 }
11667 Py_INCREF(Py_None); resultobj = Py_None;
11668 return resultobj;
11669 fail:
11670 return NULL;
11671 }
11672
11673
11674 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11675 PyObject *resultobj;
11676 wxDC *arg1 = (wxDC *) 0 ;
11677 int arg2 ;
11678 int arg3 ;
11679 int arg4 ;
11680 int arg5 ;
11681 double arg6 ;
11682 PyObject * obj0 = 0 ;
11683 PyObject * obj1 = 0 ;
11684 PyObject * obj2 = 0 ;
11685 PyObject * obj3 = 0 ;
11686 PyObject * obj4 = 0 ;
11687 PyObject * obj5 = 0 ;
11688 char *kwnames[] = {
11689 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11690 };
11691
11692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11695 arg2 = (int) SWIG_AsInt(obj1);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 arg3 = (int) SWIG_AsInt(obj2);
11698 if (PyErr_Occurred()) SWIG_fail;
11699 arg4 = (int) SWIG_AsInt(obj3);
11700 if (PyErr_Occurred()) SWIG_fail;
11701 arg5 = (int) SWIG_AsInt(obj4);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 arg6 = (double) SWIG_AsDouble(obj5);
11704 if (PyErr_Occurred()) SWIG_fail;
11705 {
11706 PyThreadState* __tstate = wxPyBeginAllowThreads();
11707 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11708
11709 wxPyEndAllowThreads(__tstate);
11710 if (PyErr_Occurred()) SWIG_fail;
11711 }
11712 Py_INCREF(Py_None); resultobj = Py_None;
11713 return resultobj;
11714 fail:
11715 return NULL;
11716 }
11717
11718
11719 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11720 PyObject *resultobj;
11721 wxDC *arg1 = (wxDC *) 0 ;
11722 wxPoint *arg2 = 0 ;
11723 wxSize *arg3 = 0 ;
11724 double arg4 ;
11725 wxPoint temp2 ;
11726 wxSize temp3 ;
11727 PyObject * obj0 = 0 ;
11728 PyObject * obj1 = 0 ;
11729 PyObject * obj2 = 0 ;
11730 PyObject * obj3 = 0 ;
11731 char *kwnames[] = {
11732 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11733 };
11734
11735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11738 {
11739 arg2 = &temp2;
11740 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11741 }
11742 {
11743 arg3 = &temp3;
11744 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11745 }
11746 arg4 = (double) SWIG_AsDouble(obj3);
11747 if (PyErr_Occurred()) SWIG_fail;
11748 {
11749 PyThreadState* __tstate = wxPyBeginAllowThreads();
11750 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11751
11752 wxPyEndAllowThreads(__tstate);
11753 if (PyErr_Occurred()) SWIG_fail;
11754 }
11755 Py_INCREF(Py_None); resultobj = Py_None;
11756 return resultobj;
11757 fail:
11758 return NULL;
11759 }
11760
11761
11762 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11763 PyObject *resultobj;
11764 wxDC *arg1 = (wxDC *) 0 ;
11765 wxRect *arg2 = 0 ;
11766 double arg3 ;
11767 wxRect temp2 ;
11768 PyObject * obj0 = 0 ;
11769 PyObject * obj1 = 0 ;
11770 PyObject * obj2 = 0 ;
11771 char *kwnames[] = {
11772 (char *) "self",(char *) "r",(char *) "radius", NULL
11773 };
11774
11775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11778 {
11779 arg2 = &temp2;
11780 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11781 }
11782 arg3 = (double) SWIG_AsDouble(obj2);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 {
11785 PyThreadState* __tstate = wxPyBeginAllowThreads();
11786 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11787
11788 wxPyEndAllowThreads(__tstate);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 Py_INCREF(Py_None); resultobj = Py_None;
11792 return resultobj;
11793 fail:
11794 return NULL;
11795 }
11796
11797
11798 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11799 PyObject *resultobj;
11800 wxDC *arg1 = (wxDC *) 0 ;
11801 int arg2 ;
11802 int arg3 ;
11803 int arg4 ;
11804 PyObject * obj0 = 0 ;
11805 PyObject * obj1 = 0 ;
11806 PyObject * obj2 = 0 ;
11807 PyObject * obj3 = 0 ;
11808 char *kwnames[] = {
11809 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11810 };
11811
11812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11815 arg2 = (int) SWIG_AsInt(obj1);
11816 if (PyErr_Occurred()) SWIG_fail;
11817 arg3 = (int) SWIG_AsInt(obj2);
11818 if (PyErr_Occurred()) SWIG_fail;
11819 arg4 = (int) SWIG_AsInt(obj3);
11820 if (PyErr_Occurred()) SWIG_fail;
11821 {
11822 PyThreadState* __tstate = wxPyBeginAllowThreads();
11823 (arg1)->DrawCircle(arg2,arg3,arg4);
11824
11825 wxPyEndAllowThreads(__tstate);
11826 if (PyErr_Occurred()) SWIG_fail;
11827 }
11828 Py_INCREF(Py_None); resultobj = Py_None;
11829 return resultobj;
11830 fail:
11831 return NULL;
11832 }
11833
11834
11835 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11836 PyObject *resultobj;
11837 wxDC *arg1 = (wxDC *) 0 ;
11838 wxPoint *arg2 = 0 ;
11839 int arg3 ;
11840 wxPoint temp2 ;
11841 PyObject * obj0 = 0 ;
11842 PyObject * obj1 = 0 ;
11843 PyObject * obj2 = 0 ;
11844 char *kwnames[] = {
11845 (char *) "self",(char *) "pt",(char *) "radius", NULL
11846 };
11847
11848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11851 {
11852 arg2 = &temp2;
11853 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11854 }
11855 arg3 = (int) SWIG_AsInt(obj2);
11856 if (PyErr_Occurred()) SWIG_fail;
11857 {
11858 PyThreadState* __tstate = wxPyBeginAllowThreads();
11859 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11860
11861 wxPyEndAllowThreads(__tstate);
11862 if (PyErr_Occurred()) SWIG_fail;
11863 }
11864 Py_INCREF(Py_None); resultobj = Py_None;
11865 return resultobj;
11866 fail:
11867 return NULL;
11868 }
11869
11870
11871 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11872 PyObject *resultobj;
11873 wxDC *arg1 = (wxDC *) 0 ;
11874 int arg2 ;
11875 int arg3 ;
11876 int arg4 ;
11877 int arg5 ;
11878 PyObject * obj0 = 0 ;
11879 PyObject * obj1 = 0 ;
11880 PyObject * obj2 = 0 ;
11881 PyObject * obj3 = 0 ;
11882 PyObject * obj4 = 0 ;
11883 char *kwnames[] = {
11884 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11885 };
11886
11887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11890 arg2 = (int) SWIG_AsInt(obj1);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 arg3 = (int) SWIG_AsInt(obj2);
11893 if (PyErr_Occurred()) SWIG_fail;
11894 arg4 = (int) SWIG_AsInt(obj3);
11895 if (PyErr_Occurred()) SWIG_fail;
11896 arg5 = (int) SWIG_AsInt(obj4);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 {
11899 PyThreadState* __tstate = wxPyBeginAllowThreads();
11900 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11901
11902 wxPyEndAllowThreads(__tstate);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 Py_INCREF(Py_None); resultobj = Py_None;
11906 return resultobj;
11907 fail:
11908 return NULL;
11909 }
11910
11911
11912 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11913 PyObject *resultobj;
11914 wxDC *arg1 = (wxDC *) 0 ;
11915 wxPoint *arg2 = 0 ;
11916 wxSize *arg3 = 0 ;
11917 wxPoint temp2 ;
11918 wxSize temp3 ;
11919 PyObject * obj0 = 0 ;
11920 PyObject * obj1 = 0 ;
11921 PyObject * obj2 = 0 ;
11922 char *kwnames[] = {
11923 (char *) "self",(char *) "pt",(char *) "sz", NULL
11924 };
11925
11926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11929 {
11930 arg2 = &temp2;
11931 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11932 }
11933 {
11934 arg3 = &temp3;
11935 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11936 }
11937 {
11938 PyThreadState* __tstate = wxPyBeginAllowThreads();
11939 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11940
11941 wxPyEndAllowThreads(__tstate);
11942 if (PyErr_Occurred()) SWIG_fail;
11943 }
11944 Py_INCREF(Py_None); resultobj = Py_None;
11945 return resultobj;
11946 fail:
11947 return NULL;
11948 }
11949
11950
11951 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11952 PyObject *resultobj;
11953 wxDC *arg1 = (wxDC *) 0 ;
11954 wxRect *arg2 = 0 ;
11955 wxRect temp2 ;
11956 PyObject * obj0 = 0 ;
11957 PyObject * obj1 = 0 ;
11958 char *kwnames[] = {
11959 (char *) "self",(char *) "rect", NULL
11960 };
11961
11962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11965 {
11966 arg2 = &temp2;
11967 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11968 }
11969 {
11970 PyThreadState* __tstate = wxPyBeginAllowThreads();
11971 (arg1)->DrawEllipse((wxRect const &)*arg2);
11972
11973 wxPyEndAllowThreads(__tstate);
11974 if (PyErr_Occurred()) SWIG_fail;
11975 }
11976 Py_INCREF(Py_None); resultobj = Py_None;
11977 return resultobj;
11978 fail:
11979 return NULL;
11980 }
11981
11982
11983 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11984 PyObject *resultobj;
11985 wxDC *arg1 = (wxDC *) 0 ;
11986 wxIcon *arg2 = 0 ;
11987 int arg3 ;
11988 int arg4 ;
11989 PyObject * obj0 = 0 ;
11990 PyObject * obj1 = 0 ;
11991 PyObject * obj2 = 0 ;
11992 PyObject * obj3 = 0 ;
11993 char *kwnames[] = {
11994 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11995 };
11996
11997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12000 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12001 SWIG_POINTER_EXCEPTION | 0)) == -1)
12002 SWIG_fail;
12003 if (arg2 == NULL) {
12004 PyErr_SetString(PyExc_TypeError,"null reference");
12005 SWIG_fail;
12006 }
12007 arg3 = (int) SWIG_AsInt(obj2);
12008 if (PyErr_Occurred()) SWIG_fail;
12009 arg4 = (int) SWIG_AsInt(obj3);
12010 if (PyErr_Occurred()) SWIG_fail;
12011 {
12012 PyThreadState* __tstate = wxPyBeginAllowThreads();
12013 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
12014
12015 wxPyEndAllowThreads(__tstate);
12016 if (PyErr_Occurred()) SWIG_fail;
12017 }
12018 Py_INCREF(Py_None); resultobj = Py_None;
12019 return resultobj;
12020 fail:
12021 return NULL;
12022 }
12023
12024
12025 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12026 PyObject *resultobj;
12027 wxDC *arg1 = (wxDC *) 0 ;
12028 wxIcon *arg2 = 0 ;
12029 wxPoint *arg3 = 0 ;
12030 wxPoint temp3 ;
12031 PyObject * obj0 = 0 ;
12032 PyObject * obj1 = 0 ;
12033 PyObject * obj2 = 0 ;
12034 char *kwnames[] = {
12035 (char *) "self",(char *) "icon",(char *) "pt", NULL
12036 };
12037
12038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12041 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12042 SWIG_POINTER_EXCEPTION | 0)) == -1)
12043 SWIG_fail;
12044 if (arg2 == NULL) {
12045 PyErr_SetString(PyExc_TypeError,"null reference");
12046 SWIG_fail;
12047 }
12048 {
12049 arg3 = &temp3;
12050 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12051 }
12052 {
12053 PyThreadState* __tstate = wxPyBeginAllowThreads();
12054 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
12055
12056 wxPyEndAllowThreads(__tstate);
12057 if (PyErr_Occurred()) SWIG_fail;
12058 }
12059 Py_INCREF(Py_None); resultobj = Py_None;
12060 return resultobj;
12061 fail:
12062 return NULL;
12063 }
12064
12065
12066 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12067 PyObject *resultobj;
12068 wxDC *arg1 = (wxDC *) 0 ;
12069 wxBitmap *arg2 = 0 ;
12070 int arg3 ;
12071 int arg4 ;
12072 bool arg5 = (bool) False ;
12073 PyObject * obj0 = 0 ;
12074 PyObject * obj1 = 0 ;
12075 PyObject * obj2 = 0 ;
12076 PyObject * obj3 = 0 ;
12077 PyObject * obj4 = 0 ;
12078 char *kwnames[] = {
12079 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
12080 };
12081
12082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12085 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12086 SWIG_POINTER_EXCEPTION | 0)) == -1)
12087 SWIG_fail;
12088 if (arg2 == NULL) {
12089 PyErr_SetString(PyExc_TypeError,"null reference");
12090 SWIG_fail;
12091 }
12092 arg3 = (int) SWIG_AsInt(obj2);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 arg4 = (int) SWIG_AsInt(obj3);
12095 if (PyErr_Occurred()) SWIG_fail;
12096 if (obj4) {
12097 arg5 = (bool) SWIG_AsBool(obj4);
12098 if (PyErr_Occurred()) SWIG_fail;
12099 }
12100 {
12101 PyThreadState* __tstate = wxPyBeginAllowThreads();
12102 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
12103
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 Py_INCREF(Py_None); resultobj = Py_None;
12108 return resultobj;
12109 fail:
12110 return NULL;
12111 }
12112
12113
12114 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
12115 PyObject *resultobj;
12116 wxDC *arg1 = (wxDC *) 0 ;
12117 wxBitmap *arg2 = 0 ;
12118 wxPoint *arg3 = 0 ;
12119 bool arg4 = (bool) False ;
12120 wxPoint temp3 ;
12121 PyObject * obj0 = 0 ;
12122 PyObject * obj1 = 0 ;
12123 PyObject * obj2 = 0 ;
12124 PyObject * obj3 = 0 ;
12125 char *kwnames[] = {
12126 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
12127 };
12128
12129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12132 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12133 SWIG_POINTER_EXCEPTION | 0)) == -1)
12134 SWIG_fail;
12135 if (arg2 == NULL) {
12136 PyErr_SetString(PyExc_TypeError,"null reference");
12137 SWIG_fail;
12138 }
12139 {
12140 arg3 = &temp3;
12141 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12142 }
12143 if (obj3) {
12144 arg4 = (bool) SWIG_AsBool(obj3);
12145 if (PyErr_Occurred()) SWIG_fail;
12146 }
12147 {
12148 PyThreadState* __tstate = wxPyBeginAllowThreads();
12149 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12150
12151 wxPyEndAllowThreads(__tstate);
12152 if (PyErr_Occurred()) SWIG_fail;
12153 }
12154 Py_INCREF(Py_None); resultobj = Py_None;
12155 return resultobj;
12156 fail:
12157 return NULL;
12158 }
12159
12160
12161 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12162 PyObject *resultobj;
12163 wxDC *arg1 = (wxDC *) 0 ;
12164 wxString *arg2 = 0 ;
12165 int arg3 ;
12166 int arg4 ;
12167 bool temp2 = False ;
12168 PyObject * obj0 = 0 ;
12169 PyObject * obj1 = 0 ;
12170 PyObject * obj2 = 0 ;
12171 PyObject * obj3 = 0 ;
12172 char *kwnames[] = {
12173 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12174 };
12175
12176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12179 {
12180 arg2 = wxString_in_helper(obj1);
12181 if (arg2 == NULL) SWIG_fail;
12182 temp2 = True;
12183 }
12184 arg3 = (int) SWIG_AsInt(obj2);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 arg4 = (int) SWIG_AsInt(obj3);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 {
12189 PyThreadState* __tstate = wxPyBeginAllowThreads();
12190 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12191
12192 wxPyEndAllowThreads(__tstate);
12193 if (PyErr_Occurred()) SWIG_fail;
12194 }
12195 Py_INCREF(Py_None); resultobj = Py_None;
12196 {
12197 if (temp2)
12198 delete arg2;
12199 }
12200 return resultobj;
12201 fail:
12202 {
12203 if (temp2)
12204 delete arg2;
12205 }
12206 return NULL;
12207 }
12208
12209
12210 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
12211 PyObject *resultobj;
12212 wxDC *arg1 = (wxDC *) 0 ;
12213 wxString *arg2 = 0 ;
12214 wxPoint *arg3 = 0 ;
12215 bool temp2 = False ;
12216 wxPoint temp3 ;
12217 PyObject * obj0 = 0 ;
12218 PyObject * obj1 = 0 ;
12219 PyObject * obj2 = 0 ;
12220 char *kwnames[] = {
12221 (char *) "self",(char *) "text",(char *) "pt", NULL
12222 };
12223
12224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
12225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12227 {
12228 arg2 = wxString_in_helper(obj1);
12229 if (arg2 == NULL) SWIG_fail;
12230 temp2 = True;
12231 }
12232 {
12233 arg3 = &temp3;
12234 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12235 }
12236 {
12237 PyThreadState* __tstate = wxPyBeginAllowThreads();
12238 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12239
12240 wxPyEndAllowThreads(__tstate);
12241 if (PyErr_Occurred()) SWIG_fail;
12242 }
12243 Py_INCREF(Py_None); resultobj = Py_None;
12244 {
12245 if (temp2)
12246 delete arg2;
12247 }
12248 return resultobj;
12249 fail:
12250 {
12251 if (temp2)
12252 delete arg2;
12253 }
12254 return NULL;
12255 }
12256
12257
12258 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12259 PyObject *resultobj;
12260 wxDC *arg1 = (wxDC *) 0 ;
12261 wxString *arg2 = 0 ;
12262 int arg3 ;
12263 int arg4 ;
12264 double arg5 ;
12265 bool temp2 = False ;
12266 PyObject * obj0 = 0 ;
12267 PyObject * obj1 = 0 ;
12268 PyObject * obj2 = 0 ;
12269 PyObject * obj3 = 0 ;
12270 PyObject * obj4 = 0 ;
12271 char *kwnames[] = {
12272 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12273 };
12274
12275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12278 {
12279 arg2 = wxString_in_helper(obj1);
12280 if (arg2 == NULL) SWIG_fail;
12281 temp2 = True;
12282 }
12283 arg3 = (int) SWIG_AsInt(obj2);
12284 if (PyErr_Occurred()) SWIG_fail;
12285 arg4 = (int) SWIG_AsInt(obj3);
12286 if (PyErr_Occurred()) SWIG_fail;
12287 arg5 = (double) SWIG_AsDouble(obj4);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 {
12290 PyThreadState* __tstate = wxPyBeginAllowThreads();
12291 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12292
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 Py_INCREF(Py_None); resultobj = Py_None;
12297 {
12298 if (temp2)
12299 delete arg2;
12300 }
12301 return resultobj;
12302 fail:
12303 {
12304 if (temp2)
12305 delete arg2;
12306 }
12307 return NULL;
12308 }
12309
12310
12311 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
12312 PyObject *resultobj;
12313 wxDC *arg1 = (wxDC *) 0 ;
12314 wxString *arg2 = 0 ;
12315 wxPoint *arg3 = 0 ;
12316 double arg4 ;
12317 bool temp2 = False ;
12318 wxPoint temp3 ;
12319 PyObject * obj0 = 0 ;
12320 PyObject * obj1 = 0 ;
12321 PyObject * obj2 = 0 ;
12322 PyObject * obj3 = 0 ;
12323 char *kwnames[] = {
12324 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12325 };
12326
12327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12330 {
12331 arg2 = wxString_in_helper(obj1);
12332 if (arg2 == NULL) SWIG_fail;
12333 temp2 = True;
12334 }
12335 {
12336 arg3 = &temp3;
12337 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12338 }
12339 arg4 = (double) SWIG_AsDouble(obj3);
12340 if (PyErr_Occurred()) SWIG_fail;
12341 {
12342 PyThreadState* __tstate = wxPyBeginAllowThreads();
12343 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12344
12345 wxPyEndAllowThreads(__tstate);
12346 if (PyErr_Occurred()) SWIG_fail;
12347 }
12348 Py_INCREF(Py_None); resultobj = Py_None;
12349 {
12350 if (temp2)
12351 delete arg2;
12352 }
12353 return resultobj;
12354 fail:
12355 {
12356 if (temp2)
12357 delete arg2;
12358 }
12359 return NULL;
12360 }
12361
12362
12363 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12364 PyObject *resultobj;
12365 wxDC *arg1 = (wxDC *) 0 ;
12366 int arg2 ;
12367 int arg3 ;
12368 int arg4 ;
12369 int arg5 ;
12370 wxDC *arg6 = (wxDC *) 0 ;
12371 int arg7 ;
12372 int arg8 ;
12373 int arg9 = (int) wxCOPY ;
12374 bool arg10 = (bool) False ;
12375 int arg11 = (int) -1 ;
12376 int arg12 = (int) -1 ;
12377 bool result;
12378 PyObject * obj0 = 0 ;
12379 PyObject * obj1 = 0 ;
12380 PyObject * obj2 = 0 ;
12381 PyObject * obj3 = 0 ;
12382 PyObject * obj4 = 0 ;
12383 PyObject * obj5 = 0 ;
12384 PyObject * obj6 = 0 ;
12385 PyObject * obj7 = 0 ;
12386 PyObject * obj8 = 0 ;
12387 PyObject * obj9 = 0 ;
12388 PyObject * obj10 = 0 ;
12389 PyObject * obj11 = 0 ;
12390 char *kwnames[] = {
12391 (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
12392 };
12393
12394 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;
12395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12397 arg2 = (int) SWIG_AsInt(obj1);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 arg3 = (int) SWIG_AsInt(obj2);
12400 if (PyErr_Occurred()) SWIG_fail;
12401 arg4 = (int) SWIG_AsInt(obj3);
12402 if (PyErr_Occurred()) SWIG_fail;
12403 arg5 = (int) SWIG_AsInt(obj4);
12404 if (PyErr_Occurred()) SWIG_fail;
12405 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12407 arg7 = (int) SWIG_AsInt(obj6);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 arg8 = (int) SWIG_AsInt(obj7);
12410 if (PyErr_Occurred()) SWIG_fail;
12411 if (obj8) {
12412 arg9 = (int) SWIG_AsInt(obj8);
12413 if (PyErr_Occurred()) SWIG_fail;
12414 }
12415 if (obj9) {
12416 arg10 = (bool) SWIG_AsBool(obj9);
12417 if (PyErr_Occurred()) SWIG_fail;
12418 }
12419 if (obj10) {
12420 arg11 = (int) SWIG_AsInt(obj10);
12421 if (PyErr_Occurred()) SWIG_fail;
12422 }
12423 if (obj11) {
12424 arg12 = (int) SWIG_AsInt(obj11);
12425 if (PyErr_Occurred()) SWIG_fail;
12426 }
12427 {
12428 PyThreadState* __tstate = wxPyBeginAllowThreads();
12429 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12430
12431 wxPyEndAllowThreads(__tstate);
12432 if (PyErr_Occurred()) SWIG_fail;
12433 }
12434 {
12435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12436 }
12437 return resultobj;
12438 fail:
12439 return NULL;
12440 }
12441
12442
12443 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12444 PyObject *resultobj;
12445 wxDC *arg1 = (wxDC *) 0 ;
12446 wxPoint *arg2 = 0 ;
12447 wxSize *arg3 = 0 ;
12448 wxDC *arg4 = (wxDC *) 0 ;
12449 wxPoint *arg5 = 0 ;
12450 int arg6 = (int) wxCOPY ;
12451 bool arg7 = (bool) False ;
12452 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12453 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12454 bool result;
12455 wxPoint temp2 ;
12456 wxSize temp3 ;
12457 wxPoint temp5 ;
12458 wxPoint temp8 ;
12459 PyObject * obj0 = 0 ;
12460 PyObject * obj1 = 0 ;
12461 PyObject * obj2 = 0 ;
12462 PyObject * obj3 = 0 ;
12463 PyObject * obj4 = 0 ;
12464 PyObject * obj5 = 0 ;
12465 PyObject * obj6 = 0 ;
12466 PyObject * obj7 = 0 ;
12467 char *kwnames[] = {
12468 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12469 };
12470
12471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12474 {
12475 arg2 = &temp2;
12476 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12477 }
12478 {
12479 arg3 = &temp3;
12480 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12481 }
12482 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12484 {
12485 arg5 = &temp5;
12486 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12487 }
12488 if (obj5) {
12489 arg6 = (int) SWIG_AsInt(obj5);
12490 if (PyErr_Occurred()) SWIG_fail;
12491 }
12492 if (obj6) {
12493 arg7 = (bool) SWIG_AsBool(obj6);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 }
12496 if (obj7) {
12497 {
12498 arg8 = &temp8;
12499 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12500 }
12501 }
12502 {
12503 PyThreadState* __tstate = wxPyBeginAllowThreads();
12504 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12505
12506 wxPyEndAllowThreads(__tstate);
12507 if (PyErr_Occurred()) SWIG_fail;
12508 }
12509 {
12510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12511 }
12512 return resultobj;
12513 fail:
12514 return NULL;
12515 }
12516
12517
12518 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12519 PyObject *resultobj;
12520 wxDC *arg1 = (wxDC *) 0 ;
12521 int arg2 ;
12522 wxPoint *arg3 = (wxPoint *) 0 ;
12523 int arg4 = (int) 0 ;
12524 int arg5 = (int) 0 ;
12525 PyObject * obj0 = 0 ;
12526 PyObject * obj1 = 0 ;
12527 PyObject * obj2 = 0 ;
12528 PyObject * obj3 = 0 ;
12529 char *kwnames[] = {
12530 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12531 };
12532
12533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12536 {
12537 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12538 if (arg3 == NULL) SWIG_fail;
12539 }
12540 if (obj2) {
12541 arg4 = (int) SWIG_AsInt(obj2);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 }
12544 if (obj3) {
12545 arg5 = (int) SWIG_AsInt(obj3);
12546 if (PyErr_Occurred()) SWIG_fail;
12547 }
12548 {
12549 PyThreadState* __tstate = wxPyBeginAllowThreads();
12550 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12551
12552 wxPyEndAllowThreads(__tstate);
12553 if (PyErr_Occurred()) SWIG_fail;
12554 }
12555 Py_INCREF(Py_None); resultobj = Py_None;
12556 {
12557 if (arg3) delete [] arg3;
12558 }
12559 return resultobj;
12560 fail:
12561 {
12562 if (arg3) delete [] arg3;
12563 }
12564 return NULL;
12565 }
12566
12567
12568 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12569 PyObject *resultobj;
12570 wxDC *arg1 = (wxDC *) 0 ;
12571 int arg2 ;
12572 wxPoint *arg3 = (wxPoint *) 0 ;
12573 int arg4 = (int) 0 ;
12574 int arg5 = (int) 0 ;
12575 int arg6 = (int) wxODDEVEN_RULE ;
12576 PyObject * obj0 = 0 ;
12577 PyObject * obj1 = 0 ;
12578 PyObject * obj2 = 0 ;
12579 PyObject * obj3 = 0 ;
12580 PyObject * obj4 = 0 ;
12581 char *kwnames[] = {
12582 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12583 };
12584
12585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12588 {
12589 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12590 if (arg3 == NULL) SWIG_fail;
12591 }
12592 if (obj2) {
12593 arg4 = (int) SWIG_AsInt(obj2);
12594 if (PyErr_Occurred()) SWIG_fail;
12595 }
12596 if (obj3) {
12597 arg5 = (int) SWIG_AsInt(obj3);
12598 if (PyErr_Occurred()) SWIG_fail;
12599 }
12600 if (obj4) {
12601 arg6 = (int) SWIG_AsInt(obj4);
12602 if (PyErr_Occurred()) SWIG_fail;
12603 }
12604 {
12605 PyThreadState* __tstate = wxPyBeginAllowThreads();
12606 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12607
12608 wxPyEndAllowThreads(__tstate);
12609 if (PyErr_Occurred()) SWIG_fail;
12610 }
12611 Py_INCREF(Py_None); resultobj = Py_None;
12612 {
12613 if (arg3) delete [] arg3;
12614 }
12615 return resultobj;
12616 fail:
12617 {
12618 if (arg3) delete [] arg3;
12619 }
12620 return NULL;
12621 }
12622
12623
12624 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12625 PyObject *resultobj;
12626 wxDC *arg1 = (wxDC *) 0 ;
12627 wxString *arg2 = 0 ;
12628 wxRect *arg3 = 0 ;
12629 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12630 int arg5 = (int) -1 ;
12631 bool temp2 = False ;
12632 wxRect temp3 ;
12633 PyObject * obj0 = 0 ;
12634 PyObject * obj1 = 0 ;
12635 PyObject * obj2 = 0 ;
12636 PyObject * obj3 = 0 ;
12637 PyObject * obj4 = 0 ;
12638 char *kwnames[] = {
12639 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12640 };
12641
12642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12645 {
12646 arg2 = wxString_in_helper(obj1);
12647 if (arg2 == NULL) SWIG_fail;
12648 temp2 = True;
12649 }
12650 {
12651 arg3 = &temp3;
12652 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12653 }
12654 if (obj3) {
12655 arg4 = (int) SWIG_AsInt(obj3);
12656 if (PyErr_Occurred()) SWIG_fail;
12657 }
12658 if (obj4) {
12659 arg5 = (int) SWIG_AsInt(obj4);
12660 if (PyErr_Occurred()) SWIG_fail;
12661 }
12662 {
12663 PyThreadState* __tstate = wxPyBeginAllowThreads();
12664 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12665
12666 wxPyEndAllowThreads(__tstate);
12667 if (PyErr_Occurred()) SWIG_fail;
12668 }
12669 Py_INCREF(Py_None); resultobj = Py_None;
12670 {
12671 if (temp2)
12672 delete arg2;
12673 }
12674 return resultobj;
12675 fail:
12676 {
12677 if (temp2)
12678 delete arg2;
12679 }
12680 return NULL;
12681 }
12682
12683
12684 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12685 PyObject *resultobj;
12686 wxDC *arg1 = (wxDC *) 0 ;
12687 wxString *arg2 = 0 ;
12688 wxBitmap *arg3 = 0 ;
12689 wxRect *arg4 = 0 ;
12690 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12691 int arg6 = (int) -1 ;
12692 wxRect result;
12693 bool temp2 = False ;
12694 wxRect temp4 ;
12695 PyObject * obj0 = 0 ;
12696 PyObject * obj1 = 0 ;
12697 PyObject * obj2 = 0 ;
12698 PyObject * obj3 = 0 ;
12699 PyObject * obj4 = 0 ;
12700 PyObject * obj5 = 0 ;
12701 char *kwnames[] = {
12702 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12703 };
12704
12705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12708 {
12709 arg2 = wxString_in_helper(obj1);
12710 if (arg2 == NULL) SWIG_fail;
12711 temp2 = True;
12712 }
12713 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12714 SWIG_POINTER_EXCEPTION | 0)) == -1)
12715 SWIG_fail;
12716 if (arg3 == NULL) {
12717 PyErr_SetString(PyExc_TypeError,"null reference");
12718 SWIG_fail;
12719 }
12720 {
12721 arg4 = &temp4;
12722 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12723 }
12724 if (obj4) {
12725 arg5 = (int) SWIG_AsInt(obj4);
12726 if (PyErr_Occurred()) SWIG_fail;
12727 }
12728 if (obj5) {
12729 arg6 = (int) SWIG_AsInt(obj5);
12730 if (PyErr_Occurred()) SWIG_fail;
12731 }
12732 {
12733 PyThreadState* __tstate = wxPyBeginAllowThreads();
12734 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12735
12736 wxPyEndAllowThreads(__tstate);
12737 if (PyErr_Occurred()) SWIG_fail;
12738 }
12739 {
12740 wxRect * resultptr;
12741 resultptr = new wxRect((wxRect &) result);
12742 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12743 }
12744 {
12745 if (temp2)
12746 delete arg2;
12747 }
12748 return resultobj;
12749 fail:
12750 {
12751 if (temp2)
12752 delete arg2;
12753 }
12754 return NULL;
12755 }
12756
12757
12758 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12759 PyObject *resultobj;
12760 wxDC *arg1 = (wxDC *) 0 ;
12761 int arg2 ;
12762 wxPoint *arg3 = (wxPoint *) 0 ;
12763 PyObject * obj0 = 0 ;
12764 PyObject * obj1 = 0 ;
12765 char *kwnames[] = {
12766 (char *) "self",(char *) "points", NULL
12767 };
12768
12769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12772 {
12773 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12774 if (arg3 == NULL) SWIG_fail;
12775 }
12776 {
12777 PyThreadState* __tstate = wxPyBeginAllowThreads();
12778 (arg1)->DrawSpline(arg2,arg3);
12779
12780 wxPyEndAllowThreads(__tstate);
12781 if (PyErr_Occurred()) SWIG_fail;
12782 }
12783 Py_INCREF(Py_None); resultobj = Py_None;
12784 {
12785 if (arg3) delete [] arg3;
12786 }
12787 return resultobj;
12788 fail:
12789 {
12790 if (arg3) delete [] arg3;
12791 }
12792 return NULL;
12793 }
12794
12795
12796 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12797 PyObject *resultobj;
12798 wxDC *arg1 = (wxDC *) 0 ;
12799 PyObject * obj0 = 0 ;
12800 char *kwnames[] = {
12801 (char *) "self", NULL
12802 };
12803
12804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12807 {
12808 PyThreadState* __tstate = wxPyBeginAllowThreads();
12809 (arg1)->Clear();
12810
12811 wxPyEndAllowThreads(__tstate);
12812 if (PyErr_Occurred()) SWIG_fail;
12813 }
12814 Py_INCREF(Py_None); resultobj = Py_None;
12815 return resultobj;
12816 fail:
12817 return NULL;
12818 }
12819
12820
12821 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12822 PyObject *resultobj;
12823 wxDC *arg1 = (wxDC *) 0 ;
12824 wxString *arg2 = 0 ;
12825 bool result;
12826 bool temp2 = False ;
12827 PyObject * obj0 = 0 ;
12828 PyObject * obj1 = 0 ;
12829 char *kwnames[] = {
12830 (char *) "self",(char *) "message", NULL
12831 };
12832
12833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12836 {
12837 arg2 = wxString_in_helper(obj1);
12838 if (arg2 == NULL) SWIG_fail;
12839 temp2 = True;
12840 }
12841 {
12842 PyThreadState* __tstate = wxPyBeginAllowThreads();
12843 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12844
12845 wxPyEndAllowThreads(__tstate);
12846 if (PyErr_Occurred()) SWIG_fail;
12847 }
12848 {
12849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12850 }
12851 {
12852 if (temp2)
12853 delete arg2;
12854 }
12855 return resultobj;
12856 fail:
12857 {
12858 if (temp2)
12859 delete arg2;
12860 }
12861 return NULL;
12862 }
12863
12864
12865 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12866 PyObject *resultobj;
12867 wxDC *arg1 = (wxDC *) 0 ;
12868 PyObject * obj0 = 0 ;
12869 char *kwnames[] = {
12870 (char *) "self", NULL
12871 };
12872
12873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12876 {
12877 PyThreadState* __tstate = wxPyBeginAllowThreads();
12878 (arg1)->EndDoc();
12879
12880 wxPyEndAllowThreads(__tstate);
12881 if (PyErr_Occurred()) SWIG_fail;
12882 }
12883 Py_INCREF(Py_None); resultobj = Py_None;
12884 return resultobj;
12885 fail:
12886 return NULL;
12887 }
12888
12889
12890 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12891 PyObject *resultobj;
12892 wxDC *arg1 = (wxDC *) 0 ;
12893 PyObject * obj0 = 0 ;
12894 char *kwnames[] = {
12895 (char *) "self", NULL
12896 };
12897
12898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12901 {
12902 PyThreadState* __tstate = wxPyBeginAllowThreads();
12903 (arg1)->StartPage();
12904
12905 wxPyEndAllowThreads(__tstate);
12906 if (PyErr_Occurred()) SWIG_fail;
12907 }
12908 Py_INCREF(Py_None); resultobj = Py_None;
12909 return resultobj;
12910 fail:
12911 return NULL;
12912 }
12913
12914
12915 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12916 PyObject *resultobj;
12917 wxDC *arg1 = (wxDC *) 0 ;
12918 PyObject * obj0 = 0 ;
12919 char *kwnames[] = {
12920 (char *) "self", NULL
12921 };
12922
12923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12926 {
12927 PyThreadState* __tstate = wxPyBeginAllowThreads();
12928 (arg1)->EndPage();
12929
12930 wxPyEndAllowThreads(__tstate);
12931 if (PyErr_Occurred()) SWIG_fail;
12932 }
12933 Py_INCREF(Py_None); resultobj = Py_None;
12934 return resultobj;
12935 fail:
12936 return NULL;
12937 }
12938
12939
12940 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12941 PyObject *resultobj;
12942 wxDC *arg1 = (wxDC *) 0 ;
12943 wxFont *arg2 = 0 ;
12944 PyObject * obj0 = 0 ;
12945 PyObject * obj1 = 0 ;
12946 char *kwnames[] = {
12947 (char *) "self",(char *) "font", NULL
12948 };
12949
12950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12953 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12954 SWIG_POINTER_EXCEPTION | 0)) == -1)
12955 SWIG_fail;
12956 if (arg2 == NULL) {
12957 PyErr_SetString(PyExc_TypeError,"null reference");
12958 SWIG_fail;
12959 }
12960 {
12961 PyThreadState* __tstate = wxPyBeginAllowThreads();
12962 (arg1)->SetFont((wxFont const &)*arg2);
12963
12964 wxPyEndAllowThreads(__tstate);
12965 if (PyErr_Occurred()) SWIG_fail;
12966 }
12967 Py_INCREF(Py_None); resultobj = Py_None;
12968 return resultobj;
12969 fail:
12970 return NULL;
12971 }
12972
12973
12974 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12975 PyObject *resultobj;
12976 wxDC *arg1 = (wxDC *) 0 ;
12977 wxPen *arg2 = 0 ;
12978 PyObject * obj0 = 0 ;
12979 PyObject * obj1 = 0 ;
12980 char *kwnames[] = {
12981 (char *) "self",(char *) "pen", NULL
12982 };
12983
12984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12987 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12988 SWIG_POINTER_EXCEPTION | 0)) == -1)
12989 SWIG_fail;
12990 if (arg2 == NULL) {
12991 PyErr_SetString(PyExc_TypeError,"null reference");
12992 SWIG_fail;
12993 }
12994 {
12995 PyThreadState* __tstate = wxPyBeginAllowThreads();
12996 (arg1)->SetPen((wxPen const &)*arg2);
12997
12998 wxPyEndAllowThreads(__tstate);
12999 if (PyErr_Occurred()) SWIG_fail;
13000 }
13001 Py_INCREF(Py_None); resultobj = Py_None;
13002 return resultobj;
13003 fail:
13004 return NULL;
13005 }
13006
13007
13008 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13009 PyObject *resultobj;
13010 wxDC *arg1 = (wxDC *) 0 ;
13011 wxBrush *arg2 = 0 ;
13012 PyObject * obj0 = 0 ;
13013 PyObject * obj1 = 0 ;
13014 char *kwnames[] = {
13015 (char *) "self",(char *) "brush", NULL
13016 };
13017
13018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
13019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13021 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13022 SWIG_POINTER_EXCEPTION | 0)) == -1)
13023 SWIG_fail;
13024 if (arg2 == NULL) {
13025 PyErr_SetString(PyExc_TypeError,"null reference");
13026 SWIG_fail;
13027 }
13028 {
13029 PyThreadState* __tstate = wxPyBeginAllowThreads();
13030 (arg1)->SetBrush((wxBrush const &)*arg2);
13031
13032 wxPyEndAllowThreads(__tstate);
13033 if (PyErr_Occurred()) SWIG_fail;
13034 }
13035 Py_INCREF(Py_None); resultobj = Py_None;
13036 return resultobj;
13037 fail:
13038 return NULL;
13039 }
13040
13041
13042 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13043 PyObject *resultobj;
13044 wxDC *arg1 = (wxDC *) 0 ;
13045 wxBrush *arg2 = 0 ;
13046 PyObject * obj0 = 0 ;
13047 PyObject * obj1 = 0 ;
13048 char *kwnames[] = {
13049 (char *) "self",(char *) "brush", NULL
13050 };
13051
13052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
13053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13055 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13056 SWIG_POINTER_EXCEPTION | 0)) == -1)
13057 SWIG_fail;
13058 if (arg2 == NULL) {
13059 PyErr_SetString(PyExc_TypeError,"null reference");
13060 SWIG_fail;
13061 }
13062 {
13063 PyThreadState* __tstate = wxPyBeginAllowThreads();
13064 (arg1)->SetBackground((wxBrush const &)*arg2);
13065
13066 wxPyEndAllowThreads(__tstate);
13067 if (PyErr_Occurred()) SWIG_fail;
13068 }
13069 Py_INCREF(Py_None); resultobj = Py_None;
13070 return resultobj;
13071 fail:
13072 return NULL;
13073 }
13074
13075
13076 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13077 PyObject *resultobj;
13078 wxDC *arg1 = (wxDC *) 0 ;
13079 int arg2 ;
13080 PyObject * obj0 = 0 ;
13081 PyObject * obj1 = 0 ;
13082 char *kwnames[] = {
13083 (char *) "self",(char *) "mode", NULL
13084 };
13085
13086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13089 arg2 = (int) SWIG_AsInt(obj1);
13090 if (PyErr_Occurred()) SWIG_fail;
13091 {
13092 PyThreadState* __tstate = wxPyBeginAllowThreads();
13093 (arg1)->SetBackgroundMode(arg2);
13094
13095 wxPyEndAllowThreads(__tstate);
13096 if (PyErr_Occurred()) SWIG_fail;
13097 }
13098 Py_INCREF(Py_None); resultobj = Py_None;
13099 return resultobj;
13100 fail:
13101 return NULL;
13102 }
13103
13104
13105 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
13106 PyObject *resultobj;
13107 wxDC *arg1 = (wxDC *) 0 ;
13108 wxPalette *arg2 = 0 ;
13109 PyObject * obj0 = 0 ;
13110 PyObject * obj1 = 0 ;
13111 char *kwnames[] = {
13112 (char *) "self",(char *) "palette", NULL
13113 };
13114
13115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13118 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13119 SWIG_POINTER_EXCEPTION | 0)) == -1)
13120 SWIG_fail;
13121 if (arg2 == NULL) {
13122 PyErr_SetString(PyExc_TypeError,"null reference");
13123 SWIG_fail;
13124 }
13125 {
13126 PyThreadState* __tstate = wxPyBeginAllowThreads();
13127 (arg1)->SetPalette((wxPalette const &)*arg2);
13128
13129 wxPyEndAllowThreads(__tstate);
13130 if (PyErr_Occurred()) SWIG_fail;
13131 }
13132 Py_INCREF(Py_None); resultobj = Py_None;
13133 return resultobj;
13134 fail:
13135 return NULL;
13136 }
13137
13138
13139 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
13140 PyObject *resultobj;
13141 wxDC *arg1 = (wxDC *) 0 ;
13142 int arg2 ;
13143 int arg3 ;
13144 int arg4 ;
13145 int arg5 ;
13146 PyObject * obj0 = 0 ;
13147 PyObject * obj1 = 0 ;
13148 PyObject * obj2 = 0 ;
13149 PyObject * obj3 = 0 ;
13150 PyObject * obj4 = 0 ;
13151 char *kwnames[] = {
13152 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13153 };
13154
13155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13158 arg2 = (int) SWIG_AsInt(obj1);
13159 if (PyErr_Occurred()) SWIG_fail;
13160 arg3 = (int) SWIG_AsInt(obj2);
13161 if (PyErr_Occurred()) SWIG_fail;
13162 arg4 = (int) SWIG_AsInt(obj3);
13163 if (PyErr_Occurred()) SWIG_fail;
13164 arg5 = (int) SWIG_AsInt(obj4);
13165 if (PyErr_Occurred()) SWIG_fail;
13166 {
13167 PyThreadState* __tstate = wxPyBeginAllowThreads();
13168 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
13169
13170 wxPyEndAllowThreads(__tstate);
13171 if (PyErr_Occurred()) SWIG_fail;
13172 }
13173 Py_INCREF(Py_None); resultobj = Py_None;
13174 return resultobj;
13175 fail:
13176 return NULL;
13177 }
13178
13179
13180 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13181 PyObject *resultobj;
13182 wxDC *arg1 = (wxDC *) 0 ;
13183 wxPoint *arg2 = 0 ;
13184 wxSize *arg3 = 0 ;
13185 wxPoint temp2 ;
13186 wxSize temp3 ;
13187 PyObject * obj0 = 0 ;
13188 PyObject * obj1 = 0 ;
13189 PyObject * obj2 = 0 ;
13190 char *kwnames[] = {
13191 (char *) "self",(char *) "pt",(char *) "sz", NULL
13192 };
13193
13194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
13195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13197 {
13198 arg2 = &temp2;
13199 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13200 }
13201 {
13202 arg3 = &temp3;
13203 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13204 }
13205 {
13206 PyThreadState* __tstate = wxPyBeginAllowThreads();
13207 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
13208
13209 wxPyEndAllowThreads(__tstate);
13210 if (PyErr_Occurred()) SWIG_fail;
13211 }
13212 Py_INCREF(Py_None); resultobj = Py_None;
13213 return resultobj;
13214 fail:
13215 return NULL;
13216 }
13217
13218
13219 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13220 PyObject *resultobj;
13221 wxDC *arg1 = (wxDC *) 0 ;
13222 wxRect *arg2 = 0 ;
13223 wxRect temp2 ;
13224 PyObject * obj0 = 0 ;
13225 PyObject * obj1 = 0 ;
13226 char *kwnames[] = {
13227 (char *) "self",(char *) "rect", NULL
13228 };
13229
13230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
13231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13233 {
13234 arg2 = &temp2;
13235 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13236 }
13237 {
13238 PyThreadState* __tstate = wxPyBeginAllowThreads();
13239 (arg1)->SetClippingRegion((wxRect const &)*arg2);
13240
13241 wxPyEndAllowThreads(__tstate);
13242 if (PyErr_Occurred()) SWIG_fail;
13243 }
13244 Py_INCREF(Py_None); resultobj = Py_None;
13245 return resultobj;
13246 fail:
13247 return NULL;
13248 }
13249
13250
13251 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13252 PyObject *resultobj;
13253 wxDC *arg1 = (wxDC *) 0 ;
13254 wxRegion *arg2 = 0 ;
13255 PyObject * obj0 = 0 ;
13256 PyObject * obj1 = 0 ;
13257 char *kwnames[] = {
13258 (char *) "self",(char *) "region", NULL
13259 };
13260
13261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
13262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13264 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
13265 SWIG_POINTER_EXCEPTION | 0)) == -1)
13266 SWIG_fail;
13267 if (arg2 == NULL) {
13268 PyErr_SetString(PyExc_TypeError,"null reference");
13269 SWIG_fail;
13270 }
13271 {
13272 PyThreadState* __tstate = wxPyBeginAllowThreads();
13273 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
13274
13275 wxPyEndAllowThreads(__tstate);
13276 if (PyErr_Occurred()) SWIG_fail;
13277 }
13278 Py_INCREF(Py_None); resultobj = Py_None;
13279 return resultobj;
13280 fail:
13281 return NULL;
13282 }
13283
13284
13285 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13286 PyObject *resultobj;
13287 wxDC *arg1 = (wxDC *) 0 ;
13288 PyObject * obj0 = 0 ;
13289 char *kwnames[] = {
13290 (char *) "self", NULL
13291 };
13292
13293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13296 {
13297 PyThreadState* __tstate = wxPyBeginAllowThreads();
13298 (arg1)->DestroyClippingRegion();
13299
13300 wxPyEndAllowThreads(__tstate);
13301 if (PyErr_Occurred()) SWIG_fail;
13302 }
13303 Py_INCREF(Py_None); resultobj = Py_None;
13304 return resultobj;
13305 fail:
13306 return NULL;
13307 }
13308
13309
13310 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13311 PyObject *resultobj;
13312 wxDC *arg1 = (wxDC *) 0 ;
13313 int *arg2 = (int *) 0 ;
13314 int *arg3 = (int *) 0 ;
13315 int *arg4 = (int *) 0 ;
13316 int *arg5 = (int *) 0 ;
13317 int temp2 ;
13318 int temp3 ;
13319 int temp4 ;
13320 int temp5 ;
13321 PyObject * obj0 = 0 ;
13322 char *kwnames[] = {
13323 (char *) "self", NULL
13324 };
13325
13326 arg2 = &temp2;
13327 arg3 = &temp3;
13328 arg4 = &temp4;
13329 arg5 = &temp5;
13330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13333 {
13334 PyThreadState* __tstate = wxPyBeginAllowThreads();
13335 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13336
13337 wxPyEndAllowThreads(__tstate);
13338 if (PyErr_Occurred()) SWIG_fail;
13339 }
13340 Py_INCREF(Py_None); resultobj = Py_None;
13341 {
13342 PyObject *o = PyInt_FromLong((long) (*arg2));
13343 resultobj = t_output_helper(resultobj,o);
13344 }
13345 {
13346 PyObject *o = PyInt_FromLong((long) (*arg3));
13347 resultobj = t_output_helper(resultobj,o);
13348 }
13349 {
13350 PyObject *o = PyInt_FromLong((long) (*arg4));
13351 resultobj = t_output_helper(resultobj,o);
13352 }
13353 {
13354 PyObject *o = PyInt_FromLong((long) (*arg5));
13355 resultobj = t_output_helper(resultobj,o);
13356 }
13357 return resultobj;
13358 fail:
13359 return NULL;
13360 }
13361
13362
13363 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13364 PyObject *resultobj;
13365 wxDC *arg1 = (wxDC *) 0 ;
13366 wxRect result;
13367 PyObject * obj0 = 0 ;
13368 char *kwnames[] = {
13369 (char *) "self", NULL
13370 };
13371
13372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13375 {
13376 PyThreadState* __tstate = wxPyBeginAllowThreads();
13377 result = wxDC_GetClippingRect(arg1);
13378
13379 wxPyEndAllowThreads(__tstate);
13380 if (PyErr_Occurred()) SWIG_fail;
13381 }
13382 {
13383 wxRect * resultptr;
13384 resultptr = new wxRect((wxRect &) result);
13385 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13386 }
13387 return resultobj;
13388 fail:
13389 return NULL;
13390 }
13391
13392
13393 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13394 PyObject *resultobj;
13395 wxDC *arg1 = (wxDC *) 0 ;
13396 int result;
13397 PyObject * obj0 = 0 ;
13398 char *kwnames[] = {
13399 (char *) "self", NULL
13400 };
13401
13402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13405 {
13406 PyThreadState* __tstate = wxPyBeginAllowThreads();
13407 result = (int)((wxDC const *)arg1)->GetCharHeight();
13408
13409 wxPyEndAllowThreads(__tstate);
13410 if (PyErr_Occurred()) SWIG_fail;
13411 }
13412 resultobj = SWIG_FromInt((int)result);
13413 return resultobj;
13414 fail:
13415 return NULL;
13416 }
13417
13418
13419 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13420 PyObject *resultobj;
13421 wxDC *arg1 = (wxDC *) 0 ;
13422 int result;
13423 PyObject * obj0 = 0 ;
13424 char *kwnames[] = {
13425 (char *) "self", NULL
13426 };
13427
13428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13431 {
13432 PyThreadState* __tstate = wxPyBeginAllowThreads();
13433 result = (int)((wxDC const *)arg1)->GetCharWidth();
13434
13435 wxPyEndAllowThreads(__tstate);
13436 if (PyErr_Occurred()) SWIG_fail;
13437 }
13438 resultobj = SWIG_FromInt((int)result);
13439 return resultobj;
13440 fail:
13441 return NULL;
13442 }
13443
13444
13445 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13446 PyObject *resultobj;
13447 wxDC *arg1 = (wxDC *) 0 ;
13448 wxString *arg2 = 0 ;
13449 int *arg3 = (int *) 0 ;
13450 int *arg4 = (int *) 0 ;
13451 bool temp2 = False ;
13452 int temp3 ;
13453 int temp4 ;
13454 PyObject * obj0 = 0 ;
13455 PyObject * obj1 = 0 ;
13456 char *kwnames[] = {
13457 (char *) "self",(char *) "string", NULL
13458 };
13459
13460 arg3 = &temp3;
13461 arg4 = &temp4;
13462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13465 {
13466 arg2 = wxString_in_helper(obj1);
13467 if (arg2 == NULL) SWIG_fail;
13468 temp2 = True;
13469 }
13470 {
13471 PyThreadState* __tstate = wxPyBeginAllowThreads();
13472 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13473
13474 wxPyEndAllowThreads(__tstate);
13475 if (PyErr_Occurred()) SWIG_fail;
13476 }
13477 Py_INCREF(Py_None); resultobj = Py_None;
13478 {
13479 PyObject *o = PyInt_FromLong((long) (*arg3));
13480 resultobj = t_output_helper(resultobj,o);
13481 }
13482 {
13483 PyObject *o = PyInt_FromLong((long) (*arg4));
13484 resultobj = t_output_helper(resultobj,o);
13485 }
13486 {
13487 if (temp2)
13488 delete arg2;
13489 }
13490 return resultobj;
13491 fail:
13492 {
13493 if (temp2)
13494 delete arg2;
13495 }
13496 return NULL;
13497 }
13498
13499
13500 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13501 PyObject *resultobj;
13502 wxDC *arg1 = (wxDC *) 0 ;
13503 wxString *arg2 = 0 ;
13504 int *arg3 = (int *) 0 ;
13505 int *arg4 = (int *) 0 ;
13506 int *arg5 = (int *) 0 ;
13507 int *arg6 = (int *) 0 ;
13508 wxFont *arg7 = (wxFont *) NULL ;
13509 bool temp2 = False ;
13510 int temp3 ;
13511 int temp4 ;
13512 int temp5 ;
13513 int temp6 ;
13514 PyObject * obj0 = 0 ;
13515 PyObject * obj1 = 0 ;
13516 PyObject * obj2 = 0 ;
13517 char *kwnames[] = {
13518 (char *) "self",(char *) "string",(char *) "font", NULL
13519 };
13520
13521 arg3 = &temp3;
13522 arg4 = &temp4;
13523 arg5 = &temp5;
13524 arg6 = &temp6;
13525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13528 {
13529 arg2 = wxString_in_helper(obj1);
13530 if (arg2 == NULL) SWIG_fail;
13531 temp2 = True;
13532 }
13533 if (obj2) {
13534 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13536 }
13537 {
13538 PyThreadState* __tstate = wxPyBeginAllowThreads();
13539 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13540
13541 wxPyEndAllowThreads(__tstate);
13542 if (PyErr_Occurred()) SWIG_fail;
13543 }
13544 Py_INCREF(Py_None); resultobj = Py_None;
13545 {
13546 PyObject *o = PyInt_FromLong((long) (*arg3));
13547 resultobj = t_output_helper(resultobj,o);
13548 }
13549 {
13550 PyObject *o = PyInt_FromLong((long) (*arg4));
13551 resultobj = t_output_helper(resultobj,o);
13552 }
13553 {
13554 PyObject *o = PyInt_FromLong((long) (*arg5));
13555 resultobj = t_output_helper(resultobj,o);
13556 }
13557 {
13558 PyObject *o = PyInt_FromLong((long) (*arg6));
13559 resultobj = t_output_helper(resultobj,o);
13560 }
13561 {
13562 if (temp2)
13563 delete arg2;
13564 }
13565 return resultobj;
13566 fail:
13567 {
13568 if (temp2)
13569 delete arg2;
13570 }
13571 return NULL;
13572 }
13573
13574
13575 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13576 PyObject *resultobj;
13577 wxDC *arg1 = (wxDC *) 0 ;
13578 wxString *arg2 = 0 ;
13579 int *arg3 = (int *) 0 ;
13580 int *arg4 = (int *) 0 ;
13581 int *arg5 = (int *) 0 ;
13582 wxFont *arg6 = (wxFont *) NULL ;
13583 bool temp2 = False ;
13584 int temp3 ;
13585 int temp4 ;
13586 int temp5 ;
13587 PyObject * obj0 = 0 ;
13588 PyObject * obj1 = 0 ;
13589 PyObject * obj2 = 0 ;
13590 char *kwnames[] = {
13591 (char *) "self",(char *) "text",(char *) "font", NULL
13592 };
13593
13594 arg3 = &temp3;
13595 arg4 = &temp4;
13596 arg5 = &temp5;
13597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13600 {
13601 arg2 = wxString_in_helper(obj1);
13602 if (arg2 == NULL) SWIG_fail;
13603 temp2 = True;
13604 }
13605 if (obj2) {
13606 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13608 }
13609 {
13610 PyThreadState* __tstate = wxPyBeginAllowThreads();
13611 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13612
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 Py_INCREF(Py_None); resultobj = Py_None;
13617 {
13618 PyObject *o = PyInt_FromLong((long) (*arg3));
13619 resultobj = t_output_helper(resultobj,o);
13620 }
13621 {
13622 PyObject *o = PyInt_FromLong((long) (*arg4));
13623 resultobj = t_output_helper(resultobj,o);
13624 }
13625 {
13626 PyObject *o = PyInt_FromLong((long) (*arg5));
13627 resultobj = t_output_helper(resultobj,o);
13628 }
13629 {
13630 if (temp2)
13631 delete arg2;
13632 }
13633 return resultobj;
13634 fail:
13635 {
13636 if (temp2)
13637 delete arg2;
13638 }
13639 return NULL;
13640 }
13641
13642
13643 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13644 PyObject *resultobj;
13645 wxDC *arg1 = (wxDC *) 0 ;
13646 wxString *arg2 = 0 ;
13647 wxArrayInt result;
13648 bool temp2 = False ;
13649 PyObject * obj0 = 0 ;
13650 PyObject * obj1 = 0 ;
13651 char *kwnames[] = {
13652 (char *) "self",(char *) "text", NULL
13653 };
13654
13655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13658 {
13659 arg2 = wxString_in_helper(obj1);
13660 if (arg2 == NULL) SWIG_fail;
13661 temp2 = True;
13662 }
13663 {
13664 PyThreadState* __tstate = wxPyBeginAllowThreads();
13665 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13666
13667 wxPyEndAllowThreads(__tstate);
13668 if (PyErr_Occurred()) SWIG_fail;
13669 }
13670 {
13671 resultobj = PyList_New(0);
13672 size_t idx;
13673 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13674 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13675 PyList_Append(resultobj, val);
13676 Py_DECREF(val);
13677 }
13678 }
13679 {
13680 if (temp2)
13681 delete arg2;
13682 }
13683 return resultobj;
13684 fail:
13685 {
13686 if (temp2)
13687 delete arg2;
13688 }
13689 return NULL;
13690 }
13691
13692
13693 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13694 PyObject *resultobj;
13695 wxDC *arg1 = (wxDC *) 0 ;
13696 wxSize result;
13697 PyObject * obj0 = 0 ;
13698 char *kwnames[] = {
13699 (char *) "self", NULL
13700 };
13701
13702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13705 {
13706 PyThreadState* __tstate = wxPyBeginAllowThreads();
13707 result = (arg1)->GetSize();
13708
13709 wxPyEndAllowThreads(__tstate);
13710 if (PyErr_Occurred()) SWIG_fail;
13711 }
13712 {
13713 wxSize * resultptr;
13714 resultptr = new wxSize((wxSize &) result);
13715 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13716 }
13717 return resultobj;
13718 fail:
13719 return NULL;
13720 }
13721
13722
13723 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13724 PyObject *resultobj;
13725 wxDC *arg1 = (wxDC *) 0 ;
13726 int *arg2 = (int *) 0 ;
13727 int *arg3 = (int *) 0 ;
13728 int temp2 ;
13729 int temp3 ;
13730 PyObject * obj0 = 0 ;
13731 char *kwnames[] = {
13732 (char *) "self", NULL
13733 };
13734
13735 arg2 = &temp2;
13736 arg3 = &temp3;
13737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13740 {
13741 PyThreadState* __tstate = wxPyBeginAllowThreads();
13742 (arg1)->GetSize(arg2,arg3);
13743
13744 wxPyEndAllowThreads(__tstate);
13745 if (PyErr_Occurred()) SWIG_fail;
13746 }
13747 Py_INCREF(Py_None); resultobj = Py_None;
13748 {
13749 PyObject *o = PyInt_FromLong((long) (*arg2));
13750 resultobj = t_output_helper(resultobj,o);
13751 }
13752 {
13753 PyObject *o = PyInt_FromLong((long) (*arg3));
13754 resultobj = t_output_helper(resultobj,o);
13755 }
13756 return resultobj;
13757 fail:
13758 return NULL;
13759 }
13760
13761
13762 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13763 PyObject *resultobj;
13764 wxDC *arg1 = (wxDC *) 0 ;
13765 wxSize result;
13766 PyObject * obj0 = 0 ;
13767 char *kwnames[] = {
13768 (char *) "self", NULL
13769 };
13770
13771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",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 = ((wxDC const *)arg1)->GetSizeMM();
13777
13778 wxPyEndAllowThreads(__tstate);
13779 if (PyErr_Occurred()) SWIG_fail;
13780 }
13781 {
13782 wxSize * resultptr;
13783 resultptr = new wxSize((wxSize &) result);
13784 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13785 }
13786 return resultobj;
13787 fail:
13788 return NULL;
13789 }
13790
13791
13792 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13793 PyObject *resultobj;
13794 wxDC *arg1 = (wxDC *) 0 ;
13795 int *arg2 = (int *) 0 ;
13796 int *arg3 = (int *) 0 ;
13797 int temp2 ;
13798 int temp3 ;
13799 PyObject * obj0 = 0 ;
13800 char *kwnames[] = {
13801 (char *) "self", NULL
13802 };
13803
13804 arg2 = &temp2;
13805 arg3 = &temp3;
13806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13809 {
13810 PyThreadState* __tstate = wxPyBeginAllowThreads();
13811 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13812
13813 wxPyEndAllowThreads(__tstate);
13814 if (PyErr_Occurred()) SWIG_fail;
13815 }
13816 Py_INCREF(Py_None); resultobj = Py_None;
13817 {
13818 PyObject *o = PyInt_FromLong((long) (*arg2));
13819 resultobj = t_output_helper(resultobj,o);
13820 }
13821 {
13822 PyObject *o = PyInt_FromLong((long) (*arg3));
13823 resultobj = t_output_helper(resultobj,o);
13824 }
13825 return resultobj;
13826 fail:
13827 return NULL;
13828 }
13829
13830
13831 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13832 PyObject *resultobj;
13833 wxDC *arg1 = (wxDC *) 0 ;
13834 int arg2 ;
13835 int result;
13836 PyObject * obj0 = 0 ;
13837 PyObject * obj1 = 0 ;
13838 char *kwnames[] = {
13839 (char *) "self",(char *) "x", NULL
13840 };
13841
13842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13845 arg2 = (int) SWIG_AsInt(obj1);
13846 if (PyErr_Occurred()) SWIG_fail;
13847 {
13848 PyThreadState* __tstate = wxPyBeginAllowThreads();
13849 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13850
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 resultobj = SWIG_FromInt((int)result);
13855 return resultobj;
13856 fail:
13857 return NULL;
13858 }
13859
13860
13861 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13862 PyObject *resultobj;
13863 wxDC *arg1 = (wxDC *) 0 ;
13864 int arg2 ;
13865 int result;
13866 PyObject * obj0 = 0 ;
13867 PyObject * obj1 = 0 ;
13868 char *kwnames[] = {
13869 (char *) "self",(char *) "y", NULL
13870 };
13871
13872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13875 arg2 = (int) SWIG_AsInt(obj1);
13876 if (PyErr_Occurred()) SWIG_fail;
13877 {
13878 PyThreadState* __tstate = wxPyBeginAllowThreads();
13879 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13880
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 resultobj = SWIG_FromInt((int)result);
13885 return resultobj;
13886 fail:
13887 return NULL;
13888 }
13889
13890
13891 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13892 PyObject *resultobj;
13893 wxDC *arg1 = (wxDC *) 0 ;
13894 int arg2 ;
13895 int result;
13896 PyObject * obj0 = 0 ;
13897 PyObject * obj1 = 0 ;
13898 char *kwnames[] = {
13899 (char *) "self",(char *) "x", NULL
13900 };
13901
13902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13905 arg2 = (int) SWIG_AsInt(obj1);
13906 if (PyErr_Occurred()) SWIG_fail;
13907 {
13908 PyThreadState* __tstate = wxPyBeginAllowThreads();
13909 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13910
13911 wxPyEndAllowThreads(__tstate);
13912 if (PyErr_Occurred()) SWIG_fail;
13913 }
13914 resultobj = SWIG_FromInt((int)result);
13915 return resultobj;
13916 fail:
13917 return NULL;
13918 }
13919
13920
13921 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13922 PyObject *resultobj;
13923 wxDC *arg1 = (wxDC *) 0 ;
13924 int arg2 ;
13925 int result;
13926 PyObject * obj0 = 0 ;
13927 PyObject * obj1 = 0 ;
13928 char *kwnames[] = {
13929 (char *) "self",(char *) "y", NULL
13930 };
13931
13932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13935 arg2 = (int) SWIG_AsInt(obj1);
13936 if (PyErr_Occurred()) SWIG_fail;
13937 {
13938 PyThreadState* __tstate = wxPyBeginAllowThreads();
13939 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13940
13941 wxPyEndAllowThreads(__tstate);
13942 if (PyErr_Occurred()) SWIG_fail;
13943 }
13944 resultobj = SWIG_FromInt((int)result);
13945 return resultobj;
13946 fail:
13947 return NULL;
13948 }
13949
13950
13951 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13952 PyObject *resultobj;
13953 wxDC *arg1 = (wxDC *) 0 ;
13954 int arg2 ;
13955 int result;
13956 PyObject * obj0 = 0 ;
13957 PyObject * obj1 = 0 ;
13958 char *kwnames[] = {
13959 (char *) "self",(char *) "x", NULL
13960 };
13961
13962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13965 arg2 = (int) SWIG_AsInt(obj1);
13966 if (PyErr_Occurred()) SWIG_fail;
13967 {
13968 PyThreadState* __tstate = wxPyBeginAllowThreads();
13969 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13970
13971 wxPyEndAllowThreads(__tstate);
13972 if (PyErr_Occurred()) SWIG_fail;
13973 }
13974 resultobj = SWIG_FromInt((int)result);
13975 return resultobj;
13976 fail:
13977 return NULL;
13978 }
13979
13980
13981 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13982 PyObject *resultobj;
13983 wxDC *arg1 = (wxDC *) 0 ;
13984 int arg2 ;
13985 int result;
13986 PyObject * obj0 = 0 ;
13987 PyObject * obj1 = 0 ;
13988 char *kwnames[] = {
13989 (char *) "self",(char *) "y", NULL
13990 };
13991
13992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13995 arg2 = (int) SWIG_AsInt(obj1);
13996 if (PyErr_Occurred()) SWIG_fail;
13997 {
13998 PyThreadState* __tstate = wxPyBeginAllowThreads();
13999 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
14000
14001 wxPyEndAllowThreads(__tstate);
14002 if (PyErr_Occurred()) SWIG_fail;
14003 }
14004 resultobj = SWIG_FromInt((int)result);
14005 return resultobj;
14006 fail:
14007 return NULL;
14008 }
14009
14010
14011 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14012 PyObject *resultobj;
14013 wxDC *arg1 = (wxDC *) 0 ;
14014 int arg2 ;
14015 int result;
14016 PyObject * obj0 = 0 ;
14017 PyObject * obj1 = 0 ;
14018 char *kwnames[] = {
14019 (char *) "self",(char *) "x", NULL
14020 };
14021
14022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
14023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14025 arg2 = (int) SWIG_AsInt(obj1);
14026 if (PyErr_Occurred()) SWIG_fail;
14027 {
14028 PyThreadState* __tstate = wxPyBeginAllowThreads();
14029 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
14030
14031 wxPyEndAllowThreads(__tstate);
14032 if (PyErr_Occurred()) SWIG_fail;
14033 }
14034 resultobj = SWIG_FromInt((int)result);
14035 return resultobj;
14036 fail:
14037 return NULL;
14038 }
14039
14040
14041 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14042 PyObject *resultobj;
14043 wxDC *arg1 = (wxDC *) 0 ;
14044 int arg2 ;
14045 int result;
14046 PyObject * obj0 = 0 ;
14047 PyObject * obj1 = 0 ;
14048 char *kwnames[] = {
14049 (char *) "self",(char *) "y", NULL
14050 };
14051
14052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
14053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14055 arg2 = (int) SWIG_AsInt(obj1);
14056 if (PyErr_Occurred()) SWIG_fail;
14057 {
14058 PyThreadState* __tstate = wxPyBeginAllowThreads();
14059 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
14060
14061 wxPyEndAllowThreads(__tstate);
14062 if (PyErr_Occurred()) SWIG_fail;
14063 }
14064 resultobj = SWIG_FromInt((int)result);
14065 return resultobj;
14066 fail:
14067 return NULL;
14068 }
14069
14070
14071 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14072 PyObject *resultobj;
14073 wxDC *arg1 = (wxDC *) 0 ;
14074 bool result;
14075 PyObject * obj0 = 0 ;
14076 char *kwnames[] = {
14077 (char *) "self", NULL
14078 };
14079
14080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
14081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14083 {
14084 PyThreadState* __tstate = wxPyBeginAllowThreads();
14085 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
14086
14087 wxPyEndAllowThreads(__tstate);
14088 if (PyErr_Occurred()) SWIG_fail;
14089 }
14090 {
14091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14092 }
14093 return resultobj;
14094 fail:
14095 return NULL;
14096 }
14097
14098
14099 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
14100 PyObject *resultobj;
14101 wxDC *arg1 = (wxDC *) 0 ;
14102 bool result;
14103 PyObject * obj0 = 0 ;
14104 char *kwnames[] = {
14105 (char *) "self", NULL
14106 };
14107
14108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
14109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14111 {
14112 PyThreadState* __tstate = wxPyBeginAllowThreads();
14113 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
14114
14115 wxPyEndAllowThreads(__tstate);
14116 if (PyErr_Occurred()) SWIG_fail;
14117 }
14118 {
14119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14120 }
14121 return resultobj;
14122 fail:
14123 return NULL;
14124 }
14125
14126
14127 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
14128 PyObject *resultobj;
14129 wxDC *arg1 = (wxDC *) 0 ;
14130 int result;
14131 PyObject * obj0 = 0 ;
14132 char *kwnames[] = {
14133 (char *) "self", NULL
14134 };
14135
14136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
14137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14139 {
14140 PyThreadState* __tstate = wxPyBeginAllowThreads();
14141 result = (int)((wxDC const *)arg1)->GetDepth();
14142
14143 wxPyEndAllowThreads(__tstate);
14144 if (PyErr_Occurred()) SWIG_fail;
14145 }
14146 resultobj = SWIG_FromInt((int)result);
14147 return resultobj;
14148 fail:
14149 return NULL;
14150 }
14151
14152
14153 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
14154 PyObject *resultobj;
14155 wxDC *arg1 = (wxDC *) 0 ;
14156 wxSize result;
14157 PyObject * obj0 = 0 ;
14158 char *kwnames[] = {
14159 (char *) "self", NULL
14160 };
14161
14162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
14163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14165 {
14166 PyThreadState* __tstate = wxPyBeginAllowThreads();
14167 result = ((wxDC const *)arg1)->GetPPI();
14168
14169 wxPyEndAllowThreads(__tstate);
14170 if (PyErr_Occurred()) SWIG_fail;
14171 }
14172 {
14173 wxSize * resultptr;
14174 resultptr = new wxSize((wxSize &) result);
14175 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14176 }
14177 return resultobj;
14178 fail:
14179 return NULL;
14180 }
14181
14182
14183 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
14184 PyObject *resultobj;
14185 wxDC *arg1 = (wxDC *) 0 ;
14186 bool result;
14187 PyObject * obj0 = 0 ;
14188 char *kwnames[] = {
14189 (char *) "self", NULL
14190 };
14191
14192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
14193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14195 {
14196 PyThreadState* __tstate = wxPyBeginAllowThreads();
14197 result = (bool)((wxDC const *)arg1)->Ok();
14198
14199 wxPyEndAllowThreads(__tstate);
14200 if (PyErr_Occurred()) SWIG_fail;
14201 }
14202 {
14203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14204 }
14205 return resultobj;
14206 fail:
14207 return NULL;
14208 }
14209
14210
14211 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14212 PyObject *resultobj;
14213 wxDC *arg1 = (wxDC *) 0 ;
14214 int result;
14215 PyObject * obj0 = 0 ;
14216 char *kwnames[] = {
14217 (char *) "self", NULL
14218 };
14219
14220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14223 {
14224 PyThreadState* __tstate = wxPyBeginAllowThreads();
14225 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14226
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 resultobj = SWIG_FromInt((int)result);
14231 return resultobj;
14232 fail:
14233 return NULL;
14234 }
14235
14236
14237 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14238 PyObject *resultobj;
14239 wxDC *arg1 = (wxDC *) 0 ;
14240 wxBrush *result;
14241 PyObject * obj0 = 0 ;
14242 char *kwnames[] = {
14243 (char *) "self", NULL
14244 };
14245
14246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
14247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14249 {
14250 PyThreadState* __tstate = wxPyBeginAllowThreads();
14251 {
14252 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14253 result = (wxBrush *) &_result_ref;
14254 }
14255
14256 wxPyEndAllowThreads(__tstate);
14257 if (PyErr_Occurred()) SWIG_fail;
14258 }
14259 {
14260 wxBrush* resultptr = new wxBrush(*result);
14261 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14262 }
14263 return resultobj;
14264 fail:
14265 return NULL;
14266 }
14267
14268
14269 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14270 PyObject *resultobj;
14271 wxDC *arg1 = (wxDC *) 0 ;
14272 wxBrush *result;
14273 PyObject * obj0 = 0 ;
14274 char *kwnames[] = {
14275 (char *) "self", NULL
14276 };
14277
14278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14281 {
14282 PyThreadState* __tstate = wxPyBeginAllowThreads();
14283 {
14284 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14285 result = (wxBrush *) &_result_ref;
14286 }
14287
14288 wxPyEndAllowThreads(__tstate);
14289 if (PyErr_Occurred()) SWIG_fail;
14290 }
14291 {
14292 wxBrush* resultptr = new wxBrush(*result);
14293 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14294 }
14295 return resultobj;
14296 fail:
14297 return NULL;
14298 }
14299
14300
14301 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14302 PyObject *resultobj;
14303 wxDC *arg1 = (wxDC *) 0 ;
14304 wxFont *result;
14305 PyObject * obj0 = 0 ;
14306 char *kwnames[] = {
14307 (char *) "self", NULL
14308 };
14309
14310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14313 {
14314 PyThreadState* __tstate = wxPyBeginAllowThreads();
14315 {
14316 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14317 result = (wxFont *) &_result_ref;
14318 }
14319
14320 wxPyEndAllowThreads(__tstate);
14321 if (PyErr_Occurred()) SWIG_fail;
14322 }
14323 {
14324 wxFont* resultptr = new wxFont(*result);
14325 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14326 }
14327 return resultobj;
14328 fail:
14329 return NULL;
14330 }
14331
14332
14333 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14334 PyObject *resultobj;
14335 wxDC *arg1 = (wxDC *) 0 ;
14336 wxPen *result;
14337 PyObject * obj0 = 0 ;
14338 char *kwnames[] = {
14339 (char *) "self", NULL
14340 };
14341
14342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14345 {
14346 PyThreadState* __tstate = wxPyBeginAllowThreads();
14347 {
14348 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14349 result = (wxPen *) &_result_ref;
14350 }
14351
14352 wxPyEndAllowThreads(__tstate);
14353 if (PyErr_Occurred()) SWIG_fail;
14354 }
14355 {
14356 wxPen* resultptr = new wxPen(*result);
14357 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14358 }
14359 return resultobj;
14360 fail:
14361 return NULL;
14362 }
14363
14364
14365 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14366 PyObject *resultobj;
14367 wxDC *arg1 = (wxDC *) 0 ;
14368 wxColour *result;
14369 PyObject * obj0 = 0 ;
14370 char *kwnames[] = {
14371 (char *) "self", NULL
14372 };
14373
14374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14377 {
14378 PyThreadState* __tstate = wxPyBeginAllowThreads();
14379 {
14380 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14381 result = (wxColour *) &_result_ref;
14382 }
14383
14384 wxPyEndAllowThreads(__tstate);
14385 if (PyErr_Occurred()) SWIG_fail;
14386 }
14387 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14388 return resultobj;
14389 fail:
14390 return NULL;
14391 }
14392
14393
14394 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14395 PyObject *resultobj;
14396 wxDC *arg1 = (wxDC *) 0 ;
14397 wxColour *result;
14398 PyObject * obj0 = 0 ;
14399 char *kwnames[] = {
14400 (char *) "self", NULL
14401 };
14402
14403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14406 {
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 {
14409 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14410 result = (wxColour *) &_result_ref;
14411 }
14412
14413 wxPyEndAllowThreads(__tstate);
14414 if (PyErr_Occurred()) SWIG_fail;
14415 }
14416 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14417 return resultobj;
14418 fail:
14419 return NULL;
14420 }
14421
14422
14423 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14424 PyObject *resultobj;
14425 wxDC *arg1 = (wxDC *) 0 ;
14426 wxColour *arg2 = 0 ;
14427 wxColour temp2 ;
14428 PyObject * obj0 = 0 ;
14429 PyObject * obj1 = 0 ;
14430 char *kwnames[] = {
14431 (char *) "self",(char *) "colour", NULL
14432 };
14433
14434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14437 {
14438 arg2 = &temp2;
14439 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14440 }
14441 {
14442 PyThreadState* __tstate = wxPyBeginAllowThreads();
14443 (arg1)->SetTextForeground((wxColour const &)*arg2);
14444
14445 wxPyEndAllowThreads(__tstate);
14446 if (PyErr_Occurred()) SWIG_fail;
14447 }
14448 Py_INCREF(Py_None); resultobj = Py_None;
14449 return resultobj;
14450 fail:
14451 return NULL;
14452 }
14453
14454
14455 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14456 PyObject *resultobj;
14457 wxDC *arg1 = (wxDC *) 0 ;
14458 wxColour *arg2 = 0 ;
14459 wxColour temp2 ;
14460 PyObject * obj0 = 0 ;
14461 PyObject * obj1 = 0 ;
14462 char *kwnames[] = {
14463 (char *) "self",(char *) "colour", NULL
14464 };
14465
14466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14469 {
14470 arg2 = &temp2;
14471 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14472 }
14473 {
14474 PyThreadState* __tstate = wxPyBeginAllowThreads();
14475 (arg1)->SetTextBackground((wxColour const &)*arg2);
14476
14477 wxPyEndAllowThreads(__tstate);
14478 if (PyErr_Occurred()) SWIG_fail;
14479 }
14480 Py_INCREF(Py_None); resultobj = Py_None;
14481 return resultobj;
14482 fail:
14483 return NULL;
14484 }
14485
14486
14487 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14488 PyObject *resultobj;
14489 wxDC *arg1 = (wxDC *) 0 ;
14490 int result;
14491 PyObject * obj0 = 0 ;
14492 char *kwnames[] = {
14493 (char *) "self", NULL
14494 };
14495
14496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14499 {
14500 PyThreadState* __tstate = wxPyBeginAllowThreads();
14501 result = (int)((wxDC const *)arg1)->GetMapMode();
14502
14503 wxPyEndAllowThreads(__tstate);
14504 if (PyErr_Occurred()) SWIG_fail;
14505 }
14506 resultobj = SWIG_FromInt((int)result);
14507 return resultobj;
14508 fail:
14509 return NULL;
14510 }
14511
14512
14513 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14514 PyObject *resultobj;
14515 wxDC *arg1 = (wxDC *) 0 ;
14516 int arg2 ;
14517 PyObject * obj0 = 0 ;
14518 PyObject * obj1 = 0 ;
14519 char *kwnames[] = {
14520 (char *) "self",(char *) "mode", NULL
14521 };
14522
14523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14526 arg2 = (int) SWIG_AsInt(obj1);
14527 if (PyErr_Occurred()) SWIG_fail;
14528 {
14529 PyThreadState* __tstate = wxPyBeginAllowThreads();
14530 (arg1)->SetMapMode(arg2);
14531
14532 wxPyEndAllowThreads(__tstate);
14533 if (PyErr_Occurred()) SWIG_fail;
14534 }
14535 Py_INCREF(Py_None); resultobj = Py_None;
14536 return resultobj;
14537 fail:
14538 return NULL;
14539 }
14540
14541
14542 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14543 PyObject *resultobj;
14544 wxDC *arg1 = (wxDC *) 0 ;
14545 double *arg2 = (double *) 0 ;
14546 double *arg3 = (double *) 0 ;
14547 double temp2 ;
14548 double temp3 ;
14549 PyObject * obj0 = 0 ;
14550 char *kwnames[] = {
14551 (char *) "self", NULL
14552 };
14553
14554 arg2 = &temp2;
14555 arg3 = &temp3;
14556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14559 {
14560 PyThreadState* __tstate = wxPyBeginAllowThreads();
14561 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14562
14563 wxPyEndAllowThreads(__tstate);
14564 if (PyErr_Occurred()) SWIG_fail;
14565 }
14566 Py_INCREF(Py_None); resultobj = Py_None;
14567 {
14568 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14569 resultobj = t_output_helper(resultobj,o);
14570 }
14571 {
14572 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14573 resultobj = t_output_helper(resultobj,o);
14574 }
14575 return resultobj;
14576 fail:
14577 return NULL;
14578 }
14579
14580
14581 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14582 PyObject *resultobj;
14583 wxDC *arg1 = (wxDC *) 0 ;
14584 double arg2 ;
14585 double arg3 ;
14586 PyObject * obj0 = 0 ;
14587 PyObject * obj1 = 0 ;
14588 PyObject * obj2 = 0 ;
14589 char *kwnames[] = {
14590 (char *) "self",(char *) "x",(char *) "y", NULL
14591 };
14592
14593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14596 arg2 = (double) SWIG_AsDouble(obj1);
14597 if (PyErr_Occurred()) SWIG_fail;
14598 arg3 = (double) SWIG_AsDouble(obj2);
14599 if (PyErr_Occurred()) SWIG_fail;
14600 {
14601 PyThreadState* __tstate = wxPyBeginAllowThreads();
14602 (arg1)->SetUserScale(arg2,arg3);
14603
14604 wxPyEndAllowThreads(__tstate);
14605 if (PyErr_Occurred()) SWIG_fail;
14606 }
14607 Py_INCREF(Py_None); resultobj = Py_None;
14608 return resultobj;
14609 fail:
14610 return NULL;
14611 }
14612
14613
14614 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14615 PyObject *resultobj;
14616 wxDC *arg1 = (wxDC *) 0 ;
14617 double *arg2 = (double *) 0 ;
14618 double *arg3 = (double *) 0 ;
14619 double temp2 ;
14620 double temp3 ;
14621 PyObject * obj0 = 0 ;
14622 char *kwnames[] = {
14623 (char *) "self", NULL
14624 };
14625
14626 arg2 = &temp2;
14627 arg3 = &temp3;
14628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14631 {
14632 PyThreadState* __tstate = wxPyBeginAllowThreads();
14633 (arg1)->GetLogicalScale(arg2,arg3);
14634
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 Py_INCREF(Py_None); resultobj = Py_None;
14639 {
14640 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14641 resultobj = t_output_helper(resultobj,o);
14642 }
14643 {
14644 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14645 resultobj = t_output_helper(resultobj,o);
14646 }
14647 return resultobj;
14648 fail:
14649 return NULL;
14650 }
14651
14652
14653 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14654 PyObject *resultobj;
14655 wxDC *arg1 = (wxDC *) 0 ;
14656 double arg2 ;
14657 double arg3 ;
14658 PyObject * obj0 = 0 ;
14659 PyObject * obj1 = 0 ;
14660 PyObject * obj2 = 0 ;
14661 char *kwnames[] = {
14662 (char *) "self",(char *) "x",(char *) "y", NULL
14663 };
14664
14665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14668 arg2 = (double) SWIG_AsDouble(obj1);
14669 if (PyErr_Occurred()) SWIG_fail;
14670 arg3 = (double) SWIG_AsDouble(obj2);
14671 if (PyErr_Occurred()) SWIG_fail;
14672 {
14673 PyThreadState* __tstate = wxPyBeginAllowThreads();
14674 (arg1)->SetLogicalScale(arg2,arg3);
14675
14676 wxPyEndAllowThreads(__tstate);
14677 if (PyErr_Occurred()) SWIG_fail;
14678 }
14679 Py_INCREF(Py_None); resultobj = Py_None;
14680 return resultobj;
14681 fail:
14682 return NULL;
14683 }
14684
14685
14686 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14687 PyObject *resultobj;
14688 wxDC *arg1 = (wxDC *) 0 ;
14689 wxPoint result;
14690 PyObject * obj0 = 0 ;
14691 char *kwnames[] = {
14692 (char *) "self", NULL
14693 };
14694
14695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14698 {
14699 PyThreadState* __tstate = wxPyBeginAllowThreads();
14700 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14701
14702 wxPyEndAllowThreads(__tstate);
14703 if (PyErr_Occurred()) SWIG_fail;
14704 }
14705 {
14706 wxPoint * resultptr;
14707 resultptr = new wxPoint((wxPoint &) result);
14708 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14709 }
14710 return resultobj;
14711 fail:
14712 return NULL;
14713 }
14714
14715
14716 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14717 PyObject *resultobj;
14718 wxDC *arg1 = (wxDC *) 0 ;
14719 int *arg2 = (int *) 0 ;
14720 int *arg3 = (int *) 0 ;
14721 int temp2 ;
14722 int temp3 ;
14723 PyObject * obj0 = 0 ;
14724 char *kwnames[] = {
14725 (char *) "self", NULL
14726 };
14727
14728 arg2 = &temp2;
14729 arg3 = &temp3;
14730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14733 {
14734 PyThreadState* __tstate = wxPyBeginAllowThreads();
14735 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14736
14737 wxPyEndAllowThreads(__tstate);
14738 if (PyErr_Occurred()) SWIG_fail;
14739 }
14740 Py_INCREF(Py_None); resultobj = Py_None;
14741 {
14742 PyObject *o = PyInt_FromLong((long) (*arg2));
14743 resultobj = t_output_helper(resultobj,o);
14744 }
14745 {
14746 PyObject *o = PyInt_FromLong((long) (*arg3));
14747 resultobj = t_output_helper(resultobj,o);
14748 }
14749 return resultobj;
14750 fail:
14751 return NULL;
14752 }
14753
14754
14755 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14756 PyObject *resultobj;
14757 wxDC *arg1 = (wxDC *) 0 ;
14758 int arg2 ;
14759 int arg3 ;
14760 PyObject * obj0 = 0 ;
14761 PyObject * obj1 = 0 ;
14762 PyObject * obj2 = 0 ;
14763 char *kwnames[] = {
14764 (char *) "self",(char *) "x",(char *) "y", NULL
14765 };
14766
14767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14770 arg2 = (int) SWIG_AsInt(obj1);
14771 if (PyErr_Occurred()) SWIG_fail;
14772 arg3 = (int) SWIG_AsInt(obj2);
14773 if (PyErr_Occurred()) SWIG_fail;
14774 {
14775 PyThreadState* __tstate = wxPyBeginAllowThreads();
14776 (arg1)->SetLogicalOrigin(arg2,arg3);
14777
14778 wxPyEndAllowThreads(__tstate);
14779 if (PyErr_Occurred()) SWIG_fail;
14780 }
14781 Py_INCREF(Py_None); resultobj = Py_None;
14782 return resultobj;
14783 fail:
14784 return NULL;
14785 }
14786
14787
14788 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14789 PyObject *resultobj;
14790 wxDC *arg1 = (wxDC *) 0 ;
14791 wxPoint result;
14792 PyObject * obj0 = 0 ;
14793 char *kwnames[] = {
14794 (char *) "self", NULL
14795 };
14796
14797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14800 {
14801 PyThreadState* __tstate = wxPyBeginAllowThreads();
14802 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14803
14804 wxPyEndAllowThreads(__tstate);
14805 if (PyErr_Occurred()) SWIG_fail;
14806 }
14807 {
14808 wxPoint * resultptr;
14809 resultptr = new wxPoint((wxPoint &) result);
14810 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14811 }
14812 return resultobj;
14813 fail:
14814 return NULL;
14815 }
14816
14817
14818 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14819 PyObject *resultobj;
14820 wxDC *arg1 = (wxDC *) 0 ;
14821 int *arg2 = (int *) 0 ;
14822 int *arg3 = (int *) 0 ;
14823 int temp2 ;
14824 int temp3 ;
14825 PyObject * obj0 = 0 ;
14826 char *kwnames[] = {
14827 (char *) "self", NULL
14828 };
14829
14830 arg2 = &temp2;
14831 arg3 = &temp3;
14832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14835 {
14836 PyThreadState* __tstate = wxPyBeginAllowThreads();
14837 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14838
14839 wxPyEndAllowThreads(__tstate);
14840 if (PyErr_Occurred()) SWIG_fail;
14841 }
14842 Py_INCREF(Py_None); resultobj = Py_None;
14843 {
14844 PyObject *o = PyInt_FromLong((long) (*arg2));
14845 resultobj = t_output_helper(resultobj,o);
14846 }
14847 {
14848 PyObject *o = PyInt_FromLong((long) (*arg3));
14849 resultobj = t_output_helper(resultobj,o);
14850 }
14851 return resultobj;
14852 fail:
14853 return NULL;
14854 }
14855
14856
14857 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14858 PyObject *resultobj;
14859 wxDC *arg1 = (wxDC *) 0 ;
14860 int arg2 ;
14861 int arg3 ;
14862 PyObject * obj0 = 0 ;
14863 PyObject * obj1 = 0 ;
14864 PyObject * obj2 = 0 ;
14865 char *kwnames[] = {
14866 (char *) "self",(char *) "x",(char *) "y", NULL
14867 };
14868
14869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14872 arg2 = (int) SWIG_AsInt(obj1);
14873 if (PyErr_Occurred()) SWIG_fail;
14874 arg3 = (int) SWIG_AsInt(obj2);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 {
14877 PyThreadState* __tstate = wxPyBeginAllowThreads();
14878 (arg1)->SetDeviceOrigin(arg2,arg3);
14879
14880 wxPyEndAllowThreads(__tstate);
14881 if (PyErr_Occurred()) SWIG_fail;
14882 }
14883 Py_INCREF(Py_None); resultobj = Py_None;
14884 return resultobj;
14885 fail:
14886 return NULL;
14887 }
14888
14889
14890 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14891 PyObject *resultobj;
14892 wxDC *arg1 = (wxDC *) 0 ;
14893 bool arg2 ;
14894 bool arg3 ;
14895 PyObject * obj0 = 0 ;
14896 PyObject * obj1 = 0 ;
14897 PyObject * obj2 = 0 ;
14898 char *kwnames[] = {
14899 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14900 };
14901
14902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14905 arg2 = (bool) SWIG_AsBool(obj1);
14906 if (PyErr_Occurred()) SWIG_fail;
14907 arg3 = (bool) SWIG_AsBool(obj2);
14908 if (PyErr_Occurred()) SWIG_fail;
14909 {
14910 PyThreadState* __tstate = wxPyBeginAllowThreads();
14911 (arg1)->SetAxisOrientation(arg2,arg3);
14912
14913 wxPyEndAllowThreads(__tstate);
14914 if (PyErr_Occurred()) SWIG_fail;
14915 }
14916 Py_INCREF(Py_None); resultobj = Py_None;
14917 return resultobj;
14918 fail:
14919 return NULL;
14920 }
14921
14922
14923 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14924 PyObject *resultobj;
14925 wxDC *arg1 = (wxDC *) 0 ;
14926 int result;
14927 PyObject * obj0 = 0 ;
14928 char *kwnames[] = {
14929 (char *) "self", NULL
14930 };
14931
14932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14935 {
14936 PyThreadState* __tstate = wxPyBeginAllowThreads();
14937 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14938
14939 wxPyEndAllowThreads(__tstate);
14940 if (PyErr_Occurred()) SWIG_fail;
14941 }
14942 resultobj = SWIG_FromInt((int)result);
14943 return resultobj;
14944 fail:
14945 return NULL;
14946 }
14947
14948
14949 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14950 PyObject *resultobj;
14951 wxDC *arg1 = (wxDC *) 0 ;
14952 int arg2 ;
14953 PyObject * obj0 = 0 ;
14954 PyObject * obj1 = 0 ;
14955 char *kwnames[] = {
14956 (char *) "self",(char *) "function", NULL
14957 };
14958
14959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14962 arg2 = (int) SWIG_AsInt(obj1);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 {
14965 PyThreadState* __tstate = wxPyBeginAllowThreads();
14966 (arg1)->SetLogicalFunction(arg2);
14967
14968 wxPyEndAllowThreads(__tstate);
14969 if (PyErr_Occurred()) SWIG_fail;
14970 }
14971 Py_INCREF(Py_None); resultobj = Py_None;
14972 return resultobj;
14973 fail:
14974 return NULL;
14975 }
14976
14977
14978 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14979 PyObject *resultobj;
14980 wxDC *arg1 = (wxDC *) 0 ;
14981 bool arg2 ;
14982 PyObject * obj0 = 0 ;
14983 PyObject * obj1 = 0 ;
14984 char *kwnames[] = {
14985 (char *) "self",(char *) "opt", NULL
14986 };
14987
14988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14991 arg2 = (bool) SWIG_AsBool(obj1);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 {
14994 PyThreadState* __tstate = wxPyBeginAllowThreads();
14995 (arg1)->SetOptimization(arg2);
14996
14997 wxPyEndAllowThreads(__tstate);
14998 if (PyErr_Occurred()) SWIG_fail;
14999 }
15000 Py_INCREF(Py_None); resultobj = Py_None;
15001 return resultobj;
15002 fail:
15003 return NULL;
15004 }
15005
15006
15007 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
15008 PyObject *resultobj;
15009 wxDC *arg1 = (wxDC *) 0 ;
15010 bool result;
15011 PyObject * obj0 = 0 ;
15012 char *kwnames[] = {
15013 (char *) "self", NULL
15014 };
15015
15016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
15017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15019 {
15020 PyThreadState* __tstate = wxPyBeginAllowThreads();
15021 result = (bool)(arg1)->GetOptimization();
15022
15023 wxPyEndAllowThreads(__tstate);
15024 if (PyErr_Occurred()) SWIG_fail;
15025 }
15026 {
15027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15028 }
15029 return resultobj;
15030 fail:
15031 return NULL;
15032 }
15033
15034
15035 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15036 PyObject *resultobj;
15037 wxDC *arg1 = (wxDC *) 0 ;
15038 int arg2 ;
15039 int arg3 ;
15040 PyObject * obj0 = 0 ;
15041 PyObject * obj1 = 0 ;
15042 PyObject * obj2 = 0 ;
15043 char *kwnames[] = {
15044 (char *) "self",(char *) "x",(char *) "y", NULL
15045 };
15046
15047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
15048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15050 arg2 = (int) SWIG_AsInt(obj1);
15051 if (PyErr_Occurred()) SWIG_fail;
15052 arg3 = (int) SWIG_AsInt(obj2);
15053 if (PyErr_Occurred()) SWIG_fail;
15054 {
15055 PyThreadState* __tstate = wxPyBeginAllowThreads();
15056 (arg1)->CalcBoundingBox(arg2,arg3);
15057
15058 wxPyEndAllowThreads(__tstate);
15059 if (PyErr_Occurred()) SWIG_fail;
15060 }
15061 Py_INCREF(Py_None); resultobj = Py_None;
15062 return resultobj;
15063 fail:
15064 return NULL;
15065 }
15066
15067
15068 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15069 PyObject *resultobj;
15070 wxDC *arg1 = (wxDC *) 0 ;
15071 PyObject * obj0 = 0 ;
15072 char *kwnames[] = {
15073 (char *) "self", NULL
15074 };
15075
15076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15079 {
15080 PyThreadState* __tstate = wxPyBeginAllowThreads();
15081 (arg1)->ResetBoundingBox();
15082
15083 wxPyEndAllowThreads(__tstate);
15084 if (PyErr_Occurred()) SWIG_fail;
15085 }
15086 Py_INCREF(Py_None); resultobj = Py_None;
15087 return resultobj;
15088 fail:
15089 return NULL;
15090 }
15091
15092
15093 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
15094 PyObject *resultobj;
15095 wxDC *arg1 = (wxDC *) 0 ;
15096 int result;
15097 PyObject * obj0 = 0 ;
15098 char *kwnames[] = {
15099 (char *) "self", NULL
15100 };
15101
15102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15105 {
15106 PyThreadState* __tstate = wxPyBeginAllowThreads();
15107 result = (int)((wxDC const *)arg1)->MinX();
15108
15109 wxPyEndAllowThreads(__tstate);
15110 if (PyErr_Occurred()) SWIG_fail;
15111 }
15112 resultobj = SWIG_FromInt((int)result);
15113 return resultobj;
15114 fail:
15115 return NULL;
15116 }
15117
15118
15119 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
15120 PyObject *resultobj;
15121 wxDC *arg1 = (wxDC *) 0 ;
15122 int result;
15123 PyObject * obj0 = 0 ;
15124 char *kwnames[] = {
15125 (char *) "self", NULL
15126 };
15127
15128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15131 {
15132 PyThreadState* __tstate = wxPyBeginAllowThreads();
15133 result = (int)((wxDC const *)arg1)->MaxX();
15134
15135 wxPyEndAllowThreads(__tstate);
15136 if (PyErr_Occurred()) SWIG_fail;
15137 }
15138 resultobj = SWIG_FromInt((int)result);
15139 return resultobj;
15140 fail:
15141 return NULL;
15142 }
15143
15144
15145 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
15146 PyObject *resultobj;
15147 wxDC *arg1 = (wxDC *) 0 ;
15148 int result;
15149 PyObject * obj0 = 0 ;
15150 char *kwnames[] = {
15151 (char *) "self", NULL
15152 };
15153
15154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15157 {
15158 PyThreadState* __tstate = wxPyBeginAllowThreads();
15159 result = (int)((wxDC const *)arg1)->MinY();
15160
15161 wxPyEndAllowThreads(__tstate);
15162 if (PyErr_Occurred()) SWIG_fail;
15163 }
15164 resultobj = SWIG_FromInt((int)result);
15165 return resultobj;
15166 fail:
15167 return NULL;
15168 }
15169
15170
15171 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
15172 PyObject *resultobj;
15173 wxDC *arg1 = (wxDC *) 0 ;
15174 int result;
15175 PyObject * obj0 = 0 ;
15176 char *kwnames[] = {
15177 (char *) "self", NULL
15178 };
15179
15180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15183 {
15184 PyThreadState* __tstate = wxPyBeginAllowThreads();
15185 result = (int)((wxDC const *)arg1)->MaxY();
15186
15187 wxPyEndAllowThreads(__tstate);
15188 if (PyErr_Occurred()) SWIG_fail;
15189 }
15190 resultobj = SWIG_FromInt((int)result);
15191 return resultobj;
15192 fail:
15193 return NULL;
15194 }
15195
15196
15197 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15198 PyObject *resultobj;
15199 wxDC *arg1 = (wxDC *) 0 ;
15200 int *arg2 = (int *) 0 ;
15201 int *arg3 = (int *) 0 ;
15202 int *arg4 = (int *) 0 ;
15203 int *arg5 = (int *) 0 ;
15204 int temp2 ;
15205 int temp3 ;
15206 int temp4 ;
15207 int temp5 ;
15208 PyObject * obj0 = 0 ;
15209 char *kwnames[] = {
15210 (char *) "self", NULL
15211 };
15212
15213 arg2 = &temp2;
15214 arg3 = &temp3;
15215 arg4 = &temp4;
15216 arg5 = &temp5;
15217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15220 {
15221 PyThreadState* __tstate = wxPyBeginAllowThreads();
15222 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15223
15224 wxPyEndAllowThreads(__tstate);
15225 if (PyErr_Occurred()) SWIG_fail;
15226 }
15227 Py_INCREF(Py_None); resultobj = Py_None;
15228 {
15229 PyObject *o = PyInt_FromLong((long) (*arg2));
15230 resultobj = t_output_helper(resultobj,o);
15231 }
15232 {
15233 PyObject *o = PyInt_FromLong((long) (*arg3));
15234 resultobj = t_output_helper(resultobj,o);
15235 }
15236 {
15237 PyObject *o = PyInt_FromLong((long) (*arg4));
15238 resultobj = t_output_helper(resultobj,o);
15239 }
15240 {
15241 PyObject *o = PyInt_FromLong((long) (*arg5));
15242 resultobj = t_output_helper(resultobj,o);
15243 }
15244 return resultobj;
15245 fail:
15246 return NULL;
15247 }
15248
15249
15250 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
15251 PyObject *resultobj;
15252 wxDC *arg1 = (wxDC *) 0 ;
15253 PyObject *arg2 = (PyObject *) 0 ;
15254 PyObject *arg3 = (PyObject *) 0 ;
15255 PyObject *arg4 = (PyObject *) 0 ;
15256 PyObject *result;
15257 PyObject * obj0 = 0 ;
15258 PyObject * obj1 = 0 ;
15259 PyObject * obj2 = 0 ;
15260 PyObject * obj3 = 0 ;
15261 char *kwnames[] = {
15262 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15263 };
15264
15265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15268 arg2 = obj1;
15269 arg3 = obj2;
15270 arg4 = obj3;
15271 {
15272 PyThreadState* __tstate = wxPyBeginAllowThreads();
15273 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15274
15275 wxPyEndAllowThreads(__tstate);
15276 if (PyErr_Occurred()) SWIG_fail;
15277 }
15278 resultobj = result;
15279 return resultobj;
15280 fail:
15281 return NULL;
15282 }
15283
15284
15285 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
15286 PyObject *resultobj;
15287 wxDC *arg1 = (wxDC *) 0 ;
15288 PyObject *arg2 = (PyObject *) 0 ;
15289 PyObject *arg3 = (PyObject *) 0 ;
15290 PyObject *arg4 = (PyObject *) 0 ;
15291 PyObject *result;
15292 PyObject * obj0 = 0 ;
15293 PyObject * obj1 = 0 ;
15294 PyObject * obj2 = 0 ;
15295 PyObject * obj3 = 0 ;
15296 char *kwnames[] = {
15297 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15298 };
15299
15300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15303 arg2 = obj1;
15304 arg3 = obj2;
15305 arg4 = obj3;
15306 {
15307 PyThreadState* __tstate = wxPyBeginAllowThreads();
15308 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15309
15310 wxPyEndAllowThreads(__tstate);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
15313 resultobj = result;
15314 return resultobj;
15315 fail:
15316 return NULL;
15317 }
15318
15319
15320 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
15321 PyObject *resultobj;
15322 wxDC *arg1 = (wxDC *) 0 ;
15323 PyObject *arg2 = (PyObject *) 0 ;
15324 PyObject *arg3 = (PyObject *) 0 ;
15325 PyObject *arg4 = (PyObject *) 0 ;
15326 PyObject *result;
15327 PyObject * obj0 = 0 ;
15328 PyObject * obj1 = 0 ;
15329 PyObject * obj2 = 0 ;
15330 PyObject * obj3 = 0 ;
15331 char *kwnames[] = {
15332 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15333 };
15334
15335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15338 arg2 = obj1;
15339 arg3 = obj2;
15340 arg4 = obj3;
15341 {
15342 PyThreadState* __tstate = wxPyBeginAllowThreads();
15343 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15344
15345 wxPyEndAllowThreads(__tstate);
15346 if (PyErr_Occurred()) SWIG_fail;
15347 }
15348 resultobj = result;
15349 return resultobj;
15350 fail:
15351 return NULL;
15352 }
15353
15354
15355 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
15356 PyObject *resultobj;
15357 wxDC *arg1 = (wxDC *) 0 ;
15358 PyObject *arg2 = (PyObject *) 0 ;
15359 PyObject *arg3 = (PyObject *) 0 ;
15360 PyObject *arg4 = (PyObject *) 0 ;
15361 PyObject *result;
15362 PyObject * obj0 = 0 ;
15363 PyObject * obj1 = 0 ;
15364 PyObject * obj2 = 0 ;
15365 PyObject * obj3 = 0 ;
15366 char *kwnames[] = {
15367 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15368 };
15369
15370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15373 arg2 = obj1;
15374 arg3 = obj2;
15375 arg4 = obj3;
15376 {
15377 PyThreadState* __tstate = wxPyBeginAllowThreads();
15378 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15379
15380 wxPyEndAllowThreads(__tstate);
15381 if (PyErr_Occurred()) SWIG_fail;
15382 }
15383 resultobj = result;
15384 return resultobj;
15385 fail:
15386 return NULL;
15387 }
15388
15389
15390 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
15391 PyObject *resultobj;
15392 wxDC *arg1 = (wxDC *) 0 ;
15393 PyObject *arg2 = (PyObject *) 0 ;
15394 PyObject *arg3 = (PyObject *) 0 ;
15395 PyObject *arg4 = (PyObject *) 0 ;
15396 PyObject *result;
15397 PyObject * obj0 = 0 ;
15398 PyObject * obj1 = 0 ;
15399 PyObject * obj2 = 0 ;
15400 PyObject * obj3 = 0 ;
15401 char *kwnames[] = {
15402 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15403 };
15404
15405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15408 arg2 = obj1;
15409 arg3 = obj2;
15410 arg4 = obj3;
15411 {
15412 PyThreadState* __tstate = wxPyBeginAllowThreads();
15413 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15414
15415 wxPyEndAllowThreads(__tstate);
15416 if (PyErr_Occurred()) SWIG_fail;
15417 }
15418 resultobj = result;
15419 return resultobj;
15420 fail:
15421 return NULL;
15422 }
15423
15424
15425 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15426 PyObject *resultobj;
15427 wxDC *arg1 = (wxDC *) 0 ;
15428 PyObject *arg2 = (PyObject *) 0 ;
15429 PyObject *arg3 = (PyObject *) 0 ;
15430 PyObject *arg4 = (PyObject *) 0 ;
15431 PyObject *arg5 = (PyObject *) 0 ;
15432 PyObject *result;
15433 PyObject * obj0 = 0 ;
15434 PyObject * obj1 = 0 ;
15435 PyObject * obj2 = 0 ;
15436 PyObject * obj3 = 0 ;
15437 PyObject * obj4 = 0 ;
15438 char *kwnames[] = {
15439 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15440 };
15441
15442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15445 arg2 = obj1;
15446 arg3 = obj2;
15447 arg4 = obj3;
15448 arg5 = obj4;
15449 {
15450 PyThreadState* __tstate = wxPyBeginAllowThreads();
15451 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15452
15453 wxPyEndAllowThreads(__tstate);
15454 if (PyErr_Occurred()) SWIG_fail;
15455 }
15456 resultobj = result;
15457 return resultobj;
15458 fail:
15459 return NULL;
15460 }
15461
15462
15463 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15464 PyObject *obj;
15465 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15466 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15467 Py_INCREF(obj);
15468 return Py_BuildValue((char *)"");
15469 }
15470 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15471 PyObject *resultobj;
15472 wxMemoryDC *result;
15473 char *kwnames[] = {
15474 NULL
15475 };
15476
15477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15478 {
15479 PyThreadState* __tstate = wxPyBeginAllowThreads();
15480 result = (wxMemoryDC *)new wxMemoryDC();
15481
15482 wxPyEndAllowThreads(__tstate);
15483 if (PyErr_Occurred()) SWIG_fail;
15484 }
15485 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15486 return resultobj;
15487 fail:
15488 return NULL;
15489 }
15490
15491
15492 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15493 PyObject *resultobj;
15494 wxDC *arg1 = (wxDC *) 0 ;
15495 wxMemoryDC *result;
15496 PyObject * obj0 = 0 ;
15497 char *kwnames[] = {
15498 (char *) "oldDC", NULL
15499 };
15500
15501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15504 {
15505 PyThreadState* __tstate = wxPyBeginAllowThreads();
15506 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15507
15508 wxPyEndAllowThreads(__tstate);
15509 if (PyErr_Occurred()) SWIG_fail;
15510 }
15511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15512 return resultobj;
15513 fail:
15514 return NULL;
15515 }
15516
15517
15518 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15519 PyObject *resultobj;
15520 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15521 wxBitmap *arg2 = 0 ;
15522 PyObject * obj0 = 0 ;
15523 PyObject * obj1 = 0 ;
15524 char *kwnames[] = {
15525 (char *) "self",(char *) "bitmap", NULL
15526 };
15527
15528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15531 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15532 SWIG_POINTER_EXCEPTION | 0)) == -1)
15533 SWIG_fail;
15534 if (arg2 == NULL) {
15535 PyErr_SetString(PyExc_TypeError,"null reference");
15536 SWIG_fail;
15537 }
15538 {
15539 PyThreadState* __tstate = wxPyBeginAllowThreads();
15540 (arg1)->SelectObject((wxBitmap const &)*arg2);
15541
15542 wxPyEndAllowThreads(__tstate);
15543 if (PyErr_Occurred()) SWIG_fail;
15544 }
15545 Py_INCREF(Py_None); resultobj = Py_None;
15546 return resultobj;
15547 fail:
15548 return NULL;
15549 }
15550
15551
15552 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15553 PyObject *obj;
15554 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15555 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15556 Py_INCREF(obj);
15557 return Py_BuildValue((char *)"");
15558 }
15559 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15560 PyObject *resultobj;
15561 wxDC *arg1 = (wxDC *) 0 ;
15562 wxBitmap *arg2 = 0 ;
15563 wxBufferedDC *result;
15564 PyObject * obj0 = 0 ;
15565 PyObject * obj1 = 0 ;
15566
15567 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15570 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15571 SWIG_POINTER_EXCEPTION | 0)) == -1)
15572 SWIG_fail;
15573 if (arg2 == NULL) {
15574 PyErr_SetString(PyExc_TypeError,"null reference");
15575 SWIG_fail;
15576 }
15577 {
15578 PyThreadState* __tstate = wxPyBeginAllowThreads();
15579 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15580
15581 wxPyEndAllowThreads(__tstate);
15582 if (PyErr_Occurred()) SWIG_fail;
15583 }
15584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15585 return resultobj;
15586 fail:
15587 return NULL;
15588 }
15589
15590
15591 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15592 PyObject *resultobj;
15593 wxDC *arg1 = (wxDC *) 0 ;
15594 wxSize *arg2 = 0 ;
15595 wxBufferedDC *result;
15596 wxSize temp2 ;
15597 PyObject * obj0 = 0 ;
15598 PyObject * obj1 = 0 ;
15599
15600 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15603 {
15604 arg2 = &temp2;
15605 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15606 }
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15610
15611 wxPyEndAllowThreads(__tstate);
15612 if (PyErr_Occurred()) SWIG_fail;
15613 }
15614 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15615 return resultobj;
15616 fail:
15617 return NULL;
15618 }
15619
15620
15621 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15622 int argc;
15623 PyObject *argv[3];
15624 int ii;
15625
15626 argc = PyObject_Length(args);
15627 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15628 argv[ii] = PyTuple_GetItem(args,ii);
15629 }
15630 if (argc == 2) {
15631 int _v;
15632 {
15633 void *ptr;
15634 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15635 _v = 0;
15636 PyErr_Clear();
15637 } else {
15638 _v = 1;
15639 }
15640 }
15641 if (_v) {
15642 {
15643 void *ptr;
15644 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15645 _v = 0;
15646 PyErr_Clear();
15647 } else {
15648 _v = 1;
15649 }
15650 }
15651 if (_v) {
15652 return _wrap_new_BufferedDC__SWIG_0(self,args);
15653 }
15654 }
15655 }
15656 if (argc == 2) {
15657 int _v;
15658 {
15659 void *ptr;
15660 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15661 _v = 0;
15662 PyErr_Clear();
15663 } else {
15664 _v = 1;
15665 }
15666 }
15667 if (_v) {
15668 {
15669 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15670 }
15671 if (_v) {
15672 return _wrap_new_BufferedDC__SWIG_1(self,args);
15673 }
15674 }
15675 }
15676
15677 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15678 return NULL;
15679 }
15680
15681
15682 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15683 PyObject *resultobj;
15684 wxDC *arg1 = (wxDC *) 0 ;
15685 wxSize *arg2 = 0 ;
15686 wxBufferedDC *result;
15687 wxSize temp2 ;
15688 PyObject * obj0 = 0 ;
15689 PyObject * obj1 = 0 ;
15690
15691 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15694 {
15695 arg2 = &temp2;
15696 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15697 }
15698 {
15699 PyThreadState* __tstate = wxPyBeginAllowThreads();
15700 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15701
15702 wxPyEndAllowThreads(__tstate);
15703 if (PyErr_Occurred()) SWIG_fail;
15704 }
15705 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15706 return resultobj;
15707 fail:
15708 return NULL;
15709 }
15710
15711
15712 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15713 PyObject *resultobj;
15714 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15715 PyObject * obj0 = 0 ;
15716 char *kwnames[] = {
15717 (char *) "self", NULL
15718 };
15719
15720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15723 {
15724 PyThreadState* __tstate = wxPyBeginAllowThreads();
15725 delete arg1;
15726
15727 wxPyEndAllowThreads(__tstate);
15728 if (PyErr_Occurred()) SWIG_fail;
15729 }
15730 Py_INCREF(Py_None); resultobj = Py_None;
15731 return resultobj;
15732 fail:
15733 return NULL;
15734 }
15735
15736
15737 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15738 PyObject *resultobj;
15739 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15740 PyObject * obj0 = 0 ;
15741 char *kwnames[] = {
15742 (char *) "self", NULL
15743 };
15744
15745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15748 {
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
15750 (arg1)->UnMask();
15751
15752 wxPyEndAllowThreads(__tstate);
15753 if (PyErr_Occurred()) SWIG_fail;
15754 }
15755 Py_INCREF(Py_None); resultobj = Py_None;
15756 return resultobj;
15757 fail:
15758 return NULL;
15759 }
15760
15761
15762 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15763 PyObject *obj;
15764 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15765 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15766 Py_INCREF(obj);
15767 return Py_BuildValue((char *)"");
15768 }
15769 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15770 PyObject *resultobj;
15771 wxWindow *arg1 = (wxWindow *) 0 ;
15772 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15773 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15774 wxBufferedPaintDC *result;
15775 PyObject * obj0 = 0 ;
15776 PyObject * obj1 = 0 ;
15777 char *kwnames[] = {
15778 (char *) "window",(char *) "buffer", NULL
15779 };
15780
15781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15784 if (obj1) {
15785 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15786 SWIG_POINTER_EXCEPTION | 0)) == -1)
15787 SWIG_fail;
15788 if (arg2 == NULL) {
15789 PyErr_SetString(PyExc_TypeError,"null reference");
15790 SWIG_fail;
15791 }
15792 }
15793 {
15794 PyThreadState* __tstate = wxPyBeginAllowThreads();
15795 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15796
15797 wxPyEndAllowThreads(__tstate);
15798 if (PyErr_Occurred()) SWIG_fail;
15799 }
15800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15801 return resultobj;
15802 fail:
15803 return NULL;
15804 }
15805
15806
15807 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15808 PyObject *obj;
15809 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15810 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15811 Py_INCREF(obj);
15812 return Py_BuildValue((char *)"");
15813 }
15814 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15815 PyObject *resultobj;
15816 wxScreenDC *result;
15817 char *kwnames[] = {
15818 NULL
15819 };
15820
15821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15822 {
15823 PyThreadState* __tstate = wxPyBeginAllowThreads();
15824 result = (wxScreenDC *)new wxScreenDC();
15825
15826 wxPyEndAllowThreads(__tstate);
15827 if (PyErr_Occurred()) SWIG_fail;
15828 }
15829 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15830 return resultobj;
15831 fail:
15832 return NULL;
15833 }
15834
15835
15836 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15837 PyObject *resultobj;
15838 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15839 wxWindow *arg2 = (wxWindow *) 0 ;
15840 bool result;
15841 PyObject * obj0 = 0 ;
15842 PyObject * obj1 = 0 ;
15843 char *kwnames[] = {
15844 (char *) "self",(char *) "window", NULL
15845 };
15846
15847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15850 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15852 {
15853 PyThreadState* __tstate = wxPyBeginAllowThreads();
15854 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15855
15856 wxPyEndAllowThreads(__tstate);
15857 if (PyErr_Occurred()) SWIG_fail;
15858 }
15859 {
15860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15861 }
15862 return resultobj;
15863 fail:
15864 return NULL;
15865 }
15866
15867
15868 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15869 PyObject *resultobj;
15870 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15871 wxRect *arg2 = (wxRect *) NULL ;
15872 bool result;
15873 PyObject * obj0 = 0 ;
15874 PyObject * obj1 = 0 ;
15875 char *kwnames[] = {
15876 (char *) "self",(char *) "rect", NULL
15877 };
15878
15879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15882 if (obj1) {
15883 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15885 }
15886 {
15887 PyThreadState* __tstate = wxPyBeginAllowThreads();
15888 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15889
15890 wxPyEndAllowThreads(__tstate);
15891 if (PyErr_Occurred()) SWIG_fail;
15892 }
15893 {
15894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15895 }
15896 return resultobj;
15897 fail:
15898 return NULL;
15899 }
15900
15901
15902 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15903 PyObject *resultobj;
15904 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15905 bool result;
15906 PyObject * obj0 = 0 ;
15907 char *kwnames[] = {
15908 (char *) "self", NULL
15909 };
15910
15911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15914 {
15915 PyThreadState* __tstate = wxPyBeginAllowThreads();
15916 result = (bool)(arg1)->EndDrawingOnTop();
15917
15918 wxPyEndAllowThreads(__tstate);
15919 if (PyErr_Occurred()) SWIG_fail;
15920 }
15921 {
15922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15923 }
15924 return resultobj;
15925 fail:
15926 return NULL;
15927 }
15928
15929
15930 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15931 PyObject *obj;
15932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15933 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15934 Py_INCREF(obj);
15935 return Py_BuildValue((char *)"");
15936 }
15937 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15938 PyObject *resultobj;
15939 wxWindow *arg1 = (wxWindow *) 0 ;
15940 wxClientDC *result;
15941 PyObject * obj0 = 0 ;
15942 char *kwnames[] = {
15943 (char *) "win", NULL
15944 };
15945
15946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15949 {
15950 PyThreadState* __tstate = wxPyBeginAllowThreads();
15951 result = (wxClientDC *)new wxClientDC(arg1);
15952
15953 wxPyEndAllowThreads(__tstate);
15954 if (PyErr_Occurred()) SWIG_fail;
15955 }
15956 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15957 return resultobj;
15958 fail:
15959 return NULL;
15960 }
15961
15962
15963 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15964 PyObject *obj;
15965 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15966 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15967 Py_INCREF(obj);
15968 return Py_BuildValue((char *)"");
15969 }
15970 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15971 PyObject *resultobj;
15972 wxWindow *arg1 = (wxWindow *) 0 ;
15973 wxPaintDC *result;
15974 PyObject * obj0 = 0 ;
15975 char *kwnames[] = {
15976 (char *) "win", NULL
15977 };
15978
15979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15982 {
15983 PyThreadState* __tstate = wxPyBeginAllowThreads();
15984 result = (wxPaintDC *)new wxPaintDC(arg1);
15985
15986 wxPyEndAllowThreads(__tstate);
15987 if (PyErr_Occurred()) SWIG_fail;
15988 }
15989 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15990 return resultobj;
15991 fail:
15992 return NULL;
15993 }
15994
15995
15996 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15997 PyObject *obj;
15998 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15999 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
16000 Py_INCREF(obj);
16001 return Py_BuildValue((char *)"");
16002 }
16003 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16004 PyObject *resultobj;
16005 wxWindow *arg1 = (wxWindow *) 0 ;
16006 wxWindowDC *result;
16007 PyObject * obj0 = 0 ;
16008 char *kwnames[] = {
16009 (char *) "win", NULL
16010 };
16011
16012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
16013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16015 {
16016 PyThreadState* __tstate = wxPyBeginAllowThreads();
16017 result = (wxWindowDC *)new wxWindowDC(arg1);
16018
16019 wxPyEndAllowThreads(__tstate);
16020 if (PyErr_Occurred()) SWIG_fail;
16021 }
16022 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
16023 return resultobj;
16024 fail:
16025 return NULL;
16026 }
16027
16028
16029 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
16030 PyObject *obj;
16031 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16032 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
16033 Py_INCREF(obj);
16034 return Py_BuildValue((char *)"");
16035 }
16036 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16037 PyObject *resultobj;
16038 wxDC *arg1 = 0 ;
16039 bool arg2 ;
16040 wxMirrorDC *result;
16041 PyObject * obj0 = 0 ;
16042 PyObject * obj1 = 0 ;
16043 char *kwnames[] = {
16044 (char *) "dc",(char *) "mirror", NULL
16045 };
16046
16047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
16048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16049 SWIG_POINTER_EXCEPTION | 0)) == -1)
16050 SWIG_fail;
16051 if (arg1 == NULL) {
16052 PyErr_SetString(PyExc_TypeError,"null reference");
16053 SWIG_fail;
16054 }
16055 arg2 = (bool) SWIG_AsBool(obj1);
16056 if (PyErr_Occurred()) SWIG_fail;
16057 {
16058 PyThreadState* __tstate = wxPyBeginAllowThreads();
16059 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
16060
16061 wxPyEndAllowThreads(__tstate);
16062 if (PyErr_Occurred()) SWIG_fail;
16063 }
16064 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
16065 return resultobj;
16066 fail:
16067 return NULL;
16068 }
16069
16070
16071 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
16072 PyObject *obj;
16073 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16074 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
16075 Py_INCREF(obj);
16076 return Py_BuildValue((char *)"");
16077 }
16078 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16079 PyObject *resultobj;
16080 wxPrintData *arg1 = 0 ;
16081 wxPostScriptDC *result;
16082 PyObject * obj0 = 0 ;
16083 char *kwnames[] = {
16084 (char *) "printData", NULL
16085 };
16086
16087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
16088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16089 SWIG_POINTER_EXCEPTION | 0)) == -1)
16090 SWIG_fail;
16091 if (arg1 == NULL) {
16092 PyErr_SetString(PyExc_TypeError,"null reference");
16093 SWIG_fail;
16094 }
16095 {
16096 PyThreadState* __tstate = wxPyBeginAllowThreads();
16097 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16098
16099 wxPyEndAllowThreads(__tstate);
16100 if (PyErr_Occurred()) SWIG_fail;
16101 }
16102 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
16103 return resultobj;
16104 fail:
16105 return NULL;
16106 }
16107
16108
16109 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16110 PyObject *resultobj;
16111 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16112 wxPrintData *result;
16113 PyObject * obj0 = 0 ;
16114 char *kwnames[] = {
16115 (char *) "self", NULL
16116 };
16117
16118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
16119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16121 {
16122 PyThreadState* __tstate = wxPyBeginAllowThreads();
16123 {
16124 wxPrintData &_result_ref = (arg1)->GetPrintData();
16125 result = (wxPrintData *) &_result_ref;
16126 }
16127
16128 wxPyEndAllowThreads(__tstate);
16129 if (PyErr_Occurred()) SWIG_fail;
16130 }
16131 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
16132 return resultobj;
16133 fail:
16134 return NULL;
16135 }
16136
16137
16138 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16139 PyObject *resultobj;
16140 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16141 wxPrintData *arg2 = 0 ;
16142 PyObject * obj0 = 0 ;
16143 PyObject * obj1 = 0 ;
16144 char *kwnames[] = {
16145 (char *) "self",(char *) "data", NULL
16146 };
16147
16148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
16149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16151 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16152 SWIG_POINTER_EXCEPTION | 0)) == -1)
16153 SWIG_fail;
16154 if (arg2 == NULL) {
16155 PyErr_SetString(PyExc_TypeError,"null reference");
16156 SWIG_fail;
16157 }
16158 {
16159 PyThreadState* __tstate = wxPyBeginAllowThreads();
16160 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16161
16162 wxPyEndAllowThreads(__tstate);
16163 if (PyErr_Occurred()) SWIG_fail;
16164 }
16165 Py_INCREF(Py_None); resultobj = Py_None;
16166 return resultobj;
16167 fail:
16168 return NULL;
16169 }
16170
16171
16172 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16173 PyObject *resultobj;
16174 int arg1 ;
16175 PyObject * obj0 = 0 ;
16176 char *kwnames[] = {
16177 (char *) "ppi", NULL
16178 };
16179
16180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
16181 arg1 = (int) SWIG_AsInt(obj0);
16182 if (PyErr_Occurred()) SWIG_fail;
16183 {
16184 PyThreadState* __tstate = wxPyBeginAllowThreads();
16185 wxPostScriptDC::SetResolution(arg1);
16186
16187 wxPyEndAllowThreads(__tstate);
16188 if (PyErr_Occurred()) SWIG_fail;
16189 }
16190 Py_INCREF(Py_None); resultobj = Py_None;
16191 return resultobj;
16192 fail:
16193 return NULL;
16194 }
16195
16196
16197 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16198 PyObject *resultobj;
16199 int result;
16200 char *kwnames[] = {
16201 NULL
16202 };
16203
16204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16205 {
16206 PyThreadState* __tstate = wxPyBeginAllowThreads();
16207 result = (int)wxPostScriptDC::GetResolution();
16208
16209 wxPyEndAllowThreads(__tstate);
16210 if (PyErr_Occurred()) SWIG_fail;
16211 }
16212 resultobj = SWIG_FromInt((int)result);
16213 return resultobj;
16214 fail:
16215 return NULL;
16216 }
16217
16218
16219 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
16220 PyObject *obj;
16221 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16222 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16223 Py_INCREF(obj);
16224 return Py_BuildValue((char *)"");
16225 }
16226 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16227 PyObject *resultobj;
16228 wxString const &arg1_defvalue = wxPyEmptyString ;
16229 wxString *arg1 = (wxString *) &arg1_defvalue ;
16230 wxMetaFile *result;
16231 bool temp1 = False ;
16232 PyObject * obj0 = 0 ;
16233 char *kwnames[] = {
16234 (char *) "filename", NULL
16235 };
16236
16237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16238 if (obj0) {
16239 {
16240 arg1 = wxString_in_helper(obj0);
16241 if (arg1 == NULL) SWIG_fail;
16242 temp1 = True;
16243 }
16244 }
16245 {
16246 PyThreadState* __tstate = wxPyBeginAllowThreads();
16247 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16248
16249 wxPyEndAllowThreads(__tstate);
16250 if (PyErr_Occurred()) SWIG_fail;
16251 }
16252 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16253 {
16254 if (temp1)
16255 delete arg1;
16256 }
16257 return resultobj;
16258 fail:
16259 {
16260 if (temp1)
16261 delete arg1;
16262 }
16263 return NULL;
16264 }
16265
16266
16267 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16268 PyObject *resultobj;
16269 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16270 PyObject * obj0 = 0 ;
16271 char *kwnames[] = {
16272 (char *) "self", NULL
16273 };
16274
16275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16278 {
16279 PyThreadState* __tstate = wxPyBeginAllowThreads();
16280 delete arg1;
16281
16282 wxPyEndAllowThreads(__tstate);
16283 if (PyErr_Occurred()) SWIG_fail;
16284 }
16285 Py_INCREF(Py_None); resultobj = Py_None;
16286 return resultobj;
16287 fail:
16288 return NULL;
16289 }
16290
16291
16292 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
16293 PyObject *resultobj;
16294 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16295 bool result;
16296 PyObject * obj0 = 0 ;
16297 char *kwnames[] = {
16298 (char *) "self", NULL
16299 };
16300
16301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16304 {
16305 PyThreadState* __tstate = wxPyBeginAllowThreads();
16306 result = (bool)(arg1)->Ok();
16307
16308 wxPyEndAllowThreads(__tstate);
16309 if (PyErr_Occurred()) SWIG_fail;
16310 }
16311 {
16312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16313 }
16314 return resultobj;
16315 fail:
16316 return NULL;
16317 }
16318
16319
16320 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
16321 PyObject *resultobj;
16322 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16323 int arg2 = (int) 0 ;
16324 int arg3 = (int) 0 ;
16325 bool result;
16326 PyObject * obj0 = 0 ;
16327 PyObject * obj1 = 0 ;
16328 PyObject * obj2 = 0 ;
16329 char *kwnames[] = {
16330 (char *) "self",(char *) "width",(char *) "height", NULL
16331 };
16332
16333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16336 if (obj1) {
16337 arg2 = (int) SWIG_AsInt(obj1);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 }
16340 if (obj2) {
16341 arg3 = (int) SWIG_AsInt(obj2);
16342 if (PyErr_Occurred()) SWIG_fail;
16343 }
16344 {
16345 PyThreadState* __tstate = wxPyBeginAllowThreads();
16346 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16347
16348 wxPyEndAllowThreads(__tstate);
16349 if (PyErr_Occurred()) SWIG_fail;
16350 }
16351 {
16352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16353 }
16354 return resultobj;
16355 fail:
16356 return NULL;
16357 }
16358
16359
16360 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16361 PyObject *resultobj;
16362 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16363 wxSize result;
16364 PyObject * obj0 = 0 ;
16365 char *kwnames[] = {
16366 (char *) "self", NULL
16367 };
16368
16369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16372 {
16373 PyThreadState* __tstate = wxPyBeginAllowThreads();
16374 result = (arg1)->GetSize();
16375
16376 wxPyEndAllowThreads(__tstate);
16377 if (PyErr_Occurred()) SWIG_fail;
16378 }
16379 {
16380 wxSize * resultptr;
16381 resultptr = new wxSize((wxSize &) result);
16382 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16383 }
16384 return resultobj;
16385 fail:
16386 return NULL;
16387 }
16388
16389
16390 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
16391 PyObject *resultobj;
16392 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16393 int result;
16394 PyObject * obj0 = 0 ;
16395 char *kwnames[] = {
16396 (char *) "self", NULL
16397 };
16398
16399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16402 {
16403 PyThreadState* __tstate = wxPyBeginAllowThreads();
16404 result = (int)(arg1)->GetWidth();
16405
16406 wxPyEndAllowThreads(__tstate);
16407 if (PyErr_Occurred()) SWIG_fail;
16408 }
16409 resultobj = SWIG_FromInt((int)result);
16410 return resultobj;
16411 fail:
16412 return NULL;
16413 }
16414
16415
16416 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
16417 PyObject *resultobj;
16418 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16419 int result;
16420 PyObject * obj0 = 0 ;
16421 char *kwnames[] = {
16422 (char *) "self", NULL
16423 };
16424
16425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16428 {
16429 PyThreadState* __tstate = wxPyBeginAllowThreads();
16430 result = (int)(arg1)->GetHeight();
16431
16432 wxPyEndAllowThreads(__tstate);
16433 if (PyErr_Occurred()) SWIG_fail;
16434 }
16435 resultobj = SWIG_FromInt((int)result);
16436 return resultobj;
16437 fail:
16438 return NULL;
16439 }
16440
16441
16442 static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
16443 PyObject *resultobj;
16444 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16445 wxString *result;
16446 PyObject * obj0 = 0 ;
16447 char *kwnames[] = {
16448 (char *) "self", NULL
16449 };
16450
16451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
16452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16454 {
16455 PyThreadState* __tstate = wxPyBeginAllowThreads();
16456 {
16457 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16458 result = (wxString *) &_result_ref;
16459 }
16460
16461 wxPyEndAllowThreads(__tstate);
16462 if (PyErr_Occurred()) SWIG_fail;
16463 }
16464 {
16465 #if wxUSE_UNICODE
16466 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16467 #else
16468 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16469 #endif
16470 }
16471 return resultobj;
16472 fail:
16473 return NULL;
16474 }
16475
16476
16477 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
16478 PyObject *obj;
16479 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16480 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16481 Py_INCREF(obj);
16482 return Py_BuildValue((char *)"");
16483 }
16484 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16485 PyObject *resultobj;
16486 wxString const &arg1_defvalue = wxPyEmptyString ;
16487 wxString *arg1 = (wxString *) &arg1_defvalue ;
16488 int arg2 = (int) 0 ;
16489 int arg3 = (int) 0 ;
16490 wxString const &arg4_defvalue = wxPyEmptyString ;
16491 wxString *arg4 = (wxString *) &arg4_defvalue ;
16492 wxMetaFileDC *result;
16493 bool temp1 = False ;
16494 bool temp4 = False ;
16495 PyObject * obj0 = 0 ;
16496 PyObject * obj1 = 0 ;
16497 PyObject * obj2 = 0 ;
16498 PyObject * obj3 = 0 ;
16499 char *kwnames[] = {
16500 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16501 };
16502
16503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16504 if (obj0) {
16505 {
16506 arg1 = wxString_in_helper(obj0);
16507 if (arg1 == NULL) SWIG_fail;
16508 temp1 = True;
16509 }
16510 }
16511 if (obj1) {
16512 arg2 = (int) SWIG_AsInt(obj1);
16513 if (PyErr_Occurred()) SWIG_fail;
16514 }
16515 if (obj2) {
16516 arg3 = (int) SWIG_AsInt(obj2);
16517 if (PyErr_Occurred()) SWIG_fail;
16518 }
16519 if (obj3) {
16520 {
16521 arg4 = wxString_in_helper(obj3);
16522 if (arg4 == NULL) SWIG_fail;
16523 temp4 = True;
16524 }
16525 }
16526 {
16527 PyThreadState* __tstate = wxPyBeginAllowThreads();
16528 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16529
16530 wxPyEndAllowThreads(__tstate);
16531 if (PyErr_Occurred()) SWIG_fail;
16532 }
16533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16534 {
16535 if (temp1)
16536 delete arg1;
16537 }
16538 {
16539 if (temp4)
16540 delete arg4;
16541 }
16542 return resultobj;
16543 fail:
16544 {
16545 if (temp1)
16546 delete arg1;
16547 }
16548 {
16549 if (temp4)
16550 delete arg4;
16551 }
16552 return NULL;
16553 }
16554
16555
16556 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16557 PyObject *resultobj;
16558 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16559 wxMetaFile *result;
16560 PyObject * obj0 = 0 ;
16561 char *kwnames[] = {
16562 (char *) "self", NULL
16563 };
16564
16565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16568 {
16569 PyThreadState* __tstate = wxPyBeginAllowThreads();
16570 result = (wxMetaFile *)(arg1)->Close();
16571
16572 wxPyEndAllowThreads(__tstate);
16573 if (PyErr_Occurred()) SWIG_fail;
16574 }
16575 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16576 return resultobj;
16577 fail:
16578 return NULL;
16579 }
16580
16581
16582 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16583 PyObject *obj;
16584 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16585 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16586 Py_INCREF(obj);
16587 return Py_BuildValue((char *)"");
16588 }
16589 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16590 PyObject *resultobj;
16591 wxPrintData *arg1 = 0 ;
16592 wxPrinterDC *result;
16593 PyObject * obj0 = 0 ;
16594 char *kwnames[] = {
16595 (char *) "printData", NULL
16596 };
16597
16598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16600 SWIG_POINTER_EXCEPTION | 0)) == -1)
16601 SWIG_fail;
16602 if (arg1 == NULL) {
16603 PyErr_SetString(PyExc_TypeError,"null reference");
16604 SWIG_fail;
16605 }
16606 {
16607 PyThreadState* __tstate = wxPyBeginAllowThreads();
16608 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16609
16610 wxPyEndAllowThreads(__tstate);
16611 if (PyErr_Occurred()) SWIG_fail;
16612 }
16613 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16614 return resultobj;
16615 fail:
16616 return NULL;
16617 }
16618
16619
16620 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16621 PyObject *obj;
16622 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16623 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16624 Py_INCREF(obj);
16625 return Py_BuildValue((char *)"");
16626 }
16627 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16628 PyObject *resultobj;
16629 int arg1 ;
16630 int arg2 ;
16631 int arg3 = (int) True ;
16632 int arg4 = (int) 1 ;
16633 wxImageList *result;
16634 PyObject * obj0 = 0 ;
16635 PyObject * obj1 = 0 ;
16636 PyObject * obj2 = 0 ;
16637 PyObject * obj3 = 0 ;
16638 char *kwnames[] = {
16639 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16640 };
16641
16642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16643 arg1 = (int) SWIG_AsInt(obj0);
16644 if (PyErr_Occurred()) SWIG_fail;
16645 arg2 = (int) SWIG_AsInt(obj1);
16646 if (PyErr_Occurred()) SWIG_fail;
16647 if (obj2) {
16648 arg3 = (int) SWIG_AsInt(obj2);
16649 if (PyErr_Occurred()) SWIG_fail;
16650 }
16651 if (obj3) {
16652 arg4 = (int) SWIG_AsInt(obj3);
16653 if (PyErr_Occurred()) SWIG_fail;
16654 }
16655 {
16656 PyThreadState* __tstate = wxPyBeginAllowThreads();
16657 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16658
16659 wxPyEndAllowThreads(__tstate);
16660 if (PyErr_Occurred()) SWIG_fail;
16661 }
16662 {
16663 resultobj = wxPyMake_wxObject(result);
16664 }
16665 return resultobj;
16666 fail:
16667 return NULL;
16668 }
16669
16670
16671 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16672 PyObject *resultobj;
16673 wxImageList *arg1 = (wxImageList *) 0 ;
16674 PyObject * obj0 = 0 ;
16675 char *kwnames[] = {
16676 (char *) "self", NULL
16677 };
16678
16679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16682 {
16683 PyThreadState* __tstate = wxPyBeginAllowThreads();
16684 delete arg1;
16685
16686 wxPyEndAllowThreads(__tstate);
16687 if (PyErr_Occurred()) SWIG_fail;
16688 }
16689 Py_INCREF(Py_None); resultobj = Py_None;
16690 return resultobj;
16691 fail:
16692 return NULL;
16693 }
16694
16695
16696 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16697 PyObject *resultobj;
16698 wxImageList *arg1 = (wxImageList *) 0 ;
16699 wxBitmap *arg2 = 0 ;
16700 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16701 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16702 int result;
16703 PyObject * obj0 = 0 ;
16704 PyObject * obj1 = 0 ;
16705 PyObject * obj2 = 0 ;
16706 char *kwnames[] = {
16707 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16708 };
16709
16710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16713 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16714 SWIG_POINTER_EXCEPTION | 0)) == -1)
16715 SWIG_fail;
16716 if (arg2 == NULL) {
16717 PyErr_SetString(PyExc_TypeError,"null reference");
16718 SWIG_fail;
16719 }
16720 if (obj2) {
16721 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16722 SWIG_POINTER_EXCEPTION | 0)) == -1)
16723 SWIG_fail;
16724 if (arg3 == NULL) {
16725 PyErr_SetString(PyExc_TypeError,"null reference");
16726 SWIG_fail;
16727 }
16728 }
16729 {
16730 PyThreadState* __tstate = wxPyBeginAllowThreads();
16731 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16732
16733 wxPyEndAllowThreads(__tstate);
16734 if (PyErr_Occurred()) SWIG_fail;
16735 }
16736 resultobj = SWIG_FromInt((int)result);
16737 return resultobj;
16738 fail:
16739 return NULL;
16740 }
16741
16742
16743 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16744 PyObject *resultobj;
16745 wxImageList *arg1 = (wxImageList *) 0 ;
16746 wxBitmap *arg2 = 0 ;
16747 wxColour *arg3 = 0 ;
16748 int result;
16749 wxColour temp3 ;
16750 PyObject * obj0 = 0 ;
16751 PyObject * obj1 = 0 ;
16752 PyObject * obj2 = 0 ;
16753 char *kwnames[] = {
16754 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16755 };
16756
16757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16760 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16761 SWIG_POINTER_EXCEPTION | 0)) == -1)
16762 SWIG_fail;
16763 if (arg2 == NULL) {
16764 PyErr_SetString(PyExc_TypeError,"null reference");
16765 SWIG_fail;
16766 }
16767 {
16768 arg3 = &temp3;
16769 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16770 }
16771 {
16772 PyThreadState* __tstate = wxPyBeginAllowThreads();
16773 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16774
16775 wxPyEndAllowThreads(__tstate);
16776 if (PyErr_Occurred()) SWIG_fail;
16777 }
16778 resultobj = SWIG_FromInt((int)result);
16779 return resultobj;
16780 fail:
16781 return NULL;
16782 }
16783
16784
16785 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16786 PyObject *resultobj;
16787 wxImageList *arg1 = (wxImageList *) 0 ;
16788 wxIcon *arg2 = 0 ;
16789 int result;
16790 PyObject * obj0 = 0 ;
16791 PyObject * obj1 = 0 ;
16792 char *kwnames[] = {
16793 (char *) "self",(char *) "icon", NULL
16794 };
16795
16796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16799 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16800 SWIG_POINTER_EXCEPTION | 0)) == -1)
16801 SWIG_fail;
16802 if (arg2 == NULL) {
16803 PyErr_SetString(PyExc_TypeError,"null reference");
16804 SWIG_fail;
16805 }
16806 {
16807 PyThreadState* __tstate = wxPyBeginAllowThreads();
16808 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16809
16810 wxPyEndAllowThreads(__tstate);
16811 if (PyErr_Occurred()) SWIG_fail;
16812 }
16813 resultobj = SWIG_FromInt((int)result);
16814 return resultobj;
16815 fail:
16816 return NULL;
16817 }
16818
16819
16820 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16821 PyObject *resultobj;
16822 wxImageList *arg1 = (wxImageList *) 0 ;
16823 int arg2 ;
16824 wxBitmap *arg3 = 0 ;
16825 wxBitmap const &arg4_defvalue = wxNullBitmap ;
16826 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
16827 bool result;
16828 PyObject * obj0 = 0 ;
16829 PyObject * obj1 = 0 ;
16830 PyObject * obj2 = 0 ;
16831 PyObject * obj3 = 0 ;
16832 char *kwnames[] = {
16833 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
16834 };
16835
16836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16839 arg2 = (int) SWIG_AsInt(obj1);
16840 if (PyErr_Occurred()) SWIG_fail;
16841 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16842 SWIG_POINTER_EXCEPTION | 0)) == -1)
16843 SWIG_fail;
16844 if (arg3 == NULL) {
16845 PyErr_SetString(PyExc_TypeError,"null reference");
16846 SWIG_fail;
16847 }
16848 if (obj3) {
16849 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16850 SWIG_POINTER_EXCEPTION | 0)) == -1)
16851 SWIG_fail;
16852 if (arg4 == NULL) {
16853 PyErr_SetString(PyExc_TypeError,"null reference");
16854 SWIG_fail;
16855 }
16856 }
16857 {
16858 PyThreadState* __tstate = wxPyBeginAllowThreads();
16859 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
16860
16861 wxPyEndAllowThreads(__tstate);
16862 if (PyErr_Occurred()) SWIG_fail;
16863 }
16864 {
16865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16866 }
16867 return resultobj;
16868 fail:
16869 return NULL;
16870 }
16871
16872
16873 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16874 PyObject *resultobj;
16875 wxImageList *arg1 = (wxImageList *) 0 ;
16876 int arg2 ;
16877 wxDC *arg3 = 0 ;
16878 int arg4 ;
16879 int arg5 ;
16880 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16881 bool arg7 = (bool) (bool)False ;
16882 bool result;
16883 PyObject * obj0 = 0 ;
16884 PyObject * obj1 = 0 ;
16885 PyObject * obj2 = 0 ;
16886 PyObject * obj3 = 0 ;
16887 PyObject * obj4 = 0 ;
16888 PyObject * obj5 = 0 ;
16889 PyObject * obj6 = 0 ;
16890 char *kwnames[] = {
16891 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16892 };
16893
16894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16897 arg2 = (int) SWIG_AsInt(obj1);
16898 if (PyErr_Occurred()) SWIG_fail;
16899 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16900 SWIG_POINTER_EXCEPTION | 0)) == -1)
16901 SWIG_fail;
16902 if (arg3 == NULL) {
16903 PyErr_SetString(PyExc_TypeError,"null reference");
16904 SWIG_fail;
16905 }
16906 arg4 = (int) SWIG_AsInt(obj3);
16907 if (PyErr_Occurred()) SWIG_fail;
16908 arg5 = (int) SWIG_AsInt(obj4);
16909 if (PyErr_Occurred()) SWIG_fail;
16910 if (obj5) {
16911 arg6 = (int) SWIG_AsInt(obj5);
16912 if (PyErr_Occurred()) SWIG_fail;
16913 }
16914 if (obj6) {
16915 arg7 = (bool const) SWIG_AsBool(obj6);
16916 if (PyErr_Occurred()) SWIG_fail;
16917 }
16918 {
16919 PyThreadState* __tstate = wxPyBeginAllowThreads();
16920 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16921
16922 wxPyEndAllowThreads(__tstate);
16923 if (PyErr_Occurred()) SWIG_fail;
16924 }
16925 {
16926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16927 }
16928 return resultobj;
16929 fail:
16930 return NULL;
16931 }
16932
16933
16934 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16935 PyObject *resultobj;
16936 wxImageList *arg1 = (wxImageList *) 0 ;
16937 int result;
16938 PyObject * obj0 = 0 ;
16939 char *kwnames[] = {
16940 (char *) "self", NULL
16941 };
16942
16943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16946 {
16947 PyThreadState* __tstate = wxPyBeginAllowThreads();
16948 result = (int)(arg1)->GetImageCount();
16949
16950 wxPyEndAllowThreads(__tstate);
16951 if (PyErr_Occurred()) SWIG_fail;
16952 }
16953 resultobj = SWIG_FromInt((int)result);
16954 return resultobj;
16955 fail:
16956 return NULL;
16957 }
16958
16959
16960 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16961 PyObject *resultobj;
16962 wxImageList *arg1 = (wxImageList *) 0 ;
16963 int arg2 ;
16964 bool result;
16965 PyObject * obj0 = 0 ;
16966 PyObject * obj1 = 0 ;
16967 char *kwnames[] = {
16968 (char *) "self",(char *) "index", NULL
16969 };
16970
16971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16974 arg2 = (int) SWIG_AsInt(obj1);
16975 if (PyErr_Occurred()) SWIG_fail;
16976 {
16977 PyThreadState* __tstate = wxPyBeginAllowThreads();
16978 result = (bool)(arg1)->Remove(arg2);
16979
16980 wxPyEndAllowThreads(__tstate);
16981 if (PyErr_Occurred()) SWIG_fail;
16982 }
16983 {
16984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16985 }
16986 return resultobj;
16987 fail:
16988 return NULL;
16989 }
16990
16991
16992 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16993 PyObject *resultobj;
16994 wxImageList *arg1 = (wxImageList *) 0 ;
16995 bool result;
16996 PyObject * obj0 = 0 ;
16997 char *kwnames[] = {
16998 (char *) "self", NULL
16999 };
17000
17001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
17002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17004 {
17005 PyThreadState* __tstate = wxPyBeginAllowThreads();
17006 result = (bool)(arg1)->RemoveAll();
17007
17008 wxPyEndAllowThreads(__tstate);
17009 if (PyErr_Occurred()) SWIG_fail;
17010 }
17011 {
17012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17013 }
17014 return resultobj;
17015 fail:
17016 return NULL;
17017 }
17018
17019
17020 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17021 PyObject *resultobj;
17022 wxImageList *arg1 = (wxImageList *) 0 ;
17023 int arg2 ;
17024 int *arg3 = 0 ;
17025 int *arg4 = 0 ;
17026 int temp3 ;
17027 int temp4 ;
17028 PyObject * obj0 = 0 ;
17029 PyObject * obj1 = 0 ;
17030 char *kwnames[] = {
17031 (char *) "self",(char *) "index", NULL
17032 };
17033
17034 arg3 = &temp3;
17035 arg4 = &temp4;
17036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
17037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17039 arg2 = (int) SWIG_AsInt(obj1);
17040 if (PyErr_Occurred()) SWIG_fail;
17041 {
17042 PyThreadState* __tstate = wxPyBeginAllowThreads();
17043 (arg1)->GetSize(arg2,*arg3,*arg4);
17044
17045 wxPyEndAllowThreads(__tstate);
17046 if (PyErr_Occurred()) SWIG_fail;
17047 }
17048 Py_INCREF(Py_None); resultobj = Py_None;
17049 {
17050 PyObject *o = PyInt_FromLong((long) (*arg3));
17051 resultobj = t_output_helper(resultobj,o);
17052 }
17053 {
17054 PyObject *o = PyInt_FromLong((long) (*arg4));
17055 resultobj = t_output_helper(resultobj,o);
17056 }
17057 return resultobj;
17058 fail:
17059 return NULL;
17060 }
17061
17062
17063 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
17064 PyObject *obj;
17065 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17066 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
17067 Py_INCREF(obj);
17068 return Py_BuildValue((char *)"");
17069 }
17070 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
17071 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
17072 return 1;
17073 }
17074
17075
17076 static PyObject *_wrap_NORMAL_FONT_get() {
17077 PyObject *pyobj;
17078
17079 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
17080 return pyobj;
17081 }
17082
17083
17084 static int _wrap_SMALL_FONT_set(PyObject *_val) {
17085 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
17086 return 1;
17087 }
17088
17089
17090 static PyObject *_wrap_SMALL_FONT_get() {
17091 PyObject *pyobj;
17092
17093 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
17094 return pyobj;
17095 }
17096
17097
17098 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
17099 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
17100 return 1;
17101 }
17102
17103
17104 static PyObject *_wrap_ITALIC_FONT_get() {
17105 PyObject *pyobj;
17106
17107 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
17108 return pyobj;
17109 }
17110
17111
17112 static int _wrap_SWISS_FONT_set(PyObject *_val) {
17113 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
17114 return 1;
17115 }
17116
17117
17118 static PyObject *_wrap_SWISS_FONT_get() {
17119 PyObject *pyobj;
17120
17121 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
17122 return pyobj;
17123 }
17124
17125
17126 static int _wrap_RED_PEN_set(PyObject *_val) {
17127 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
17128 return 1;
17129 }
17130
17131
17132 static PyObject *_wrap_RED_PEN_get() {
17133 PyObject *pyobj;
17134
17135 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
17136 return pyobj;
17137 }
17138
17139
17140 static int _wrap_CYAN_PEN_set(PyObject *_val) {
17141 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
17142 return 1;
17143 }
17144
17145
17146 static PyObject *_wrap_CYAN_PEN_get() {
17147 PyObject *pyobj;
17148
17149 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
17150 return pyobj;
17151 }
17152
17153
17154 static int _wrap_GREEN_PEN_set(PyObject *_val) {
17155 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
17156 return 1;
17157 }
17158
17159
17160 static PyObject *_wrap_GREEN_PEN_get() {
17161 PyObject *pyobj;
17162
17163 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
17164 return pyobj;
17165 }
17166
17167
17168 static int _wrap_BLACK_PEN_set(PyObject *_val) {
17169 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17170 return 1;
17171 }
17172
17173
17174 static PyObject *_wrap_BLACK_PEN_get() {
17175 PyObject *pyobj;
17176
17177 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
17178 return pyobj;
17179 }
17180
17181
17182 static int _wrap_WHITE_PEN_set(PyObject *_val) {
17183 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17184 return 1;
17185 }
17186
17187
17188 static PyObject *_wrap_WHITE_PEN_get() {
17189 PyObject *pyobj;
17190
17191 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
17192 return pyobj;
17193 }
17194
17195
17196 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
17197 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17198 return 1;
17199 }
17200
17201
17202 static PyObject *_wrap_TRANSPARENT_PEN_get() {
17203 PyObject *pyobj;
17204
17205 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
17206 return pyobj;
17207 }
17208
17209
17210 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
17211 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17212 return 1;
17213 }
17214
17215
17216 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17217 PyObject *pyobj;
17218
17219 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
17220 return pyobj;
17221 }
17222
17223
17224 static int _wrap_GREY_PEN_set(PyObject *_val) {
17225 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17226 return 1;
17227 }
17228
17229
17230 static PyObject *_wrap_GREY_PEN_get() {
17231 PyObject *pyobj;
17232
17233 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
17234 return pyobj;
17235 }
17236
17237
17238 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
17239 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17240 return 1;
17241 }
17242
17243
17244 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17245 PyObject *pyobj;
17246
17247 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17248 return pyobj;
17249 }
17250
17251
17252 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
17253 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17254 return 1;
17255 }
17256
17257
17258 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17259 PyObject *pyobj;
17260
17261 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17262 return pyobj;
17263 }
17264
17265
17266 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
17267 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17268 return 1;
17269 }
17270
17271
17272 static PyObject *_wrap_BLUE_BRUSH_get() {
17273 PyObject *pyobj;
17274
17275 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17276 return pyobj;
17277 }
17278
17279
17280 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
17281 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17282 return 1;
17283 }
17284
17285
17286 static PyObject *_wrap_GREEN_BRUSH_get() {
17287 PyObject *pyobj;
17288
17289 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17290 return pyobj;
17291 }
17292
17293
17294 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
17295 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17296 return 1;
17297 }
17298
17299
17300 static PyObject *_wrap_WHITE_BRUSH_get() {
17301 PyObject *pyobj;
17302
17303 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17304 return pyobj;
17305 }
17306
17307
17308 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
17309 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17310 return 1;
17311 }
17312
17313
17314 static PyObject *_wrap_BLACK_BRUSH_get() {
17315 PyObject *pyobj;
17316
17317 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17318 return pyobj;
17319 }
17320
17321
17322 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
17323 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17324 return 1;
17325 }
17326
17327
17328 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17329 PyObject *pyobj;
17330
17331 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17332 return pyobj;
17333 }
17334
17335
17336 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
17337 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17338 return 1;
17339 }
17340
17341
17342 static PyObject *_wrap_CYAN_BRUSH_get() {
17343 PyObject *pyobj;
17344
17345 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17346 return pyobj;
17347 }
17348
17349
17350 static int _wrap_RED_BRUSH_set(PyObject *_val) {
17351 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17352 return 1;
17353 }
17354
17355
17356 static PyObject *_wrap_RED_BRUSH_get() {
17357 PyObject *pyobj;
17358
17359 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17360 return pyobj;
17361 }
17362
17363
17364 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
17365 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17366 return 1;
17367 }
17368
17369
17370 static PyObject *_wrap_GREY_BRUSH_get() {
17371 PyObject *pyobj;
17372
17373 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17374 return pyobj;
17375 }
17376
17377
17378 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
17379 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17380 return 1;
17381 }
17382
17383
17384 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17385 PyObject *pyobj;
17386
17387 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17388 return pyobj;
17389 }
17390
17391
17392 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
17393 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17394 return 1;
17395 }
17396
17397
17398 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17399 PyObject *pyobj;
17400
17401 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17402 return pyobj;
17403 }
17404
17405
17406 static int _wrap_BLACK_set(PyObject *_val) {
17407 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17408 return 1;
17409 }
17410
17411
17412 static PyObject *_wrap_BLACK_get() {
17413 PyObject *pyobj;
17414
17415 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17416 return pyobj;
17417 }
17418
17419
17420 static int _wrap_WHITE_set(PyObject *_val) {
17421 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17422 return 1;
17423 }
17424
17425
17426 static PyObject *_wrap_WHITE_get() {
17427 PyObject *pyobj;
17428
17429 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17430 return pyobj;
17431 }
17432
17433
17434 static int _wrap_RED_set(PyObject *_val) {
17435 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17436 return 1;
17437 }
17438
17439
17440 static PyObject *_wrap_RED_get() {
17441 PyObject *pyobj;
17442
17443 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17444 return pyobj;
17445 }
17446
17447
17448 static int _wrap_BLUE_set(PyObject *_val) {
17449 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17450 return 1;
17451 }
17452
17453
17454 static PyObject *_wrap_BLUE_get() {
17455 PyObject *pyobj;
17456
17457 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17458 return pyobj;
17459 }
17460
17461
17462 static int _wrap_GREEN_set(PyObject *_val) {
17463 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17464 return 1;
17465 }
17466
17467
17468 static PyObject *_wrap_GREEN_get() {
17469 PyObject *pyobj;
17470
17471 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17472 return pyobj;
17473 }
17474
17475
17476 static int _wrap_CYAN_set(PyObject *_val) {
17477 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17478 return 1;
17479 }
17480
17481
17482 static PyObject *_wrap_CYAN_get() {
17483 PyObject *pyobj;
17484
17485 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17486 return pyobj;
17487 }
17488
17489
17490 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
17491 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17492 return 1;
17493 }
17494
17495
17496 static PyObject *_wrap_LIGHT_GREY_get() {
17497 PyObject *pyobj;
17498
17499 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17500 return pyobj;
17501 }
17502
17503
17504 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
17505 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17506 return 1;
17507 }
17508
17509
17510 static PyObject *_wrap_STANDARD_CURSOR_get() {
17511 PyObject *pyobj;
17512
17513 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17514 return pyobj;
17515 }
17516
17517
17518 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
17519 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17520 return 1;
17521 }
17522
17523
17524 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17525 PyObject *pyobj;
17526
17527 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17528 return pyobj;
17529 }
17530
17531
17532 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
17533 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17534 return 1;
17535 }
17536
17537
17538 static PyObject *_wrap_CROSS_CURSOR_get() {
17539 PyObject *pyobj;
17540
17541 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17542 return pyobj;
17543 }
17544
17545
17546 static int _wrap_NullBitmap_set(PyObject *_val) {
17547 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17548 return 1;
17549 }
17550
17551
17552 static PyObject *_wrap_NullBitmap_get() {
17553 PyObject *pyobj;
17554
17555 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17556 return pyobj;
17557 }
17558
17559
17560 static int _wrap_NullIcon_set(PyObject *_val) {
17561 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17562 return 1;
17563 }
17564
17565
17566 static PyObject *_wrap_NullIcon_get() {
17567 PyObject *pyobj;
17568
17569 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17570 return pyobj;
17571 }
17572
17573
17574 static int _wrap_NullCursor_set(PyObject *_val) {
17575 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17576 return 1;
17577 }
17578
17579
17580 static PyObject *_wrap_NullCursor_get() {
17581 PyObject *pyobj;
17582
17583 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17584 return pyobj;
17585 }
17586
17587
17588 static int _wrap_NullPen_set(PyObject *_val) {
17589 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17590 return 1;
17591 }
17592
17593
17594 static PyObject *_wrap_NullPen_get() {
17595 PyObject *pyobj;
17596
17597 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17598 return pyobj;
17599 }
17600
17601
17602 static int _wrap_NullBrush_set(PyObject *_val) {
17603 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17604 return 1;
17605 }
17606
17607
17608 static PyObject *_wrap_NullBrush_get() {
17609 PyObject *pyobj;
17610
17611 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17612 return pyobj;
17613 }
17614
17615
17616 static int _wrap_NullPalette_set(PyObject *_val) {
17617 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17618 return 1;
17619 }
17620
17621
17622 static PyObject *_wrap_NullPalette_get() {
17623 PyObject *pyobj;
17624
17625 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17626 return pyobj;
17627 }
17628
17629
17630 static int _wrap_NullFont_set(PyObject *_val) {
17631 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17632 return 1;
17633 }
17634
17635
17636 static PyObject *_wrap_NullFont_get() {
17637 PyObject *pyobj;
17638
17639 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17640 return pyobj;
17641 }
17642
17643
17644 static int _wrap_NullColour_set(PyObject *_val) {
17645 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17646 return 1;
17647 }
17648
17649
17650 static PyObject *_wrap_NullColour_get() {
17651 PyObject *pyobj;
17652
17653 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17654 return pyobj;
17655 }
17656
17657
17658 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17659 PyObject *resultobj;
17660 wxPenList *arg1 = (wxPenList *) 0 ;
17661 wxPen *arg2 = (wxPen *) 0 ;
17662 PyObject * obj0 = 0 ;
17663 PyObject * obj1 = 0 ;
17664 char *kwnames[] = {
17665 (char *) "self",(char *) "pen", NULL
17666 };
17667
17668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17671 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17673 {
17674 PyThreadState* __tstate = wxPyBeginAllowThreads();
17675 (arg1)->AddPen(arg2);
17676
17677 wxPyEndAllowThreads(__tstate);
17678 if (PyErr_Occurred()) SWIG_fail;
17679 }
17680 Py_INCREF(Py_None); resultobj = Py_None;
17681 return resultobj;
17682 fail:
17683 return NULL;
17684 }
17685
17686
17687 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17688 PyObject *resultobj;
17689 wxPenList *arg1 = (wxPenList *) 0 ;
17690 wxColour *arg2 = 0 ;
17691 int arg3 ;
17692 int arg4 ;
17693 wxPen *result;
17694 wxColour temp2 ;
17695 PyObject * obj0 = 0 ;
17696 PyObject * obj1 = 0 ;
17697 PyObject * obj2 = 0 ;
17698 PyObject * obj3 = 0 ;
17699 char *kwnames[] = {
17700 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17701 };
17702
17703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17706 {
17707 arg2 = &temp2;
17708 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17709 }
17710 arg3 = (int) SWIG_AsInt(obj2);
17711 if (PyErr_Occurred()) SWIG_fail;
17712 arg4 = (int) SWIG_AsInt(obj3);
17713 if (PyErr_Occurred()) SWIG_fail;
17714 {
17715 PyThreadState* __tstate = wxPyBeginAllowThreads();
17716 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17717
17718 wxPyEndAllowThreads(__tstate);
17719 if (PyErr_Occurred()) SWIG_fail;
17720 }
17721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17722 return resultobj;
17723 fail:
17724 return NULL;
17725 }
17726
17727
17728 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17729 PyObject *resultobj;
17730 wxPenList *arg1 = (wxPenList *) 0 ;
17731 wxPen *arg2 = (wxPen *) 0 ;
17732 PyObject * obj0 = 0 ;
17733 PyObject * obj1 = 0 ;
17734 char *kwnames[] = {
17735 (char *) "self",(char *) "pen", NULL
17736 };
17737
17738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17741 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17743 {
17744 PyThreadState* __tstate = wxPyBeginAllowThreads();
17745 (arg1)->RemovePen(arg2);
17746
17747 wxPyEndAllowThreads(__tstate);
17748 if (PyErr_Occurred()) SWIG_fail;
17749 }
17750 Py_INCREF(Py_None); resultobj = Py_None;
17751 return resultobj;
17752 fail:
17753 return NULL;
17754 }
17755
17756
17757 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17758 PyObject *resultobj;
17759 wxPenList *arg1 = (wxPenList *) 0 ;
17760 int result;
17761 PyObject * obj0 = 0 ;
17762 char *kwnames[] = {
17763 (char *) "self", NULL
17764 };
17765
17766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17769 {
17770 PyThreadState* __tstate = wxPyBeginAllowThreads();
17771 result = (int)(arg1)->GetCount();
17772
17773 wxPyEndAllowThreads(__tstate);
17774 if (PyErr_Occurred()) SWIG_fail;
17775 }
17776 resultobj = SWIG_FromInt((int)result);
17777 return resultobj;
17778 fail:
17779 return NULL;
17780 }
17781
17782
17783 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17784 PyObject *obj;
17785 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17786 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17787 Py_INCREF(obj);
17788 return Py_BuildValue((char *)"");
17789 }
17790 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17791 PyObject *resultobj;
17792 wxBrushList *arg1 = (wxBrushList *) 0 ;
17793 wxBrush *arg2 = (wxBrush *) 0 ;
17794 PyObject * obj0 = 0 ;
17795 PyObject * obj1 = 0 ;
17796 char *kwnames[] = {
17797 (char *) "self",(char *) "brush", NULL
17798 };
17799
17800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17803 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17805 {
17806 PyThreadState* __tstate = wxPyBeginAllowThreads();
17807 (arg1)->AddBrush(arg2);
17808
17809 wxPyEndAllowThreads(__tstate);
17810 if (PyErr_Occurred()) SWIG_fail;
17811 }
17812 Py_INCREF(Py_None); resultobj = Py_None;
17813 return resultobj;
17814 fail:
17815 return NULL;
17816 }
17817
17818
17819 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17820 PyObject *resultobj;
17821 wxBrushList *arg1 = (wxBrushList *) 0 ;
17822 wxColour *arg2 = 0 ;
17823 int arg3 ;
17824 wxBrush *result;
17825 wxColour temp2 ;
17826 PyObject * obj0 = 0 ;
17827 PyObject * obj1 = 0 ;
17828 PyObject * obj2 = 0 ;
17829 char *kwnames[] = {
17830 (char *) "self",(char *) "colour",(char *) "style", NULL
17831 };
17832
17833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17836 {
17837 arg2 = &temp2;
17838 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17839 }
17840 arg3 = (int) SWIG_AsInt(obj2);
17841 if (PyErr_Occurred()) SWIG_fail;
17842 {
17843 PyThreadState* __tstate = wxPyBeginAllowThreads();
17844 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17845
17846 wxPyEndAllowThreads(__tstate);
17847 if (PyErr_Occurred()) SWIG_fail;
17848 }
17849 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17850 return resultobj;
17851 fail:
17852 return NULL;
17853 }
17854
17855
17856 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17857 PyObject *resultobj;
17858 wxBrushList *arg1 = (wxBrushList *) 0 ;
17859 wxBrush *arg2 = (wxBrush *) 0 ;
17860 PyObject * obj0 = 0 ;
17861 PyObject * obj1 = 0 ;
17862 char *kwnames[] = {
17863 (char *) "self",(char *) "brush", NULL
17864 };
17865
17866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17869 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17871 {
17872 PyThreadState* __tstate = wxPyBeginAllowThreads();
17873 (arg1)->RemoveBrush(arg2);
17874
17875 wxPyEndAllowThreads(__tstate);
17876 if (PyErr_Occurred()) SWIG_fail;
17877 }
17878 Py_INCREF(Py_None); resultobj = Py_None;
17879 return resultobj;
17880 fail:
17881 return NULL;
17882 }
17883
17884
17885 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17886 PyObject *resultobj;
17887 wxBrushList *arg1 = (wxBrushList *) 0 ;
17888 int result;
17889 PyObject * obj0 = 0 ;
17890 char *kwnames[] = {
17891 (char *) "self", NULL
17892 };
17893
17894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17897 {
17898 PyThreadState* __tstate = wxPyBeginAllowThreads();
17899 result = (int)(arg1)->GetCount();
17900
17901 wxPyEndAllowThreads(__tstate);
17902 if (PyErr_Occurred()) SWIG_fail;
17903 }
17904 resultobj = SWIG_FromInt((int)result);
17905 return resultobj;
17906 fail:
17907 return NULL;
17908 }
17909
17910
17911 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17912 PyObject *obj;
17913 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17914 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17915 Py_INCREF(obj);
17916 return Py_BuildValue((char *)"");
17917 }
17918 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17919 PyObject *resultobj;
17920 wxColourDatabase *result;
17921 char *kwnames[] = {
17922 NULL
17923 };
17924
17925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17926 {
17927 PyThreadState* __tstate = wxPyBeginAllowThreads();
17928 result = (wxColourDatabase *)new wxColourDatabase();
17929
17930 wxPyEndAllowThreads(__tstate);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
17933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17934 return resultobj;
17935 fail:
17936 return NULL;
17937 }
17938
17939
17940 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj;
17942 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17943 PyObject * obj0 = 0 ;
17944 char *kwnames[] = {
17945 (char *) "self", NULL
17946 };
17947
17948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17951 {
17952 PyThreadState* __tstate = wxPyBeginAllowThreads();
17953 delete arg1;
17954
17955 wxPyEndAllowThreads(__tstate);
17956 if (PyErr_Occurred()) SWIG_fail;
17957 }
17958 Py_INCREF(Py_None); resultobj = Py_None;
17959 return resultobj;
17960 fail:
17961 return NULL;
17962 }
17963
17964
17965 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17966 PyObject *resultobj;
17967 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17968 wxString *arg2 = 0 ;
17969 wxColour result;
17970 bool temp2 = False ;
17971 PyObject * obj0 = 0 ;
17972 PyObject * obj1 = 0 ;
17973 char *kwnames[] = {
17974 (char *) "self",(char *) "name", NULL
17975 };
17976
17977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17980 {
17981 arg2 = wxString_in_helper(obj1);
17982 if (arg2 == NULL) SWIG_fail;
17983 temp2 = True;
17984 }
17985 {
17986 PyThreadState* __tstate = wxPyBeginAllowThreads();
17987 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17988
17989 wxPyEndAllowThreads(__tstate);
17990 if (PyErr_Occurred()) SWIG_fail;
17991 }
17992 {
17993 wxColour * resultptr;
17994 resultptr = new wxColour((wxColour &) result);
17995 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17996 }
17997 {
17998 if (temp2)
17999 delete arg2;
18000 }
18001 return resultobj;
18002 fail:
18003 {
18004 if (temp2)
18005 delete arg2;
18006 }
18007 return NULL;
18008 }
18009
18010
18011 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
18012 PyObject *resultobj;
18013 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18014 wxColour *arg2 = 0 ;
18015 wxString result;
18016 wxColour temp2 ;
18017 PyObject * obj0 = 0 ;
18018 PyObject * obj1 = 0 ;
18019 char *kwnames[] = {
18020 (char *) "self",(char *) "colour", NULL
18021 };
18022
18023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
18024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18026 {
18027 arg2 = &temp2;
18028 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18029 }
18030 {
18031 PyThreadState* __tstate = wxPyBeginAllowThreads();
18032 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
18033
18034 wxPyEndAllowThreads(__tstate);
18035 if (PyErr_Occurred()) SWIG_fail;
18036 }
18037 {
18038 #if wxUSE_UNICODE
18039 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18040 #else
18041 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18042 #endif
18043 }
18044 return resultobj;
18045 fail:
18046 return NULL;
18047 }
18048
18049
18050 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18051 PyObject *resultobj;
18052 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18053 wxString *arg2 = 0 ;
18054 wxColour *arg3 = 0 ;
18055 bool temp2 = False ;
18056 wxColour temp3 ;
18057 PyObject * obj0 = 0 ;
18058 PyObject * obj1 = 0 ;
18059 PyObject * obj2 = 0 ;
18060 char *kwnames[] = {
18061 (char *) "self",(char *) "name",(char *) "colour", NULL
18062 };
18063
18064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
18065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18067 {
18068 arg2 = wxString_in_helper(obj1);
18069 if (arg2 == NULL) SWIG_fail;
18070 temp2 = True;
18071 }
18072 {
18073 arg3 = &temp3;
18074 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18075 }
18076 {
18077 PyThreadState* __tstate = wxPyBeginAllowThreads();
18078 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
18079
18080 wxPyEndAllowThreads(__tstate);
18081 if (PyErr_Occurred()) SWIG_fail;
18082 }
18083 Py_INCREF(Py_None); resultobj = Py_None;
18084 {
18085 if (temp2)
18086 delete arg2;
18087 }
18088 return resultobj;
18089 fail:
18090 {
18091 if (temp2)
18092 delete arg2;
18093 }
18094 return NULL;
18095 }
18096
18097
18098 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
18099 PyObject *resultobj;
18100 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18101 wxString *arg2 = 0 ;
18102 int arg3 ;
18103 int arg4 ;
18104 int arg5 ;
18105 bool temp2 = False ;
18106 PyObject * obj0 = 0 ;
18107 PyObject * obj1 = 0 ;
18108 PyObject * obj2 = 0 ;
18109 PyObject * obj3 = 0 ;
18110 PyObject * obj4 = 0 ;
18111 char *kwnames[] = {
18112 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
18113 };
18114
18115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18118 {
18119 arg2 = wxString_in_helper(obj1);
18120 if (arg2 == NULL) SWIG_fail;
18121 temp2 = True;
18122 }
18123 arg3 = (int) SWIG_AsInt(obj2);
18124 if (PyErr_Occurred()) SWIG_fail;
18125 arg4 = (int) SWIG_AsInt(obj3);
18126 if (PyErr_Occurred()) SWIG_fail;
18127 arg5 = (int) SWIG_AsInt(obj4);
18128 if (PyErr_Occurred()) SWIG_fail;
18129 {
18130 PyThreadState* __tstate = wxPyBeginAllowThreads();
18131 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
18132
18133 wxPyEndAllowThreads(__tstate);
18134 if (PyErr_Occurred()) SWIG_fail;
18135 }
18136 Py_INCREF(Py_None); resultobj = Py_None;
18137 {
18138 if (temp2)
18139 delete arg2;
18140 }
18141 return resultobj;
18142 fail:
18143 {
18144 if (temp2)
18145 delete arg2;
18146 }
18147 return NULL;
18148 }
18149
18150
18151 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
18152 PyObject *obj;
18153 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18154 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
18155 Py_INCREF(obj);
18156 return Py_BuildValue((char *)"");
18157 }
18158 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18159 PyObject *resultobj;
18160 wxFontList *arg1 = (wxFontList *) 0 ;
18161 wxFont *arg2 = (wxFont *) 0 ;
18162 PyObject * obj0 = 0 ;
18163 PyObject * obj1 = 0 ;
18164 char *kwnames[] = {
18165 (char *) "self",(char *) "font", NULL
18166 };
18167
18168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
18169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18171 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18173 {
18174 PyThreadState* __tstate = wxPyBeginAllowThreads();
18175 (arg1)->AddFont(arg2);
18176
18177 wxPyEndAllowThreads(__tstate);
18178 if (PyErr_Occurred()) SWIG_fail;
18179 }
18180 Py_INCREF(Py_None); resultobj = Py_None;
18181 return resultobj;
18182 fail:
18183 return NULL;
18184 }
18185
18186
18187 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18188 PyObject *resultobj;
18189 wxFontList *arg1 = (wxFontList *) 0 ;
18190 int arg2 ;
18191 int arg3 ;
18192 int arg4 ;
18193 int arg5 ;
18194 bool arg6 = (bool) False ;
18195 wxString const &arg7_defvalue = wxPyEmptyString ;
18196 wxString *arg7 = (wxString *) &arg7_defvalue ;
18197 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18198 wxFont *result;
18199 bool temp7 = False ;
18200 PyObject * obj0 = 0 ;
18201 PyObject * obj1 = 0 ;
18202 PyObject * obj2 = 0 ;
18203 PyObject * obj3 = 0 ;
18204 PyObject * obj4 = 0 ;
18205 PyObject * obj5 = 0 ;
18206 PyObject * obj6 = 0 ;
18207 PyObject * obj7 = 0 ;
18208 char *kwnames[] = {
18209 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18210 };
18211
18212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18215 arg2 = (int) SWIG_AsInt(obj1);
18216 if (PyErr_Occurred()) SWIG_fail;
18217 arg3 = (int) SWIG_AsInt(obj2);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 arg4 = (int) SWIG_AsInt(obj3);
18220 if (PyErr_Occurred()) SWIG_fail;
18221 arg5 = (int) SWIG_AsInt(obj4);
18222 if (PyErr_Occurred()) SWIG_fail;
18223 if (obj5) {
18224 arg6 = (bool) SWIG_AsBool(obj5);
18225 if (PyErr_Occurred()) SWIG_fail;
18226 }
18227 if (obj6) {
18228 {
18229 arg7 = wxString_in_helper(obj6);
18230 if (arg7 == NULL) SWIG_fail;
18231 temp7 = True;
18232 }
18233 }
18234 if (obj7) {
18235 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
18236 if (PyErr_Occurred()) SWIG_fail;
18237 }
18238 {
18239 PyThreadState* __tstate = wxPyBeginAllowThreads();
18240 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18241
18242 wxPyEndAllowThreads(__tstate);
18243 if (PyErr_Occurred()) SWIG_fail;
18244 }
18245 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18246 {
18247 if (temp7)
18248 delete arg7;
18249 }
18250 return resultobj;
18251 fail:
18252 {
18253 if (temp7)
18254 delete arg7;
18255 }
18256 return NULL;
18257 }
18258
18259
18260 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18261 PyObject *resultobj;
18262 wxFontList *arg1 = (wxFontList *) 0 ;
18263 wxFont *arg2 = (wxFont *) 0 ;
18264 PyObject * obj0 = 0 ;
18265 PyObject * obj1 = 0 ;
18266 char *kwnames[] = {
18267 (char *) "self",(char *) "font", NULL
18268 };
18269
18270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18273 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18275 {
18276 PyThreadState* __tstate = wxPyBeginAllowThreads();
18277 (arg1)->RemoveFont(arg2);
18278
18279 wxPyEndAllowThreads(__tstate);
18280 if (PyErr_Occurred()) SWIG_fail;
18281 }
18282 Py_INCREF(Py_None); resultobj = Py_None;
18283 return resultobj;
18284 fail:
18285 return NULL;
18286 }
18287
18288
18289 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
18290 PyObject *resultobj;
18291 wxFontList *arg1 = (wxFontList *) 0 ;
18292 int result;
18293 PyObject * obj0 = 0 ;
18294 char *kwnames[] = {
18295 (char *) "self", NULL
18296 };
18297
18298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18301 {
18302 PyThreadState* __tstate = wxPyBeginAllowThreads();
18303 result = (int)(arg1)->GetCount();
18304
18305 wxPyEndAllowThreads(__tstate);
18306 if (PyErr_Occurred()) SWIG_fail;
18307 }
18308 resultobj = SWIG_FromInt((int)result);
18309 return resultobj;
18310 fail:
18311 return NULL;
18312 }
18313
18314
18315 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
18316 PyObject *obj;
18317 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18318 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18319 Py_INCREF(obj);
18320 return Py_BuildValue((char *)"");
18321 }
18322 static int _wrap_TheFontList_set(PyObject *_val) {
18323 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18324 return 1;
18325 }
18326
18327
18328 static PyObject *_wrap_TheFontList_get() {
18329 PyObject *pyobj;
18330
18331 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18332 return pyobj;
18333 }
18334
18335
18336 static int _wrap_ThePenList_set(PyObject *_val) {
18337 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18338 return 1;
18339 }
18340
18341
18342 static PyObject *_wrap_ThePenList_get() {
18343 PyObject *pyobj;
18344
18345 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18346 return pyobj;
18347 }
18348
18349
18350 static int _wrap_TheBrushList_set(PyObject *_val) {
18351 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18352 return 1;
18353 }
18354
18355
18356 static PyObject *_wrap_TheBrushList_get() {
18357 PyObject *pyobj;
18358
18359 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18360 return pyobj;
18361 }
18362
18363
18364 static int _wrap_TheColourDatabase_set(PyObject *_val) {
18365 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18366 return 1;
18367 }
18368
18369
18370 static PyObject *_wrap_TheColourDatabase_get() {
18371 PyObject *pyobj;
18372
18373 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18374 return pyobj;
18375 }
18376
18377
18378 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
18379 PyObject *resultobj;
18380 wxEffects *result;
18381 char *kwnames[] = {
18382 NULL
18383 };
18384
18385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18386 {
18387 PyThreadState* __tstate = wxPyBeginAllowThreads();
18388 result = (wxEffects *)new wxEffects();
18389
18390 wxPyEndAllowThreads(__tstate);
18391 if (PyErr_Occurred()) SWIG_fail;
18392 }
18393 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18394 return resultobj;
18395 fail:
18396 return NULL;
18397 }
18398
18399
18400 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18401 PyObject *resultobj;
18402 wxEffects *arg1 = (wxEffects *) 0 ;
18403 wxColour result;
18404 PyObject * obj0 = 0 ;
18405 char *kwnames[] = {
18406 (char *) "self", NULL
18407 };
18408
18409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18412 {
18413 PyThreadState* __tstate = wxPyBeginAllowThreads();
18414 result = ((wxEffects const *)arg1)->GetHighlightColour();
18415
18416 wxPyEndAllowThreads(__tstate);
18417 if (PyErr_Occurred()) SWIG_fail;
18418 }
18419 {
18420 wxColour * resultptr;
18421 resultptr = new wxColour((wxColour &) result);
18422 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18423 }
18424 return resultobj;
18425 fail:
18426 return NULL;
18427 }
18428
18429
18430 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18431 PyObject *resultobj;
18432 wxEffects *arg1 = (wxEffects *) 0 ;
18433 wxColour result;
18434 PyObject * obj0 = 0 ;
18435 char *kwnames[] = {
18436 (char *) "self", NULL
18437 };
18438
18439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18442 {
18443 PyThreadState* __tstate = wxPyBeginAllowThreads();
18444 result = ((wxEffects const *)arg1)->GetLightShadow();
18445
18446 wxPyEndAllowThreads(__tstate);
18447 if (PyErr_Occurred()) SWIG_fail;
18448 }
18449 {
18450 wxColour * resultptr;
18451 resultptr = new wxColour((wxColour &) result);
18452 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18453 }
18454 return resultobj;
18455 fail:
18456 return NULL;
18457 }
18458
18459
18460 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18461 PyObject *resultobj;
18462 wxEffects *arg1 = (wxEffects *) 0 ;
18463 wxColour result;
18464 PyObject * obj0 = 0 ;
18465 char *kwnames[] = {
18466 (char *) "self", NULL
18467 };
18468
18469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18472 {
18473 PyThreadState* __tstate = wxPyBeginAllowThreads();
18474 result = ((wxEffects const *)arg1)->GetFaceColour();
18475
18476 wxPyEndAllowThreads(__tstate);
18477 if (PyErr_Occurred()) SWIG_fail;
18478 }
18479 {
18480 wxColour * resultptr;
18481 resultptr = new wxColour((wxColour &) result);
18482 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18483 }
18484 return resultobj;
18485 fail:
18486 return NULL;
18487 }
18488
18489
18490 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18491 PyObject *resultobj;
18492 wxEffects *arg1 = (wxEffects *) 0 ;
18493 wxColour result;
18494 PyObject * obj0 = 0 ;
18495 char *kwnames[] = {
18496 (char *) "self", NULL
18497 };
18498
18499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18502 {
18503 PyThreadState* __tstate = wxPyBeginAllowThreads();
18504 result = ((wxEffects const *)arg1)->GetMediumShadow();
18505
18506 wxPyEndAllowThreads(__tstate);
18507 if (PyErr_Occurred()) SWIG_fail;
18508 }
18509 {
18510 wxColour * resultptr;
18511 resultptr = new wxColour((wxColour &) result);
18512 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18513 }
18514 return resultobj;
18515 fail:
18516 return NULL;
18517 }
18518
18519
18520 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18521 PyObject *resultobj;
18522 wxEffects *arg1 = (wxEffects *) 0 ;
18523 wxColour result;
18524 PyObject * obj0 = 0 ;
18525 char *kwnames[] = {
18526 (char *) "self", NULL
18527 };
18528
18529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18532 {
18533 PyThreadState* __tstate = wxPyBeginAllowThreads();
18534 result = ((wxEffects const *)arg1)->GetDarkShadow();
18535
18536 wxPyEndAllowThreads(__tstate);
18537 if (PyErr_Occurred()) SWIG_fail;
18538 }
18539 {
18540 wxColour * resultptr;
18541 resultptr = new wxColour((wxColour &) result);
18542 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18543 }
18544 return resultobj;
18545 fail:
18546 return NULL;
18547 }
18548
18549
18550 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18551 PyObject *resultobj;
18552 wxEffects *arg1 = (wxEffects *) 0 ;
18553 wxColour *arg2 = 0 ;
18554 wxColour temp2 ;
18555 PyObject * obj0 = 0 ;
18556 PyObject * obj1 = 0 ;
18557 char *kwnames[] = {
18558 (char *) "self",(char *) "c", NULL
18559 };
18560
18561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18564 {
18565 arg2 = &temp2;
18566 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18567 }
18568 {
18569 PyThreadState* __tstate = wxPyBeginAllowThreads();
18570 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18571
18572 wxPyEndAllowThreads(__tstate);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 }
18575 Py_INCREF(Py_None); resultobj = Py_None;
18576 return resultobj;
18577 fail:
18578 return NULL;
18579 }
18580
18581
18582 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18583 PyObject *resultobj;
18584 wxEffects *arg1 = (wxEffects *) 0 ;
18585 wxColour *arg2 = 0 ;
18586 wxColour temp2 ;
18587 PyObject * obj0 = 0 ;
18588 PyObject * obj1 = 0 ;
18589 char *kwnames[] = {
18590 (char *) "self",(char *) "c", NULL
18591 };
18592
18593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18596 {
18597 arg2 = &temp2;
18598 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18599 }
18600 {
18601 PyThreadState* __tstate = wxPyBeginAllowThreads();
18602 (arg1)->SetLightShadow((wxColour const &)*arg2);
18603
18604 wxPyEndAllowThreads(__tstate);
18605 if (PyErr_Occurred()) SWIG_fail;
18606 }
18607 Py_INCREF(Py_None); resultobj = Py_None;
18608 return resultobj;
18609 fail:
18610 return NULL;
18611 }
18612
18613
18614 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18615 PyObject *resultobj;
18616 wxEffects *arg1 = (wxEffects *) 0 ;
18617 wxColour *arg2 = 0 ;
18618 wxColour temp2 ;
18619 PyObject * obj0 = 0 ;
18620 PyObject * obj1 = 0 ;
18621 char *kwnames[] = {
18622 (char *) "self",(char *) "c", NULL
18623 };
18624
18625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18628 {
18629 arg2 = &temp2;
18630 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18631 }
18632 {
18633 PyThreadState* __tstate = wxPyBeginAllowThreads();
18634 (arg1)->SetFaceColour((wxColour const &)*arg2);
18635
18636 wxPyEndAllowThreads(__tstate);
18637 if (PyErr_Occurred()) SWIG_fail;
18638 }
18639 Py_INCREF(Py_None); resultobj = Py_None;
18640 return resultobj;
18641 fail:
18642 return NULL;
18643 }
18644
18645
18646 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18647 PyObject *resultobj;
18648 wxEffects *arg1 = (wxEffects *) 0 ;
18649 wxColour *arg2 = 0 ;
18650 wxColour temp2 ;
18651 PyObject * obj0 = 0 ;
18652 PyObject * obj1 = 0 ;
18653 char *kwnames[] = {
18654 (char *) "self",(char *) "c", NULL
18655 };
18656
18657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18660 {
18661 arg2 = &temp2;
18662 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18663 }
18664 {
18665 PyThreadState* __tstate = wxPyBeginAllowThreads();
18666 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18667
18668 wxPyEndAllowThreads(__tstate);
18669 if (PyErr_Occurred()) SWIG_fail;
18670 }
18671 Py_INCREF(Py_None); resultobj = Py_None;
18672 return resultobj;
18673 fail:
18674 return NULL;
18675 }
18676
18677
18678 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18679 PyObject *resultobj;
18680 wxEffects *arg1 = (wxEffects *) 0 ;
18681 wxColour *arg2 = 0 ;
18682 wxColour temp2 ;
18683 PyObject * obj0 = 0 ;
18684 PyObject * obj1 = 0 ;
18685 char *kwnames[] = {
18686 (char *) "self",(char *) "c", NULL
18687 };
18688
18689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18692 {
18693 arg2 = &temp2;
18694 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18695 }
18696 {
18697 PyThreadState* __tstate = wxPyBeginAllowThreads();
18698 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18699
18700 wxPyEndAllowThreads(__tstate);
18701 if (PyErr_Occurred()) SWIG_fail;
18702 }
18703 Py_INCREF(Py_None); resultobj = Py_None;
18704 return resultobj;
18705 fail:
18706 return NULL;
18707 }
18708
18709
18710 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18711 PyObject *resultobj;
18712 wxEffects *arg1 = (wxEffects *) 0 ;
18713 wxColour *arg2 = 0 ;
18714 wxColour *arg3 = 0 ;
18715 wxColour *arg4 = 0 ;
18716 wxColour *arg5 = 0 ;
18717 wxColour *arg6 = 0 ;
18718 wxColour temp2 ;
18719 wxColour temp3 ;
18720 wxColour temp4 ;
18721 wxColour temp5 ;
18722 wxColour temp6 ;
18723 PyObject * obj0 = 0 ;
18724 PyObject * obj1 = 0 ;
18725 PyObject * obj2 = 0 ;
18726 PyObject * obj3 = 0 ;
18727 PyObject * obj4 = 0 ;
18728 PyObject * obj5 = 0 ;
18729 char *kwnames[] = {
18730 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18731 };
18732
18733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18736 {
18737 arg2 = &temp2;
18738 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18739 }
18740 {
18741 arg3 = &temp3;
18742 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18743 }
18744 {
18745 arg4 = &temp4;
18746 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18747 }
18748 {
18749 arg5 = &temp5;
18750 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18751 }
18752 {
18753 arg6 = &temp6;
18754 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18755 }
18756 {
18757 PyThreadState* __tstate = wxPyBeginAllowThreads();
18758 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18759
18760 wxPyEndAllowThreads(__tstate);
18761 if (PyErr_Occurred()) SWIG_fail;
18762 }
18763 Py_INCREF(Py_None); resultobj = Py_None;
18764 return resultobj;
18765 fail:
18766 return NULL;
18767 }
18768
18769
18770 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18771 PyObject *resultobj;
18772 wxEffects *arg1 = (wxEffects *) 0 ;
18773 wxDC *arg2 = 0 ;
18774 wxRect *arg3 = 0 ;
18775 int arg4 = (int) 1 ;
18776 wxRect temp3 ;
18777 PyObject * obj0 = 0 ;
18778 PyObject * obj1 = 0 ;
18779 PyObject * obj2 = 0 ;
18780 PyObject * obj3 = 0 ;
18781 char *kwnames[] = {
18782 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18783 };
18784
18785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18788 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18789 SWIG_POINTER_EXCEPTION | 0)) == -1)
18790 SWIG_fail;
18791 if (arg2 == NULL) {
18792 PyErr_SetString(PyExc_TypeError,"null reference");
18793 SWIG_fail;
18794 }
18795 {
18796 arg3 = &temp3;
18797 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18798 }
18799 if (obj3) {
18800 arg4 = (int) SWIG_AsInt(obj3);
18801 if (PyErr_Occurred()) SWIG_fail;
18802 }
18803 {
18804 PyThreadState* __tstate = wxPyBeginAllowThreads();
18805 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18806
18807 wxPyEndAllowThreads(__tstate);
18808 if (PyErr_Occurred()) SWIG_fail;
18809 }
18810 Py_INCREF(Py_None); resultobj = Py_None;
18811 return resultobj;
18812 fail:
18813 return NULL;
18814 }
18815
18816
18817 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18818 PyObject *resultobj;
18819 wxEffects *arg1 = (wxEffects *) 0 ;
18820 wxRect *arg2 = 0 ;
18821 wxDC *arg3 = 0 ;
18822 wxBitmap *arg4 = 0 ;
18823 bool result;
18824 wxRect temp2 ;
18825 PyObject * obj0 = 0 ;
18826 PyObject * obj1 = 0 ;
18827 PyObject * obj2 = 0 ;
18828 PyObject * obj3 = 0 ;
18829 char *kwnames[] = {
18830 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18831 };
18832
18833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18836 {
18837 arg2 = &temp2;
18838 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18839 }
18840 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18841 SWIG_POINTER_EXCEPTION | 0)) == -1)
18842 SWIG_fail;
18843 if (arg3 == NULL) {
18844 PyErr_SetString(PyExc_TypeError,"null reference");
18845 SWIG_fail;
18846 }
18847 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18848 SWIG_POINTER_EXCEPTION | 0)) == -1)
18849 SWIG_fail;
18850 if (arg4 == NULL) {
18851 PyErr_SetString(PyExc_TypeError,"null reference");
18852 SWIG_fail;
18853 }
18854 {
18855 PyThreadState* __tstate = wxPyBeginAllowThreads();
18856 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18857
18858 wxPyEndAllowThreads(__tstate);
18859 if (PyErr_Occurred()) SWIG_fail;
18860 }
18861 {
18862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18863 }
18864 return resultobj;
18865 fail:
18866 return NULL;
18867 }
18868
18869
18870 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18871 PyObject *obj;
18872 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18873 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18874 Py_INCREF(obj);
18875 return Py_BuildValue((char *)"");
18876 }
18877 static PyMethodDef SwigMethods[] = {
18878 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18879 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18880 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18881 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18882 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18883 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18884 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18885 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18886 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18887 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18888 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18889 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18890 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18891 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18892 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18893 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18894 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18895 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18896 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18897 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18898 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18899 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18900 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18901 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18902 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18903 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18904 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18905 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18906 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18907 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18908 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18909 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18910 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18911 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18912 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18913 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18914 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18915 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18916 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18917 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18918 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18919 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18920 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18921 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18922 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18923 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18924 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18925 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
18926 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
18927 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18928 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
18929 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
18930 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18931 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
18932 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18933 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18934 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18935 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18936 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18937 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18938 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18939 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18940 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18941 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18942 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18943 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18944 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18945 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18946 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18947 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18948 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18949 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
18950 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
18951 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
18952 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18953 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18954 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18955 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18956 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18957 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18958 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18959 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18960 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18961 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18962 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18963 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18964 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18965 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18966 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18967 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
18968 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
18969 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
18970 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18971 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18972 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18973 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18974 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18975 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18976 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18977 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18978 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18979 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18980 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18981 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18982 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
18983 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
18984 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18985 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18986 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18987 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18988 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18989 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18990 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18991 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
18992 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18993 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18994 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18995 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18996 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18997 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18998 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18999 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
19000 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
19001 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
19002 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
19003 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
19004 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
19005 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
19006 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
19007 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
19008 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
19009 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
19010 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
19011 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
19012 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
19013 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
19014 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
19015 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
19016 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
19017 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
19018 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
19019 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
19020 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
19021 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
19022 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
19023 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
19024 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
19025 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
19026 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
19027 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
19028 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
19029 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
19030 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
19031 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
19032 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
19033 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
19034 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
19035 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
19036 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
19037 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
19038 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
19039 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
19040 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
19041 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
19042 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
19043 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
19044 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
19045 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
19046 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
19047 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
19048 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
19049 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
19050 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
19051 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
19052 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19053 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19054 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
19055 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
19056 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
19057 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
19058 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
19059 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
19060 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
19061 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
19062 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
19063 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
19064 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
19065 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
19066 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19067 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19068 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
19069 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
19070 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19071 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
19072 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
19073 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19074 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19075 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
19076 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19077 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19078 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
19079 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
19080 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19081 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19082 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
19083 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19084 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19085 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19086 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
19087 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
19088 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
19089 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
19090 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
19091 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
19092 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
19093 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
19094 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19095 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19096 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19097 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19098 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
19099 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
19100 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
19101 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
19102 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
19103 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
19104 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
19105 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
19106 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
19107 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19108 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
19109 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
19110 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
19111 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
19112 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
19113 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
19114 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
19115 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
19116 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
19117 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
19118 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
19119 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
19120 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
19121 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
19122 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
19123 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
19124 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
19125 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
19126 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19127 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
19128 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
19129 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
19130 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19131 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19132 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19133 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19134 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
19135 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
19136 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19137 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19138 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
19139 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
19140 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
19141 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19142 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19143 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19144 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19145 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
19146 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19147 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
19148 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
19149 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
19150 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19151 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19152 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19153 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19154 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
19155 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19156 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19157 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
19158 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
19159 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
19160 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
19161 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
19162 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
19163 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
19164 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
19165 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
19166 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
19167 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
19168 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
19169 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
19170 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
19171 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
19172 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
19173 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
19174 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
19175 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
19176 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
19177 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
19178 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
19179 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
19180 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
19181 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
19182 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
19183 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
19184 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
19185 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19186 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
19187 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19188 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
19189 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
19190 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
19191 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
19192 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
19193 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
19194 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19195 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19196 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
19197 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
19198 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
19199 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
19200 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
19201 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
19202 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
19203 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
19204 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
19205 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
19206 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
19207 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
19208 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
19209 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
19210 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
19211 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
19212 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
19213 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
19214 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
19215 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
19216 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
19217 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
19218 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
19219 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
19220 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
19221 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
19222 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
19223 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
19224 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
19225 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
19226 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
19227 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
19228 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
19229 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
19230 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
19231 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
19232 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
19233 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
19234 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
19235 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
19236 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
19237 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
19238 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
19239 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
19240 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
19241 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
19242 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
19243 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
19244 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
19245 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
19246 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
19247 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
19248 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
19249 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
19250 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
19251 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
19252 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
19253 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
19254 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
19255 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
19256 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19257 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
19258 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
19259 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
19260 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
19261 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
19262 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
19263 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
19264 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
19265 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
19266 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
19267 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
19268 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
19269 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
19270 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
19271 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
19272 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
19273 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
19274 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
19275 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
19276 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
19277 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
19278 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
19279 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
19280 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
19281 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
19282 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
19283 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
19284 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
19285 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
19286 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
19287 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
19288 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19289 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
19290 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
19291 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
19292 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
19293 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
19294 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
19295 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
19296 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
19297 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
19298 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
19299 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
19300 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
19301 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19302 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19303 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19304 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
19305 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19306 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19307 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
19308 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19309 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
19310 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19311 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19312 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
19313 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
19314 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
19315 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19316 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
19317 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
19318 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
19319 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
19320 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19321 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
19322 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
19323 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
19324 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
19325 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
19326 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
19327 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
19328 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
19329 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
19330 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
19331 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
19332 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
19333 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
19334 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
19335 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
19336 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
19337 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
19338 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
19339 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
19340 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
19341 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19342 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19343 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
19344 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
19345 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
19346 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
19347 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
19348 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
19349 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
19350 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
19351 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
19352 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
19353 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
19354 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
19355 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
19356 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
19357 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
19358 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
19359 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
19360 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
19361 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
19362 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
19363 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
19364 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
19365 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
19366 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
19367 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
19368 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
19369 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
19370 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
19371 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
19372 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
19373 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
19374 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
19375 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
19376 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
19377 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
19378 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
19379 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
19380 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
19381 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
19382 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
19383 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
19384 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
19385 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
19386 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
19387 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
19388 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
19389 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
19390 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
19391 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
19392 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
19393 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
19394 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19395 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19396 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
19397 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
19398 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
19399 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
19400 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
19401 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
19402 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
19403 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
19404 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
19405 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
19406 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
19407 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19408 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
19409 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
19410 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19411 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19412 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19413 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
19414 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
19415 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19416 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19417 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
19418 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
19419 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
19420 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
19421 { NULL, NULL }
19422 };
19423
19424
19425 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19426
19427 static void *_p_wxControlTo_p_wxWindow(void *x) {
19428 return (void *)((wxWindow *) ((wxControl *) x));
19429 }
19430 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19431 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19432 }
19433 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19434 return (void *)((wxWindow *) ((wxMenuBar *) x));
19435 }
19436 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19437 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19438 }
19439 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19440 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19441 }
19442 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19443 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19444 }
19445 static void *_p_wxPenTo_p_wxObject(void *x) {
19446 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19447 }
19448 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19449 return (void *)((wxObject *) ((wxRegionIterator *) x));
19450 }
19451 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19452 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19453 }
19454 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19455 return (void *)((wxObject *) ((wxSizerItem *) x));
19456 }
19457 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19458 return (void *)((wxObject *) ((wxColourDatabase *) x));
19459 }
19460 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19461 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19462 }
19463 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19464 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19465 }
19466 static void *_p_wxIconTo_p_wxObject(void *x) {
19467 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19468 }
19469 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19470 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19471 }
19472 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19473 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19474 }
19475 static void *_p_wxSizerTo_p_wxObject(void *x) {
19476 return (void *)((wxObject *) ((wxSizer *) x));
19477 }
19478 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19479 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19480 }
19481 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19482 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19483 }
19484 static void *_p_wxPenListTo_p_wxObject(void *x) {
19485 return (void *)((wxObject *) ((wxPenList *) x));
19486 }
19487 static void *_p_wxEventTo_p_wxObject(void *x) {
19488 return (void *)((wxObject *) ((wxEvent *) x));
19489 }
19490 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19491 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19492 }
19493 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19494 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19495 }
19496 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19497 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19498 }
19499 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19500 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19501 }
19502 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19503 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19504 }
19505 static void *_p_wxDCTo_p_wxObject(void *x) {
19506 return (void *)((wxObject *) ((wxDC *) x));
19507 }
19508 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19509 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19510 }
19511 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19512 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19513 }
19514 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19515 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19516 }
19517 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19518 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19519 }
19520 static void *_p_wxControlTo_p_wxObject(void *x) {
19521 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19522 }
19523 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19524 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19525 }
19526 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19527 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19528 }
19529 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19530 return (void *)((wxObject *) ((wxFSFile *) x));
19531 }
19532 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19533 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19534 }
19535 static void *_p_wxRegionTo_p_wxObject(void *x) {
19536 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19537 }
19538 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19539 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19540 }
19541 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19542 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19543 }
19544 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19545 return (void *)((wxObject *) ((wxGDIObject *) x));
19546 }
19547 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19548 return (void *)((wxObject *) ((wxEffects *) x));
19549 }
19550 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19551 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19552 }
19553 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19554 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19555 }
19556 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19557 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19558 }
19559 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19560 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19561 }
19562 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19563 return (void *)((wxObject *) ((wxMenuItem *) x));
19564 }
19565 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19566 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19567 }
19568 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19569 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19570 }
19571 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19572 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19573 }
19574 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19575 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19576 }
19577 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19578 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19579 }
19580 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19581 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19582 }
19583 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19584 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19585 }
19586 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19587 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19588 }
19589 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19590 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19591 }
19592 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19593 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19594 }
19595 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19596 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19597 }
19598 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19599 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19600 }
19601 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19602 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19603 }
19604 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19605 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19606 }
19607 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19608 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19609 }
19610 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19611 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19612 }
19613 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19614 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19615 }
19616 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19617 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19618 }
19619 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19620 return (void *)((wxObject *) ((wxImageHandler *) x));
19621 }
19622 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19623 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19624 }
19625 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19626 return (void *)((wxObject *) ((wxEvtHandler *) x));
19627 }
19628 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19629 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19630 }
19631 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19632 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19633 }
19634 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19635 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19636 }
19637 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19638 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19639 }
19640 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19641 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19642 }
19643 static void *_p_wxImageTo_p_wxObject(void *x) {
19644 return (void *)((wxObject *) ((wxImage *) x));
19645 }
19646 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19647 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19648 }
19649 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19650 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19651 }
19652 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19653 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19654 }
19655 static void *_p_wxImageListTo_p_wxObject(void *x) {
19656 return (void *)((wxObject *) ((wxImageList *) x));
19657 }
19658 static void *_p_wxCursorTo_p_wxObject(void *x) {
19659 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19660 }
19661 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19662 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19663 }
19664 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19665 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19666 }
19667 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19668 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19669 }
19670 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19671 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19672 }
19673 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19674 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19675 }
19676 static void *_p_wxWindowTo_p_wxObject(void *x) {
19677 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19678 }
19679 static void *_p_wxMenuTo_p_wxObject(void *x) {
19680 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19681 }
19682 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19683 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19684 }
19685 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19686 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19687 }
19688 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19689 return (void *)((wxObject *) ((wxBrushList *) x));
19690 }
19691 static void *_p_wxPyPenTo_p_wxObject(void *x) {
19692 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19693 }
19694 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19695 return (void *)((wxObject *) ((wxFileSystem *) x));
19696 }
19697 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19698 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19699 }
19700 static void *_p_wxMaskTo_p_wxObject(void *x) {
19701 return (void *)((wxObject *) ((wxMask *) x));
19702 }
19703 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19704 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19705 }
19706 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19707 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19708 }
19709 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19710 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19711 }
19712 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19713 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19714 }
19715 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19716 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19717 }
19718 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19719 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19720 }
19721 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19722 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19723 }
19724 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19725 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19726 }
19727 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19728 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19729 }
19730 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19731 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19732 }
19733 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19734 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19735 }
19736 static void *_p_wxFontTo_p_wxObject(void *x) {
19737 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19738 }
19739 static void *_p_wxBrushTo_p_wxObject(void *x) {
19740 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19741 }
19742 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19743 return (void *)((wxObject *) ((wxMetaFile *) x));
19744 }
19745 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19746 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19747 }
19748 static void *_p_wxColourTo_p_wxObject(void *x) {
19749 return (void *)((wxObject *) ((wxColour *) x));
19750 }
19751 static void *_p_wxFontListTo_p_wxObject(void *x) {
19752 return (void *)((wxObject *) ((wxFontList *) x));
19753 }
19754 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19755 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19756 }
19757 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19758 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19759 }
19760 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19761 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19762 }
19763 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19764 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19765 }
19766 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19767 return (void *)((wxDC *) ((wxScreenDC *) x));
19768 }
19769 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19770 return (void *)((wxDC *) ((wxMirrorDC *) x));
19771 }
19772 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19773 return (void *)((wxDC *) ((wxMemoryDC *) x));
19774 }
19775 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19776 return (void *)((wxDC *) ((wxWindowDC *) x));
19777 }
19778 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19779 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19780 }
19781 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19782 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19783 }
19784 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19785 return (void *)((wxDC *) ((wxClientDC *) x));
19786 }
19787 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19788 return (void *)((wxDC *) ((wxPaintDC *) x));
19789 }
19790 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19791 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19792 }
19793 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19794 return (void *)((wxDC *) ((wxPrinterDC *) x));
19795 }
19796 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19797 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19798 }
19799 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19800 return (void *)((wxGDIObject *) ((wxIcon *) x));
19801 }
19802 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19803 return (void *)((wxGDIObject *) ((wxPalette *) x));
19804 }
19805 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19806 return (void *)((wxGDIObject *) ((wxPen *) x));
19807 }
19808 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19809 return (void *)((wxGDIObject *) ((wxFont *) x));
19810 }
19811 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19812 return (void *)((wxGDIObject *) ((wxCursor *) x));
19813 }
19814 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19815 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19816 }
19817 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19818 return (void *)((wxGDIObject *) ((wxRegion *) x));
19819 }
19820 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19821 return (void *)((wxGDIObject *) ((wxBrush *) x));
19822 }
19823 static void *_p_wxPyPenTo_p_wxPen(void *x) {
19824 return (void *)((wxPen *) ((wxPyPen *) x));
19825 }
19826 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}};
19827 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}};
19828 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}};
19829 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}};
19830 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}};
19831 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}};
19832 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}};
19833 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}};
19834 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}};
19835 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}};
19836 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}};
19837 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}};
19838 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}};
19839 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}};
19840 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}};
19841 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}};
19842 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}};
19843 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}};
19844 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}};
19845 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}};
19846 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}};
19847 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}};
19848 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}};
19849 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}};
19850 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}};
19851 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}};
19852 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}};
19853 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}};
19854 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}};
19855 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}};
19856 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}};
19857 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}};
19858 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}};
19859 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}};
19860 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}};
19861 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}};
19862 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}};
19863 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}};
19864 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}};
19865 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}};
19866 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}};
19867 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}};
19868 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}};
19869 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}};
19870 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}};
19871 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}};
19872 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}};
19873 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}};
19874 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}};
19875 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}};
19876 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}};
19877 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}};
19878 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}};
19879 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}};
19880 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}};
19881 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}};
19882
19883 static swig_type_info *swig_types_initial[] = {
19884 _swigt__p_wxPostScriptDC,
19885 _swigt__p_wxBrush,
19886 _swigt__p_wxColour,
19887 _swigt__p_wxDC,
19888 _swigt__p_wxMirrorDC,
19889 _swigt__p_byte,
19890 _swigt__p_wxPyFontEnumerator,
19891 _swigt__p_char,
19892 _swigt__p_wxIconLocation,
19893 _swigt__p_wxImage,
19894 _swigt__p_wxMetaFileDC,
19895 _swigt__p_wxMask,
19896 _swigt__p_wxFont,
19897 _swigt__p_wxWindow,
19898 _swigt__p_wxSize,
19899 _swigt__p_double,
19900 _swigt__p_wxMemoryDC,
19901 _swigt__p_wxFontMapper,
19902 _swigt__p_wxEffects,
19903 _swigt__p_wxNativeEncodingInfo,
19904 _swigt__p_wxPalette,
19905 _swigt__p_wxBitmap,
19906 _swigt__p_wxObject,
19907 _swigt__p_wxRegionIterator,
19908 _swigt__p_wxRect,
19909 _swigt__p_wxString,
19910 _swigt__p_wxPrinterDC,
19911 _swigt__p_wxIconBundle,
19912 _swigt__p_wxPoint,
19913 _swigt__p_wxDash,
19914 _swigt__p_wxScreenDC,
19915 _swigt__p_wxCursor,
19916 _swigt__p_wxClientDC,
19917 _swigt__p_wxBufferedDC,
19918 _swigt__p_wxImageList,
19919 _swigt__p_unsigned_char,
19920 _swigt__p_wxGDIObject,
19921 _swigt__p_wxIcon,
19922 _swigt__p_wxLocale,
19923 _swigt__p_wxRegion,
19924 _swigt__p_wxLanguageInfo,
19925 _swigt__p_wxConfigBase,
19926 _swigt__p_wxWindowDC,
19927 _swigt__p_wxPrintData,
19928 _swigt__p_wxBrushList,
19929 _swigt__p_wxFontList,
19930 _swigt__p_wxPen,
19931 _swigt__p_wxBufferedPaintDC,
19932 _swigt__p_wxPaintDC,
19933 _swigt__p_wxPenList,
19934 _swigt__p_wxPyPen,
19935 _swigt__p_int,
19936 _swigt__p_wxMetaFile,
19937 _swigt__p_wxNativeFontInfo,
19938 _swigt__p_wxEncodingConverter,
19939 _swigt__p_wxColourDatabase,
19940 0
19941 };
19942
19943
19944 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19945
19946 static swig_const_info swig_const_table[] = {
19947 {0}};
19948
19949 #ifdef __cplusplus
19950 }
19951 #endif
19952
19953 #ifdef __cplusplus
19954 extern "C"
19955 #endif
19956 SWIGEXPORT(void) SWIG_init(void) {
19957 static PyObject *SWIG_globals = 0;
19958 static int typeinit = 0;
19959 PyObject *m, *d;
19960 int i;
19961 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19962 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19963 d = PyModule_GetDict(m);
19964
19965 if (!typeinit) {
19966 for (i = 0; swig_types_initial[i]; i++) {
19967 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19968 }
19969 typeinit = 1;
19970 }
19971 SWIG_InstallConstants(d,swig_const_table);
19972
19973 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19974 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19975 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19976 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19977 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19978 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19979 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19980 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19981 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19982 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19983 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19984 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19985 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19986 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19987 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19988 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19989 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19990 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19991 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19992 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19993 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19994 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19995 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19996 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19997 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19998 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19999 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
20000 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
20001 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
20002 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
20003 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
20004 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
20005 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
20006 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
20007 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
20008 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
20009 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
20010 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
20011 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
20012 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
20013 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
20014 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
20015 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
20016 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
20017 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
20018 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
20019 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
20020 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
20021 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
20022 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
20023 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
20024 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
20025 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
20026 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
20027 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
20028 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
20029 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
20030 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
20031 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
20032 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
20033 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
20034 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
20035 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
20036 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
20037 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
20038 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
20039 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
20040 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
20041 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
20042 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
20043 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
20044 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
20045 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
20046 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
20047 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
20048 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
20049 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
20050 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
20051 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
20052 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
20053 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
20054 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
20055 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
20056 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
20057 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
20058 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
20059 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
20060 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
20061 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
20062 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
20063 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
20064 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
20065 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
20066 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
20067 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
20068 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
20069 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
20070 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
20071 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
20072 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
20073 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
20074 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
20075 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
20076 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
20077 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
20078 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
20079 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
20080 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
20081 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
20082 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
20083 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
20084 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
20085 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
20086 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
20087 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
20088 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
20089 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
20090 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
20091 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
20092 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
20093 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
20094 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
20095 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
20096 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
20097 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
20098 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
20099
20100 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
20101
20102 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
20103 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
20104 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
20105 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
20106 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
20107 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
20108 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
20109 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
20110 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
20111 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
20112 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
20113 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
20114 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
20115 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
20116 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
20117 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
20118 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
20119 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
20120 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
20121 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
20122 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
20123 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
20124 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
20125 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
20126 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
20127 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
20128 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
20129 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
20130 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
20131 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
20132 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
20133 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
20134 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
20135 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
20136 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
20137 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
20138 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
20139 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
20140 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
20141 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
20142 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
20143 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
20144 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
20145 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
20146 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
20147 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
20148 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
20149 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
20150 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
20151 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
20152 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
20153 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
20154 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
20155 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
20156 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
20157 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
20158 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
20159 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
20160 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
20161 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
20162 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
20163 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20164 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
20165 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20166 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
20167 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
20168 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
20169 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20170 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20171 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20172 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20173 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20174 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
20175 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
20176 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
20177 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
20178 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
20179 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
20180 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
20181 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
20182 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
20183 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20184 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
20185 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
20186 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
20187 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
20188 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
20189 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
20190 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20191 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
20192 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20193 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20194 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
20195 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
20196 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
20197 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
20198 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
20199 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
20200 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
20201 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
20202 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
20203 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
20204 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
20205 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
20206 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
20207 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
20208 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
20209 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
20210 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
20211 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
20212 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
20213 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
20214 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
20215 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
20216 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
20217 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
20218 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
20219 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
20220 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
20221 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
20222 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
20223 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
20224 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
20225 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
20226 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
20227 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
20228 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
20229 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
20230 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
20231 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
20232 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
20233 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
20234 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20235 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
20236 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
20237 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
20238 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
20239 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
20240 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
20241 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
20242 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
20243 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
20244 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
20245 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20246 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20247 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
20248 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
20249 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
20250 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
20251 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
20252 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
20253 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20254 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
20255 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
20256 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
20257 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
20258 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
20259 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20260 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
20261 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
20262 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
20263 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
20264 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
20265 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20266 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
20267 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
20268 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
20269 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
20270 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
20271 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
20272 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
20273 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
20274 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
20275 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
20276 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
20277 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
20278 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
20279 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
20280 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
20281 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
20282 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20283 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20284 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
20285 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20286 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
20287 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
20288 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
20289 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
20290 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
20291 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
20292 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
20293 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
20294 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20295 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
20296 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
20297 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
20298 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
20299 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
20300 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
20301 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
20302 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
20303 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
20304 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
20305 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
20306 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
20307 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
20308 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
20309 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
20310 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
20311 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
20312 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
20313 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
20314 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
20315 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
20316 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
20317 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
20318 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
20319 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
20320 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
20321 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
20322 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
20323 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
20324 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
20325 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
20326 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
20327 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
20328 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
20329 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
20330 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
20331 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
20332 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
20333 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
20334 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
20335 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
20336 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
20337 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
20338 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
20339 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
20340 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
20341 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
20342 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
20343 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
20344 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
20345 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
20346 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
20347 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
20348 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
20349 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
20350 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
20351 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
20352 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
20353 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
20354 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
20355 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20356 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20357 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20358 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20359 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20360 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20361 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20362 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20363 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20364 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20365 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20366 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20367 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20368 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20369 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20370 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20371 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20372 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20373 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20374 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20375 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20376 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20377 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20378 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20379 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20380 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20381 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20382 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20383 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20384 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20385 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20386 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20387 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20388 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20389 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20390 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20391 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20392 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20393 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20394 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20395 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20396 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20397 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20398 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20399 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20400 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20401 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20402
20403 // Work around a chicken/egg problem in drawlist.cpp
20404 wxPyDrawList_SetAPIPtr();
20405
20406 }
20407